1 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2 Eric Botcazou <ebotcazou@adacore.com>
4 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5 for STORE_FLAG_VALUE==-1 case.
7 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11 LEGITIMATE_PIC_OPERAND_P.
13 2011-04-24 Jan Hubicka <jh@suse.cz>
15 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
17 * ipa-prop.h (ipa_get_param, ipa_is_param_used, ipa_param_cannot_devirtualize_p,
18 ipa_param_types_vec_empty, ipa_get_ith_jump_func, ipa_get_lattice):
20 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
21 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
22 Sanity check predicate length.
23 (remap_predicate): Likewise; sanity check jump functions.
24 (inline_read_section, inline_write_summary): Sanity check
27 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
30 * doc/extend.texi (Type Traits): Document __is_standard_layout,
31 __is_literal_type, and __is_trivial; update throughout about
32 possibly cv-qualified void types.
34 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
36 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
37 testsuite and make it version agnostic.
39 2011-04-22 Jan Hubicka <jh@suse.cz>
41 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
43 2011-04-23 Jakub Jelinek <jakub@redhat.com>
46 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
47 to VOID_TYPE even around MODIFY_EXPR.
49 2011-04-22 Mike Stump <mikestump@comcast.net>
51 * gensupport.c (read_md_rtx): Fix typo in comment.
52 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
55 2011-04-22 Jan Hubicka <jh@suse.cz>
57 * gengtype.c (open_base_files): Add ipa-inline.h include.
58 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to ipa-prop.c
60 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
61 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to merge
62 summary of inlined function into former caller.
63 * ipa-inline.c (max_benefit): Remove.
64 (edge_badness): Compensate for removal of benefits.
65 (update_caller_keys): Use reset_node_growth_cache/reset_edge_growth_cache.
66 (update_callee_keys): Likewise.
67 (update_all_callee_keys): Likewise.
68 (inline_small_functions): Do not collect max_benefit; do not
69 reset stimated_growth; call free_growth_caches and initialize_growth_caches.
70 * ipa-inline.h (struct condition, type clause_t, struct predicate, struct
71 size_time_entry): New structures.
72 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
73 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit and
75 (edge_growth_cache_entry): New structure.
76 (node_growth_cache, edge_growth_cache): New global vars.
77 (estimate_growth): Turn into inline.
78 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
79 initialize_growth_caches, free_growth_caches): Declare.
80 (estimate_edge_growth): Rewrite.
81 (estimate_edge_time): Implement as inline cache lookup.
82 (reset_node_growth_cache, reset_edge_growth_cache): New inline functions.
83 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
84 (NUM_CONDITIONS): New constant.
85 (predicate_conditions): New enum.
86 (IS_NOT_CONSTANT): New constant.
87 (edge_removal_hook_holder): New var.
88 (node_growth_cache, edge_growth_cache): New global vars.
89 (true_predicate, single_cond_predicate, false_predicate, not_inlined_predicate,
90 add_condition, add_clause, and_predicates, or_predicates, predicates_equal_p,
91 evaulate_predicate, dump_condition, dump_clause, dump_predicate, account_size_time,
92 evaulate_conditions_for_edge): New functions.
93 (inline_summary_alloc): Move to heap.
94 (inline_node_removal_hook): Clear condition and entry vectors.
95 (inline_edge_removal_hook): New function.
96 (initialize_growth_caches, free_growth_caches): New function.
97 (dump_inline_summary): Update.
98 (edge_execution_predicate): New function.
99 (will_be_nonconstant_predicate): New function.
100 (estimate_function_body_sizes): Compute BB and constantness predicates.
101 (compute_inline_parameters): Do not clear estimated_growth.
102 (estimate_edge_size_and_time): New function.
103 (estimate_calls_size_and_time): New function.
104 (estimate_callee_size_and_time): New function.
105 (remap_predicate): New function.
106 (inline_merge_summary): New function.
107 (do_estimate_edge_time): New function based on...
108 (estimate_edge_time): ... this one.
109 (do_estimate_edge_growth): New function.
110 (do_estimate_growth): New function based on....
111 (estimate_growth): ... this one.
112 (inline_analyze_function): Analyze after deciding on jump functions.
113 (inline_read_section): New function.
114 (inline_read_summary): Use it.
115 (inline_write_summary): Write all the new data.
116 * ipa-prop.c (ipa_get_param_decl_index): Export.
117 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
118 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc): Declare.
119 (ipa_get_lattice): Move hre from ipa-cp.c
120 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
121 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
122 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
123 cgraph_edge_inlinable_p): Remove.
124 * cgraphunit.c: Include ipainline.h
125 (cgraph_process_new_functions): Update call of compute_inline_parameters.
127 2011-04-22 Richard Guenther <rguenther@suse.de>
129 * tree.c (build_int_cst): Properly create canonicalized integer
131 (build_int_cst_type): Remove scary comments.
133 2011-04-22 Xinliang David Li <davidxl@google.com>
135 * toplev.c (process_options): Enable -Werror=coverage-mismatch
136 by default when -Wno-error is not specified.
137 * opts-global.c (decode_options): Remove call to
138 control_warning_options.
140 2011-04-22 Jakub Jelinek <jakub@redhat.com>
142 PR tree-optimization/48717
143 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
144 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
146 2011-04-22 Joseph Myers <joseph@codesourcery.com>
148 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
149 definition where used.
151 2011-04-22 Jakub Jelinek <jakub@redhat.com>
154 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
155 TREE_STATIC variables declared inside of some OpenMP construct.
157 2011-04-22 Martin Jambor <mjambor@suse.cz>
160 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
162 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
165 * c-typeck.c (pop_init_level): Do not warn about initializing
168 2011-04-22 Alan Modra <amodra@gmail.com>
170 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
171 when returning call_cookie.
172 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
173 pointers, to functions with no more vector args than the current
174 function, and some non-local calls for ABI_V4.
175 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
176 sibcall_nonlocal_aix64): Combine to ..
177 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
178 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
179 (sibcall_value_nonlocal_aix<mode>): ..likewise.
180 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
181 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
183 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
184 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
185 sibcall_value_symbolic_64): Delete.
187 2011-04-21 Xinliang David Li <davidxl@google.com>
189 * cgraph.h: Remove pid.
190 * cgraph.c: Remove pid.
191 * value-prof.c (init_node_map): New function.
192 (del_node_map): New function.
193 (find_func_by_funcdef_no): New function.
194 (gimple_ic_transform): Call new function.
195 * cgraphunit.c (cgraph_finalize_function): Remove pid.
196 * function.c (get_last_funcdef_no): New function.
197 * function.h (get_last_funcdef_no): New function.
198 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
200 (tree-profiling): Call node map init and delete function.
202 2011-04-21 Ian Lance Taylor <iant@google.com>
204 * godump.c (go_format_type): Use exported Go name for anonymous
207 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
209 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
210 Call builtin_function_type_list instead of builtin_function_type.
211 (UNARY, BINARY, TRINARY, QUAD): Likewise.
213 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
215 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
216 build_function_type_list instead of build_function_type.
217 Delete variable `endlink'.
219 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
221 * config/s390/s390.c (s390_init_builtins): Call
222 build_function_type_list instead of build_function_type.
224 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
226 * config/ia64/ia64.c (ia64_init_builtins): Call
227 build_function_type_list instead of builtin_function_type.
229 2011-04-21 Easwaran Raman <eraman@google.com>
231 * cfgexpand.c (stack_var): Remove OFFSET...
232 (add_stack_var): ...and its reference here...
233 (expand_stack_vars): ...and here.
234 (stack_var_cmp): Sort by descending order of size.
235 (partition_stack_vars): Change heuristic.
236 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
237 (dump_stack_var_partition): Add newline after each partition.
239 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
240 Jeff Law <law@redhat.com>
242 * gengtype-state.c (read_a_state_token): Fix argument to
244 * gengtype.c (matching_file_name_substitute): Likewise.
246 2011-04-21 Richard Guenther <rguenther@suse.de>
249 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
251 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
253 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
255 2011-04-21 Richard Guenther <rguenther@suse.de>
257 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
260 2011-04-21 Richard Guenther <rguenther@suse.de>
262 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
263 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
264 Use DECL_P, not SSA_VAR_P.
265 (ptr_derefs_may_alias_p): Likewise.
266 (ptr_deref_may_alias_ref_p_1): Likewise.
267 (decl_refs_may_alias_p): Likewise.
268 (refs_may_alias_p_1): Likewise.
269 (ref_maybe_used_by_call_p_1): Likewise.
270 (call_may_clobber_ref_p_1): Likewise.
271 (indirect_ref_may_alias_decl_p): Assume indirect refrences
272 are either MEM_REF or TARGET_MEM_REF.
273 (indirect_refs_may_alias_p): Likewise.
274 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
275 for MEM_EXPR of indirect calls.
277 2011-04-21 Tristan Gingold <gingold@adacore.com>
279 * vmsdbgout.c (write_srccorr): Compute file length from the string.
280 (dst_file_info_struct): Remove flen field.
281 (lookup_filename): Remove code that set flen field.
283 2011-04-21 Tristan Gingold <gingold@adacore.com>
285 * config/ia64/ia64.c (ia64_start_function): Add a guard.
287 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
290 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
291 vec_extract and vec_concat for non-SSE4_1 targets.
293 2011-04-21 Richard Guenther <rguenther@suse.de>
295 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
298 2011-04-21 Joseph Myers <joseph@codesourcery.com>
300 * config/i386/cygming.h (union tree_node, TREE): Don't define or
302 (FILE): Don't undefine.
304 2011-04-21 Joseph Myers <joseph@codesourcery.com>
306 * config/alpha/alpha.c (struct machine_function): Use rtx, not
308 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
310 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
311 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
312 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
314 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
315 definitions where used.
316 * config/microblaze/microblaze.h (struct microblaze_args): Use
317 rtx, not struct rtx_def *.
318 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
320 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
321 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
322 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
323 not struct rtx_def *.
324 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
326 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
328 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
330 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
332 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
333 operand_equal_p to compare DR_BASE_ADDRESSes.
334 (vect_check_interleaving): Likewise.
336 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
339 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
340 for all Neon struct constants.
342 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
344 * target.def (legitimate_constant_p): New hook.
345 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
346 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
347 * doc/tm.texi: Regenerate.
348 * hooks.h (hook_bool_mode_rtx_true): Declare.
349 * hooks.c (hook_bool_mode_rtx_true): Define.
350 * system.h (LEGITIMATE_CONSTANT_P): Poison.
351 * calls.c (precompute_register_parameters): Replace uses of
352 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
353 (emit_library_call_value_1): Likewise.
354 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
355 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
356 * ira-costs.c (scan_one_insn): Likewise.
357 * recog.c (general_operand, immediate_operand): Likewise.
358 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
359 * reload1.c (init_eliminable_invariants): Likewise.
361 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
363 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
364 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
366 (TARGET_LEGITIMATE_CONSTANT_P): Define.
367 * config/alpha/predicates.md (input_operand): Update call to
368 alpha_legitimate_constant_p.
370 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
371 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
372 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
373 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
374 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
375 (arm_legitimate_constant_p): New functions.
376 (arm_cannot_force_const_mem): Make static.
378 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
380 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
381 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
382 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
383 instead of bfin_legitimate_constant_p.
384 (bfin_legitimate_constant_p): Make static. Add a mode argument.
385 (TARGET_LEGITIMATE_CONSTANT_P): Define.
387 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
389 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
391 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
392 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
393 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
394 (frv_legitimate_constant_p): Make static. Add a mode argument.
396 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
397 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
398 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
400 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
401 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
402 * config/i386/i386.c (legitimate_constant_p): Rename to...
403 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
405 (ix86_cannot_force_const_mem): Update accordingly.
406 (ix86_legitimate_address_p): Likewise.
407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
408 * config/i386/i386.md: Update commentary.
410 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
411 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
412 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
413 (ia64_legitimate_constant_p): Make static. Add a mode argument.
415 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
417 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
418 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
419 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
420 (lm32_legitimate_constant_p): Make static. Add a mode argument.
422 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
423 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
424 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
426 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
427 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
428 (m32r_legitimate_constant_p): New function.
430 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
431 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
432 LEGITIMATE_CONSTANT_P.
433 (LEGITIMATE_CONSTANT_P): Delete.
434 * config/m68k/m68k.c (m68k_expand_prologue): Call
435 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
436 (m68k_legitimate_constant_p): New function.
437 * config/m68k/m68k.md: Update comments.
439 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
440 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
441 (mcore_legitimate_constant_p): New function.
443 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
444 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
445 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
447 (mep_legitimate_address): Update accordingly.
448 (TARGET_LEGITIMATE_CONSTANT_P): Define.
450 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
452 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
453 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
454 static. Check OP's mode for VOIDmode.
455 (microblaze_legitimate_constant_p): New function.
456 (TARGET_LEGITIMATE_CONSTANT_P): Define.
458 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
459 * config/mips/mips.c (mips_legitimate_constant_p): New function.
460 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
461 (TARGET_LEGITIMATE_CONSTANT_P): Define.
462 * config/mips/predicates.md: Update comments.
464 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
465 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
466 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
467 (mmix_legitimate_constant_p): Make static, return a bool, and take
469 (mmix_print_operand_address): Update accordingly.
471 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
473 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
474 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
475 static. Add a mode argument.
476 (TARGET_LEGITIMATE_CONSTANT_P): Define.
478 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
480 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
481 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
482 (pa_legitimate_constant_p): New function.
484 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
486 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
487 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
488 (pdp11_legitimate_constant_p): New function.
490 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
491 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
492 (rs6000_legitimate_constant_p): New function.
494 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
495 (rx_legitimate_constant_p): ...this.
496 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
497 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
498 (rx_legitimate_constant_p): ...this.
499 (TARGET_LEGITIMATE_CONSTANT_P): Define.
500 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
502 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
503 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
504 * config/s390/s390.c (legitimate_constant_p): Rename to...
505 (s390_legitimate_constant_p): ...this. Make static, return a bool,
506 and add a mode argument.
507 (TARGET_LEGITIMATE_CONSTANT_P): Define.
509 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
511 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
512 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
513 (sh_legitimate_constant_p): New function.
515 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
516 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
517 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
518 (legitimate_constant_p): Rename to...
519 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
521 (constant_address_p): Update accordingly.
523 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
524 argument and return a bool.
525 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
526 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
527 (spu_legitimate_constant_p): Add a mode argument and return a bool.
528 (spu_rtx_costs): Update accordingly.
529 * config/spu/predicates.md (vec_imm_operand): Likewise.
531 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
533 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
534 * config/v850/v850.c (v850_legitimate_constant_p): New function.
535 (TARGET_LEGITIMATE_CONSTANT_P): Define.
537 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
538 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
539 * config/vax/vax.c (legitimate_constant_p): Likewise.
541 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
542 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
543 (xtensa_legitimate_constant_p): New function.
545 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
547 * target.def (cannot_force_const_mem): Add a mode argument.
548 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
549 * doc/tm.texi: Regenerate.
550 * hooks.h (hook_bool_mode_rtx_false): Declare.
551 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
552 (hook_bool_mode_const_rtx_true): Likewise.
553 (hook_bool_mode_rtx_false): New function.
554 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
555 to be non-VOID. Update call to cannot_force_const_mem.
556 (find_reloads): Update accordingly.
557 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
558 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
560 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
561 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
562 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
563 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
564 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
565 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
566 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
567 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
568 (m68k_cannot_force_const_mem): ...this new function.
569 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
571 (mips_const_insns, mips_legitimize_const_move): Update calls.
572 (mips_secondary_reload_class): Likewise.
573 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
574 (pa_cannot_force_const_mem): ...this new function.
575 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
576 (rs6000_cannot_force_const_mem): ...this new function.
577 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
579 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
580 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
582 (xtensa_cannot_force_const_mem): ...this new function.
584 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
586 * config/mips/mips.c (mips16_build_function_stub): Call
587 build_function_type_list instead of build_function_type.
588 (mips16_build_call_stub): Likewise.
590 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
592 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
593 instead of build_function_type.
595 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
597 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
598 instead of build_function_type.
600 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
603 * config/i386/i386.md (insv): Change operand 0 constraint to
604 "register_operand". Change operand 1 and 2 constraint to
605 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
606 * config/i386/sse.md (sse4_1_pinsrb): Export.
607 (sse2_pinsrw): Ditto.
608 (sse4_1_pinsrd): Ditto.
609 (sse4_1_pinsrq): Ditto.
610 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
611 * config/i386/i386.c (ix86_expand_pinsr): New.
613 2011-04-20 Easwaran Raman <eraman@google.com>
615 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
616 containing union type only with -fstrict-aliasing.
618 2011-04-20 Jim Meyering <meyering@redhat.com>
620 Remove useless if-before-free tests.
621 * calls.c (expand_call, save_area): Likewise.
622 * cfgcleanup.c (try_forward_edges): Likewise.
623 * collect2.c (collect_execute): Likewise.
624 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
625 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
626 * coverage.c (coverage_checksum_string): Likewise.
627 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
628 * cselib.c (cselib_init): Likewise.
629 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
630 (df_set_clean_cfg): Likewise.
631 * function.c (free_after_compilation): Likewise.
632 * gcc.c (do_spec_1, main): Likewise.
633 * gcov.c (create_file_names): Likewise.
634 * gensupport.c (identify_predicable_attribute): Likewise.
635 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
636 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
637 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
638 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
639 * ipa-pure-const.c (local_pure_const): Likewise.
640 * ipa-reference.c (propagate): Likewise.
641 * ira-costs.c (free_ira_costs): Likewise.
642 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
643 * matrix-reorg.c (mat_free): Likewise.
644 * prefix.c (get_key_value): Likewise.
645 * profile.c (compute_value_histograms): Likewise.
646 * reload1.c (free_reg_equiv): Likewise.
647 * sched-deps.c (free_deps): Likewise.
648 * sel-sched-ir.c (fence_clear): Likewise.
649 * sese.c (set_rename, if_region_set_false_region): Likewise.
650 * tree-data-ref.c (free_rdg): Likewise.
651 * tree-eh.c (lower_try_finally): Likewise.
652 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
653 * tree-ssa-live.c (delete_var_map): Likewise.
654 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
655 * tree-ssa-pre.c (phi_trans_add): Likewise.
657 2011-04-20 Jakub Jelinek <jakub@redhat.com>
659 PR tree-optimization/48611
660 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
661 beyond ERT_MUST_NOT_THROW region.
663 2011-04-20 Catherine Moore <clm@codesourcery.com>
665 * config/mips/mips.opt (mfix-24k): New.
666 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
667 * config/mips/mips.md (length): Increase by 4 for stores if
669 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
670 all noreorder if fixing 24K errata.
671 * doc/invoke.texi: Document mfix-24k.
673 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
675 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
676 quad-word modes, reduce to 9-bit index range when above 1016 limit.
678 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
680 * config/arm/arm.c (arm_gen_constant): Move movw support ....
681 (const_ok_for_op): ... to here.
683 2011-04-20 Kai Tietz <ktietz@redhat.com>
685 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
686 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
688 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
690 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
692 2011-04-20 Richard Guenther <rguenther@suse.de>
694 PR tree-optimization/47892
695 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
698 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
700 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
702 2011-04-20 Tristan Gingold <gingold@adacore.com>
704 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
706 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
710 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
711 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
712 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
713 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
714 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
716 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
719 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
720 (avr_asm_named_section, avr_asm_output_aligned_common,
721 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
722 New functions to update...
723 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
724 (avr_asm_init_sections): Overwrite section callbacks for
725 data_section, bss_section.
726 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
728 (avr_file_end): ...here.
730 2011-04-20 Richard Guenther <rguenther@suse.de>
733 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
734 objects and types here. Adjust for their offset before comparing.
736 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
738 * tree-vect-stmts.c (vectorizable_store): Only chain one related
741 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
743 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
744 (GIMPLE_H): Include $(INTERNAL_FN_H).
745 (OBJS-common): Add internal-fn.o.
746 (internal-fn.o): New rule.
747 * internal-fn.def: New file.
748 * internal-fn.h: Likewise.
749 * internal-fn.c: Likewise.
750 * gimple.h: Include internal-fn.h.
751 (GF_CALL_INTERNAL): New gf_mask.
752 (gimple_statement_call): Put fntype into a union with a new
754 (gimple_build_call_internal): Declare.
755 (gimple_build_call_internal_vec): Likewise.
756 (gimple_call_same_target_p): Likewise.
757 (gimple_call_internal_p): New function.
758 (gimple_call_internal_fn): Likewise.
759 (gimple_call_fntype): Return null for internal calls.
760 (gimple_call_set_fntype): Assert that the function is not internal.
761 (gimple_call_set_fn): Likewise.
762 (gimple_call_set_fndecl): Likewise.
763 (gimple_call_set_internal_fn): New function.
764 (gimple_call_addr_fndecl): Handle null functions.
765 (gimple_call_return_type): Likewise null types.
766 * gimple.c (gimple_build_call_internal_1): New function.
767 (gimple_build_call_internal): Likewise.
768 (gimple_build_call_internal_vec): Likewise.
769 (gimple_call_same_target_p): Likewise.
770 (gimple_call_flags): Handle calls to internal functions.
771 (gimple_call_fnspec): New function.
772 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
773 (gimple_has_side_effects): Handle null functions.
774 (gimple_rhs_has_side_effects): Likewise.
775 (gimple_call_copy_skip_args): Handle calls to internal functions.
776 * cfgexpand.c (expand_call_stmt): Likewise.
777 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
778 * gimple-fold.c (gimple_fold_call): Handle null functions.
779 (gimple_fold_stmt_to_constant_1): Don't fold
780 calls to internal functions.
781 * gimple-low.c (gimple_check_call_args): Handle calls to internal
783 * gimple-pretty-print.c (dump_gimple_call): Likewise.
784 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
785 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
786 (do_warn_unused_result): Likewise.
787 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
788 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
789 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
790 the target of a call.
791 (initialize_hash_element): Update accordingly.
792 (hashable_expr_equal_p): Use gimple_call_same_target_p.
793 (iterative_hash_hashable_expr): Handle calls to internal functions.
794 (print_expr_hash_elt): Likewise.
795 * tree-ssa-pre.c (can_value_number_call): Likewise.
796 (eliminate): Handle null functions.
797 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
798 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
799 (find_func_aliases): Likewise.
800 * value-prof.c (gimple_ic_transform): Likewise.
801 (gimple_indirect_call_to_profile): Likewise.
802 * lto-streamer-in.c (input_gimple_stmt): Likewise.
803 * lto-streamer-out.c (output_gimple_stmt): Likewise.
805 2011-04-19 Jan Hubicka <jh@suse.cz>
807 * ipa-inline-transform.c (save_inline_function_body): Add comments.
808 * ipa-inline.c (inline_small_functions): Compute summaries first,
811 2011-04-19 Jan Hubicka <jh@suse.cz>
813 * cgraph.h (save_inline_function_body): Remove.
814 * ipa-inline-transform.c: New file, broke out of...
815 * ipa-inline.c: ... this one; Update toplevel comment.
816 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
818 (update_noncloned_frequencies): Move to ipa-inline-transform.c
819 (cgraph_mark_inline_edge): Rename to inline_call; move to
820 ipa-inline-transform.c.
821 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
822 move to ipa-inline-transform.c
823 (recursive_inlining, inline_small_functions, flatten_function,
824 ipa_inline, inline_always_inline_functions,
825 early_inline_small_functions): Update.
826 (inline_transform): Move to ipa-inline-transform.c.
827 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
829 * Makefile.in (ipa-inline-transform.o): New file.
830 * cgraphunit.c (save_inline_function_body): Move to
831 ipa-inline-transform.c
833 2011-04-19 DJ Delorie <dj@redhat.com>
835 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
836 registers if we already know there aren't any.
837 (m32c_emit_epilogue): Don't emit a barrier here.
838 (m32c_emit_eh_epilogue): Likewise.
839 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
840 operands at expand time.
841 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
843 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
844 duplicates. Provide aliases instead.
845 * config/m32c/prologue.md (eh_return): Emit a barrier here.
846 (eh_epilogue): Add a "(return)" here as a hint to other parts of
849 2011-04-19 Anatoly Sokolov <aesok@post.ru>
851 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
852 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
853 (general_or_i64_p, sparc_register_move_cost): New function.
855 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
857 * doc/install.texi (Configuration, --enable-threads): Remove mach.
858 Add lynx, mipssde. Sort table.
860 2011-04-19 Xinliang David Li <davidxl@google.com>
862 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
865 2011-04-19 Jakub Jelinek <jakub@redhat.com>
868 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
869 is a SUBREG with non-MODE_INT mode inside of it.
871 2011-04-19 Martin Jambor <mjambor@suse.cz>
873 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
874 also according to actual contants.
875 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
876 (gimple_fold_call): Use it.
877 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
879 2011-04-19 Martin Jambor <mjambor@suse.cz>
881 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
882 non-pointer assignments.
884 2011-04-19 Martin Jambor <mjambor@suse.cz>
886 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
887 account anc_offset and otr_type from the indirect edge info.
888 * ipa-prop.c (get_ancestor_addr_info): New function.
889 (compute_complex_ancestor_jump_func): Assignment analysis moved to
890 get_ancestor_addr_info, call it.
891 (ipa_note_param_call): Do not initialize information about polymorphic
892 calls, return the indirect call graph edge. Remove the last
893 parameter, adjust all callers.
894 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
895 parameters. Initialize polymorphic information in the indirect edge.
897 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
900 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
901 the types if they have different enumeration identifiers.
903 2011-04-19 Jan Hubicka <jh@suse.cz>
905 * cgraph.h (cgraph_optimize_for_size_p): Declare.
906 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
907 * predict.c (cgraph_optimize_for_size_p): Break out from ...
908 (optimize_function_for_size_p) ... here.
910 2011-04-19 Richard Guenther <rguenther@suse.de>
913 * tree.c (free_lang_data): Do not reset the decl-assembler-name
916 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
918 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
919 if DECL_NO_INLINE_WARNING_P is set on the function.
921 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
924 * reload1.c (inc_for_reload): Return void. All callers changed.
925 (emit_input_reload_insns): Don't try to delete previous output
926 reloads to a register, or record spill_reg_store for autoincs.
928 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
930 * gengtype.h: Updated copyright year.
931 (struct input_file_st): Add inpisplugin field.
932 (type_fileloc): New function.
934 (write_typed_struct_alloc_def): Add gcc_assert.
935 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
936 (write_typed_alloc_defns): Don't output for plugin files.
937 (input_file_by_name): Clear inpisplugin field.
938 (main): Set inpisplugin field for plugin files.
940 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
942 * gengtype-state.c (string_eq): New.
943 (read_state): Use string_eq instead of strcmp when creating the
946 2011-04-19 Wei Guozhi <carrot@google.com>
949 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
950 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
952 * config/arm/constraints.md (Uu): New constraint.
953 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
955 2011-04-19 Tristan Gingold <gingold@adacore.com>
957 * config.gcc (-*-*-*vms): Added.
958 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
960 * config/vms/vms-ld.c: New file.
961 * config/vms/vms-ar.c: New file.
962 * config/vms/t-vmsnative: New file.
964 2011-04-18 Xinliang David Li <davidxl@google.com>
966 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
968 2011-04-18 Jakub Jelinek <jakub@redhat.com>
971 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
972 if TREE_TYPE (v) is non-NULL.
974 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
975 gimple_get_virt_mehtod_for_binfo.
976 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
977 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
979 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
981 2011-04-18 Michael Matz <matz@suse.de>
982 Steve Ellcey <sje@cup.hp.com>
984 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
985 use its mode as source mode if it isn't VOIDmode.
987 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
989 * doc/passes.texi: Fill crossref nodes.
991 2011-04-18 Jim Meyering <meyering@redhat.com>
993 Fix doubled-word typos in comments and strings
994 * config/alpha/vms-unwind.h: s/for for/for/
995 * config/arm/unwind-arm.h: Likewise.
996 * config/microblaze/microblaze.c: Likewise.
997 * config/sh/constraints.md: s/in in/in/
998 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1000 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
1002 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1003 (AVX_FLOAT_MODE_P): Ditto.
1004 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1005 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1006 (AVX_VEC_FLOAT_MODE_P): Ditto.
1007 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1008 (UNSPEC_MASKSTORE): Ditto.
1009 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1010 Merge from <sse>_movmsk<ssemodesuffix> and
1011 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1012 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1014 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1015 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1016 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1018 2011-04-18 Jan Hubicka <jh@suse.cz>
1020 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1022 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1023 (want_inline_function_called_once_p): Break out the logic from
1025 (edge_badness): Ensure that profile is not misupdated.
1026 (lookup_recursive_calls): Prioritize by call frequencies.
1027 (inline_small_functions): Move program size estimates here;
1028 actually process whole queue even when unit growth has been
1029 met. (to properly compute inline_failed reasons and for the
1030 case unit size decrease.) Revisit comments on recursive inlining.
1031 (ipa_inline): Remove unit summary code; first inline hot calls
1032 of functions called once, cold calls next.
1033 (order, nnodes): Remove unused variables.
1034 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1035 (GTFILES): Remove ipa-inline.c
1036 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1038 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1040 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1042 2011-04-18 Jie Zhang <jie@codesourcery.com>
1043 Richard Earnshaw <rearnsha@arm.com>
1045 * arm.c (neon_builtin_type_bits): Remove.
1046 (typedef enum neon_builtin_mode): New.
1047 (T_MAX): Don't define.
1048 (typedef enum neon_builtin_datum): Remove bits, codes[],
1049 num_vars and base_fcode. Add mode, code and fcode.
1050 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1051 VAR10): Change accordingly.
1052 (neon_builtin_data[]): Change accordingly
1053 (arm_init_neon_builtins): Change accordingly.
1054 (neon_builtin_compare): Remove.
1055 (locate_neon_builtin_icode): Remove.
1056 (arm_expand_neon_builtin): Change accordingly.
1058 * arm.h (enum arm_builtins): Move to ...
1059 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1061 * arm.c (arm_builtin_decl): Declare.
1062 (TARGET_BUILTIN_DECL): Define.
1063 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1064 (arm_builtin_decls[]): New.
1065 (arm_init_neon_builtins): Store builtin declarations in
1066 arm_builtin_decls[].
1067 (arm_init_tls_builtins): Likewise.
1068 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1069 (arm_builtin_decl): New.
1071 2011-04-18 Richard Guenther <rguenther@suse.de>
1073 * tree.c (upper_bound_in_type): Build properly canonicalized
1075 (lower_bound_in_type): Likewise.
1077 2011-04-18 Richard Guenther <rguenther@suse.de>
1079 * gimple.h (gimple_call_addr_fndecl): New function.
1080 (gimple_call_fndecl): Use it.
1081 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1083 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1084 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1086 2011-04-18 Richard Guenther <rguenther@suse.de>
1089 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1091 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1094 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1095 DECL_IN_CONSTANT_POOL without RTL.
1097 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1098 Ira Rosen <ira.rosen@linaro.org>
1101 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1102 to match neon_vzip/vuzp/vtrn_internal.
1103 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1104 outputs explicitly dependent on both inputs.
1105 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1107 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1109 PR tree-optimization/48616
1110 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1111 whether the shift is by scalar or vector based on whether all SLP
1112 scalar stmts have the same rhs.
1114 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1116 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1119 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1121 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1124 2011-04-17 Jan Hubicka <jh@suse.cz>
1126 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1127 * cgrpahunit.c (cgraph_finalize_function): Do not set
1128 finalized_by_frontend.
1129 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1130 finalized_by_frontend.
1132 2011-04-17 Jan Hubicka <jh@suse.cz>
1134 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1135 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1136 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1137 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1139 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1141 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1143 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1146 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1147 is non-null before accessing it.
1148 (input_cgraph): Remove trailing spaces.
1150 2011-04-17 Revital Eres <revital.eres@linaro.org>
1152 * params.def (sms-min-sc): New param flag.
1153 * modulo-sched.c (sms_schedule): Use it.
1154 * doc/invoke.texi (sms-min-sc): Document it.
1156 2011-04-17 Jan Hubicka <jh@suse.cz>
1158 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1159 present, also set gimple_call_set_cannot_inline.
1160 * ipa-inline.c: Update toplevel comment.
1162 (cgraph_clone_inlined_nodes): Fix linebreaks.
1163 (cgraph_check_inline_limits): Restructure to ...
1164 (caller_growth_limits): ... this one; be more tolerant
1165 on growth in nested inline chains; add explanatory comment;
1166 fix stack accounting thinko introduced by previous patch.
1167 (cgraph_default_inline_p): Remove.
1168 (report_inline_failed_reason): New function.
1169 (can_inline_edge_p): New function.
1170 (can_early_inline_edge_p): New function.
1171 (leaf_node_p): Move upwards in file.
1172 (want_early_inline_function_p): New function.
1173 (want_inline_small_function_p): New function.
1174 (want_inline_self_recursive_call_p): New function.
1175 (cgraph_edge_badness): Rename to ...
1176 (edge_badness) ... this one; fix linebreaks.
1177 (update_edge_key): Update call of edge_baddness; add
1178 detailed dump about queue updates.
1179 (update_caller_keys): Use can_inline_edge_p and
1180 want_inline_small_function_p.
1181 (cgraph_decide_recursive_inlining): Rename to...
1182 (recursive_inlining): Use can_inline_edge_p and
1183 want_inline_self_recursive_call_p; simplify and remove no longer
1185 (cgraph_set_inline_failed): Remove.
1186 (add_new_edges_to_heap): Use can_inline_edge_p and
1187 want_inline_small_function_p.
1188 (cgraph_decide_inlining_of_small_functions): Rename to ...
1189 (inline_small_functions): ... this one; cleanup; use
1190 can/want predicates; cleanup debug ouput; work edges till fibheap
1191 is exhausted and do not stop once unit growth is reached; remove
1192 later loop processing remaining edges.
1193 (cgraph_flatten): Rename to ...
1194 (flatten_function): ... this one; use can_inline_edge_p
1195 and can_early_inline_edge_p predicates.
1196 (cgraph_decide_inlining): Rename to ...
1197 (ipa_inline): ... this one; remove unreachable nodes before
1198 inlining functions called once; simplify the pass.
1199 (cgraph_perform_always_inlining): Rename to ...
1200 (inline_always_inline_functions): ... this one; use
1201 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1202 (cgraph_decide_inlining_incrementally): Rename to ...
1203 (early_inline_small_functions): ... this one; simplify
1204 using new predicates; cleanup; make dumps prettier.
1205 (cgraph_early_inlining): Rename to ...
1206 (early_inliner): newer inline regular functions into always-inlines;
1207 fix updating of call stmt summaries.
1208 (pass_early_inline): Update for new names.
1209 (inline_transform): Fix formating.
1210 (gate_cgraph_decide_inlining): Rename to ...
1211 (pass_ipa_inline): ... this one.
1212 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1213 * ipa-inline-analysis.c (dump_inline_summary): Update.
1214 (compute_inline_parameters): Do not compute disregard_inline_limits;
1215 look for mismatching arguments.
1216 (estimate_growth): Fix handlig of non-trivial self recursion.
1217 (inline_read_summary): Do not read info->disregard_inline_limits.
1218 (inline_write_summary): Do not write info->disregard_inline_limits.
1219 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1220 and move all checks into can_inline_edge_p predicate; re-enable code
1221 comparing optimization levels.
1222 (expand_call_inline): Do not test inline_forbidden_into_p.
1223 * Makefile.in (ipa-inline.o): Update arguments.
1225 2011-04-17 Revital Eres <revital.eres@linaro.org>
1227 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1229 2011-04-17 Revital Eres <revital.eres@linaro.org>
1231 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1233 2011-04-17 Michael Matz <matz@suse.de>
1235 PR tree-optimization/48622
1237 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1238 in same order as they're written.
1240 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1242 * config/pa/predicates.md: Reorganize and simplify predicates.
1243 Eliminate duplicate code checks.
1244 (arith_operand): Rename to arith14_operand
1245 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1246 * config/pa/pa.md: Use renamed operands.
1247 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1248 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1249 arith11_operand, adddi3_operand, indexed_memory_operand,
1250 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1251 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1252 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1253 move_dest_operand, move_src_operand, prefetch_cc_operand,
1254 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1255 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1256 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1257 div_operand, int5_operand, movb_comparison_operator,
1258 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1259 arith_double_operand, ireg_operand, lhs_lshift_operand,
1260 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1261 integer_store_memory_operand): Likewise.
1262 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1263 (integer_store_memory_operand, read_only_operand,
1264 function_label_operand, borx_reg_operand,
1265 non_hard_reg_operand): Likewise.
1266 (eq_neq_comparison_operator): Delete unused operator.
1267 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1268 function_label_operand.
1269 (emit_move_sequence): Likewise.
1271 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1273 * config/i386/sse.md (sseunpackmode): New mode attribute.
1274 (ssepackmode): Ditto.
1275 (vec_pack_trunc_<mode>): Macroize expander from
1276 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1277 (vec_unpacks_lo_<mode>): Macroize expander from
1278 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1279 (vec_unpacks_hi_<mode>): Macroize expander from
1280 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1281 (vec_unpacku_lo_<mode>): Macroize expander from
1282 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1283 (vec_unpacku_hi_<mode>): Macroize expander from
1284 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1285 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1286 ix86_expand_sse4_unpack.
1287 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1289 2011-04-16 Jan Hubicka <jh@suse.cz>
1291 * cgraphbuild.c: Include ipa-inline.h.
1292 (reset_inline_failed): Use initialize_inline_failed.
1293 * cgraph.c: Include ipa-inline.h.
1294 (cgraph_create_node_1): Do not initialize estimated_growth.
1295 (initialize_inline_failed): More to ipa-inline-analysis.c
1296 (dump_cgraph_node): Do not dump inline flags.
1297 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1298 and disregard_inline_limits flags.
1299 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1300 time, size, estimated_growth.
1301 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1303 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1304 DECL_DISREGARD_INLINE_LIMITS.
1305 (cgraph_analyze_function): Do not initialize
1306 node->local.disregard_inline_limits.
1307 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1308 inlinable, versionable and disregard_inline_limits.
1309 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1310 cgraph_check_inline_limits, cgraph_default_inline_p,
1311 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1312 add_new_edges_to_heap): Update.
1313 (cgraph_decide_inlining_of_small_function): Update; set
1314 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1315 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1316 cgraph_decide_inlining_incrementally): Update.
1317 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1318 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1319 time, size and estimated_growth parameters.
1320 (estimate_edge_growth): Update.
1321 (initialize_inline_failed): Declare.
1322 * ipa-split.c: Include ipa-inline.h
1323 (execute_split_functions): Update.
1324 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1325 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1326 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1327 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1328 estimated_growth to INT_MIN.
1329 (inline_node_duplication_hook): Likewise.
1330 (dump_inline_summary): Dump new fields.
1331 (compute_inline_parameters): Update.
1332 (estimate_edge_time, estimate_time_after_inlining,
1333 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1334 inline_write_summary):
1335 (initialize_inline_failed): Move here from cgraph.c.
1336 * tree-sra.c: Include ipa-inline.h.
1337 (ipa_sra_preliminary_function_checks): Update.
1338 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1341 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
1343 * config/i386/sse.md (V16): New mode iterator.
1345 (AVXMODEQI, AVXMODEDI): Remove.
1346 (sse2, sse3): New mode attribute.
1347 (mov<mode>): Use V16 mode iterator.
1348 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1349 (push<mode>1): Use V16 mode iterator.
1350 (movmisalign<mode>): Ditto.
1351 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1352 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1353 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1354 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1355 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1356 avx_movdqu<avxmodesuffix>.
1357 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1358 *avx_movdqu<avxmodesuffix>.
1359 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1360 avx_lddqu<avxmodesuffix>.
1361 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1362 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1363 avx_movnt<AVXMODEDI:mode>.
1364 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1365 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1367 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1370 * haifa-sched.c (prune_ready_list, schedule_block): Use
1371 sched_pressure_p rather than flag_sched_pressure.
1373 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1375 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1376 cgraph_get_node instead of cgraph_get_create_node.
1378 2011-04-15 Jakub Jelinek <jakub@redhat.com>
1380 * cfgexpand.c (expand_debug_expr): Use
1381 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1383 2011-04-15 Michael Matz <matz@suse.de>
1385 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1386 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1387 * function.c (gimplify_parameters): Ditto.
1388 * gimplify.c (gimplify_vla_decl): Ditto.
1390 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1391 (gimple_call_set_alloca_for_var): New inline function.
1392 (gimple_call_alloca_for_var_p): Ditto.
1393 * gimple.c (gimple_build_call_from_tree): Remember
1394 CALL_ALLOCA_FOR_VAR_P state.
1395 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1397 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1398 calls if they were for VLA objects.
1400 2011-04-15 Martin Jambor <mjambor@suse.cz>
1402 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1405 2011-04-15 Martin Jambor <mjambor@suse.cz>
1408 * tree-emutls.c (lower_emutls_function_body): Call
1409 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1412 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1414 * c-decl.c (detect_field_duplicates): Call
1415 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1417 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1419 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1420 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1421 * ipa-pure-const.c (check_stmt): Call it.
1422 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1424 2011-04-15 Richard Guenther <rguenther@suse.de>
1426 PR tree-optimization/48290
1427 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1428 Properly decide inhibiting propagation based on the valueized
1429 operand. Do loop-closed SSA form preserving here ...
1430 (init_copy_prop): ... not here.
1432 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1435 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1436 (*ieee_smax<mode>3): Likewise.
1438 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1440 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1441 Replace match_operand with match_dup for the third operand in
1444 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1446 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1447 to track processing of conditionals. Update all callers.
1448 (try_combine, simplify_if_then_else): Update.
1450 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1452 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1455 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
1457 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1458 instead of match_operand for operand 3.
1460 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1462 * recog.h (insn_operand_data): Add an "allows_mem" field.
1463 * genoutput.c (output_operand_data): Initialize it.
1464 * optabs.c (maybe_legitimize_operand_same_code): New function.
1465 (maybe_legitimize_operand): Use it when matching the original
1468 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1470 * gimplify.c: Fix issues in comments throughout.
1471 (voidify_wrapper_expr): Fix long line.
1472 (build_stack_save_restore): Likewise.
1473 (gimplify_loop_expr): Likewise.
1474 (gimplify_compound_lval): Likewise.
1475 (gimplify_init_ctor_eval): Likewise.
1476 (gimplify_modify_expr_rhs): Likewise.
1477 (omp_notice_threadprivate_variable): Likewise.
1479 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1481 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1482 original one if this is not a builtin function.
1484 2011-04-14 Jakub Jelinek <jakub@redhat.com>
1487 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1488 offset it as needed based on top 2 bits in operands[3], change
1489 MEM mode to SFmode and mask those 2 bits away from operands[3].
1491 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1493 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1494 change from objc_declare_protocols() to objc_declare_protocol().
1496 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
1498 * config/i386/sse.md (sse4_1): New mode attribute.
1499 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1500 avx_blend<ssemodesuffix><avxmodesuffix> and
1501 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1502 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1503 avx_blendv<ssemodesuffix><avxmodesuffix> and
1504 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1505 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1506 avx_dp<ssemodesuffix><avxmodesuffix> and
1507 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1508 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1509 (sse4_1_packusdw): Merge with *avx_packusdw.
1510 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1511 (sse4_1_pblendw): Merge with *avx_pblendw.
1512 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1513 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1514 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1516 (sse4_1_round<ssescalarmodesuffix>): Merge with
1517 *avx_round<ssescalarmodesuffix>.
1518 (aesenc): Merge with *avx_aesenc.
1519 (aesenclast): Merge with *avx_aesenclast.
1520 (aesdec): Merge with *avx_aesdec.
1521 (aesdeclast): Merge with *avx_aesdeclast.
1522 (pclmulqdq): Merge with *pclmulqdq.
1523 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1525 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1527 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1530 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1531 (align_local_variable): This. Update DECL_ALIGN.
1532 (add_stack_var): Updated.
1533 (expand_one_stack_var): Likewise.
1535 2011-04-14 Richard Guenther <rguenther@suse.de>
1537 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1539 (dse_initialize_block_local_data, dse_leave_block,
1540 record_voperand_set, get_stmt_uid): Likewise.
1541 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1542 (dse_optimize_stmt): Remove voperand set handling code.
1543 Simplify and improve to handle any kind of killing stmt.
1544 (dse_record_phi): Remove.
1545 (dse_enter_block): Simplify.
1546 (tree_ssa_dse): Likewise.
1547 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1549 2011-04-14 Jan Hubicka <jh@suse.cz>
1551 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1552 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1553 (cgraph_local_info): Remove inline_summary.
1554 * ipa-cp.c: Include ipa-inline.h.
1555 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1556 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1558 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1559 (input_overwrite_node): Do not set inline summary.
1560 (input_node): Do not stream inline summary.
1561 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1562 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1563 growth; we do not have inline parameters computed for that anyway.
1564 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1565 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1566 (inline_summary_t): New type and VECtor.
1567 (debug_inline_summary, dump_inline_summaries): Declare.
1568 (inline_summary): Use VOCtor.
1569 (estimate_edge_growth): Kill hack computing call stmt size directly.
1570 * lto-section-in.c (lto_section_name): Add inline section.
1571 * ipa-inline-analysis.c: Include lto-streamer.h
1572 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1573 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1574 (inline_summary_vec): Define.
1575 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1576 dump_inline_summaries): New functions.
1577 (estimate_function_body_sizes): Properly compute size/time of outgoing
1579 (compute_inline_parameters): Alloc inline_summary; do not compute
1580 size/time of incomming calls.
1581 (estimate_edge_time): Avoid missing time summary hack.
1582 (inline_read_summary): Read inline summary info.
1583 (inline_write_summary): Write inline summary info.
1584 (inline_free_summary): Free all hooks and inline summary vector.
1585 * lto-streamer.h: Add LTO_section_inline_summary section.
1586 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1587 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1589 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1591 * tree-vectorizer.h (vect_strided_store_supported): Add a
1592 HOST_WIDE_INT argument.
1593 (vect_strided_load_supported): Likewise.
1594 (vect_permute_store_chain): Return void.
1595 (vect_transform_strided_load): Likewise.
1596 (vect_permute_load_chain): Delete.
1597 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1598 count argument. Check that the count is a power of two.
1599 (vect_strided_load_supported): Likewise.
1600 (vect_permute_store_chain): Return void. Update after above changes.
1601 Assert that the access is supported.
1602 (vect_permute_load_chain): Likewise.
1603 (vect_transform_strided_load): Return void.
1604 * tree-vect-stmts.c (vectorizable_store): Update calls after
1605 above interface changes.
1606 (vectorizable_load): Likewise.
1607 (vect_analyze_stmt): Don't check for strided powers of two here.
1609 2011-04-14 Richard Guenther <rguenther@suse.de>
1611 PR tree-optimization/48590
1612 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1613 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1614 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1615 BUILT_IN_STACK_SAVE.
1616 * tree-ssa-dce.c (propagate_necessity): Handle
1617 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1619 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1621 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1624 2011-04-14 Richard Guenther <rguenther@suse.de>
1626 * tree.h (get_object_alignment_1): Declare.
1627 * builtins.c (get_object_alignment_1): Split out worker from ...
1628 (get_object_alignment): ... here.
1629 * fold-const.c (get_pointer_modulus_and_residue): Use
1630 get_object_alignment_1.
1632 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1634 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1636 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1637 parameter. Generalise code to handle arrays as well as vectors.
1638 (vect_setup_realignment): Update accordingly.
1639 * tree-vect-stmts.c (vectorizable_store): Likewise.
1640 (vectorizable_load): Likewise.
1642 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1644 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1645 within the per-copy loop.
1647 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1649 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1652 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1654 * doc/options.texi (Negative): Explicitly mention that the
1655 Negative chain must be circular.
1657 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1659 * function.h (block_chainon): Declare.
1660 * function.c (block_chainon): Define.
1662 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1663 Eric Weddington <eric.weddington@atmel.com>
1664 Georg-Johann Lay <avr@gjlay.de>
1666 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1668 (avr_init_builtins, avr_expand_builtin,
1669 avr_expand_delay_cycles, avr_expand_unop_builtin,
1670 avr_expand_binop_builtin ): New functions.
1671 (avr_builtin_id): New enum
1672 (struct avr_builtin_description): New struct
1673 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1674 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1676 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1677 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1678 UNSPECV_DELAY_CYCLES): new enumeration values
1679 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1680 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1681 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1682 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1683 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1684 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1685 "fmulsu"): New insns
1687 * config/avr/avr-c.c: fix line endings
1688 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1689 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1690 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1691 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1692 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1694 * doc/extend.texi (AVR Built-in Functions): New node
1695 (Target Builtins): Add documentation of AVR
1698 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1701 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1702 alone. Error if non-const data has attribute progmem.
1704 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1706 * tree.h (struct tree_constructor): Include tree_typed instead of
1708 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1709 TS_TYPED instead of TS_COMMON.
1711 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1713 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1714 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1715 (sse2_psadbw): Merge with *avx_psadbw.
1716 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1717 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1718 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1719 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1720 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1721 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1722 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1723 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1724 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1725 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1726 (ssse3_palignrti): Merge with *avx_palignrti.
1728 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1730 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1731 * tree-ssanames.c (fini_ssanames): VEC_free it.
1732 (make_ssa_name_fn): Update for VECness of free_ssanames.
1733 (release_ssa_name, release_dead_ssa_names): Likewise.
1734 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1736 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1737 TS_TYPED instead of TS_COMMON.
1739 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1741 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1742 statistics_counter_event.
1743 * tree-ssa-copyrename.c (stats): Define.
1744 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1745 statistics_counter_event.
1746 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1747 (bswap_stats, widen_mul_stats): Define.
1748 (insert_reciprocals): Increment rdivs_inserted.
1749 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1750 rfuncs_inserted. Add calls to statistics_counter_event.
1751 (execute_cse_sincos_1): Increment inserted.
1752 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1753 statistics_counter_event.
1754 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1755 of bswap_stats. Add calls to statistics_counter_event.
1756 (convert_mult_to_widen): Increment widen_mults_inserted.
1757 (convert_plusminus_to_widen): Increment maccs_inserted.
1758 (convert_mult_to_fma): Increment fmas_inserted.
1759 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1760 calls to statistics_counter_event.
1762 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1764 PR rtl-optimization/48455
1765 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1766 `temp_costs->mem_cost'.
1768 2011-04-13 Jan Hubicka <jh@suse.cz>
1770 * ipa-inline.h: New file.
1771 * ipa-inline-analysis.c: New file. Broken out of ...
1772 * ipa-inline.c: ... this file; update toplevel comment;
1773 include ipa-inline.h
1774 (inline_summary): Move to ipa-inline.h
1775 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1776 ipa-inline-analysis.c.
1777 (cgraph_estimate_time_after_inlining): Rename to
1778 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1779 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1780 to estimate_edge_growth.
1781 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1782 rename to estimate_size_after_inlining.
1783 (cgraph_mark_inline_edge): Update for new naming convention.
1784 (cgraph_check_inline_limits): Likewise.
1785 (cgraph_edge_badness): Likewise.
1786 (cgraph_decide_recursive_inlining): Likewise.
1787 (cgraph_decide_inlining_of_small_functions): Likewise.
1788 (cgraph_decide_inlining_incrementally): Likewise.
1789 (cgraph_estimate_growth): Rename to estimate_growth; move to
1790 ipa-inline-analysis.c.
1791 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1792 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1793 (compute_inline_parameters): Likewise.
1794 (compute_inline_parameters_for_current): Likewise.
1795 (pass_inline_parameters): Likewise.
1796 (inline_indirect_intraprocedural_analysis): Likewise.
1797 (analyze_function): Rename to inline_analyze_function; likewise.
1798 (add_new_function): Move to ipa-inline-analysis.c.
1799 (inline_generate_summary): Likewise.
1800 (inline_read_summary): Likewise.
1801 (inline_write_summary): Likewise.
1802 * Makefile.in (ipa-inline-analysis.c): New file.
1804 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1806 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1807 * configure: Regenerate.
1809 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1811 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1812 instead of tree_common.
1813 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1815 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1816 TS_TYPED rather than TS_COMMON.
1817 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1819 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1822 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1823 r20 around calls of __tablejump_elpm__
1825 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1828 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1830 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1832 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1834 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1835 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1836 (cfi_vec): New typedef.
1837 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1838 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1839 (cie_cfi_vec): New static variable.
1840 (cie_cfi_head): Delete.
1841 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1842 declaration changed. Use vector rather than list operations.
1843 (new_cfi): Don't initialize the dw_cfi_next field.
1844 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1845 rather than list operations.
1846 (lookup_cfa): Use vector rather than list operations.
1847 (output_cfis): New argument upto. Accept a cfi_vec rather than
1848 a dw_cfi_ref list head as argument. All callers changed.
1849 Iterate over the vector using upto as a maximum index.
1850 (output_all_cfis): New static function.
1851 (output_fde): Use vector rather than list operations. Use the
1852 new upto argument for output_cfis rather than manipulating a
1854 (dwarf2out_begin_prologue): Change initializations to match
1856 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1857 from the vector length rather than searching for the end of a list.
1858 Use output_all_cfis.
1859 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1861 2011-04-13 Nick Clifton <nickc@redhat.com>
1863 * config/rx/rx.md (movmemsi): Do not use this pattern when
1864 volatile pointers are involved.
1866 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1868 * config/i386/sse.md (pinsrbits): Remove.
1869 (sse2_packsswb): Merge with *avx_packsswb.
1870 (sse2_packssdw): Merge with *avx_packssdw.
1871 (sse2_packuswb): Merge with *avx_packuswb.
1872 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1873 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1874 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1875 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1876 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1877 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1878 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1879 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1880 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1881 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1882 (sse2_loadld): Merge with *avx_loadld.
1883 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1884 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1885 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1886 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1887 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1889 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1891 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1893 * print-tree.c (print_node): Likewise.
1894 * tree-inline.c (copy_tree_r): Likewise.
1895 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1896 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1897 instead of TS_COMMON.
1898 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1899 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1900 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1901 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1902 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1904 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1906 (TREE_CHAIN): Check for a TS_COMMON structure.
1907 (TREE_TYPE): Check for a TS_TYPED structure.
1909 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1911 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1912 cgraph_get_create_node instead of cgraph_node.
1914 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1916 * c-parser.c (c_parser_initelt): Updated call to
1917 objc_build_message_expr.
1918 (c_parser_postfix_expression): Likewise.
1920 2011-04-12 Kai Tietz <ktietz@redhat.com>
1922 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1923 MASK_MS_BITFIELD_LAYOUT bit.
1925 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1927 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1928 assert it is always true.
1929 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1932 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1934 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1935 compiling Objective-C to be more efficient.
1937 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1939 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1942 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1944 * recog.h, genoutput.c, optabs.c: Revert last patch.
1946 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1949 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1951 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1953 * recog.h (insn_operand_data): Add an "allows_mem" field.
1954 * genoutput.c (output_operand_data): Initialize it.
1955 * optabs.c (maybe_legitimize_operand_same_code): New function.
1956 (maybe_legitimize_operand): Use it when matching the original
1959 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1961 * genpreds.c (process_define_predicate): Move most processing
1962 to gensupport.c. Continue to validate the expression.
1963 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1964 (process_define_predicate): Move processing to gensupport.c.
1965 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1966 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1967 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1969 (valid_predicate_name_p): New function, split out from old
1970 genpreds.c:process_define_predicate.
1971 (process_define_predicate): New function, combining code from
1972 old genpreds.c and genrecog.c functions.
1973 (process_rtx): Call it for DEFINE_PREDICATE and
1974 DEFINE_SPECIAL_PREDICATE.
1976 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1978 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1979 size of a '%A' memory reference.
1980 (T_DREG, T_QREG): New neon_builtin_type_bits.
1981 (arm_init_neon_builtins): Assert that the load and store operands
1982 are neon_struct_operands.
1983 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1984 (NEON_ARG_MEMORY): New builtin_arg.
1985 (neon_dereference_pointer): New function.
1986 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1987 Handle NEON_ARG_MEMORY.
1988 (arm_expand_neon_builtin): Update after above interface changes.
1989 Use NEON_ARG_MEMORY for loads and stores.
1990 * config/arm/predicates.md (neon_struct_operand): New predicate.
1991 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1992 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1993 (V_four_elem): Tweak formatting.
1994 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1995 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1996 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1997 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1998 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1999 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2000 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2001 Use %A in the output template.
2002 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2003 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2004 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2005 the width of the memory access. Remove post-increment.
2006 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2008 2011-04-12 Nick Clifton <nickc@redhat.com>
2010 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2011 instruction for interrupt handlers if the target is the basic V850
2013 (expand_epilogue): Likewise.
2015 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2017 PR rtl-optimization/48549
2018 * combine.c (propagate_for_debug): Also stop after BB_END of
2019 this_basic_block. Process LAST and just stop processing after it.
2020 (combine_instructions): If last_combined_insn has been deleted,
2021 set last_combined_insn to its PREV_INSN.
2023 2011-04-12 Richard Guenther <rguenther@suse.de>
2025 PR tree-optimization/46076
2026 * gimple.h (struct gimple_statement_call): Add fntype field.
2027 (gimple_call_fntype): Adjust.
2028 (gimple_call_set_fntype): New function.
2029 * gimple.c (gimple_build_call_1): Set the call function type.
2030 * gimplify.c (gimplify_call_expr): Preserve the function
2031 type the frontend used for the call.
2032 (gimplify_modify_expr): Likewise.
2033 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2035 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2037 * tree-ssa.c (useless_type_conversion_p): Function pointer
2038 conversions are useless.
2040 2011-04-12 Martin Jambor <mjambor@suse.cz>
2042 * cgraph.h (cgraph_node): Remove function declaration.
2043 (cgraph_create_node): Declare.
2044 (cgraph_get_create_node): Likewise.
2045 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2046 Updated all callers.
2047 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2048 the decl does not already exist. Call cgraph_get_create_node instead
2050 (cgraph_get_create_node): New function.
2051 (cgraph_same_body_alias): Update comment.
2052 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2053 assert it does not return NULL.
2054 (cgraph_update_edges_for_call_stmt): Likewise.
2055 (cgraph_clone_edge): Likewise.
2056 (cgraph_create_virtual_clone): Likewise.
2057 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2058 instead of cgraph_node.
2059 (cgraph_add_new_function): Call cgraph_create_node or
2060 cgraph_get_create_node instead of cgraph_node.
2061 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2062 instead of cgraph_node.
2063 (record_eh_tables): Likewise.
2064 (mark_address): Likewise.
2065 (mark_load): Likewise.
2066 (build_cgraph_edges): Call cgraph_get_create_node instead
2068 (rebuild_cgraph_edges): Likewise.
2069 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2070 instead of cgraph_node.
2071 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2073 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2074 cgraph_create_node instead of cgraph_node.
2075 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2077 * lto-cgraph.c (input_node): Likewise.
2078 * lto-streamer-in.c (input_function): Likewise.
2079 * varasm.c (mark_decl_referenced): Likewise.
2080 (assemble_alias): Likewise.
2082 2011-04-12 Martin Jambor <mjambor@suse.cz>
2084 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2085 instead of cgraph_node and assert it does not return NULL.
2086 * lto-streamer-in.c (lto_read_body): Likewise.
2087 * omp-low.c (new_omp_context): Likewise.
2088 (create_task_copyfn): Likewise.
2089 * tree-emutls.c (lower_emutls_function_body): Likewise.
2090 * matrix-reorg.c (transform_allocation_sites): Likewise.
2092 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2095 * c-typeck.c (build_asm_expr): Error out on attempts to use
2096 void type outputs or inputs for constraints that allow reg or
2099 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2100 Richard Earnshaw <rearnsha@arm.com>
2103 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2104 to use sign-magnitude offsets. Reject unsupported unaligned
2105 cases. Add detailed description in comments.
2106 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2107 condition from TARGET_32BIT to TARGET_ARM.
2109 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2111 * tree.h (struct typed_tree): New.
2112 (struct tree_common): Include it instead of tree_base.
2113 (TREE_TYPE): Update for new location of type field.
2114 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2115 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2116 (union tree_node): Add typed field.
2117 * treestruct.def (TS_TYPED): New.
2118 * lto-streamer.c (check_handled_ts_structures): Handle it.
2119 * tree.c (MARK_TS_TYPED): New macro.
2120 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2122 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2124 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2125 (force_nonfallthru): Do not alter the loop nest if no basic block
2128 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2130 * config/i386/sse.md (VI): New mode iterator.
2132 (AVX256MODEI): Ditto.
2133 (AVXMODEF4P): Ditto.
2134 (avxvecpsmode): Ditto.
2135 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2136 (sse2_andnot<mode>3): New expander.
2137 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2138 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2139 (<any_logic:code><mode>3): Use VI mode iterator.
2140 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2141 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2142 (*andnottf3): Handle AVX three-operand constraints.
2143 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2145 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2146 Robert Millan <rmh@gnu.org>
2148 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2149 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2150 GNU_USER_DYNAMIC_LINKER64): Define.
2151 (REG_NAME): Don't undefine.
2152 (MD_UNWIND_SUPPORT): Undefine.
2153 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2154 (REG_NAME): Don't undefine.
2155 (MD_UNWIND_SUPPORT): Undefine.
2156 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2160 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2161 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2163 2011-04-11 Xinliang David Li <davidxl@google.com>
2165 * value-profile.c (check_ic_target): New function.
2166 (gimple_ic_transform): Sanity check indirect call target.
2167 * gimple-low.c (gimple_check_call_args): Interface change.
2168 (gimple_check_call_matching_types): New function.
2169 * tree-inline.c (tree_can_inline_p): Call new function.
2171 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2173 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2174 tree-pretty-print.h & realmpfr.h.
2176 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2179 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2180 (setup_allocno_and_important_classes): Ditto.
2182 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2184 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2185 GNU_USER_DYNAMIC_LINKER.
2186 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2187 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2188 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2189 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2190 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2191 GNU_USER_TARGET_OS_CPP_BUILTINS.
2192 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2193 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2194 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2196 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2197 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2198 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2199 GNU_USER_TARGET_OS_CPP_BUILTINS.
2200 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2201 GNU_USER_DYNAMIC_LINKER.
2202 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2203 GNU_USER_TARGET_OS_CPP_BUILTINS.
2204 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2205 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2206 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2207 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2208 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2209 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2210 GNU_USER_DYNAMIC_LINKER64): Remove.
2211 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2212 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2213 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2214 GNU_USER_DYNAMIC_LINKER.
2215 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2216 GNU_USER_TARGET_OS_CPP_BUILTINS.
2217 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2218 GNU_USER_TARGET_OS_CPP_BUILTINS.
2219 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2220 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2221 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2222 GNU_USER_TARGET_OS_CPP_BUILTINS.
2223 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2224 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2225 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2226 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2227 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2228 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2229 GNU_USER_DYNAMIC_LINKER.
2230 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2231 GNU_USER_TARGET_OS_CPP_BUILTINS.
2232 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2233 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2234 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2235 GNU_USER_DYNAMIC_LINKER.
2236 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2237 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2238 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2239 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2240 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2241 GNU_USER_DYNAMIC_LINKER.
2242 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2243 GNU_USER_DYNAMIC_LINKERN32.
2244 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2245 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2246 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2247 GNU_USER_DYNAMIC_LINKER32.
2248 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2249 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2250 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2251 GNU_USER_DYNAMIC_LINKER.
2252 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2253 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2254 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2256 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2257 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2258 GNU_USER_DYNAMIC_LINKER32.
2259 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2260 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2261 GNU_USER_DYNAMIC_LINKER.
2262 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2263 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2264 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2265 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2266 GNU_USER_DYNAMIC_LINKER64.
2267 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2269 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2270 GNU_USER_DYNAMIC_LINKER.
2271 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2272 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2273 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2274 GNU_USER_DYNAMIC_LINKER.
2275 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2277 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2278 GNU_USER_DYNAMIC_LINKER32.
2279 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2280 GNU_USER_DYNAMIC_LINKER64.
2281 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2282 GNU_USER_DYNAMIC_LINKER64.
2283 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2285 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2287 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2289 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2291 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2292 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2293 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2294 GNU_USER_DYNAMIC_LINKER.
2295 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2296 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2297 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2298 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2299 GNU_USER_DYNAMIC_LINKER64.
2300 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2301 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2302 GNU_USER_LINK_EMULATION.
2303 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2304 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2305 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2306 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2307 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2308 CPP_SPEC, CC1_SPEC): Remove.
2309 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2310 (GNU_USER_DYNAMIC_LINKER): Define.
2311 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2312 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2313 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2314 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2315 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2316 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2317 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2318 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2319 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2320 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2321 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2322 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2323 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2324 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2325 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2326 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2327 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2328 GNU_USER_DYNAMIC_LINKER.
2329 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2330 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2331 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2332 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2333 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2334 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2335 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2336 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2337 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2338 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2340 2011-04-11 Kai Tietz <ktietz@redhat.com>
2344 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2345 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2347 (ix86_is_msabi_thiscall): Removed.
2348 (ix86_is_type_thiscall): Likewise.
2349 (ix86_get_callcvt): New function.
2350 (ix86_comp_type_attributes): Simplify check.
2351 (ix86_function_regparm): Use ix86_get_callcvt for calling
2352 convention attribute checks.
2353 (ix86_return_pops_args): Likewise.
2354 (ix86_static_chain): Likewise.
2355 (x86_this_parameter): Likewise.
2356 (x86_output_mi_thunk): Likewise.
2357 (ix86_function_type_abi): Optimize check for types without attributes.
2358 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2359 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2360 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2362 (IX86_BASE_CALLCVT): Helper macro.
2363 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2364 Use ix86_get_callcvt for calling convention attribute checks and avoid
2365 symbol-decoration for stdcall in TARGET_RTD case.
2366 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2368 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2371 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2373 * config/i386/sse.md (VI_128): New mode iterator.
2374 (VI12_128): Rename from SSEMODE12.
2375 (VI14_128): Rename from SSEMODE14.
2376 (VI124_128): New mode iterator.
2377 (VI24_128): Rename from SSEMODE248.
2378 (VI248_128): Rename from SSEMODE248.
2379 (SSEMODE124C8): Remove.
2380 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2381 (*sse2_<plusminus_insn><mode>3): Merge with
2382 *avx_<plusminus_insn><mode>3.
2383 (*mulv8hi3): Merge with *avx_mulv8hi3.
2384 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2385 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2386 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2387 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2388 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2389 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2390 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2391 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2392 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2393 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2394 (*<smaxmin:code>v8hi3): Ditto.
2395 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2396 (*<smaxmin:code>v16qi3): Ditto.
2397 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2398 (*sse2_eq<mode>3): Ditto.
2399 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2400 (*sse2_gt<mode>3): Ditto.
2401 (vcondv2di): Split out of vcond<mode>.
2402 (vconduv2di): Split out of vcondu<mode>.
2404 2011-04-11 Richard Guenther <rguenther@suse.de>
2406 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2407 before calling tree_low_cst.
2409 2011-04-11 Richard Guenther <rguenther@suse.de>
2411 * stor-layout.c (layout_type): Compute all array index size operations
2412 in the original type.
2413 (initialize_sizetypes): Add comment.
2414 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2416 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2418 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2420 2011-04-11 Martin Jambor <mjambor@suse.cz>
2422 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2423 of cgraph_node, handle NULL return value.
2424 (cgraph_global_info): Likewise.
2425 (cgraph_rtl_info): Likewise.
2426 * tree-inline.c (estimate_num_insns): Likewise.
2427 * gimplify.c (unshare_body): Likewise.
2428 (unvisit_body): Likewise.
2429 (gimplify_body): Likewise.
2430 * predict.c (optimize_function_for_size_p): Likewise.
2431 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2432 (call_may_clobber_ref_p_1): Likewise.
2433 * varasm.c (function_section_1): Likewise.
2434 (assemble_start_function): Likewise.
2436 2011-04-11 Martin Jambor <mjambor@suse.cz>
2438 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2440 * final.c (rest_of_clean_state): Likewise.
2441 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2442 * passes.c (pass_init_dump_file): Likewise.
2443 (execute_all_ipa_transforms): Likewise.
2444 (function_called_by_processed_nodes_p): Likewise.
2445 * predict.c (maybe_hot_frequency_p): Likewise.
2446 (probably_never_executed_bb_p): Likewise.
2447 (compute_function_frequency): Likewise.
2448 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2449 (unnest_nesting_tree_1): Likewise.
2450 (lower_nested_functions): Likewise.
2451 * tree-optimize.c (execute_fixup_cfg): Likewise.
2452 (tree_rest_of_compilation): Likewise.
2453 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2454 * tree-sra.c (ipa_early_sra): Likewise.
2455 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2456 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2457 * ipa.c (record_cdtor_fn): Likewise.
2458 * ipa-inline.c (cgraph_early_inlining): Likewise.
2459 (compute_inline_parameters_for_current): Likewise.
2460 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2461 * ipa-pure-const.c (local_pure_const): Likewise.
2462 * ipa-split.c (split_function): Likewise.
2463 (execute_split_functions): Likewise.
2464 * cgraphbuild.c (build_cgraph_edges): Likewise.
2465 (rebuild_cgraph_edges): Likewise.
2466 (cgraph_rebuild_references): Likewise.
2467 (remove_cgraph_callee_edges): Likewise.
2468 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2469 (verify_cgraph_node): Likewise.
2470 (cgraph_analyze_functions): Likewise.
2471 (cgraph_preserve_function_body_p): Likewise.
2472 (save_inline_function_body): Likewise.
2473 (save_inline_function_body): Likewise.
2474 * tree-inline.c (copy_bb): Likewise.
2475 (optimize_inline_calls): Likewise.
2477 2011-04-11 Martin Jambor <mjambor@suse.cz>
2479 PR tree-optimization/48195
2480 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2481 ipa_check_create_edge_args.
2482 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2483 ipa_check_create_edge_args.
2484 * ipa-inline.c (inline_generate_summary): Do not call
2485 ipa_check_create_node_params and ipa_check_create_edge_args.
2486 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2487 ipa_check_create_edge_args.
2489 2011-04-09 Anatoly Sokolov <aesok@post.ru>
2491 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2493 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2494 * function.c (record_hard_reg_sets): Likewise.
2495 * ira.c (compute_regs_asm_clobbered): Likewise.
2496 * sched-deps.c (sched_analyze_1): Likewise.
2497 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2499 2011-04-09 Xinliang David Li <davidxl@google.com>
2501 PR tree-optimization/PR48484
2502 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2503 has_valid_pred lazily
2505 2011-04-09 Duncan Sands <baldrick@free.fr>
2507 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2509 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2511 * combine.c (combine_validate_cost): Adjust comments. Set registered
2512 cost of I0 to zero at the end, if any.
2514 2011-04-08 Xinliang David Li <davidxl@google.com>
2516 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2517 to insane profile data.
2519 2011-04-08 Xinliang David Li <davidxl@google.com>
2521 * ipa-cp.c (ipcp_update_profiling): Correct
2522 negative scale factor due to insane profile data.
2524 2011-04-08 Xinliang David Li <davidxl@google.com>
2526 * final.c (dump_basic_block_info): New function.
2527 (final): Dump basic block.
2528 (final_scan_insn): Remove old dump.
2530 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2533 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2536 2011-04-08 Michael Matz <matz@suse.de>
2539 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2541 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2542 * rtl.h (rebuild_jump_labels_chain): Declare.
2543 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2544 insns inserted on edges.
2546 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2548 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2549 * config/arm/arm-arches.def: New.
2550 * config/arm/arm-opts.h: New.
2551 * config/arm/genopt.sh: New.
2552 * config/arm/arm-tables.opt: New (generated).
2553 * config/arm/arm.c (arm_handle_option, arm_target_help,
2554 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2555 (all_architectures): Get most table contents from arm-arches.def.
2556 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2557 arm_selected_tune here.
2558 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2559 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2560 (march=, mcpu=, mtune=): Use Enum and Var.
2561 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2562 (arm.o): Update dependencies.
2564 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2566 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2568 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2569 (write_typed_alloc_defns): Likewise.
2570 (main): Calls write_typed_alloc_defns with output_header.
2572 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2575 * ira-color.c (setup_profitable_hard_regs): Add comments.
2576 Don't take prohibited hard regs into account.
2577 (setup_conflict_profitable_regs): Rename to
2578 get_conflict_profitable_regs.
2579 (check_hard_reg_p): Check prohibited hard regs.
2581 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2583 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2584 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2585 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2587 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2590 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2591 move from floating point to shift amount register.
2592 (emit_move_sequence): Remove secondary reload support for floating
2593 point to shift amount amount register copies.
2594 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2595 amount register copies.
2596 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2597 register, return false if mode isn't a scalar integer mode.
2598 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2600 2011-04-08 Richard Guenther <rguenther@suse.de>
2602 * gimple.c (gimple_call_flags): Remove kludge.
2604 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2606 * sel-sched.c (sel_region_init): Move call to
2607 sel_setup_region_sched_flags after setup_current_loop_nest.
2609 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2611 PR rtl-optimization/48272
2612 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2613 init_insn_reg_pressure_info. Adjust a caller.
2614 * sched-int.h (init_insn_reg_pressure_info): Declare.
2615 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2616 when sched-pressure is enabled.
2618 2011-04-08 Richard Guenther <rguenther@suse.de>
2620 * gimple.c (gimple_set_modified): Do not queue calls to
2621 MODIFIED_NORETURN_CALLS here ...
2622 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2624 2011-04-08 Richard Guenther <rguenther@suse.de>
2627 * toplev.c (lang_dependent_init): Do not open asm_out_file
2628 in WPA mode, nor perform debug machinery initialization.
2629 (finalize): Do not unlink asm_out_file in WPA mode.
2631 2011-04-08 Richard Guenther <rguenther@suse.de>
2633 * gimple.h (gimple_call_fntype): New function.
2634 (gimple_call_return_type): Use it.
2635 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2636 * gimple-low.c (gimple_check_call_args): Likewise.
2637 * gimple.c (gimple_call_flags): Likewise.
2638 (gimple_call_arg_flags): Likewise.
2639 (gimple_call_return_flags): Likewise.
2640 * tree-cfg.c (verify_gimple_call): Likewise.
2641 (do_warn_unused_result): Likewise.
2642 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2643 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2645 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2647 PR rtl-optimization/48235
2648 * sel-sched.c (code_motion_process_successors): Recompute the last
2649 insn in basic block if control flow changed.
2650 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2651 Update condition for ilist_remove.
2653 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2655 PR rtl-optimization/48302
2656 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2657 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2658 it to record added preheader blocks.
2659 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2660 on to sel_add_loop_preheaders.
2661 (sel_region_init): Move call to setup_current_loop_nest after
2664 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2667 * cfgloop.h (loop_has_exit_edges): New helper.
2668 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2670 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2671 that have no exit edges.
2673 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2675 PR rtl-optimization/48442
2676 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2677 all callers. Adjust assert.
2679 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2681 PR tree-optimization/48377
2682 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2683 is_packed to true even for types with smaller TYPE_ALIGN than
2686 2011-04-08 Richard Guenther <rguenther@suse.de>
2689 * doc/tm.texi: Re-generate.
2691 2011-04-08 Wei Guozhi <carrot@google.com>
2694 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2695 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2696 * config/arm/arm.md (*push_multi): Change the length computation to
2699 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2701 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2702 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2703 * doc/tm.texi: Regenerate.
2704 * system.h (ASM_OUTPUT_BSS): Poison.
2705 * varasm.c (asm_output_bss): Remove function.
2706 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2708 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2709 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2710 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2711 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2713 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2715 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2717 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2719 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2721 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2724 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2726 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2727 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2728 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2730 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2731 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2732 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2733 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2734 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2735 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2736 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2737 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2738 options. Don't map other m68k options manually. Don't handle
2739 old-style options as canonical.
2740 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2741 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2743 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2745 * basic-block.h (force_nonfallthru): Move to...
2746 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2747 (force_nonfallthru): ...here.
2748 * cfghooks.c (force_nonfallthru): New function.
2749 * cfgrtl.c (force_nonfallthru): Rename into...
2750 (rtl_force_nonfallthru): ...this.
2751 (commit_one_edge_insertion): Do not set AUX field.
2752 (commit_edge_insertions): Do not discover new basic blocks.
2753 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2754 (cfg_layout_rtl_cfg_hooks): Likewise.
2755 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2756 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2757 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2759 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2761 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2764 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2766 * config/i386/sse.md: Update copyright year.
2767 (avxcvtvecmode): Remove.
2768 (sse_movhlps): Merge with *avx_movhlps.
2769 (sse_movlhps): Merge with *avx_movlhps.
2770 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2771 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2772 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2773 (sse_loadhps): Merge with *avx_loadhps.
2774 (sse_storelps): Merge with *avx_storelps.
2775 (sse_loadlps): Merge with *avx_loadlps.
2776 (sse_movss): Merge with *avx_movss.
2777 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2778 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2779 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2780 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2781 (vec_set<mode>_0): Ditto.
2782 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2783 (sse4_1_insertps): Merge with *avx_insertps.
2784 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2785 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2786 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2787 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2788 (sse2_storehpd): Merge with *avx_storehpd.
2789 (sse2_loadhpd): Merge with *avx_loadhpd.
2790 (sse2_loadlpd): Merge with *avx_loadlpd.
2791 (sse2_movsd): Merge with *avx_movsd.
2792 (*vec_concatv2df): Merge with *vec_concatv2df.
2794 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2797 * combine.c (combine_instructions): Add last_combined_insn,
2798 update it if insn is after it, pass it to all try_combine calls.
2799 (try_combine): Add last_combined_insn parameter, pass it instead of
2800 i3 to propagate_for_debug.
2802 2011-04-07 Nick Clifton <nickc@redhat.com>
2804 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2805 to handle MDR <-> data register transfers.
2806 (movhi_internal): Likewise.
2808 2011-04-07 Alan Modra <amodra@gmail.com>
2810 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2811 previous stack info.
2813 2011-04-07 Tom de Vries <tom@codesourcery.com>
2816 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2817 flow_find_cross_jump. Swap variables to implement backward replacement.
2818 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2820 2011-04-07 Tom de Vries <tom@codesourcery.com>
2823 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2824 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2826 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2827 src1 or src2. Redirect edges to the last basic block. Update
2828 frequency and count on multiple basic blocks in case of fallthru.
2830 2011-04-07 Tom de Vries <tom@codesourcery.com>
2833 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2835 (old_insns_match_p): Change return type. Replace return false/true
2836 with return dir_none/dir_both. Use can_replace_by.
2837 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2838 direction from dir_p. Register replacement direction in dir, last_dir
2839 and afterlast_dir. Handle new return type of old_insns_match_p using
2840 merge_dir. Return replacement direction in dir_p.
2841 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2842 return type of old_insns_match_p.
2843 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2844 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2845 flow_find_cross_jump.
2846 * basic-block.h (enum replace_direction): New type.
2847 (flow_find_cross_jump): Add parameter to declaration.
2849 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2851 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2852 (AVXMODEDCVTPS2DQ): Ditto.
2853 (VEC_FLOAT_MODE): Ditto.
2854 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2855 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2856 (<any_logic:code><mode>3): Use VF mode iterator.
2857 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2858 Use VF mode iterator.
2859 (copysign<mode>3): Use VF mode iterator.
2860 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2861 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2862 (*<any_logic:code><MODEF:mode>3): Merge with
2863 *avx_<any_logic:code><MODEF:mode>3.
2864 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2865 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2866 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2867 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2868 (sse2_cvtdq2ps): Use %v modifier.
2869 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2870 (avx_cvtps2dq<avxmodesuffix>): Remove.
2871 (sse2_cvtps2dq): Use %v modifier.
2872 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2873 (avx_cvttps2dq<avxmodesuffix>): Remove.
2874 (sse2_cvttps2dq): Use %v modifier.
2875 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2876 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2877 (sse2_cvtsd2siq): Fix insn template.
2878 (sse2_cvtsd2siq_2): Ditto.
2879 (sse2_cvttsd2siq): Ditto.
2880 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2881 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2883 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2885 * gcov-io.c: Use GCC Runtime Library Exception.
2887 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2890 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2891 as base_reg whatever register reg has been eliminated to, instead
2892 of hardcoding STACK_POINTER_REGNUM.
2894 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2896 * doc/tm.texi.in: Document C target hooks as separate from general
2898 * doc/tm.texi: Regenerate.
2899 * genhooks.c (struct hook_desc): Add docname field.
2900 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2902 (hook_array): Include c-target.def.
2903 (emit_documentation): Use docname field in output.
2904 (emit_init_macros): Take docname argument. Only emit definitions
2905 for hooks matching docname.
2906 (main): Expect additional arguments in all cases. Pass argument
2907 to emit_init_macros.
2908 * target.def: Move initial macro definitions and comments to
2909 target-hooks-macros.h.
2910 (gcc_targetcm): Move to c-family/c-target.def.
2911 * target.h (targetcm): Move declaration to c-family/c-target.h.
2912 * targhooks.c (default_handle_c_option): Move to
2914 * targhooks.h (default_handle_c_option): Move declaration to
2915 c-family/c-common.h.
2916 * target-hooks-macros.h: New file.
2917 * config.gcc (target_has_targetcm): Define and use to add to
2918 c_target_objs and cxx_target_objs.
2919 * config/default-c.c: New file.
2920 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2921 of target.h and target-def.h.
2922 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2923 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2924 darwin_check_cfstring_format_arg): Make static.
2925 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2926 TARGET_STRING_OBJECT_REF_TYPE_P,
2927 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2928 * config/darwin-protos.h (darwin_objc_construct_string,
2929 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2931 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2932 TARGET_STRING_OBJECT_REF_TYPE_P,
2933 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2934 * config/t-darwin (darwin-c.o): Update dependencies.
2935 * system.h (TARGET_HAS_TARGETCM): Poison.
2936 * Makefile.in (TARGET_H): Update.
2937 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2938 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2939 (default-c.o): New target.
2940 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2941 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2942 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2944 (build/genhooks.o): Update dependencies.
2946 2011-04-06 Richard Guenther <rguenther@suse.de>
2948 * ipa-inline.c (enum inlining_mode): Remove.
2949 (cgraph_flatten): Use some other token.
2950 (cgraph_edge_early_inlinable_p): New function, split out from ...
2951 (cgraph_perform_always_inlining): New function, split out from ...
2952 (cgraph_decide_inlining_incrementally): ... here.
2953 (cgraph_mark_inline_edge): Adjust.
2954 (cgraph_early_inlining): Re-structure.
2955 (pass_early_inline): Require SSA form.
2957 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2958 Julian Brown <julian@codesourcery.com>
2959 Mark Shinwell <shinwell@codesourcery.com>
2961 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2962 LO_REGS only for Thumb-1.
2963 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2964 be used in short instructions when optimising for size on Thumb-2.
2966 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2968 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2969 associated with user returns to be preserved.
2971 2011-04-06 Tristan Gingold <gingold@adacore.com>
2973 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2974 symbol_queue_size, DBXOUT_DECR_NESTING,
2975 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2976 if XCOFF_DEBUGGING_INFO.
2978 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2980 * config/i386/i386.md (attribute isa): New.
2981 (attribute enabled): New.
2982 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2983 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2984 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2985 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2986 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2987 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2988 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2989 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2991 * config/i386/sse.md (VF): New mode iterator.
2995 (SSEMODEF4): Remove.
2996 (attribute sse): Handle V8SF and V4DF modes.
2997 (<absneg:code><mode>2): Use VF mode iterator.
2998 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3000 (<plusminus_insn><mode>3): Use VF mode iterator.
3001 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3002 Use VF mode iterator.
3003 (<sse>_vm<plusminus_insn><mode>3): Merge with
3004 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3005 (mul<mode>3): Use VF mode iterator.
3006 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3007 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3009 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3010 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3011 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3012 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3014 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3015 Use VF1 mode iterator.
3016 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3017 (sqrt<VF2:mode>2): New expander.
3018 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3019 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3020 and sqrtv2df2. Use VF mode iterator.
3021 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3023 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3024 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3025 Use VF1 mode iterator.
3026 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3027 (<smaxmin:code><mode>3): Use VF mode iterator.
3028 (*<smaxmin:code><mode>3_finite): Merge with
3029 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3030 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3031 (<sse>_vm<smaxmin:code><mode>2): Merge with
3032 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3033 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3035 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3037 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3038 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3039 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3040 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3041 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3043 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3044 Use VF_128 mode iterator.
3045 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3047 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3048 VF_128 mode iterator.
3049 (vcond<mode>): Use VF mode iterator.
3050 * config/i386/predicates.md (sse_comparison_operator): Merge with
3051 avx_comparison_float_operator. Do not declare as special_predicate.
3052 * config/i386/i386.c (struct builtin_description): Update for renamed
3054 (ix86_expand_args_builtin): Ditto.
3055 (ix86_expand_sse_compare_mask): Ditto.
3057 2011-04-06 Richard Guenther <rguenther@suse.de>
3059 * tree-inline.c (estimate_num_insns): For calls simply account
3060 for all passed arguments and a used return value.
3062 2011-04-06 Richard Guenther <rguenther@suse.de>
3064 PR tree-optimization/47663
3065 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3066 call_stmt_time fields.
3067 (cgraph_edge_inlinable_p): Declare.
3068 (cgraph_edge_recursive_p): New inline function.
3069 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3070 (cgraph_clone_edge): Copy it.
3071 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3072 Account for call stmt time.
3073 (cgraph_estimate_time_after_inlining): Take edge argument.
3074 (cgraph_estimate_edge_growth): Account call stmt size.
3075 (cgraph_estimate_size_after_inlining): Take edge argument.
3076 (cgraph_mark_inline_edge): Adjust.
3077 (cgraph_check_inline_limits): Likewise.
3078 (cgraph_recursive_inlining_p): Remove.
3079 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3080 (cgraph_decide_recursive_inlining): Take edge argument and
3082 (cgraph_decide_inlining_of_small_functions): Do not avoid
3083 diags for recursive inlining here.
3084 (cgraph_flatten): Adjust.
3085 (cgraph_decide_inlining_incrementally): Likewise.
3086 (estimate_function_body_sizes): Remove call cost handling.
3087 (compute_inline_parameters): Initialize caller edge call costs.
3088 (cgraph_estimate_edge_growth): New function.
3089 (cgraph_estimate_growth): Use it.
3090 (cgraph_edge_badness): Likewise.
3091 (cgraph_check_inline_limits): Take an edge argument.
3092 (cgraph_decide_inlining_of_small_functions): Adjust.
3093 (cgraph_decide_inlining): Likewise.
3094 * tree-inline.c (estimate_num_insns): Only account for call
3095 return value if it is used.
3096 (expand_call_inline): Avoid diagnostics on recursive inline
3098 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3099 (input_edge): Input edge call costs.
3101 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3103 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3105 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3107 * doc/invoke.texi (Spec Files): Fix typo.
3109 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3111 * profile.c (branch_prob): Move declaration of local variable. Remove
3112 obsolete ??? comment. Expand the location explicitly instead of using
3113 the LOCATION_FILE and LOCATION_LINE macros.
3115 2011-04-06 Wei Guozhi <carrot@google.com>
3118 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3119 (arm_cond_branch): Likewise.
3120 (arm_cond_branch_reversed): Likewise.
3121 (arm_jump): Likewise.
3122 (push_multi): Likewise.
3123 * config/arm/constraints.md (Py): New constraint.
3125 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3128 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3130 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3131 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3132 #ifdef DBX_DEBUGGING_INFO.
3134 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3137 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3138 if old and new states differ.
3140 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3142 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3143 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3144 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3145 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3146 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3148 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3149 ColdFire options to -mcpu= options.
3151 2011-04-05 Jeff Law <law@redhat.com>
3153 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3154 check if BB is a successor of LOOP->header and return
3155 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3157 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3159 * cprop.c (struct reg_use): Remove.
3160 (reg_use_table): Make an array of RTX.
3161 (find_used_regs, constprop_register, local_cprop_pass,
3162 bypass_block): Simplify users of reg_use_table.
3163 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3164 on one of the uses found by find_used_regs.
3166 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3169 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3172 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3174 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3176 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3178 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3181 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3183 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3185 * combine.c: Include obstack.h.
3186 (struct insn_link): Define.
3187 (uid_log_links): Adjust type.
3188 (FOR_EACH_LOG_LINK): New macro.
3189 (insn_link_obstack): Declare.
3190 (alloc_insn_link): Define.
3191 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3192 type of link variables.
3193 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3194 (try_combine, record_promoted_values, distribute_notes): Likewise.
3195 (distribute_links): Likewise. Tweak prototype.
3196 (clear_log_links): Delete.
3197 (adjust_for_new_dest): Call alloc_insn_link.
3198 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3200 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3202 * gcse.c (modify_mem_list): Convert to an array of VECs.
3203 (canon_modify_mem_list, compute_transp): Tweak formatting.
3204 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3205 (load_killed_in_block_p): Likewise.
3206 (record_last_mem_set_info): Likewise.
3207 (clear_modify_mem_tables): Likewise.
3209 2011-04-05 Tom de Vries <tom@codesourcery.com>
3212 * function.c (emit_use_return_register_into_block): Only define if
3215 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3217 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3219 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3221 * config/rx/rx-opts.h: New.
3222 * config/rx/rx.c (rx_cpu_type): Remove.
3223 (rx_handle_option): Don't assert that global structures are in
3224 use. Access variables via opts pointer. Defer most handling of
3225 OPT_mint_register_. Use error_at.
3226 (rx_option_override): Handle deferred OPT_mint_register_ here.
3227 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3228 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3229 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3230 (rx_cpu_types): New Enum and EnumValue entries.
3231 (mint-register=): Use Defer and use Var accordingly.
3233 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3235 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3236 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3237 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3239 (debug_free_queue, debug_nesting, symbol_queue_index):
3241 * dbxout.c: ...to here. Make static.
3243 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3245 * gcse.c (modify_pair): Define. Define a VEC of it.
3246 (canon_modify_mem_list): Convert to an array of VECs.
3247 (free_insn_expr_list_list): Delete.
3248 (clear_modify_mem_tables): Call VEC_free instead.
3249 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3250 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3251 (canon_list_insert, compute_transp): Likewise.
3253 2011-04-05 Tom de Vries <tom@codesourcery.com>
3256 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3259 2011-04-05 Tom de Vries <tom@codesourcery.com>
3262 * function.c (emit_use_return_register_into_block): New function.
3263 (thread_prologue_and_epilogue_insns): Use
3264 emit_use_return_register_into_block.
3266 2011-04-05 Tom de Vries <tom@codesourcery.com>
3269 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3272 2011-04-05 Tom de Vries <tom@codesourcery.com>
3274 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3276 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3278 * config/arm/arm.md (define_constants for unspec): Replace with
3280 (define_constants for unspecv): Replace with define_c_enum.
3281 * config/arm/neon.md (define_constants for unspec): Replace with
3284 2011-04-04 Richard Henderson <rth@redhat.com>
3287 * dwarf2out.c (output_line_info): Always emit line info from
3288 at least one section.
3289 (dwarf2out_init): Create text_section_line_info here ...
3290 (set_cur_line_info_table): ... not here.
3292 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
3295 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3298 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3300 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3302 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3303 (expr_equiv_p): Remove.
3304 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3305 (hash_scan_set): Update call to insert_set_in_table.
3306 (dump_hash_table): Dump <dest, src> pair.
3307 (lookup_set): Simplify. Lookup <dest, src> pair.
3308 (compute_transp): Remove, fold heavily simplified code into...
3309 (compute_local_properties): ...here. Expect COMP and TRANSP
3311 (find_avail_set): Take set directly from struct expr.
3312 (find_bypass-set): Likewise.
3313 (bypass_block): Likewise.
3314 (cprop_insn): Likewise. Remove redundant INSN_P test.
3316 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3317 checks on form of COND from find_implicit_sets to here.
3318 (find_implicit_sets): Cleanup control flow. Split critical edges
3319 if it exposes implicit sets. Allocate/resize implicit_sets as
3321 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3322 changed something. Run df_analyze after find_implicit_sets if any
3323 edges were split. Do not allocate implicit_sets here.
3325 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3326 (gcse_obstack): Renamed to cprop_obstack.
3327 (GNEW, GNEWVEC, GNEWVAR): Remove.
3329 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3330 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3331 (gcse_alloc): Likewise, and rename to cprop_alloc.
3332 (alloc_gcse_men, free_gcse_mem): Remove.
3333 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3334 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3335 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3337 * cprop.c (oprs_not_set_p): Remove.
3338 (mark_set, mark_clobber): Remove.
3339 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3340 (reg_not_set_p): New function.
3341 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3342 (cprop_insn): Likewise.
3343 (cprop_jump): Use FOR_EACH_EDGE.
3345 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3348 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3349 (rank_for_schedule): Use scheduled_insns vector instead of
3350 last_scheduled_insn.
3351 (ok_for_early_queue_removal): Likewise.
3352 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3354 (choose_ready): Likewise.
3355 (commit_schedule): Use VEC_iterate.
3356 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3357 a dbg_cnt, use it and ensure the first insn is in the ready list.
3358 (haifa_sched_init): Allocate scheduled_insns.
3359 (sched_extend_ready_list): Don't allocate it; reserve space.
3360 (haifa_sched_finish): Free it.
3362 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3364 * optc-gen.awk: Always remove type from Variable entry before
3365 recording in var_seen.
3367 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3369 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3370 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3371 call to tidy_fallthru_edges.
3373 2011-04-04 Joseph Myers <joseph@codesourcery.com>
3375 * doc/options.texi (ToLower): Document.
3376 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3377 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3378 * opts.h (cl_option): Add cl_tolower field.
3379 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3380 arguments with lowercase strings.
3381 * config/rx/rx.opt (mcpu=): Add ToLower.
3382 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3385 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3387 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3389 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3391 * config/vax/vax.c: Include reload.h.
3393 2011-04-04 Anatoly Sokolov <aesok@post.ru>
3395 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3396 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3397 (sparc_preferred_reload_class): New function.
3399 2011-04-04 Jakub Jelinek <jakub@redhat.com>
3402 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3403 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3405 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3407 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3408 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3410 2011-04-03 Anatoly Sokolov <aesok@post.ru>
3412 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3413 (ASM_OUTPUT_ALIGNED_BSS): Define.
3415 2011-04-03 Michael Matz <matz@suse.de>
3417 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3418 and next_slot members.
3419 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3420 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3421 (lto_streamer_cache_append): Declare.
3422 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3423 unsigned index, remove offset parameter, ensure that we append
3424 or update existing entries.
3425 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3426 parameter, update next_slot for append.
3427 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3429 (lto_streamer_cache_insert_at): Likewise.
3430 (lto_streamer_cache_append): New function.
3431 (lto_streamer_cache_lookup): Use unsigned index.
3432 (lto_streamer_cache_get): Likewise.
3433 (lto_record_common_node): Don't test tree_node_can_be_shared.
3434 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3435 (lto_streamer_cache_delete): Don't free offsets member.
3436 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3437 (lto_output_string_with_length): Use lto_output_data_stream.
3438 (lto_output_tree_header): Remove ix parameter, don't write it.
3439 (lto_output_builtin_tree): Likewise.
3440 (lto_write_tree): Adjust callers to above, don't track and write
3441 offset, write unsigned index.
3442 (output_unreferenced_globals): Don't emit all global vars.
3443 (write_global_references): Use unsigned indices.
3444 (lto_output_decl_state_refs): Likewise.
3445 (write_symbol): Likewise.
3446 * lto-streamer-in.c (lto_input_chain): Move earlier.
3447 (input_function): Use unsigned index.
3448 (input_alias_pairs): Don't read and then ignore all global vars.
3449 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3450 don't pass it back, use lto_streamer_cache_append.
3451 (lto_register_var_decl_in_symtab): Use unsigned index.
3452 (lto_register_function_decl_in_symtab): Likewise.
3453 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3455 (lto_get_builtin_tree): Don't read index, use
3456 lto_streamer_cache_append.
3457 (lto_read_tree): Adjust call to lto_materialize_tree.
3459 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3460 don't use function calls in arguments to MIN.
3462 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3465 * gimple.c (gimple_type_leader_entry): Mark deletable.
3467 2011-04-03 Alan Modra <amodra@gmail.com>
3469 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3471 2011-04-03 Michael Matz <matz@suse.de>
3473 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3475 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3477 2011-04-03 Michael Matz <matz@suse.de>
3479 * cgraphbuild.c (record_reference): Canonicalize constructor values.
3480 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3481 without function context.
3482 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3483 current_function_decl and cfun.
3485 2011-04-03 Michael Matz <matz@suse.de>
3487 * tree.c (decl_init_priority_insert): Don't create entry for
3489 (decl_fini_priority_insert): Ditto.
3490 (fields_compatible_p, find_compatible_field): Remove.
3491 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3492 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3494 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3496 * combine.c (try_combine): Remove useless local variable.
3498 2011-04-03 Richard Guenther <rguenther@suse.de>
3499 Ira Rosen <ira.rosen@linaro.org>
3501 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3502 non-variable offsets and compare the remaining bases of the two
3503 accesses instead of looking for exact same data-ref.
3505 2011-04-02 Kai Tietz <ktietz@redhat.com>
3508 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3510 * i386.c (ix86_is_msabi_thiscall): New helper function.
3511 (ix86_is_type_thiscall): New helper function.
3512 (ix86_comp_type_attributes): Handle thiscall for method-functions
3514 (init_cumulative_args): Likewise.
3515 (find_drap_reg): Likewise.
3516 (ix86_static_chain): Likewise.
3517 (x86_this_parameter): Likewise.
3518 (x86_output_mi_thunk): Likewise.
3520 2011-04-01 Olivier Hainque <hainque@adacore.com>
3521 Nicolas Setton <setton@adacore.com>
3522 Eric Botcazou <ebotcazou@adacore.com>
3524 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3525 (add_gnat_descriptive_type_attribute): New function.
3526 (gen_array_type_die): Call it.
3527 (gen_enumeration_type_die): Likewise.
3528 (gen_struct_or_union_type_die): Likewise.
3529 (modified_type_die): Likewise.
3530 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3531 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3532 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3534 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3537 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3538 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3541 2011-03-17 Richard Guenther <rguenther@suse.de>
3544 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3545 origin for decls in other ltrans units.
3546 (input_varpool_node): Likewise.
3548 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3551 * expr.c (expand_assignment): Handle all possibilities
3552 if TO_RTX is CONCAT.
3553 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3554 (store_split_bit_field): If SUBREG_REG (op0) or
3555 op0 itself has smaller mode than word, return it
3556 for offset 0 and const0_rtx for out-of-bounds stores.
3557 If word is const0_rtx, skip it.
3559 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3561 * config/h8300/h8300.c (print_operand_address): Rename to...
3562 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3563 Call h8300_print_operand and h8300_print_operand_address instead of
3564 print_operand and print_operand_address. Declare.
3565 (print_operand): Renake to...
3566 (h8300_print_operand): ...this. Make static. Adjust comments.
3567 Call h8300_print_operand instead of print_operand. Declare.
3568 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3569 (h8300_register_move_cost): Likewise.
3570 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3571 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3572 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3573 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3574 * config/h8300/h8300-protos.h (print_operand): Delete.
3575 (print_operand_address): Delete.
3577 2011-04-01 Richard Henderson <rth@redhat.com>
3580 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3581 in strict mode before dwarf4. Re-order tests to early out
3582 before switching sections.
3584 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3586 * config/h8300/constraints.md: New file.
3587 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3588 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3589 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3590 * config/h8300/predicates.md (bit_operand): Likewise.
3591 (incdec_operand): Use satisfies_constraint_M and
3592 satisfies_constraint_O. Don't use C code block.
3593 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3594 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3595 (compute_mov_length): Use satisfies_constraint_G.
3596 (fix_bit_operand): Use satisfies_constraint_U.
3597 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3598 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3599 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3600 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3601 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3602 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3603 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3604 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3605 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3606 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3607 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3608 (EXTRA_MEMORY_CONSTRAINT): Delete.
3610 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3611 Michael Meissner <meissner@linux.vnet.ibm.com>
3614 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3615 operands, as per the specifications.
3617 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3618 (vec_extract_evenv4sf): Ditto.
3619 (vec_extract_evenv8hi): Ditto.
3620 (vec_extract_evenv16qi): Ditto.
3621 (vec_extract_oddv4si): Ditto.
3623 2011-03-31 Mark Wielaard <mjw@redhat.com>
3625 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3626 high_pc attribute if the CU has no associated code. Only output
3627 DW_AT_entry_pc for CU if not generating strict dwarf and
3630 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3632 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3633 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3635 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3636 * final.c (final_start_function): Call the new function rather
3637 than using a NULL argument for dwarf2out_frame_debug.
3639 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3640 that contains the prologue.
3642 * haifa-sched.c (queue_insn): New arg REASON. All callers
3643 changed. Print it in debugging output.
3645 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3647 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3648 Split most of the code into...
3649 (begin_move_insn): ... here. New function.
3650 (ebb_sched_info): Add a pointer to it.
3651 * haifa-sched.c (scheduled_insns): New static variable.
3652 (sched_extend_ready_list): Allocate it.
3653 (schedule_block): Use it to record the order of scheduled insns.
3654 Perform RTL changes to move insns only after all scheduling
3655 decisions have been made.
3656 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3657 begin_move_insn field.
3658 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3659 * sched-int.h (struct haifa_sched_info): Remove second argument
3660 from begin_schedule_ready hook. Add new member begin_move_insn.
3661 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3662 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3664 * haifa-sched.c (prune_ready_list): New function, broken out of
3666 (schedule_block): Use it.
3668 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3670 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3672 2011-04-01 Kai Tietz <ktietz@redhat.com>
3674 * config.gcc (*-*-mingw*): Allow as option the
3675 posix threading model.
3676 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3677 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3679 (CPP_SPEC): Add pthread/no-pthread handling.
3680 (LIB_SPEC): Likewise.
3681 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3682 (LIB_SPEC): Likewise.
3683 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3684 flag to pass -pthread option for shared libgcc build.
3685 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3686 for shared libgcc build.
3687 * config/i386/t-mingw-pthread: New file.
3688 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3689 New define to enable use of library pthread by default.
3690 * config/i386/mingw.opt (pthread): New driver option.
3691 (no-pthread): New driver option.
3692 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3693 * config/i386/mingw-w64.opt: Likewise.
3695 2011-04-01 Gary Funck <gary@intrepid.com>
3697 * c-decl.c (grokdeclarator): Fix formatting.
3699 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3701 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3702 instead of n_operands.
3703 (set_storage_via_setmem): Likewise.
3704 * optabs.c (maybe_gen_insn): Likewise.
3705 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3706 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3707 (mips_expand_builtin_direct): Likewise.
3708 * config/spu/spu.c (expand_builtin_args): Likewise.
3710 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3712 * recog.h (insn_data_d): Add n_generator_args.
3713 * genoutput.c (data): Likewise.
3714 (output_insn_data): Print it.
3715 (max_opno, num_dups): Delete.
3716 (scan_operands): Just fill in "d->operand[...]".
3717 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3719 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3721 * gensupport.h (pattern_stats): New structure.
3722 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3723 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3724 (max_operand_1, max_operand_vec): Delete.
3725 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3727 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3729 * emit-rtl.c (emit_pattern_after_setloc): New function.
3730 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3731 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3732 (emit_pattern_after): New function.
3733 (emit_insn_after, emit_jump_insn_after): Call it.
3734 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3735 (emit_pattern_before_setloc): New function.
3736 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3737 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3739 (emit_pattern_before): New function.
3740 (emit_insn_before, emit_jump_insn_before): Call it.
3741 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3743 2011-03-31 Richard Henderson <rth@redhat.com>
3745 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3746 (dw_separate_line_info_entry): Remove.
3747 (enum dw_line_info_opcode): New.
3748 (dw_line_info_entry): Use it.
3749 (dw_line_info_table, dw_line_info_table_p): New.
3750 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3751 (line_info_table, line_info_label_num): Remove.
3752 (line_info_table_in_use): Remove.
3753 (separate_line_info_table): Remove.
3754 (separate_line_info_table_allocated): Remove.
3755 (separate_line_info_table_in_use): Remove.
3756 (LINE_INFO_TABLE_INCREMENT): Remove.
3757 (line_info_label_num): New.
3758 (cur_line_info_table): New.
3759 (text_section_line_info, cold_text_section_line_info): New.
3760 (separate_line_info): New.
3761 (SEPARATE_LINE_CODE_LABEL): Remove.
3762 (print_dwarf_line_table): Remove.
3763 (debug_dwarf): Don't dump it.
3764 (output_one_line_info_table): New.
3765 (output_line_info): Use it.
3766 (new_line_info_table): New.
3767 (set_cur_line_info_table): New.
3768 (dwarf2out_switch_text_section): Use it.
3769 (dwarf2out_begin_function): Likewise.
3770 (push_dw_line_info_entry): New.
3771 (dwarf2out_source_line): Rewrite for new line info tables.
3772 (dwarf2out_init): Remove dead initailizations.
3774 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3776 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3778 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3779 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3780 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3781 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3782 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3783 * opt-functions.awk (flag_init, switch_bit_fields): New.
3784 (switch_flags): Don't handle flags moved to bit-fields. Don't
3785 generate CL_MISSING_OK or CL_SAVE.
3786 * optc-gen.awk: Update to generate bit-field output as well as
3788 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3789 bit-field instead of CL_REJECT_DRIVER flag.
3790 * opts-common.c (generate_canonical_option,
3791 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3792 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3793 instead of CL_REJECT_NEGATIVE flag.
3794 * toplev.c (print_switch_values): Use cl_report bit-field instead
3797 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3799 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3800 a zero minimum index only if it is redundant.
3802 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3804 PR rtl-optimization/48381
3805 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3806 instead of ira_class_hard_reg_index for calculating conflicting
3809 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3811 * cprop.c: Clean up hash table building.
3812 (reg_avail_info): Remove.
3813 (oprs_available_p): Remove.
3814 (record_last_reg_set_info): Remove.
3815 (record_last_set_info): Remove.
3816 (reg_available_p): New function.
3817 (gcse_constant_p): Do not treat unfolded conditions as constants.
3818 (make_set_regs_unavailable): New function.
3819 (hash_scan_set): Simplify with new reg_available_p.
3820 (compute_hash_table_work): Traverse insns stream only once.
3821 Do not compute reg_avail_info. Traverse insns in reverse order.
3822 Record implicit sets after recording explicit sets from the block.
3824 2011-03-31 Michael Matz <matz@suse.de>
3826 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3828 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3830 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3831 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3832 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3833 (h8300_mode_dependent_address_p): New function.
3834 (h8300_get_index): Make static.
3836 2011-03-31 Jeff Law <law@redhat.com>
3838 * reload1.c (elimination_effects): Fix typo in recent change.
3840 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3841 typo potentially leading to null pointer dereference.
3843 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3844 (setup_save_areas): Corresponding changes to avoid useless
3847 * jump.c (reversed_comparison_code_parts): Avoid successive return
3848 statements when REVERSE_CONDITION is defined.
3850 * expr.c (expand_assignment): Avoid useless assignments.
3851 (expand_expr_real_1): Likewise.
3852 (expand_expr_real_2): Avoid useless statements.
3854 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3856 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3858 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3861 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3863 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3866 * doc/tm.texi.in (TARGET_VERSION): Remove.
3867 * doc/tm.texi: Regenerate.
3868 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3869 * collect2.c (main): Don't use TARGET_VERSION.
3870 * mips-tdump.c (main): Don't use TARGET_VERSION.
3871 * mips-tfile.c (main): Don't use TARGET_VERSION.
3872 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3873 * config/rs6000/vxworksae.h: Remove.
3874 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3875 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3876 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3877 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3878 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3879 * config/arm/arm.h (TARGET_VERSION): Remove.
3880 * config/arm/coff.h (TARGET_VERSION): Remove.
3881 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3882 * config/arm/elf.h (TARGET_VERSION): Remove.
3883 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3884 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3885 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3886 * config/arm/pe.h (TARGET_VERSION): Remove.
3887 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3888 * config/arm/semi.h (TARGET_VERSION): Remove.
3889 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3890 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3891 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3892 * config/avr/avr.h (TARGET_VERSION): Remove.
3893 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3894 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3895 * config/frv/frv.h (TARGET_VERSION): Remove.
3896 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3897 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3898 * config/i386/darwin.h (TARGET_VERSION): Remove.
3899 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3900 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3901 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3902 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3903 * config/i386/gnu.h (TARGET_VERSION): Remove.
3904 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3905 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3906 * config/i386/linux.h (TARGET_VERSION): Remove.
3907 * config/i386/linux64.h (TARGET_VERSION): Remove.
3908 * config/i386/lynx.h (TARGET_VERSION): Remove.
3909 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3910 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3911 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3912 * config/i386/netware.h (TARGET_VERSION): Remove.
3913 * config/i386/nto.h (TARGET_VERSION): Remove.
3914 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3915 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3916 * config/ia64/elf.h (TARGET_VERSION): Remove.
3917 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3918 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3919 * config/ia64/linux.h (TARGET_VERSION): Remove.
3920 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3921 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3922 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3923 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3924 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3925 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3926 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3927 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3928 * config/m68k/linux.h (TARGET_VERSION): Remove.
3929 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3930 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3931 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3932 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3933 * config/mep/mep.h (TARGET_VERSION): Remove.
3934 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3935 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3936 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3937 * config/mips/linux.h (TARGET_VERSION): Remove.
3938 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3939 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3940 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3941 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3942 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3943 * config/pa/pa.h (TARGET_VERSION): Remove.
3944 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3945 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3946 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3947 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3948 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3949 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3950 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3951 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3952 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3953 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3954 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3955 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3956 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3957 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3958 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3959 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3960 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3961 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3962 * config/s390/linux.h (TARGET_VERSION): Remove.
3963 * config/s390/s390.h (TARGET_VERSION): Remove.
3964 * config/s390/tpf.h (TARGET_VERSION): Remove.
3965 * config/score/score.h (TARGET_VERSION): Remove.
3966 * config/sh/linux.h (TARGET_VERSION): Remove.
3967 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3968 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3969 * config/sh/sh.h (TARGET_VERSION): Remove.
3970 * config/sh/sh64.h (TARGET_VERSION): Remove.
3971 * config/sh/superh.h (TARGET_VERSION): Remove.
3972 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3973 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3974 * config/sparc/linux.h (TARGET_VERSION): Remove.
3975 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3976 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3977 TARGET_NAME32, TARGET_NAME): Remove.
3978 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3979 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3980 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3981 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3982 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3983 * config/spu/spu.h (TARGET_VERSION): Remove.
3984 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3985 * config/v850/v850.h (TARGET_VERSION): Remove.
3986 * config/vax/linux.h (TARGET_VERSION): Remove.
3987 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3988 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3989 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3991 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3994 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3995 frame-related from frame-unrelated adjustments to the stack pointer.
3997 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3999 * common.opt (fdebug-types-section): Move earlier.
4000 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4002 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
4004 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4007 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4009 * tree.h (CASE_CHAIN): Define.
4010 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4011 (gimple_redirect_edge_and_branch): Likewise.
4013 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4016 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4019 2011-03-30 Jeff Law <law@redhat.com>
4021 * PR bootstrap/48371
4022 * reload1.c (reload): Fix botch in last change.
4024 * reload.h (struct reload): Fix typo introduced in last change.
4026 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4028 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4029 Undocumented. Remove help text.
4030 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4033 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4035 * doc/options.texi (NegativeAlias): Document.
4036 (Alias): Mention NegativeAlias.
4037 * opt-functions.awk: Handle NegativeAlias.
4038 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4039 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4040 * opts.h (CL_NEGATIVE_ALIAS): Define.
4041 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4042 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4044 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4046 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4047 mno-spe and mno-isel instead of mspe=no and -misel=no.
4049 2011-03-29 Mark Wielaard <mjw@redhat.com>
4051 * common.opt (fdebug-types-section): New flag.
4052 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4053 * dwarf2out.c (use_debug_types): New define.
4054 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4055 (print_die): Guard output of type unit signatures using
4057 (build_abbrev_table): Replace assert of dwarf_version >= 4
4058 with assert on use_debug_types.
4059 (size_of_die): Likewise.
4060 (unmark_dies): Likewise.
4061 (value_format): Decide AT_ref_external form on use_debug_types.
4062 (output_die): Replace dwarf_version version check guard with
4063 use_debug_types where appropriate.
4064 (modified_type_die): Likewise.
4065 (gen_reference_type_die): Likewise.
4066 (dwarf2out_start_source_file): Likewise.
4067 (dwarf2out_end_source_file): Likewise.
4068 (prune_unused_types_walk_attribs): Likewise.
4069 (dwarf2out_finish): Likewise.
4071 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4073 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4075 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4077 PR rtl-optimization/48332
4078 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4079 mode of input operand N and modeN to its actual mode.
4081 2011-03-30 Jeff Law <law@redhat.com>
4083 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4084 define accessor macro.
4085 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4086 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4087 (reg_equiv_init): Likewise.
4088 (reg_equivs_size): New variable.
4089 (reg_equiv_init_size): Remove.
4090 (allocate_initial_values): Move prototype to here from....
4091 * integrate.h (allocate_initial_values): Remove prototype.
4092 * integrate.c: Include reload.h.
4093 (allocate_initial_values): Corresponding changes.
4094 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4095 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4096 (update_equiv_regs): Corresponding changes.
4097 (ira): Corresponding changes.
4098 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4099 (push_secondary_reload): Corresponding changes.
4100 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4101 (make_memloc, find_reloads_address): Corresponding changes.
4102 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4103 (find_reloads_address_1): Corresponding changes.
4104 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4105 (refers_to_regno_for_reload_p): Corresponding changes.
4106 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4107 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4108 * reload1.c: Include ggc.h.
4109 (grow_reg_equivs): New function.
4110 (replace_pseudos_in, reload): Corresponding changes.
4111 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4112 (eliminate_regs_1, elimination_effects): Corresponding changes.
4113 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4114 (delete_output_reload): Likewise.
4115 * caller-save.c (mark_referenced_regs): Corresponding changes.
4116 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4117 * frv/predicates.md (frv_load_operand): Corresponding changes.
4118 * microblaze/microblaze.c (double_memory_operand): Corresponding
4120 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4121 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4122 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4123 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4124 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4126 * pa/pa.c (emit_move_sequence): Corresponding changes.
4127 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4129 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4132 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4133 structure modes. Don't check neon_vector_mem_operand for
4134 vector or structure modes.
4136 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4137 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4140 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4141 operand 1 and reshuffle the operands to match.
4142 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4144 2011-03-30 Christian Schüler <cschueler@gmx.de>
4147 * config/c.opt (F): Added 'Driver' to -F option.
4150 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4152 * config/darwin.opt: Added '-arch' option.
4154 2011-03-30 Nick Clifton <nickc@redhat.com>
4156 * config/rx/rx.md: Add peepholes and patterns to combine
4157 extending loads and simple arithmetic instructions.
4158 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4159 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4160 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4161 modes to use pre-decrement and post-increment addressing.
4162 (rx_is_restricted_memory_address): Add range checking of REG+INT
4164 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4165 (rx_memory_move_cost): Adjust cost of stores.
4166 (rx_adjust_insn_length): New function.
4168 2011-03-30 Jakub Jelinek <jakub@redhat.com>
4171 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4172 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4173 matching arg00/arg01 types.
4175 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4177 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4178 last_location to UNKNOWN_LOCATION.
4180 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4183 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4186 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4187 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4190 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4192 (sparc_cpu): Likewise.
4193 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4196 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4200 PR rtl-optimization/48345
4201 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4202 hard regs for given mode from profitable regs when doing secondary
4205 2011-03-29 Jeff Law <law@redhat.com>
4208 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4209 do_not_duplicate field.
4210 (lookup_redirection_data): Corresponding changes.
4211 (create_duplicates): Always create a template block.
4212 (redirect_edges): Remove code which reused the original block
4213 when it was going to become unreachable code.
4214 (thread_block): Don't set do_not_duplicate field.
4216 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4218 * lto-opts.c (register_user_option_p, lto_register_user_option):
4219 Make type argument unsigned.
4220 * lto-streamer.h (lto_register_user_option): Make type argument
4222 * opth-gen.awk: Make CL_* macros unsigned.
4223 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4224 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4225 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4226 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4227 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4228 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4229 (find_opt): Make lang_mask argument unsigned.
4231 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4233 PR rtl-optimization/48331
4234 PR rtl-optimization/48334
4235 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4236 for any used algorithm.
4238 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4240 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4243 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4245 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4246 (alpha_option_override): Don't set alpha_sr_alias_set.
4247 (emit_frame_store_1): Use gen_frame_mem rather than calling
4249 (alpha_expand_epilogue): Ditto.
4251 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
4253 PR tree-optimization/48290
4254 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4255 vectorization, check that relevant phis in the basic block after
4256 the inner loop are really inner loop's exit phis.
4258 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4261 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4262 (cached_dw_loc_list_def): New structure.
4263 (cached_dw_loc_list): New typedef.
4264 (cached_dw_loc_list_table): New variable.
4265 (cached_dw_loc_list_table_hash): New function.
4266 (cached_dw_loc_list_table_eq): Likewise.
4267 (add_location_or_const_value_attribute): Take a bool cache_p.
4268 Cache the list when the parameter is true.
4269 (gen_formal_parameter_die): Update caller.
4270 (gen_variable_die): Likewise.
4271 (dwarf2out_finish): Likewise.
4272 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4273 while generating debug info for the decl.
4274 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4275 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4276 (resolve_addr): Cache the result of resolving a chain of
4279 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4281 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4282 conflict object hard regset nodes have intersecting hard reg sets.
4284 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4285 after regstat_init_n_sets_and_refs.
4287 * ira.c: Add more comments at the top.
4288 (setup_stack_reg_pressure_class, setup_pressure_classes):
4289 Add comments how we compute the register pressure classes.
4290 (setup_allocno_and_important_classes): Add more comments.
4291 (setup_class_translate_array, reorder_important_classes)
4292 (setup_reg_class_relations): Add comments.
4294 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4297 * ira-color.c: Add 2011 to the Copyright line.
4298 (assign_hard_reg): Add more comments.
4299 (improve_allocation): Ditto.
4301 * ira-costs.c: Add 2011 to the Copyright line.
4302 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4304 (setup_regno_cost_classes_by_mode): Ditto.
4306 Initial patches from ira-improv branch:
4308 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4310 * ira-build.c (ira_create_object): Remove initialization of
4311 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4312 (ira_create_allocno): Remove initialization of
4313 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4314 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4315 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4316 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4317 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4318 Initialize ALLOCNO_ADD_DATA.
4319 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4320 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4322 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4323 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4325 * ira.c (ira_reallocate): Remove.
4326 (setup_pressure_classes): Call
4327 ira_init_register_move_cost_if_necessary. Use
4328 ira_register_move_cost instead of ira_get_register_move_cost.
4329 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4330 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4332 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4333 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4334 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4335 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4336 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4337 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4339 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4340 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4341 (struct allocno_color_data): New.
4342 (allocno_color_data_t): New typedef.
4343 (allocno_color_data): New definition.
4344 (ALLOCNO_COLOR_DATA): New macro.
4345 (struct object_color_data): New.
4346 (object_color_data_t): New typedef.
4347 (object_color_data): New definition.
4348 (OBJECT_COLOR_DATA): New macro.
4349 (update_copy_costs, calculate_allocno_spill_cost): Call
4350 ira_init_register_move_cost_if_necessary. Use
4351 ira_register_move_cost instead of ira_get_register_move_cost.
4352 (move_spill_restore, update_curr_costs): Ditto.
4353 (allocno_spill_priority): Make it inline.
4354 (color_pass): Allocate and free allocno_color_dat and object_color_data.
4355 (struct coalesce_data, coalesce_data_t): New.
4356 (allocno_coalesce_data): New definition.
4357 (ALLOCNO_COALESCE_DATA): New macro.
4358 (merge_allocnos, coalesced_allocno_conflict_p): Use
4359 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4360 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4361 (coalesce_allocnos): Ditto.
4362 (setup_coalesced_allocno_costs_and_nums): Ditto.
4363 (collect_spilled_coalesced_allocnos): Ditto.
4364 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4365 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4366 (coalesce_spill_slots): Ditto.
4367 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4368 free allocno_coalesce_data.
4370 * ira-conflicts.c: Fix formatting.
4371 (process_regs_for_copy): Call
4372 ira_init_register_move_cost_if_necessary. Use
4373 ira_register_move_cost instead of ira_get_register_move_cost.
4374 (build_object_conflicts): Optimize.
4376 * ira-costs.c (record_reg_classes): Optimize. Call
4377 ira_init_register_move_cost_if_necessary. Use
4378 ira_register_move_cost, ira_may_move_in_cost, and
4379 ira_may_move_out_cost instead of ira_get_register_move_cost and
4380 ira_get_may_move_cost.
4381 (record_address_regs): Ditto.
4382 (scan_one_insn): Optimize.
4383 (find_costs_and_classes): Optimize.
4384 (process_bb_node_for_hard_reg_moves): Call
4385 ira_init_register_move_cost_if_necessary. Use
4386 ira_register_move_cost instead of ira_get_register_move_cost.
4388 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4389 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4390 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4391 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4393 (ira_initiate_emit_data, ira_finish_emit_data)
4394 (create_new_allocno): New functions.
4395 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4396 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4397 Use ira_register_move_cost instead of ira_get_register_move_cost.
4399 * ira-int.h: Fix some comments.
4400 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4401 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4402 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4403 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4405 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4406 bitfield after mode. Make hard_regno a short int. Make
4407 hard_regno short. Remove first_coalesced_allocno and
4408 next_coalesced_allocno. Move mem_optimized_dest_p,
4409 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4410 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4411 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4412 temp, colorable_p. Add new member add_data.
4413 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4414 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4415 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4416 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4417 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4418 (ALLOCNO_ADD_DATA): New macro.
4419 (ira_emit_data_t): New typedef.
4420 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4421 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4422 from struct ira_allocno.
4423 (ALLOCNO_EMIT_DATA): New macro.
4424 (ira_allocno_emit_data, allocno_emit_reg): New.
4425 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4426 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4427 (OBJECT_ADD_DATA): New macro.
4428 (ira_reallocate): Remove.
4429 (ira_initiate_emit_data, ira_finish_emit_data): New.
4430 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4431 (ira_init_register_move_cost_if_necessary): New.
4432 (ira_object_conflict_iter_next): Merge into
4433 ira_object_conflict_iter_cond.
4434 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4436 * ira-live.c (process_single_reg_class_operands): Call
4437 ira_init_register_move_cost_if_necessary. Use
4438 ira_register_move_cost instead of ira_get_register_move_cost.
4440 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4442 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4444 * ira-costs.c: Fix formatting.
4445 (cost_classes, cost_classes_num): Remove.
4446 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4447 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4448 (cost_classes_del, cost_classes_htab): New.
4449 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4450 (initiate_regno_cost_classes, setup_cost_classes): New.
4451 (setup_regno_cost_classes_by_aclass): New.
4452 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4453 (record_reg_classes): Use regno_cost_classes instead of
4454 cost_classes. Move checking opposite operand up.
4455 (record_address_regs): Use regno_cost_classes
4456 instead of cost_classes.
4457 (scan_one_insn): Ditto. Use always general register.
4458 (print_allocno_costs): Use regno_cost_classes instead of
4460 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4461 (find_costs_and_classes): Set up cost classes for each registers.
4462 Use also their mode for this. Use regno_cost_classes instead of
4464 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4466 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4467 (ira_costs, ira_set_pseudo_classes): Call
4468 initiate_regno_cost_classes and finish_regno_cost_classes.
4470 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4472 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4474 * target.def (ira_cover_classes): Remove.
4476 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4478 * doc/tm.texi.in: Ditto.
4480 * ira-conflicts.c: Remove mentioning cover classes from the file.
4481 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
4482 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
4484 * targhooks.c (default_ira_cover_classes): Remove.
4486 * targhooks.h (default_ira_cover_classes): Ditto.
4488 * haifa-sched.c: Remove mentioning cover classes from the file.
4489 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4490 ira_pressure_classes and ira_pressure_classes_num instead of
4491 ira_reg_class_cover_size and ira_reg_class_cover. Use
4492 sched_regno_pressure_class instead of sched_regno_cover_class.
4493 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4494 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4496 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4497 classes from the file.
4498 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4499 (struct object_hard_regs, struct object_hard_regs_node): New.
4500 (struct ira_object): New members profitable_hard_regs,
4501 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4502 (struct ira_allocno): Rename cover_class to aclass. Rename
4503 cover_class_cost and updated_cover_class_cost to class_cost and
4504 updated_class_cost. Remove splay_removed_p and
4505 left_conflict_size. Add new members colorable_p.
4506 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4507 (ALLOCNO_COLORABLE_P): New macro.
4508 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4509 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4510 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4511 (OBJECT_...): Rename parameter C to O.
4512 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4513 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4514 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4515 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4516 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4517 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4518 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4519 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4520 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4521 x_ira_reg_class_subunion.
4522 (ira_max_memory_move_cost, ira_max_register_move_cost)
4523 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4524 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4525 (ira_important_class_nums, ira_reg_class_superunion): New macros.
4526 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4527 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4528 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4529 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4530 (ira_tune_allocno_costs_and_cover_classes): Rename to
4531 ira_tune_allocno_costs.
4532 (ira_debug_hard_regs_forest): New.
4533 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4534 (ira_object_conflict_iter_next): Fix comments.
4535 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4536 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4537 cover_class to aclass.
4538 (ira_allocate_and_accumulate_costs): Ditto.
4539 (ira_allocate_and_set_or_copy_costs): Ditto.
4541 * opts.c (decode_options): Remove ira_cover_class check.
4543 * ira-color.c: Remove mentioning cover classes from the file. Use
4544 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4545 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4546 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4547 (splay-tree.h): Remove include.
4548 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4549 before copy_freq_compare_func.
4550 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4551 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4553 (hard_regs_roots, hard_regs_node_vec): Ditto.
4554 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4555 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4556 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4557 (create_new_object_hard_regs_node): Ditto.
4558 (add_new_object_hard_regs_node_to_forest): Ditto.
4559 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4560 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4562 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4563 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4564 (remove_unused_object_hard_regs_nodes): Ditto.
4565 (enumerate_object_hard_regs_nodes): Ditto.
4566 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4567 (object_hard_regs_subnode_t): Ditto.
4568 (struct object_hard_regs_subnode): Ditto.
4569 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4570 (setup_object_hard_regs_subnode_index): Ditto.
4571 (get_object_hard_regs_subnodes_num): Ditto.
4572 (form_object_hard_regs_nodes_forest): Ditto.
4573 (finish_object_hard_regs_nodes_tree): Ditto.
4574 (finish_object_hard_regs_nodes_forest): Ditto.
4575 (allocnos_have_intersected_live_ranges_p): Rename to
4576 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4577 (pseudos_have_intersected_live_ranges_p): Rename to
4578 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4579 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4580 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4581 (update_copy_costs): Remove assert. Skip cost update if the hard
4582 reg does not belong the class.
4583 (assign_hard_reg): Process only profitable hard regs.
4584 (uncolorable_allocnos_num): Make it scalar.
4585 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4586 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4587 and ira_reg_class_max_nregs.
4588 (bucket_allocno_compare_func): Check frequency first.
4589 (sort_bucket): Add compare function as a parameter.
4590 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4591 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4592 (push_allocno_to_stack): Rewrite for checking new allocno
4594 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4595 (push_only_colorable): Pass new parameter to sort_bucket.
4596 (push_allocno_to_spill): Remove.
4597 (allocno_spill_priority_compare): Make it inline and rewrite.
4598 (splay_tree_allocate, splay_tree_free): Remove.
4599 (allocno_spill_sort_compare): New function.
4600 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4601 build and use splay tree. Choose first allocno in uncolorable
4602 allocno bucket to spill. Remove setting spill cost.
4603 (all_conflicting_hard_regs): Remove.
4604 (setup_allocno_available_regs_num): Check only profitable hard
4605 regs. Print info about hard regs nodes.
4606 (setup_allocno_left_conflicts_size): Remove.
4607 (put_allocno_into_bucket): Don't call
4608 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4609 (improve_allocation): New.
4610 (color_allocnos): Call setup_profitable_hard_regs,
4611 form_object_hard_regs_nodes_forest, improve_allocation,
4612 finish_object_hard_regs_nodes_forest. Setup spill cost.
4613 (print_loop_title): Use pressure classes.
4614 (color_allocnso): Ditto.
4615 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4616 and allocnos_for_spilling.
4617 (ira_sort_regnos_for_alter_reg): Don't setup members
4618 {first,next}_coalesced_allocno.
4619 (color): Remove allocating and freeing removed_splay_allocno_vec.
4620 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4621 prohibited_class_mode_regs.
4623 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4625 (update_allocno_pressure_excess_length): Use pressure classes.
4626 (inc_register_pressure, dec_register_pressure): Check for pressure
4628 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4629 pressure class. Use ira_reg_class_nregs instead of
4630 ira_reg_class_max_nregs.
4631 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4632 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4633 (single_reg_class): Use ira_reg_class_nregs instead of
4634 ira_reg_class_max_nregs.
4635 (process_bb_node_lives): Use pressure classes.
4637 * ira-emit.c: Remove mentioning cover classes from the file. Use
4638 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4639 (change_loop): Use pressure classes.
4640 (modify_move_list): Call ira_set_allocno_class instead of
4641 ira_set_allocno_cover_class.
4643 * ira-build.c: Remove mentioning cover classes from the file. Use
4644 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4645 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4646 ALLOCNO_UPDATED_CLASS_COST instead of
4647 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4648 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4649 (ira_create_allocno): Remove initialization of
4650 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4651 ALLOCNO_COLORABLE_P.
4652 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4653 Update conflict regs for the objects.
4654 (create_cap_allocno): Remove assert. Don't propagate
4655 ALLOCNO_AVAILABLE_REGS_NUM.
4656 (ira_free_allocno_costs): New function.
4657 (finish_allocno): Change a part of code into call of
4658 ira_free_allocno_costs.
4659 (low_pressure_loop_node_p): Use pressure classes.
4660 (object_range_compare_func): Don't compare classes.
4661 (setup_min_max_conflict_allocno_ids): Ditto.
4663 * loop-invariant.c: Remove mentioning cover classes from the file.
4664 Use ira_pressure_classes and ira_pressure_classes_num instead of
4665 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4666 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4667 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4668 Use reg_allocno_class instead of reg_cover_class.
4669 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4670 STACK_REG_COVER_CLASS.
4671 (get_regno_cover_class): Rename to get_regno_pressure_class.
4672 (move_loop_invariants): Initialize and finalize regstat.
4674 * ira.c: Remove mentioning cover classes from the file. Add
4675 comments about coloring without cover classes. Use ALLOCNO_CLASS
4676 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4677 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4678 setup_class_subset_and_memory_move_costs.
4679 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4680 (setup_cover_and_important_classes): Rename to
4681 setup_allocno_and_important_classes.
4682 (setup_class_translate_array): New.
4683 (setup_class_translate): Call it for allocno and pressure classes.
4684 (cover_class_order): Rename to allocno_class_order.
4685 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4686 of ira_class_translate.
4687 (reorder_important_classes): Set up ira_important_class_nums.
4688 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4689 (print_class_cover): Rename to print_classes. Add parameter.
4690 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4691 Print pressure classes too.
4692 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4693 setup_reg_subclasses.
4694 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4695 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4696 (setup_prohibited_class_mode_regs): Use
4697 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4698 (clarify_prohibited_class_mode_regs): New function.
4699 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4700 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4701 (ira_init_once): Initialize them.
4702 (free_register_move_costs): Process them.
4703 (ira_init): Move calls of find_reg_classes and
4704 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4705 Call clarify_prohibited_class_mode_regs.
4706 (ira_no_alloc_reg): Remove.
4707 (too_high_register_pressure_p): Use pressure classes.
4709 * sched-deps.c: Remove mentioning cover classes from the file.
4710 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4711 ira_pressure_classes and ira_pressure_classes_num instead of
4712 ira_reg_class_cover_size and ira_reg_class_cover.
4713 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4714 sched_regno_pressure_class instead of sched_regno_cover_class.
4715 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4716 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4718 * ira.h: Add 2010 to Copyright.
4719 (ira_no_alloc_reg): Remove external.
4720 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4721 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4722 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4723 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4724 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4725 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4726 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4727 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4728 x_ira_no_alloc_regs.
4729 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4730 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4731 ira_allocno_classes_num and ira_allocno_classes.
4732 (ira_class_translate): Rename to ira_allocno_class_translate.
4733 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4734 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4735 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4736 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4737 (ira_no_alloc_regs): New.
4739 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4740 classes from the file. Use ALLOCNO_CLASS instead of
4741 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4742 ALLOCNO_COVER_CLASS_COST.
4743 (regno_cover_class): Rename to regno_aclass.
4744 (record_reg_classes): Use ira_reg_class_subunion instead of
4745 ira_reg_class_union.
4746 (record_address_regs): Check overflow.
4747 (scan_one_insn): Ditto.
4748 (print_allocno_costs): Print total mem cost fore regional allocation.
4749 (print_pseudo_costs): Use REG_N_REFS.
4750 (find_costs_and_classes): Use classes intersected with them on the
4751 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4752 ira_reg_class_union. Use ira_allocno_class_translate and
4753 regno_aclass instead of ira_class_translate and regno_cover_class.
4754 Modify code for finding regno_aclass. Setup preferred classes for
4756 (setup_allocno_cover_class_and_costs): Rename to
4757 setup_allocno_class_and_costs. Use regno_aclass instead of
4758 regno_cover_class. Use ira_set_allocno_class instead of
4759 ira_set_allocno_cover_class.
4760 (init_costs, finish_costs): Use regno_aclass instead of
4762 (ira_costs): Use setup_allocno_class_and_costs instead of
4763 setup_allocno_cover_class_and_costs.
4764 (ira_tune_allocno_costs_and_cover_classes): Rename to
4765 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4766 by processing objects. Use ira_reg_class_max_nregs instead of
4767 ira_reg_class_nregs.
4769 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4771 * sched-int.h: Remove mentioning cover classes from the file.
4772 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4774 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4775 classes from the file.
4776 (struct reg_pref): Rename coverclass into allocnoclass.
4777 (reg_cover_class): Rename to reg_allocno_class.
4779 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4781 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4783 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4785 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4787 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4789 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4791 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4793 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4795 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4797 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4799 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4800 (i386_ira_cover_classes): Ditto.
4802 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4804 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4806 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4808 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4810 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4812 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4814 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4815 (mips_ira_cover_classes): Ditto.
4817 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4819 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4821 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4823 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4825 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4827 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4828 (IRA_COVER_CLASSES_VSX): Ditto.
4830 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4831 (rs6000_ira_cover_classes): Ditto.
4833 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4835 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4837 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4839 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4841 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4843 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4845 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4847 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4849 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4851 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4853 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4856 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4857 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4858 dw_fde_unlikely_section_end_label, cold_in_std_section,
4859 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4860 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4862 (output_fde): Use dw_fde_second_{begin,end} if second is
4863 true, otherwise dw_fde_{begin,end}.
4864 (output_call_frame_info): Test dw_fde_second_begin != NULL
4865 instead of dw_fde_switched_sections.
4866 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4867 fields, initialize new fields. Initialize in_std_section
4868 unconditionally from the first partition.
4869 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4870 dw_fde_second_begin is non-NULL.
4871 (dwarf2out_switch_text_section): Stop initializing removed
4872 dw_fde_struct fields, initialize new fields, initialize
4873 also dw_fde_end here. Set dw_fde_switch_cfi even when
4874 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4875 (struct var_loc_list_def): Add last_before_switch field.
4876 (arange_table, arange_table_allocated, arange_table_in_use,
4877 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4878 (size_of_aranges): Count !in_std_section and !second_in_std_section
4879 hunks in fdes, instead of looking at arange_table_in_use.
4880 (output_aranges): Add aranges_length argument, don't call
4881 size_of_aranges here. Instead of using aranges_table*
4882 emit ranges for fdes when !in_std_section resp.
4883 !second_in_std_section.
4884 (dw_loc_list): Break ranges crossing section switch.
4885 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4886 use dw_fde_second_end instead of dw_fde_end as end of last range.
4887 (gen_subprogram_die): Don't call add_arange. Use
4888 dw_fde_{begin,end} for first partition and if switched
4889 section dw_fde_second_{begin,end} for the second.
4890 (var_location_switch_text_section_1,
4891 var_location_switch_text_section): New functions.
4892 (dwarf2out_begin_function): Initialize cold_text_section even
4893 when function_section () isn't text_section.
4894 (prune_unused_types): Don't walk arange_table.
4895 (dwarf2out_finish): Don't needlessly test
4896 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4897 If info_section_emitted, call size_of_aranges and if it indicates
4898 non-empty .debug_aranges, call output_aranges with the computed
4899 size. Stop using removed dw_fde_struct fields, use
4900 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4904 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4905 create ENTRY_VALUE if incoming or address of incoming's MEM
4907 * dwarf2out.c (mem_loc_descriptor): Don't emit
4908 DW_OP_GNU_entry_value of DW_OP_fbreg.
4909 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4910 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4911 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4912 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4914 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4915 is a REG_P or MEM_P with REG_P address, compute hash directly
4916 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4917 (preserve_only_constants): Don't clear VALUES forwaring
4918 ENTRY_VALUE to some other VALUE.
4920 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4922 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4925 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4927 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4928 block before expanding the statement.
4929 (expand_gimple_stmt_1): Likewise. Set them here...
4930 (expand_gimple_stmt): ...and not here. Tidy.
4931 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4934 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4936 * Makefile.in: New rule for cprop.o.
4937 * gcse.c: Move constant/copy propagation to cprop.c.
4938 (compute_local_properties): Only handle expression tables.
4939 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4940 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4941 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4942 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4943 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4944 compute_cprop_data, find_used_regs, try_replace_reg,
4945 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4946 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4947 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4948 find_bypass_set, reg_killed_on_edge, bypass_block,
4949 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4950 execute_rtl_cprop, pass_rtl_cprop): Move to...
4951 * cprop.c: ...here. New file, constant/copy propagation for RTL
4952 moved from gcse.c to here with minor cleanups in duplicated code.
4954 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4956 * config/i386/i386.c (flag_opts): Fix a typo in
4957 -mavx256-split-unaligned-store.
4959 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4961 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4962 LIBCALL_VALUE): Remove macros.
4963 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4964 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4965 (h8300_function_value, h8300_libcall_value,
4966 h8300_function_value_regno_p): New functions.
4968 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4970 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4972 2011-03-28 Jeff Law <law@redhat.com>
4974 * tree-ssa-threadupdate.c (redirect_edges): Call
4975 create_edge_and_update_destination_phis as needed.
4976 (create_edge_and_update_destination_phis): Accept new BB argument.
4977 All callers updated.
4978 (thread_block): Do not update the profile when threading around
4979 intermediate blocks.
4980 (thread_single_edge): Likewise.
4981 (determine_bb_domination_status): If BB is not a successor of the
4982 loop header, return NONDOMINATING.
4983 (register_jump_thread): Note when we register a jump thread around
4984 an intermediate block.
4985 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4986 (thread_across_edge): Use it.
4988 2011-03-28 Tristan Gingold <gingold@adacore.com>
4990 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4991 when for_return is 2.
4993 2011-03-28 Jeff Law <law@redhat.com>
4995 * var-tracking.c (canonicalize_values_mark): Delete unused
4997 (canonicalize_values_star, set_variable_part): Likewise.
4998 (clobber_variable_part, delete_variable_part): Likewise.
5000 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5002 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5004 2011-03-28 Martin Jambor <mjambor@suse.cz>
5006 * tree-inline.c (expand_call_inline): Do not check that destination
5008 (optimize_inline_calls): Assert that destination node is analyzed.
5009 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5010 not call tree_lowering_passes.
5011 * cgraph.h (cgraph_analyze_function): Declare.
5012 * cgraphunit.c (cgraph_analyze_function): Make public.
5014 2011-03-28 Joseph Myers <joseph@codesourcery.com>
5016 * config/sparc/sparc-opts.h: New.
5017 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5018 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5019 (sparc_option_override): Store processor_type enumeration rather
5020 than string in cpu_default. Remove name and enumeration from
5021 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5022 without using sparc_select. Use target_flags_explicit instead of
5024 * config/sparc/sparc.h (enum processor_type): Move to
5026 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5027 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5028 HeaderInclude entry.
5029 (mcpu=, mtune=): Use Var and Enum.
5030 (sparc_processor_type): New Enum and EnumValue entries.
5032 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5033 Iain Sandoe <iains@gcc.gnu.org>
5036 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5038 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5040 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5041 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5042 Insert new statements at it in lieu of STMT.
5043 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5044 * tree-vect-stmts.c (vectorizable_store): Likewise.
5045 (vectorizable_load): Likewise.
5047 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
5049 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5054 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5056 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5057 unaligned 256bit load/store.
5058 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5059 (*avx_movdqu<avxmodesuffix>): Likewise.
5061 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5064 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5065 * config/pa/pa.md (iordi3): Use new predicate in expander.
5068 2011-03-27 Anatoly Sokolov <aesok@post.ru>
5070 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5071 FUNCTION_VALUE_REGNO_P): Remove macros.
5072 * config/mips/mips-protos.h (mips_function_value): Remove.
5073 * config/mips/mips.c (mips_function_value): Rename to...
5074 (mips_function_value_1): ... this. Make static. Handle receiving
5075 the function type in 'fn_decl_or_type' argument.
5076 (mips_function_value, mips_libcall_value,
5077 mips_function_value_regno_p): New function.
5078 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5079 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5081 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5083 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5084 and -mavx256-split-unaligned-store.
5085 (ix86_option_override_internal): Split 32-byte AVX unaligned
5086 load/store by default.
5087 (ix86_avx256_split_vector_move_misalign): New.
5088 (ix86_expand_vector_move_misalign): Use it.
5090 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5091 -mavx256-split-unaligned-store.
5093 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5094 256bit load/store. Generate unaligned store on misaligned memory
5096 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5098 (*avx_movdqu<avxmodesuffix>): Likewise.
5100 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5101 -mavx256-split-unaligned-store.
5103 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5106 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5109 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5111 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5112 opno arguments with an expand_operand. Use create_input_operand.
5113 (mips_prepare_builtin_target): Delete.
5114 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5116 (mips_expand_builtin_direct): Use create_output_operand and
5117 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5118 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5119 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5121 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
5123 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5125 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5127 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5129 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5130 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5131 basic blocks and call commit_edge_insertions directly.
5132 (fixup_abnormal_edges): Move from here to...
5133 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5134 on the edges and return whether some have actually been inserted.
5135 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5138 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
5140 PR rtl-optimization/48144
5141 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5142 (merge_expr_data): ... here.
5143 (av_set_intersect): Rename to av_set_code_motion_filter.
5144 Update all callers. Call merge_history_vect when an expression
5145 is found in both sets.
5146 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5148 2011-03-26 Alan Modra <amodra@gmail.com>
5150 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5151 cmodel medium addresses.
5152 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5153 64-bit gpr loads and stores.
5154 (rs6000_secondary_reload_ppc64): New function.
5155 * config/rs6000/rs6000-protos.h: Declare it.
5156 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5158 2011-03-26 Alan Modra <amodra@gmail.com>
5161 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5162 GNU Go in traceback table.
5164 2011-03-25 Richard Henderson <rth@redhat.com>
5166 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5167 if there are exactly 6 operands.
5168 (set_storage_via_setmem): Similarly.
5170 2011-03-25 Kai Tietz <ktietz@redhat.com>
5172 * collect2.c (write_c_file_stat): Handle backslash
5173 as right-hand directory separator.
5174 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5175 checking just for slash.
5176 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5177 instead of checking for trailing slash.
5178 * gcc.c (record_temp_file): Use filename_cmp instead
5180 (do_spec_1): Likewise.
5181 (replace_outfile_spec_function): Likewise.
5182 (is_directory): Use filename_ncmp instead of strncmp.
5183 (print_multilib_info): Likewise.
5184 * gcov.c (find_source): Use filename_cmp instead
5186 (make_gcov_file_name): Fix order of slash/backslash
5188 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5189 (add_standard_paths): Likewise.
5190 * mips-tfile.c (saber_stop): Handle backslash.
5191 * prefix.c (update_path): Use filename_ncmp instead of
5193 * profile.c (output_location): Use filename_cmp instead
5195 * read-md.c (handle_toplevel_file): Handle backslash.
5196 * tlink.c (frob_extension): Likewise.
5197 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5199 * tree-dump.c (dequeue_and_dump): Handle backslash.
5200 * tree.c (get_file_function_name): Likewise.
5201 * gengtype.c (read_input_list): Likewise.
5202 (get_file_realbasename): Likewise.
5203 (get_output_file_with_visibility): Use filename_cmp
5206 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5208 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5211 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5213 * fold-const.c (expr_location_or): New function.
5214 (fold_truth_not_expr): Call it.
5216 2011-03-25 Jeff Law <law@redhat.com>
5218 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5220 * c-family/c-common.c (def_fn_type): Likewise.
5221 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5222 * emit-rtl.c (gen_rtvec): Likewise.
5223 * lto/lto-lang.c (def_fn_type): Likewise.
5225 2011-03-25 Richard Guenther <rguenther@suse.de>
5227 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5228 also generate copies.
5229 (fini_copy_prop): Handle constant values properly.
5231 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5233 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5234 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5235 (hash_loc_operands, compare_loc_operands): Handle
5236 DW_OP_GNU_entry_value.
5238 2011-03-25 Kai Tietz <ktietz@redhat.com>
5240 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5241 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5242 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5243 comment and use macro TARGET_64BIT_MS_ABI instead.
5244 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5245 and change default behavior for 32-bit MS_ABI.
5246 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5247 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5249 (ix86_cfun_abi): Likewise.
5250 (ix86_maybe_switch_abi): Adjust comment.
5251 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5252 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5253 instead of checking for SYSV_ABI.
5254 (ix86_nsaved_sseregs): Likewise.
5255 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5257 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5258 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5259 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5260 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5261 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5263 2011-03-25 Richard Guenther <rguenther@suse.de>
5265 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5266 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5267 (verify_gimple): Remove.
5268 * tree-cfg.c (verify_gimple_call): Merge verification
5270 (verify_gimple_phi): Merge verification from verify_stmts.
5271 (verify_gimple_label): New function.
5272 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5273 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5274 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5275 (verify_stmts): Rename to verify_gimple_in_cfg.
5276 (verify_gimple_in_cfg): New function.
5277 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5278 * tree-ssa.c (verify_ssa): Likewise.
5279 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5281 2011-03-25 Richard Guenther <rguenther@suse.de>
5283 * passes.c (init_optimization_passes): Add FRE pass after
5286 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5287 Andrew Stubbs <ams@codesourcery.com>
5289 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5291 (arm_movdi_vfp_cortexa8): New pattern.
5292 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5293 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5294 instructions when tuning for Cortex-A8. Set attribute "arch".
5295 * config/arm/arm.md: Move include arm-tune.md up a bit.
5296 (define_attr "arch"): Add "onlya8" and "nota8" values.
5297 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5299 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5303 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5305 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5306 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5307 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5308 * passes.c (init_optimization_passes): Move
5309 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5311 2011-03-25 Kai Tietz <ktietz@redhat.com>
5313 * c-typeck.c (comptypes_internal): Replace target
5314 hook call of comp_type_attributes by version in tree.c file.
5315 * gimple.c (gimple_types_compatible_p_1): Likewise.
5316 * tree-ssa.c (useless_type_conversion_p): Likewise.
5317 * tree.c (build_type_attribute_qual_variant): Likewise.
5318 (attribute_value_equal): New static helper function.
5319 (comp_type_attributes): New function.
5320 (merge_attributes): Use attribute_value_equal for comparison.
5321 (attribute_list_contained): Likewise.
5322 * tree.h (comp_type_attributes): New prototype.
5324 2011-03-25 Richard Guenther <rguenther@suse.de>
5326 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5327 of complex types at -O0.
5328 (verify_gimple_assign_binary): Likewise.
5329 (verify_gimple_assign_ternary): Likewise.
5331 2011-03-24 Mark Wielaard <mjw@redhat.com>
5333 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5334 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5336 2011-03-24 Mark Wielaard <mjw@redhat.com>
5339 * dwarf2out.c (output_abbrev_section): Only write table when
5340 abbrev_die_table_in_use > 1.
5342 2011-02-24 Richard Henderson <rth@redhat.com>
5344 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5345 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5346 (alpha_expand_unaligned_load_words): Use extql.
5347 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5348 (emit_insxl): Handle all modes for consistency.
5350 2011-02-24 Richard Henderson <rth@redhat.com>
5352 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5353 (alpha_expand_unaligned_load): Likewise.
5354 (alpha_expand_unaligned_store): Likewise.
5355 (alpha_expand_unaligned_load_words): Likewise.
5356 (alpha_expand_unaligned_store_words): Likewise.
5357 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5358 (alpha_split_lock_test_and_set_12): Likewise.
5359 (print_operand, alpha_fold_builtin_extxx): Likewise.
5360 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5361 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5362 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5363 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5364 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5365 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5366 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5367 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5368 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5369 (extwl, extll, extql): Similarly.
5370 (inswh, inslh, insqh): Similarly.
5371 (mskbl, mskwl, mskll, mskql): Similarly.
5372 (mskwh, msklh, mskqh): Similarly.
5374 2011-02-24 Richard Henderson <rth@redhat.com>
5376 * config/alpha/alpha.md (attribute isa): Add er, ner.
5377 (attribute enabled): Handle them.
5378 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5380 2011-02-24 Richard Henderson <rth@redhat.com>
5382 * config/alpha/alpha.md (attribute isa): Add vms.
5383 (attribute enabled): Handle it.
5384 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5385 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5386 (*movtf): Rename from *movtf_internal for consistency.
5387 (*movsi): Merge with *movsi_nt_vms.
5388 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5389 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5390 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5391 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5393 2011-02-24 Richard Henderson <rth@redhat.com>
5395 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5396 (extendqisi2, extendhisi2): Likewise.
5397 (extendqidi2): Simplify BWX/non-BWX expansions.
5398 (extendhidi2): Similarly.
5400 2011-02-24 Richard Henderson <rth@redhat.com>
5402 * config/alpha/alpha.md (attribute isa): New.
5403 (attribute enabled): New.
5404 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5405 (zero_extendqisi2, zero_extendqidi2): Similarly.
5406 (zero_extendhisi2, zero_extendhidi2): Similarly.
5407 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5409 2011-02-24 Richard Henderson <rth@redhat.com>
5411 * config/alpha/predicates.md (input_operand): Revert last change;
5412 update comment to mention 32-bit VMS rather than Windows.
5414 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5416 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5417 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5418 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5419 * passes.c (init_optimization_passes): Move
5420 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5422 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5424 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5426 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5428 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5431 2011-03-24 Jakub Jelinek <jakub@redhat.com>
5434 * simplify-rtx.c (simplify_const_unary_operation): Call
5435 real_convert when changing mode class with FLOAT_EXTEND.
5437 2011-03-24 Nick Clifton <nickc@redhat.com>
5439 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5440 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5441 * config/rx/rx.c (rx_option_override): Set align_jumps,
5442 align_loops and align_labels if not set by the user.
5443 (rx_align_for_label): New function.
5444 (rx_max_skip_for_label): New function.
5445 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5446 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5447 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5448 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5449 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5451 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5453 PR rtl-optimization/48263
5454 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5455 and original commutative_p handling. Use maybe_gen_insn.
5457 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5459 * reload.c (find_reloads_subreg_address): Add address_reloaded
5460 parameter and return true there if the full address has been
5462 (find_reloads_toplev): Pass address_reloaded flag.
5463 (find_reloads_address_1): Don't use address_reloaded parameter.
5465 2011-03-24 Jeff Law <law@redhat.com>
5467 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5468 unused variable "ann".
5469 (remove_unused_locals): Likewise.
5471 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5474 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5477 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5479 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5480 for invalid symbolic addresses.
5481 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5484 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5486 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5487 the argument in calls to fold_truth_not_expr.
5489 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5491 * tree.c (record_node_allocation_statistics): New function.
5492 (make_node_stat, copy_node_stat, build_string): Call it.
5493 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5494 (build1_stat, build_omp_clause): Likewise.
5496 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5498 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5501 2011-03-24 Richard Guenther <rguenther@suse.de>
5503 PR tree-optimization/48271
5504 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5505 blocks that still exist.
5507 2011-03-24 Richard Guenther <rguenther@suse.de>
5509 PR tree-optimization/48270
5510 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5511 not free datarefs before ddrs.
5513 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5515 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5516 from the address built for a reference with variable offset.
5518 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
5521 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5522 alternatives that can be handled with movq or movabsq insn.
5523 (*movdf_internal): Disable for !TARGET_64BIT.
5524 (*movdf_internal_nointeger): Ditto.
5525 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5527 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5529 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5530 (FUNCTION_ARG_ADVANCE): Likewise.
5531 * tm.texi.in: Change references to them to hook references.
5532 * tm.texi: Regenerate.
5533 * targhooks.c (default_function_arg): Eliminate check for target macro.
5534 (default_function_incoming_arg): Likewise.
5535 (default_function_arg_advance): Likewise.
5536 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5537 (function_arg_advance): Likewise.
5538 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5540 2011-03-24 Richard Guenther <rguenther@suse.de>
5543 * tree-object-size.c (addr_object_size): Do not double-account
5544 for MEM_REF offsets.
5546 2011-03-24 Diego Novillo <dnovillo@google.com>
5548 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5549 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5550 (lto_input_data_block): Move from lto-opts.c. Make extern.
5552 (lto_input_string): Rename from input_string. Make extern.
5554 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5555 output_string_with_length.
5556 Output 0 to indicate a non-NULL string. Update all callers to
5558 (lto_output_string): Rename from output_string. Make extern.
5560 (lto_output_decl_state_streams): Make extern.
5561 (lto_output_decl_state_refs): Make extern.
5562 * lto-streamer.h (lto_input_string): Declare.
5563 (lto_input_data_block): Declare.
5564 (lto_output_string): Declare.
5565 (lto_output_string_with_length): Declare.
5566 (lto_output_decl_state_streams): Declare.
5567 (lto_output_decl_state_refs): Declare.
5569 2011-03-24 Richard Guenther <rguenther@suse.de>
5571 PR tree-optimization/46562
5572 * tree.c (build_invariant_address): New function.
5573 * tree.h (build_invariant_address): Declare.
5574 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5575 a renamed function moved ...
5576 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5577 Take valueization callback parameter.
5578 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5579 * gimple-fold.h: New file.
5580 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5581 (ccp_fold, fold_const_aggregate_ref,
5582 fold_ctor_reference, fold_nonarray_ctor_reference,
5583 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5584 get_base_constructor): Move ...
5585 * gimple-fold.c: ... here.
5586 (gimple_fold_stmt_to_constant_1): New function
5587 split out from ccp_fold. Take a valueization callback parameter.
5588 Valueize all operands.
5589 (gimple_fold_stmt_to_constant): New wrapper function.
5590 (fold_const_aggregate_ref_1): New function split out from
5591 fold_const_aggregate_ref. Take a valueization callback parameter.
5592 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5593 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5594 invariant POINTER_PLUS_EXPRs to invariant form.
5595 (vn_valueize): New function.
5596 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5597 * tree-vrp.c (vrp_valueize): New function.
5598 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5599 to fold statements to constants.
5600 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5601 function declarations.
5602 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5603 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5605 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5607 * config/h8300/predicates.md (jump_address_operand): Fix register
5610 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5612 * doc/invoke.texi (max-stores-to-sink): Document.
5613 * params.h (MAX_STORES_TO_SINK): Define.
5614 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5615 if either vectorization or if-conversion is disabled.
5616 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5617 tree-vect-data-refs.c vect_equal_offsets.
5618 (dr_equal_offsets_p): New function.
5619 (find_data_references_in_bb): Remove static.
5620 * tree-data-ref.h (find_data_references_in_bb): Declare.
5621 (dr_equal_offsets_p): Likewise.
5622 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5623 (vect_drs_dependent_in_basic_block): Update calls to
5625 (vect_check_interleaving): Likewise.
5626 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5627 (cond_if_else_store_replacement): Rename to...
5628 (cond_if_else_store_replacement_1): ... this. Change arguments and
5630 (cond_if_else_store_replacement): New function.
5631 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5632 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5634 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5637 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5638 to subtract lower bound instead of GEN_INT().
5640 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5645 * doc/extend.texi (Alignment): Move section to match order in TOC.
5646 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5647 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5649 2011-03-23 Jeff Law <law@redhat.com>
5651 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5652 before removing the edge.
5654 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5655 it may have been freed by redirect_branch_edge or
5656 redirect_edge_succ_nodup.
5658 2011-03-23 Richard Guenther <rguenther@suse.de>
5660 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5661 (check_va_list_escapes): Likewise.
5662 (check_all_va_list_escapes): Likewise.
5664 2011-03-23 Richard Guenther <rguenther@suse.de>
5666 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5667 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5668 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5669 (alias.o): Likewise.
5670 (ipa-type-escape.o): Remove.
5671 (ipa-struct-reorg.o): Likewise.
5672 (GTFILES): Remove ipa-struct-reorg.c.
5673 * alias.c: Do not include ipa-type-escape.h.
5674 * tree-ssa-alias.c: Likewise.
5675 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5676 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5677 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5678 and ipa-type-escape passes.
5679 * tree-pass.h (pass_ipa_type_escape): Remove.
5680 (pass_ipa_struct_reorg): Likewise.
5681 * ipa-struct-reorg.h: Remove.
5682 * ipa-struct-reorg.c: Likewise.
5683 * ipa-type-escape.h: Likewise.
5684 * ipa-type-escape.c: Likewise.
5685 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5686 (--param struct-reorg-cold-struct-ratio): Likewise.
5687 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5688 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5689 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5691 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5693 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5694 cpu attribute value.
5695 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5696 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5697 * config/s390/s390.c (processor_flags_table): New constant array.
5698 (s390_handle_arch_option): Remove.
5699 (s390_handle_option): Remove s390_handle_arch_option invocations
5700 and OPT_mwarn_framesize_ handling.
5701 (s390_option_override): Remove s390_handle_arch_option invocation.
5702 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5704 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5705 * config/s390/s390.opt (s390_tune, s390_arch)
5706 (march=): Replace s390_arch_option enum and values with
5707 processor_type. Set variable name to s390_arch. Set
5708 initialization value.
5709 (mtune=): Replace s390_arch_option with processor_type. Set
5710 variable name to s390_tune. Set initialization value.
5712 2011-03-23 Julian Brown <julian@codesourcery.com>
5714 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5715 accesses which are not naturally aligned.
5717 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5720 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5722 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5724 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5725 parameter from "int" to "enum insn_code".
5726 (expand_operand_type): New enum.
5727 (expand_operand): New structure.
5728 (create_expand_operand): New function.
5729 (create_fixed_operand, create_output_operand): Likewise
5730 (create_input_operand, create_convert_operand_to): Likewise.
5731 (create_convert_operand_from, create_address_operand): Likewise.
5732 (create_integer_operand): Likewise.
5733 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5734 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5735 (expand_insn, expand_jump_insn): Likewise.
5736 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5737 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5738 (expand_movstr, expand_builtin___clear_cache): Likewise.
5739 (expand_builtin_lock_release): Likewise.
5740 * explow.c (allocate_dynamic_stack_space): Likewise.
5741 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5742 and use the default handling in that case.
5743 * expmed.c (check_predicate_volatile_ok): Delete.
5744 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5745 (emit_cstore): Likewise.
5746 * expr.c (emit_block_move_via_movmem): Likewise.
5747 (set_storage_via_setmem, expand_assignment): Likewise.
5748 (emit_storent_insn, try_casesi): Likewise.
5749 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5750 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5751 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5752 (expand_twoval_unop, expand_twoval_binop): Likewise.
5753 (expand_unop_direct, emit_indirect_jump): Likewise.
5754 (emit_conditional_move, vector_compare_rtx): Likewise.
5755 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5756 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5757 (expand_sync_lock_test_and_set): Likewise.
5758 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5759 (emit_unop_insn): Likewise.
5760 (expand_copysign_absneg): Change icode to an insn_code.
5761 (create_convert_operand_from_type): New function.
5762 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5763 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5764 (expand_insn, expand_jump_insn): Likewise.
5765 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5766 than const_int_operand for operand 2.
5768 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5770 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5773 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5775 * emit-rtl.c (emit_pattern_before_noloc): New function.
5776 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5777 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5778 (emit_pattern_after_noloc): New function.
5779 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5780 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5782 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5784 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5785 (__ffsDI2): Likewise.
5787 2011-03-22 Richard Henderson <rth@redhat.com>
5789 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5790 of !TARGET_ABI_OPEN_VMS.
5791 (alpha_trampoline_init, alpha_start_function): Likewise.
5792 (alpha_expand_epilogue, alpha_file_start): Likewise.
5793 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5794 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5795 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5796 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5797 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5799 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5801 * config/s390/s390-opts.h: New.
5802 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5803 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5804 s390_stack_guard): Remove.
5805 (s390_handle_arch_option): Return void. Take enum
5806 s390_arch_option value instead of string and searching array.
5807 (s390_handle_option): Don't assert that global structures are in
5808 use. Access variables via opts pointer. Use error_at. Don't use
5809 sscanf for -mstack-guard= or -mstack-size=. Update call to
5810 s390_handle_arch_option.
5811 (s390_option_override): Update call to s390_handle_arch_option.
5812 (s390_emit_prologue): Use %d format for s390_stack_size in
5813 diagnostic. Use %wd for HOST_WIDE_INT.
5814 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5815 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5816 * config/s390/s390.opt (config/s390/s390-opts.h): New
5817 HeaderInclude entry.
5818 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5819 s390_arch_flags, s390_warn_framesize): New Variable entries.
5820 (s390_arch_option): New Enum and EnumValue entries.
5821 (march=): Use Enum instead of Var.
5822 (mstack-guard=, mstack-size=): Use UInteger and Var.
5825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5827 * config/score/score.c (score_handle_option): Don't assert that
5828 global structures are in use. Access target_flags via opts
5829 pointer. Use value of -march= option to determine target_flags
5831 * config/score/score.opt (march=): Use Enum.
5832 (score_arch): New Enum and EnumValue entries.
5834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5836 * config/mep/mep.c (option_mtiny_specified): Remove.
5837 (mep_option_override): Move register handling for -mivc2 from
5838 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5839 instead of option_mtiny_specified.
5840 (mep_handle_option): Access target_flags via opts pointer. Don't
5841 assert that global structures are in use. Defer part of -mivc2
5842 handling and move it to mep_option_override.
5843 * config/mep/mep.opt (IVC2): New Mask entry.
5844 (mivc2): Use Var and Defer instead of Mask.
5846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5848 * config/v850/v850-opts.h: New.
5849 * config/v850/v850.c (small_memory): Replace with
5850 small_memory_physical_max array. Make that array static const.
5851 (v850_handle_memory_option): Take integer value of argument. Take
5852 gcc_options pointer, option text and location. Return void.
5853 Update for changes to small memory structures.
5854 (v850_handle_option): Access target_flags via opts pointer. Don't
5855 assert that global structures are in use. Update calls to
5856 v850_handle_memory_option.
5857 (v850_encode_data_area): Update references to small memory settings.
5858 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5859 (enum small_memory_type): Move to v850-opts.h.
5860 * config/v850/v850.opt (config/v850/v850-opts.h): New
5861 HeaderInclude entry.
5862 (small_memory_max): New Variable entry.
5863 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5864 (mtda, mzda): Likewise.
5866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5868 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5869 pointer. Don't assert that global structures are in use.
5871 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5873 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5874 via opts pointer. Don't assert that global structures are in use.
5876 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5878 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5879 (munix=93): Use Var.
5880 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5881 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5882 * config/pa/pa-opts.h: New.
5883 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5884 (pa_handle_option): Don't assert that global structures are in
5885 use. Access target_flags via opts pointer. Don't handle
5886 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5888 (pa_option_override): Handle deferred OPT_mfixed_range_.
5890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5892 * config/mn10300/mn10300-opts.h: New.
5893 * config/mn10300/mn10300.c (mn10300_processor,
5894 mn10300_tune_string): Remove.
5895 (mn10300_handle_option): Don't assert that global structures are
5896 in use. Access mn10300_processor via opts pointer. Don't handle
5898 * config/mn10300/mn10300.h (enum processor_type): Move to
5900 (mn10300_processor): Remove.
5901 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5902 HeaderInclude entry.
5903 (mn10300_processor): New Variable entry.
5906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5908 * config/microblaze/microblaze.c: Don't include opts.h.
5909 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5910 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5911 (mno-clearbss): Use Var and Warn.
5913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5915 * config/m32r/m32r-opts.h: New.
5916 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5917 (m32r_handle_option): Don't assert that global structures are in
5918 use. Access target_flags and m32r_cache_flush_func via opts
5919 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5920 OPT_mno_flush_trap here.
5921 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5922 include of m32r-opts.h.
5923 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5924 HeaderInclude entry.
5925 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5926 (mmodel=): Use Enum and Var.
5927 (m32r_model): New Enum and EnumValue entries.
5928 (mno-flush-trap): Use Var.
5929 (msdata=): Use Enum and Var.
5930 (m32r_sdata): New Enum and EnumValue entries.
5932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5934 * config/m32c/m32c.c: Don't include opts.h.
5935 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5936 m32c_handle_option): Remove.
5937 (m32c_option_override): Check global_options_set.x_target_memregs
5938 instead of target_memregs_set.
5939 * config/m32c/m32c.h (target_memregs): Remove.
5940 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5943 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5945 * config/iq2000/iq2000-opts.h: New.
5946 * config/iq2000/iq2000.c: Don't include opts.h.
5947 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5948 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5949 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5950 HeaderInclude entry.
5951 (iq2000_tune): New Variable entry.
5952 (march=): Add comment. Use Enum.
5953 (iq2000_arch): New Enum and EnumValue entries.
5954 (mcpu=): Use Enum and Var.
5955 (iq2000_tune): New Enum and EnumValue entries.
5957 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5959 * config/ia64/ia64-opts.h: New.
5960 * config/ia64/ia64.c (ia64_tune): Remove.
5961 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5963 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5964 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5965 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5966 HeaderInclude entry.
5967 (ia64_tune): New Variable entry.
5968 (mfixed-range=): Use Defer and Var.
5969 (mtune=): Use Enum and Var.
5970 (ia64_tune): New Enum and EnumValue entries.
5972 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5974 * config/frv/frv-opts.h: New.
5975 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5977 (frv_cpu_type): Remove.
5978 * config/frv/frv.c: Don't include opts.h.
5979 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5980 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5981 (frv_cpu_type): New Variable entry.
5982 (frv_cpu): New Enum and EnumValue entries.
5984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5986 * config/cris/cris.c (cris_handle_option): Access target_flags via
5987 opts pointer. Don't assert that global structures are in use.
5988 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5989 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5993 * config/bfin/bfin-opts.h: New.
5994 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5995 bfin_si_revision, bfin_workarounds): Remove.
5996 (bfin_cpus): Make static const.
5997 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5998 not bfin_lib_id_given.
5999 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6000 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6001 pointer. Use error_at. Don't assert that global structures are in use.
6002 * config/bfin/bfin.h: Include bfin-opts.h.
6003 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6004 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6005 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6006 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6011 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6012 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6013 or -msoft-float here.
6014 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6015 -msoft-float and -mhard-float.
6016 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6017 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6019 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6021 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6022 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6024 (LIBGCC_SPEC): Don't handle -msoft-float.
6025 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6027 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6029 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6030 -mfloat-abi=*, not -msoft-float and -mhard-float.
6031 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6033 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6034 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6035 mhard-float and msoft-float.
6036 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6037 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6038 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6039 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6041 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6042 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6044 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6046 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6049 2011-03-22 Richard Henderson <rth@redhat.com>
6051 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6052 TARGET_ABI_WINDOWS_NT.
6053 (alpha_output_function_end_prologue): Likewise.
6054 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6055 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6056 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6057 (trap, *movsi_nt_vms): Likewise.
6058 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6059 (*tablejump_osf_nt_internal): Remove.
6060 * config/alpha/predicates.md (input_operand): Only test Pmode.
6062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6064 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6065 via opts pointer. Use error_at. Don't assert that global
6066 structures are in use.
6068 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6070 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6071 (ix86_handle_option): Access ix86_isa_flags and
6072 ix86_isa_flags_explicit via opts pointer. Don't assert that
6073 global structures are in use.
6074 (ix86_function_specific_save, ix86_function_specific_restore):
6075 Update ix86_isa_flags_explicit field name.
6076 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6077 (ix86_isa_flags_explicit): Rename TargetSave entry to
6078 x_ix86_isa_flags_explicit.
6080 2011-03-22 Richard Henderson <rth@redhat.com>
6082 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6083 (alpha_option_override, direct_return): Likewise.
6084 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6085 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6086 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6087 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6088 (alpha_expand_epilogue, alpha_end_function): Likewise.
6089 (alpha_init_libfuncs): Likewise.
6090 (struct machine_function): Remove unicosmk members.
6091 (print_operand) ['t']: Remove.
6092 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6093 unicosmk_output_module_name, unicosmk_output_common,
6094 current_section_align, unicosmk_output_text_section_asm_op,
6095 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6096 unicosmk_section_type_flags, unicosmk_unique_section,
6097 unicosmk_asm_named_section, unicosmk_insert_attributes,
6098 unicosmk_output_align, unicosmk_defer_case_vector,
6099 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6100 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6101 unicosmk_output_ssib, unicosmk_add_call_info_word,
6102 unicosmk_extern_head, unicosmk_output_default_externs,
6103 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6104 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6105 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6106 * config/alpha/alpha-protos.h: Update.
6107 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6108 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6109 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6110 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6111 (*mulsi_se, mulvsi3): Likewise.
6112 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6113 (*divmodsi_internal, call, call_value, realign): Likewise.
6114 (moddi3, umoddi3): Likewise; remove duplicate expander.
6115 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6116 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6117 (*movdi_nofix): Remove r/U alternative.
6118 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6119 * config/alpha/constraints.md ("U"): Remove.
6120 * config/alpha/predicates.md (call_operand"): Don't test
6121 TARGET_ABI_UNICOSMK.
6123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6125 * target.def (handle_option): Take gcc_options and
6126 cl_decoded_option pointers and location_t.
6127 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6128 * doc/tm.texi: Regenerate.
6129 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6130 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6131 * lto-opts.c (lto_reissue_options): Generate option structure for
6132 targetm.handle_option call.
6133 * opts.c (target_handle_option): Update call to
6134 targetm.handle_option. Remove assertions about values now passed
6136 * targhooks.c (default_target_handle_option): New.
6137 * targhooks.h (default_target_handle_option): Declare.
6138 * config/alpha/alpha.c: Include opts.h.
6139 (alpha_handle_option): Update to new hook interface.
6140 * config/arm/arm.c: Include opts.h.
6141 (arm_handle_option): Update to new hook interface.
6142 * config/arm/t-arm (arm.o): Update dependencies.
6143 * config/bfin/bfin.c: Include opts.h.
6144 (bfin_handle_option): Update to new hook interface.
6145 * config/cris/cris.c: Include opts.h.
6146 (cris_handle_option): Update to new hook interface.
6147 * config/frv/frv.c: Include opts.h.
6148 (frv_handle_option): Update to new hook interface.
6149 * config/i386/i386.c: Include opts.h.
6150 (ix86_handle_option): Update to new hook interface.
6151 (ix86_valid_target_attribute_inner_p): Generate option structure
6152 for call to ix86_handle_option.
6153 * config/i386/t-i386 (i386.o): Update dependencies.
6154 * config/ia64/ia64.c: Include opts.h.
6155 (ia64_handle_option): Update to new hook interface.
6156 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6157 * config/iq2000/iq2000.c: Include opts.h.
6158 (iq2000_handle_option): Update to new hook interface.
6159 * config/m32c/m32c.c: Include opts.h.
6160 (m32c_handle_option): Update to new hook interface.
6161 * config/m32r/m32r.c: Include opts.h.
6162 (m32r_handle_option): Update to new hook interface.
6163 * config/m68k/m68k.c: Include opts.h.
6164 (m68k_handle_option): Update to new hook interface.
6165 * config/mep/mep.c: Include opts.h.
6166 (mep_handle_option): Update to new hook interface.
6167 * config/microblaze/microblaze.c: Include opts.h.
6168 (microblaze_handle_option): Update to new hook interface.
6169 * config/mips/mips.c: Include opts.h.
6170 (mips_handle_option): Update to new hook interface.
6171 * config/mn10300/mn10300.c: Include opts.h.
6172 (mn10300_handle_option): Update to new hook interface.
6173 * config/pa/pa.c: Include opts.h.
6174 (pa_handle_option): Update to new hook interface.
6175 * config/pdp11/pdp11.c: Include opts.h.
6176 (pdp11_handle_option): Update to new hook interface.
6177 * config/rs6000/rs6000.c: Include opts.h.
6178 (rs6000_handle_option): Update to new hook interface.
6179 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6180 * config/rx/rx.c: Include opts.h.
6181 (rx_handle_option): Update to new hook interface.
6182 * config/s390/s390.c: Include opts.h.
6183 (s390_handle_option): Update to new hook interface.
6184 * config/score/score.c: Include opts.h.
6185 (score_handle_option): Update to new hook interface.
6186 * config/sh/sh.c: Include opts.h.
6187 (sh_handle_option): Update to new hook interface.
6188 * config/sparc/sparc.c: Include opts.h.
6189 (sparc_handle_option): Update to new hook interface.
6190 * config/v850/v850.c: Include opts.h.
6191 (v850_handle_option): Update to new hook interface.
6193 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6195 * gcc.c (driver_unknown_option_callback): Only permit and save
6196 unknown -Wno- options.
6197 (driver_wrong_lang_callback): Save options directly instead of via
6198 driver_unknown_option_callback.
6200 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6202 * combine.c (simplify_set): Try harder to find the best CC mode when
6203 simplifying a nested COMPARE on the RHS.
6205 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6207 * config/alpha/gnu.h: Remove.
6208 * config/arc: Remove directory.
6209 * config/arm/netbsd.h: Remove.
6210 * config/arm/t-pe: Remove.
6211 * config/crx: Remove directory.
6212 * config/i386/netbsd.h: Remove.
6213 * config/m68hc11: Remove directory.
6214 * config/m68k/uclinux-oldabi.h: Remove.
6215 * config/mcore/mcore-pe.h: Remove.
6216 * config/mcore/t-mcore-pe: Remove.
6217 * config/netbsd-aout.h: Remove.
6218 * config/rs6000/gnu.h: Remove.
6219 * config/sh/sh-symbian.h: Remove.
6220 * config/sh/symbian-base.c: Remove.
6221 * config/sh/symbian-c.c: Remove.
6222 * config/sh/symbian-cxx.c: Remove.
6223 * config/sh/symbian-post.h: Remove.
6224 * config/sh/symbian-pre.h: Remove.
6225 * config/sh/t-symbian: Remove.
6226 * config/svr3.h: Remove.
6227 * config/vax/netbsd.h: Remove.
6228 * config.build: Don't handle i[34567]86-*-pe.
6229 * config.gcc: Remove handling of deprecations for most deprecated
6231 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6232 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6233 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6234 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6235 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6236 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6238 * config.host: Don't handle i[34567]86-*-pe.
6239 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6240 (ASM_SPEC32): Don't handle -mcall-gnu.
6241 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6243 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6244 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6245 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6246 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6247 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6248 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6249 conditional on SYMBIAN.
6250 * configure.ac: Don't handle powerpc*-*-gnu*.
6251 * configure: Regenerate.
6252 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6253 * doc/install-old.texi (m6811, m6812): Don't mention.
6254 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6255 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6256 (m68k-uclinuxoldabi): Don't mention.
6257 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6259 (-mcall-gnu): Remove.
6260 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6261 families): Remove constraint documentation.
6263 2011-03-22 Marius Strobl <marius@FreeBSD.org>
6265 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6266 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6267 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6269 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
6271 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6272 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6273 * config/avr/avr.c (init_cumulative_args)
6274 (avr_function_arg_advance): Use it.
6275 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6277 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6278 (avr_function_ok_for_sibcall): ...this new function.
6279 (avr_lookup_function_attribute1): New static Function.
6280 (avr_naked_function_p, interrupt_function_p)
6281 (signal_function_p, avr_OS_task_function_p)
6282 (avr_OS_main_function_p): Use it.
6283 * config/avr/avr.md ("sibcall", "sibcall_value")
6284 ("sibcall_epilogue"): New expander.
6285 ("*call_insn", "*call_value_insn"): New insn.
6286 ("call_insn", "call_value_insn"): Remove
6287 ("call", "call_value", "epilogue"): Change expander to handle
6290 2011-03-21 Nick Clifton <nickc@redhat.com>
6292 * doc/invoke.texi (Overall Options): Move closing brace to end of
6294 (Optimization Options): Add missing @gol.
6295 (Directory Options): Likewise.
6296 (i386 and x86-64 Options): Likewise.
6297 (RS6000 and PowerPC Options): Likewise.
6298 (i386 and x86-64 Windows Options): Likewise.
6299 (V850 Options): Add text missing from descriptions.
6301 2011-03-22 Richard Henderson <rth@redhat.com>
6303 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6304 (avr_incoming_return_addr_rtx): New.
6305 (emit_push_byte): New.
6306 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6307 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6308 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6309 (emit_pop_byte): New.
6310 (expand_epilogue): Use it. Pop frame pointer by bytes.
6311 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6312 (INCOMING_RETURN_ADDR_RTX): New.
6313 (INCOMING_FRAME_SP_OFFSET): New.
6314 (ARG_POINTER_CFA_OFFSET): New.
6315 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6316 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6319 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6321 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6323 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6324 (FUNCTION_ARG_ADVANCE): Likewise.
6325 * tm.texi.in: Change references to them to hook references.
6326 * tm.texi: Regenerate.
6327 * targhooks.c (default_function_arg): Eliminate check for target
6329 (default_function_incoming_arg): Likewise.
6330 (default_function_arg_advance): Likewise.
6331 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6332 (function_arg_advance): Likewise.
6333 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6335 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6337 * tree.c (build_call_1): New function.
6338 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6340 2011-03-22 Richard Guenther <rguenther@suse.de>
6342 PR tree-optimization/48228
6343 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6344 for single-arg PHIs.
6346 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
6348 PR rtl-optimization/48143
6349 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6350 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6351 sse2_cvtps2pd): Likewise.
6353 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6355 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6357 2011-03-22 Richard Guenther <rguenther@suse.de>
6359 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6360 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6361 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6362 and REALIGN_LOAD_EXPR.
6363 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6364 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6365 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6366 DOT_PROD_EXPR case ...
6367 (expand_expr_real_2): ... here.
6368 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6369 and REALIGN_LOAD_EXPR.
6370 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6371 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6372 (vect_create_epilog_for_reduction): Likewise.
6373 (vectorizable_reduction): Likewise.
6374 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6375 * tree-vect-stmts.c (vectorizable_load): Likewise.
6377 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6379 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6381 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6383 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6384 handling for PLTOFF/GOTOFF.
6386 2011-03-22 Nick Clifton <nickc@redhat.com>
6388 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6389 trailing backslash from the end of the macro definition.
6391 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6393 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6396 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6398 * expr.h (prepare_operand): Move to...
6399 * optabs.h (prepare_operand): ...here and change the insn code
6400 parameter from "int" to "enum insn_code".
6401 (insn_operand_matches): Declare.
6402 * expr.c (init_expr_target): Use insn_operand_matches.
6403 (compress_float_constant): Likewise.
6404 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6405 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6406 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6407 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6409 (gen_cond_trap): Likewise.
6410 (prepare_operand): Likewise. Change icode to an insn_code.
6411 (insn_operand_matches): New function.
6412 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6413 * reload1.c (gen_reload): Likewise.
6414 * targhooks.c (default_secondary_reload): Likewise.
6416 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6418 * config/alpha/alpha.md (unspec): New define_c_enum.
6421 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
6424 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6425 between a call and its CALL_ARG_LOCATION note.
6427 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6429 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6431 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6435 * c-common.c (shorten_compare): If primopN is first sign-extended
6436 to opN and then zero-extended to result type, set primopN to opN.
6438 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6440 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6441 for barrier handlers.
6443 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6445 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6446 UNSPEC constants to be in the unspec enumeration, and redefine
6447 all UNSPECV constants to be in the unspecv enumeration, so that
6448 dumps print which unspec/unspec_volatile this is.
6449 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6450 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6451 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6452 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6453 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6455 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6456 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6457 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6458 * config/rs6000/sync.md (isync, lwsync): Ditto.
6460 2011-03-21 Richard Guenther <rguenther@suse.de>
6462 * params.def (lto-min-partition): Fix typo.
6464 2011-03-21 Richard Guenther <rguenther@suse.de>
6467 * c-decl.c (grokdeclarator): Drop to the main variant only
6468 for array types. Drop flag_gen_aux_info check.
6470 2011-03-21 Richard Guenther <rguenther@suse.de>
6472 PR translation/47911
6473 * params.def (lto-partitions): Fix typo.
6474 (lto-min-partition): Fix wording.
6476 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
6478 * config/rs6000/t-freebsd: Remove duplication from file.
6480 2011-03-21 Richard Guenther <rguenther@suse.de>
6483 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6485 2011-03-21 Richard Guenther <rguenther@suse.de>
6488 * params.def (lto-partitions): Require at least 1 partition.
6490 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6492 * gthr-solaris.h: Remove.
6493 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6494 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6495 (LIB_SPEC): Likewise.
6496 * config/sol2.opt (threads): Remove.
6497 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6498 (sparc*-*-solaris2*): Likewise.
6499 * configure.ac (enable_threads): Enable solaris support.
6500 * configure: Regenerate.
6501 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6502 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6505 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6507 * config.gcc: Obsolete *-*-solaris2.8*.
6508 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6510 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6513 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6514 reference. Solaris 8 perl works.
6516 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6519 * doc/install.texi (Prerequisites): Move jar etc. up.
6520 Explain support library version requirements.
6522 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6525 * doc/install.texi (Prerequisites): Move Perl to build
6526 requirements. Always necessary on Solaris 2 with Sun ld.
6528 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6530 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6532 (Specific, i?86-*-solaris2.[89]): Likewise.
6533 (Specific, i?86-*-solaris2.10): Likewise.
6534 (Specific, mips-sgi-irix6): Likewise.
6535 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6536 Update for binutils 2.21.
6538 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6540 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6541 Allow -fuse-linker-plugin for non-default plugin linker.
6542 * configure: Regenerate.
6544 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6547 * gengtype.c (files_rules): Added rule for cp/parser.h.
6549 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6552 * config/s390/s390.c (s390_delegitimize_address): Don't call
6553 lowpart_subreg if orig_x has BLKmode.
6555 2011-03-21 Kai Tietz <ktietz@redhat.com>
6558 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6559 * tree.h (attribute_spec): Add new member affects_type_identity.
6560 * attribs.c (empty_attribute_table): Adjust attribute_spec
6562 * config/alpha/alpha.c: Likewise.
6563 * config/arc/arc.c: Likewise.
6564 * config/arm/arm.c: Likewise.
6565 * config/avr/avr.c: Likewise.
6566 * config/bfin/bfin.c: Likewise.
6567 * config/crx/crx.c: Likewise.
6568 * config/darwin.h: Likewise.
6569 * config/h8300/h8300.c: Likewise.
6570 * config/i386/cygming.h: Likewise.
6571 * config/i386/i386.c: Likewise.
6572 * config/ia64/ia64.c: Likewise.
6573 * config/m32c/m32c.c: Likewise.
6574 * config/m32r/m32r.c: Likewise.
6575 * config/m68hc11/m68hc11.c: Likewise.
6576 * config/m68k/m68k.c: Likewise.
6577 * config/mcore/mcore.c: Likewise.
6578 * config/mep/mep.c: Likewise.
6579 * config/microblaze/microblaze.c: Likewise.
6580 * config/mips/mips.c: Likewise.
6581 * config/rs6000/rs6000.c: Likewise.
6582 * config/rx/rx.c: Likewise.
6583 * config/sh/sh.c: Likewise.
6584 * config/sol2.h: Likewise.
6585 * config/sparc/sparc.c: Likewise.
6586 * config/spu/spu.c: Likewise.
6587 * config/stormy16/stormy16.c: Likewise.
6588 * config/v850/v850.c: Likewise.
6590 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6592 * simplify-rtx.c (simplify_binary_operation_1): Handle
6593 (xor (and A B) C) case when B and C are both constants.
6595 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6597 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6599 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6602 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6604 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6606 PR rtl-optimization/48156
6607 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6608 assume df and df_lr are not NULL.
6610 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6613 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6614 between a call and its CALL_ARG_LOCATION note.
6616 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6619 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6620 between a call and its corresponding CALL_ARG_LOCATION note.
6622 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6624 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6625 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6626 * haifa-sched.c (setup_ref_regs): Ditto.
6627 * caller-save.c (add_used_regs_1): Ditto.
6628 * dse.c (look_for_hardregs): Ditto.
6629 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6630 * sched-rgn.c (check_live_1): Ditto.
6632 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6634 * c-decl.c (diagnose_mismatched_decls): Give an error for
6635 redefining a typedef with variably modified type.
6637 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6639 * c-decl.c (grokfield): Don't allow typedefs for structures or
6640 unions with no tag by default.
6641 * doc/extend.texi (Unnamed Fields): Update.
6643 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6645 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6646 Rewrite using indirect functions.
6647 (lwp_slwpcb): Ditto.
6648 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6649 (avx_vinsertf128<mode>): Ditto.
6651 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6653 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6656 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6658 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6659 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6661 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6663 PR rtl-optimization/48170
6664 * gcse.c (hoist_code): Remove bogus asserts.
6666 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6668 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6669 computation for prologue/epilogue.
6671 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6673 * Makefile.in (check-consistency): Remove.
6675 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6678 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6679 arange_table_in_use is 0, but either text_section_used or
6680 cold_text_section_used is true. Don't call it if
6681 !info_section_emitted.
6683 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6685 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6686 FUNCTION_VALUE_REGNO_P): Remove.
6687 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6689 * config/avr/avr.c (avr_ret_register): Make static inline.
6690 (avr_function_value_regno_p): New function.
6691 (avr_libcall_value): Make static. Add 'func' argument.
6692 (avr_function_value): Make static. Rename 'func' argument to
6693 'fn_decl_or_type', forward it to avr_libcall_value. Call
6694 avr_ret_register function instead of RET_REGISTER macro.
6695 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6697 2011-03-18 Jason Merrill <jason@redhat.com>
6700 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6702 2011-03-18 Richard Guenther <rguenther@suse.de>
6704 * doc/install.texi (--enable-gold): Remove.
6705 (--with-plugin-ld): Document.
6706 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6708 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6711 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6712 again after expansion changes.
6714 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6716 * combine.c (try_combine): Do simplification only call of
6717 subst() on i2 even when i1 is present. Update comments.
6719 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6721 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6722 and UNSPEC_PCREL_SYMOFF.
6724 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6726 * config/s390/s390.md: Use define_c_enum for the unspec constant
6729 2011-03-18 Richard Henderson <rth@redhat.com>
6730 Jakub Jelinek <jakub@redhat.com>
6733 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6734 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6736 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6739 * combine.c (cant_combine_insn_p): Don't check zero/sign
6740 extended hard registers.
6742 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6745 * combine.c (cant_combine_insn_p): Check zero/sign extended
6748 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6750 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6751 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6752 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6753 Change return type to bool.
6754 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6756 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6759 * var-tracking.c (prepare_call_arguments): If CALL target
6760 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6761 pc instead of looking it up using cselib_lookup and use
6762 Pmode for it if x has VOIDmode.
6763 * dwarf2out.c (gen_subprogram_die): If also both first and
6764 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6767 * function.c (assign_parms): For data.passed_pointer parms
6768 use MEM of data.entry_parm instead of data.entry_parm itself
6769 as DECL_INCOMING_RTL.
6770 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6771 also when passed and declared mode is the same, DECL_RTL
6772 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6775 2011-03-16 Jeff Law <law@redhat.com>
6777 PR rtl-optimization/37273
6778 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6779 handle them like argument loads from stack slots. Do not double
6780 count memory for memory constants and argument loads from stack slots.
6782 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6785 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6787 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6790 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6792 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6795 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6797 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6798 Clear call_arg_locations and call_arg_loc_last always.
6801 * var-tracking.c (prepare_call_arguments): If argument needs to be
6802 passed by reference, adjust argtype and mode.
6804 2011-03-17 Richard Guenther <rguenther@suse.de>
6807 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6808 a value make sure to fold the statement.
6810 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6813 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6814 return condition with !cfun->calls_alloca.
6816 2011-03-17 Richard Guenther <rguenther@suse.de>
6819 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6820 origin for decls in other ltrans units.
6821 (input_varpool_node): Likewise.
6823 2011-03-17 Richard Guenther <rguenther@suse.de>
6826 * tree-object-size.c (compute_object_offset): Properly return
6827 the offset operand of MEM_REFs as sizetype.
6829 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6831 PR rtl-optimization/48141
6832 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6833 * dse.c: Include params.h.
6834 (active_local_stores_len): New variable.
6835 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6837 (record_store, check_mem_read_rtx): Decrease it when removing
6839 (scan_insn): Likewise. Increase it when adding to chain, if it
6840 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6841 set active_local_stores to NULL before the addition.
6842 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6844 PR rtl-optimization/48141
6845 * dse.c (record_store): If no positions are needed in an insn
6846 that cannot be deleted, at least unchain it from active_local_stores.
6848 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6851 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6852 (lookup_type_die_strip_naming_typedef): ... here.
6853 (get_context_die): Use it.
6854 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6855 the anonymous struct named by the naming typedef.
6857 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6860 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6861 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6863 2011-03-16 Jeff Law <law@redhat.com>
6865 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6866 check for operands of conditional. Allow type to be a pointer.
6868 2011-03-16 Richard Guenther <rguenther@suse.de>
6870 PR tree-optimization/48149
6871 * fold-const.c (fold_binary_loc): Fold
6872 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6874 2011-03-16 Richard Guenther <rguenther@suse.de>
6876 PR tree-optimization/26134
6877 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6878 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6879 (non_rewritable_mem_ref_base): Handle complex type component
6880 accesses, constrain offsets for vector and complex extracts
6883 2011-03-16 Richard Guenther <rguenther@suse.de>
6885 PR tree-optimization/48146
6886 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6887 operands avoiding the need for renaming.
6889 2011-03-16 Richard Guenther <rguenther@suse.de>
6891 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6892 constant folding. Move MEM_REF canonicalization first.
6893 Rely on fold_const_aggregate_ref for initializer folding.
6894 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6896 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6899 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6900 arg0/arg1 or their arguments are always fold converted to matching
6903 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6906 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6909 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6910 Handle in-tree gold.
6911 (ld_vers): Extract binutils version for gold.
6912 (gcc_cv_ld_hidden): Handle gold here.
6913 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6914 * configure: Regenerate.
6915 * config.in: Regenerate.
6916 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6917 -fuse-linker-plugin otherwise.
6918 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6919 (LINK_COMMAND_SPEC): Use it.
6920 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6922 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6924 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6925 * calls.c: Remove debug.h include.
6926 (emit_call_1): Don't call virtual_call_token debug hook.
6927 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6928 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6929 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6930 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6931 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6932 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6933 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6934 dwarf2out_virtual_call): Remove.
6935 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6936 copy_call_info and virtual_call hooks.
6937 (dwarf2out_init): Don't initialize vcall_insn_table,
6938 debug_dcall_section and debug_vcall_section.
6939 (prune_unused_types): Don't mark nodes from dcall_table.
6940 (dwarf2out_finish): Don't output dcall or vcall tables.
6941 * final.c (final_scan_insn): Don't call direct_call or
6942 virtual_call debug hooks.
6943 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6944 virtual_call_token, copy_call_info and virtual_call hooks.
6945 (debug_nothing_uid): Remove prototype.
6946 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6947 copy_call_info and virtual_call hooks.
6948 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6949 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6950 * debug.c (do_nothing_debug_hooks): Likewise.
6951 (debug_nothing_uid): Remove.
6952 * doc/invoke.texi (-fenable-icf-debug): Remove.
6953 * common.opt (-fenable-icf-debug): Likewise.
6955 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6956 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6957 call's MEM. Handle functions returning aggregate through a hidden
6958 first pointer. For virtual calls add clobbered pc to call arguments
6960 * dwarf2out.c (gen_subprogram_die): Emit
6961 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6965 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6966 * rtl.h (ENTRY_VALUE_EXP): Define.
6967 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6968 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6969 * print-rtl.c (print_rtx): Likewise.
6970 * gengtype.c (adjust_field_rtx_def): Likewise.
6971 * var-tracking.c (vt_add_function_parameter): Adjust
6972 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6973 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6974 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6975 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6976 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6978 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6979 Call var_location debug hook even on CALL_INSNs.
6980 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6981 * rtl.def (ENTRY_VALUE): New.
6982 * dwarf2out.c: Include cfglayout.h.
6983 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6984 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6985 (struct call_arg_loc_node): New type.
6986 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6987 tail_call_site_count): New variables.
6988 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6989 DW_TAG_GNU_call_site_parameter.
6990 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6991 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6992 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6993 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6994 and DW_AT_GNU_all_source_call_sites.
6995 (mem_loc_descriptor): Handle ENTRY_VALUE.
6996 (add_src_coords_attributes): Don't add enything if
6997 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6998 (dwarf2out_abstract_function): Save and clear call_arg_location,
6999 call_site_count and tail_call_site_count around dwarf2out_decl call.
7000 (gen_call_site_die): New function.
7001 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7002 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7003 (dwarf2out_function_decl): Clear call_arg_locations,
7004 call_arg_loc_last, set call_site_count and tail_call_site_count
7005 to -1 and free block_map.
7006 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7007 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7008 followed by any real instructions.
7009 (dwarf2out_begin_function): Set call_site_count and
7010 tail_call_site_count to 0.
7011 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7012 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7013 attempt to force a DIE for it and worst case remove the attribute.
7014 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7015 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7017 * var-tracking.c: Include tm_p.h.
7018 (vt_stack_adjustments): For calls call note_register_arguments.
7019 (argument_reg_set): New variable.
7020 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7021 ensure the VALUE is resolved.
7022 (call_arguments): New variable.
7023 (prepare_call_arguments): New function.
7024 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7025 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7026 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7027 always use the best expression.
7028 (vt_expand_loc): Add ignore_cur_loc argument.
7029 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7030 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7031 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7033 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7034 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7035 argument. Don't call cselib_preserve_only_values and
7037 (note_register_arguments): New function.
7038 (vt_initialize): Compute argument_reg_set. Call
7039 vt_add_function_parameters before processing basic blocks instead of
7040 afterwards. For calls call prepare_call_arguments before calling
7041 cselib_process_insn.
7042 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7043 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7044 (var-tracking.o): Depend on $(TM_P_H).
7045 * cfglayout.h (insn_scope): New prototype.
7046 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7047 * cfglayout.c (insn_scope): No longer static.
7048 * insn-notes.def (CALL_ARG_LOCATION): New.
7049 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7050 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7051 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7052 nothing for DECL_EXTERNAL BLOCK_VARS.
7054 2011-03-16 Alan Modra <amodra@gmail.com>
7057 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7058 create invalid offset address for vsx splat insn.
7059 * config/rs6000/predicates.md (splat_input_operand): New.
7060 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7062 2011-03-15 Xinliang David Li <davidxl@google.com>
7065 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7066 (normalize_preds): New function.
7067 (is_use_properly_guarded): Normalize def predicates.
7069 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7072 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7073 in the output template.
7075 2011-03-15 Richard Guenther <rguenther@suse.de>
7078 * tree-pretty-print.c (dump_function_declaration): Properly
7079 dump unprototyped and varargs function types.
7081 2011-03-15 Richard Guenther <rguenther@suse.de>
7083 PR tree-optimization/13954
7084 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7087 2011-03-15 Richard Guenther <rguenther@suse.de>
7089 PR tree-optimization/48037
7090 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7091 selects into BIT_FIELD_REFs.
7092 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7095 2011-03-15 Jakub Jelinek <jakub@redhat.com>
7097 PR tree-optimization/48129
7098 * builtins.c (fold_builtin_snprintf): Convert to type of
7099 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7100 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7102 2011-03-15 Richard Guenther <rguenther@suse.de>
7104 PR tree-optimization/41490
7105 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7106 value but with VUSE.
7107 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7109 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7110 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7111 * tree-tailcall.c (find_tail_calls): Ignore returns.
7113 2011-03-15 Richard Guenther <rguenther@suse.de>
7116 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7117 or variable-indexed array accesses when in gimple form.
7119 2011-03-15 Richard Guenther <rguenther@suse.de>
7121 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7123 2011-03-15 Alan Modra <amodra@gmail.com>
7126 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7127 presume symbol_refs without a symbol_ref_decl are suitably
7128 aligned, nor other trees we may see here. Handle anchor symbols.
7129 (legitimate_constant_pool_address_p): Comment. Add mode param.
7130 Check cmodel=medium addresses. Adjust all calls.
7131 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7132 creating cmodel=medium optimized access to locals.
7133 * config/rs6000/constraints.md (R): Pass QImode to
7134 legitimate_constant_pool_address_p.
7135 * config/rs6000/predicates.md (input_operand): Pass mode to
7136 legitimate_constant_pool_address_p.
7137 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7140 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7143 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7144 64-bit constants being loaded into registers other than GPRs such
7145 as loading 0 into a VSX register.
7147 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7149 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7151 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7154 * builtins.c (fold_builtin_snprintf): New function.
7155 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7156 (fold_builtin_4): Likewise.
7159 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7160 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7161 and C - X == X also strip nops from +/-/p+ operand.
7162 When optimizing -X == C, fold C to arg0's type.
7165 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7166 emit it as add_AT_int instead of add_AT_unsigned.
7168 2011-03-14 Tom Tromey <tromey@redhat.com>
7170 * unwind-dw2.c: Include sys/sdt.h if it exists.
7171 (_Unwind_DebugHook): Use STAP_PROBE2.
7172 * config.in, configure: Rebuild.
7173 * configure.ac: Check for sys/sdt.h.
7175 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
7177 * config/i386/i386.md (ROUND_FLOOR): New constant.
7178 (ROUND_CEIL): Ditto.
7179 (ROUND_TRUNC): Ditto.
7180 (ROUND_MXCSR): Ditto.
7181 (ROUND_NO_EXC): Ditto.
7182 (rint<mode>2): Use new defines instead of numerical constants.
7183 (floor<mode>2): Ditto.
7184 (ceil<mode>2): Ditto.
7185 (btrunc<mode>2): Ditto.
7186 * config/i386/i386-builtin-types.def: Define ROUND function type
7188 * config/i386/i386.c (enum ix86_builtins): Add
7189 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7190 (struct builtin_description): Add
7191 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7192 (ix86_expand_sse_round): New static function.
7193 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7195 (ix86_builtin_vectorized_function): Handle
7196 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7198 2011-03-14 Tom Tromey <tromey@redhat.com>
7200 * c-parser.c (c_parser_asm_string_literal): Clear
7201 warn_overlength_strings.
7203 2011-03-14 Tom Tromey <tromey@redhat.com>
7205 * c-parser.c (disable_extension_diagnostics): Save
7206 warn_overlength_strings.
7207 (restore_extension_diagnostics): Restore warn_overlength_strings.
7209 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7211 * BASE-VER: Change to 4.7.0.
7213 2011-03-14 Richard Guenther <rguenther@suse.de>
7216 * tree.c (build_vector_from_val): Adjust assert to requirements
7219 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7222 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7224 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7226 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7227 terms of target_flags_explicit. Adjust copyright year.
7229 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7230 * config/rs6000/t-freebsd: New file. Add override for
7233 2011-03-13 Chris Demetriou <cgd@google.com>
7235 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7236 (-fno-diagnostics-show-option): this, to reflect current default.
7237 (-Werror=): Update text about -fno-diagnostics-show-option.
7239 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7242 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7243 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7244 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7245 mode is not V2DImode or V2DFmode.
7246 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7247 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7248 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7250 (movdi_internal64): Likewise.
7252 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7254 PR tree-optimization/47127
7255 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7257 (set_cloog_options): Same.
7258 (scop_to_clast): Same.
7259 (print_clast_stmt): Do not call cloog_state_malloc and
7261 (print_generated_program): Same.
7263 * graphite-clast-to-gimple.h (cloog_state): Declared.
7264 (scop_to_clast): Adjust declaration.
7265 * graphite.c (cloog_state): Defined here.
7266 (graphite_initialize): Call cloog_state_malloc.
7267 (graphite_finalize): Call cloog_state_free.
7269 2011-03-11 Jason Merrill <jason@redhat.com>
7271 * attribs.c (lookup_attribute_spec): Take const_tree.
7274 2011-03-11 Joseph Myers <joseph@codesourcery.com>
7276 * config/sparc/sparc.c (sparc_option_override): Use
7277 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7279 2011-03-11 Richard Guenther <rguenther@suse.de>
7281 PR tree-optimization/48067
7282 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7283 multiplication result will be only used once on the target
7286 2011-03-11 Richard Guenther <rguenther@suse.de>
7288 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7290 2011-03-11 Richard Guenther <rguenther@suse.de>
7293 * tree.c (find_decls_types_r): Do not walk types only reachable
7294 from IDENTIFIER_NODEs.
7296 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7299 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7300 all vnode->force_output nodes as needed.
7302 2011-03-11 Jason Merrill <jason@redhat.com>
7305 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7306 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7308 2011-03-11 Martin Jambor <mjambor@suse.cz>
7310 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7313 2011-03-11 Jakub Jelinek <jakub@redhat.com>
7315 PR tree-optimization/48063
7316 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7317 inline functions called once if !tree_can_inline_p (node->callers).
7319 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
7321 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7323 * config/score/score3.c: Delete.
7324 * config/score/score3.h: Delete.
7325 * config/score/mul-div.S: Delete.
7326 * config/score/sfp-machine.h: Add new file.
7327 * config/score/constraints.md: Add new file.
7328 * config/score/t-score-softfp: Add new file.
7329 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7330 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7331 (score7_extra_constraint): Delete.
7332 (score7_option_override): Remove unused code.
7333 * config/score/score.c: Remove score3 and score5 define and code.
7334 * config/score/score.h: Remove score3 and score5 define and code.
7335 * config/score/score.md: Remove score3 template and unusual insn.
7336 * config/score/score.opt: Remove score3 and score5 options.
7338 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7340 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7341 when _HPUX_SOURCE is defined.
7342 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7344 2011-03-10 Jason Merrill <jason@redhat.com>
7347 * stor-layout.c (layout_type): Don't set structural equality
7348 on arrays of incomplete type.
7349 * tree.c (type_hash_eq): Handle comparing them properly.
7351 2011-03-10 Jakub Jelinek <jakub@redhat.com>
7354 * config/s390/s390.c (s390_delegitimize_address): Make sure the
7355 result mode matches original rtl mode.
7357 2011-03-10 Nick Clifton <nickc@redhat.com>
7359 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7360 (andsi3, andsi3_flags): Fix timings for three operand alternative.
7362 2011-03-09 Jakub Jelinek <jakub@redhat.com>
7364 PR rtl-optimization/47866
7365 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7366 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7367 if target wasn't scalar.
7368 * function.c (assign_stack_temp_for_type): Assert that neither
7369 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7370 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7372 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7374 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7376 * config/s390/s390-protos.h (s390_label_align): New prototype.
7377 * config/s390/s390.c (s390_label_align): New function.
7378 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7380 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7383 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7384 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7385 (output_vec_const_move): Ditto.
7387 2011-03-08 Anatoly Sokolov <aesok@post.ru>
7389 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7390 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7391 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7392 Change 'rclass' argument and result type to reg_class_t.
7393 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7395 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
7397 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7398 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7399 (TARGET_MEMORY_MOVE_COST): Define.
7400 (avr_register_move_cost, avr_memory_move_cost): New Functions.
7402 2011-03-08 Jakub Jelinek <jakub@redhat.com>
7405 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7408 PR tree-optimization/48022
7409 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7412 2011-03-07 Jakub Jelinek <jakub@redhat.com>
7415 * var-tracking.c (find_use_val): Return NULL for
7416 cui->sets && cui->store_p BLKmode MEMs.
7418 2011-03-07 Anatoly Sokolov <aesok@post.ru>
7420 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7422 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7423 xstormy16_print_operand_address): Remove.
7424 * config/stormy16/stormy16.c (xstormy16_print_operand,
7425 xstormy16_print_operand_address): Make static.
7426 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7428 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
7431 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7432 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7435 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
7438 * cfgloopmanip.c (fix_bb_placements): Return immediately
7439 if FROM is BASE_LOOP's header.
7441 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7443 * gimplify.c (gimplify_function_tree): Fix building calls
7444 to __builtin_return_address.
7446 2011-03-07 Alan Modra <amodra@gmail.com>
7448 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7449 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7450 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7451 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7453 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7454 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7455 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7456 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7457 * config/rs6000/rs6000.c
7458 (rs6000_elf_end_indicate_exec_stack): Rename to..
7459 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7460 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7461 (rs6000_file_start): ..here.
7462 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7463 file scope variables.
7464 (call_ABI_of_interest): New function.
7465 (init_cumulative_args): Set above vars when function return value
7466 is a float, vector, or small struct.
7467 (rs6000_function_arg_advance_1): Likewise for function args.
7468 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7469 references float args.
7471 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7473 * doc/cfg.texi: Remove "See" before @ref.
7474 * doc/invoke.texi: Likewise.
7476 2011-03-05 Jason Merrill <jason@redhat.com>
7478 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7480 2011-03-05 Anthony Green <green@moxielogic.com>
7482 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7484 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
7486 PR rtl-optimization/47899
7487 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7488 to flow_loop_nested_p when moving the loop upward.
7490 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
7493 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7495 2011-03-05 Jakub Jelinek <jakub@redhat.com>
7497 PR tree-optimization/47967
7498 * ipa-cp.c (build_const_val): Return NULL instead of creating
7499 VIEW_CONVERT_EXPR for mismatching sizes.
7500 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7501 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7502 give up on versioning.
7504 2011-03-05 Alan Modra <amodra@gmail.com>
7507 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7508 full cmodel medium/large lo_sum + high addresses.
7510 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7512 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7513 pool references in UNSPEC_LTREL_OFFSET.
7515 2011-03-04 Jan Hubicka <jh@suse.cz>
7518 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7519 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7520 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7522 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7523 cgraph_add_thunk): Add node pointers.
7524 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7525 associated to right node.
7526 (input_node): Update use of cgraph_same_body_alias
7527 and cgraph_add_thunk.
7529 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7531 * config/i386/i386.opt (mprefer-avx128): New flag.
7532 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7533 modes when the flag -mprefer-avx128 is on.
7535 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7537 * dwarf2out.c (compare_loc_operands): Fix address handling.
7539 2011-03-04 Alan Modra <amodra@gmail.com>
7541 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7543 2011-03-04 Richard Guenther <rguenther@suse.de>
7546 * expmed.c (extract_bit_field_1): Prefer vector modes that
7547 vec_extract patterns can handle.
7549 2011-03-04 Richard Guenther <rguenther@suse.de>
7552 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7554 2011-03-04 Richard Henderson <rth@redhat.com>
7556 * explow.c (emit_stack_save): Remove 'after' parameter.
7557 (emit_stack_restore): Likewise.
7558 * expr.h: Update to match.
7559 * builtins.c, calls.c, stmt.c: Likewise.
7560 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7561 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7562 * function.c (expand_function_end): Insert the emit_stack_save
7563 sequence before parm_birth_insn instead of after.
7565 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7567 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7568 (ssse3_pmaddubsw128): Ditto.
7569 (ssse3_pmaddubsw): Ditto.
7571 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7573 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7575 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7578 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7579 on TYPE_SIZE_UNIT if it is a DECL.
7582 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7583 first operand is not is_gimple_mem_ref_addr, try to fold it.
7584 If the operand still isn't is_gimple_mem_ref_addr, clear
7587 2011-03-03 Richard Guenther <rguenther@suse.de>
7590 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7592 (refs_may_alias_p_1): For release branches return true if
7593 we are confused by our input.
7595 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7597 * config/s390/s390.c (s390_function_value): Rename to ...
7598 (s390_function_and_libcall_value): ... this.
7599 (s390_function_value): New function.
7600 (s390_libcall_value): New function.
7601 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7602 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7603 target macro definitions.
7604 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7606 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7608 * config/i386/freebsd64.h (CC1_SPEC): Define.
7609 * config/i386/linux64.h (CC1_SPEC): Define.
7610 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7612 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7614 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7616 * config/stormy16/stormy16.c: Include reload.h.
7617 (xstormy16_memory_move_cost): New function.
7618 (TARGET_MEMORY_MOVE_COST): Define.
7620 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7622 PR rtl-optimization/47925
7623 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7624 with side effects. Remove the more-specific check for volatile asms.
7626 2011-03-02 Alan Modra <amodra@gmail.com>
7629 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7630 toc relative addresses for valid offsets.
7632 2011-03-01 Richard Guenther <rguenther@suse.de>
7634 PR tree-optimization/47890
7635 * tree-vect-loop.c (get_initial_def_for_induction): Set
7636 related stmt properly.
7638 2011-03-01 Richard Guenther <rguenther@suse.de>
7641 * lto-streamer.c (lto_record_common_node): Also register
7644 2011-03-01 Richard Guenther <rguenther@suse.de>
7647 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7648 Do not stream DECL_ABSTRACT_ORIGIN.
7649 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7650 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7651 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7652 Do not stream DECL_ABSTRACT_ORIGIN.
7653 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7654 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7656 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7658 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7659 FUNCTION_VALUE_REGNO_P): Remove.
7660 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7661 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7662 Add 'outgoing' argument.
7663 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7665 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7666 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7668 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7671 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7672 (lookup_filename): Likewise.
7673 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7675 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7676 Jakub Jelinek <jakub@redhat.com>
7679 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7680 (assign_stack_local_1): Change last argument type to int.
7681 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7682 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7683 don't record padding space into frame_space_list nor use those areas.
7684 (assign_stack_local): Adjust caller.
7685 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7686 of assign_stack_local, pass 0 as last argument.
7687 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7690 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7693 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7694 Use target address_mode and pointer_mode hooks instead of hardcoded
7695 Pmode and ptr_mode. Handle some simple cases of extending if
7696 POINTERS_EXTEND_UNSIGNED < 0.
7697 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7698 Call convert_debug_memory_address.
7699 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7700 convert_debug_memory_address.
7703 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7704 * configure: Regenerated.
7705 * config.in: Regenerated.
7706 * varasm.c (default_function_section): Return NULL
7707 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7709 2011-02-28 Martin Jambor <mjambor@suse.cz>
7711 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7712 the description to match the printed values.
7714 2011-02-28 Richard Guenther <rguenther@suse.de>
7716 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7717 of the copied scope tree.
7719 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7721 * doc/extend.texi (Function Attributes): Avoid deeply (and
7722 wrongly) nested tables.
7724 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7727 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7728 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7729 r isn't op0 nor op1.
7731 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7733 * config/avr/avr.md: Remove magic comment for emacs.
7735 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7738 * config/avr/avr.c (avr_option_override): Use error on bad options.
7739 (avr_help): New function.
7740 (TARGET_HELP): Define.
7742 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7745 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7746 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7748 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7750 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7751 (ARM Options): Ditto.
7752 (i386 and x86-64 Options): Ditto.
7753 (RX Options): Ditto.
7754 (SPARC Options): Ditto.
7756 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7758 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7759 FreeBSD 6 and later. Generally use cpu generic.
7761 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7763 * doc/cpp.texi: Update copyright years.
7765 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7768 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7770 2011-02-25 Jon Beniston <jon@beniston.com>
7773 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7774 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7775 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7776 (lm32_block_move_inline): Add type cast to remove warning.
7777 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7778 (gen_int_relational): Move declarations to start of function.
7780 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7782 PR tree-optimization/45470
7783 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7784 can throw internally only.
7785 * tree-vect-stmts.c (vectorizable_call): Likewise.
7787 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7789 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7790 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7791 * config/stormy16/stormy16-protos.h
7792 (xstormy16_preferred_reload_class): Remove.
7793 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7794 static. Change 'rclass' argument and return type to reg_class_t.
7795 (TARGET_PREFERRED_RELOAD_CLASS,
7796 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7798 2011-02-24 Richard Guenther <rguenther@suse.de>
7800 * lto-streamer-in.c (input_bb): Do not find referenced vars
7801 in debug statements.
7803 2011-02-23 Jason Merrill <jason@redhat.com>
7805 * common.opt (fabi-version): Document v5 and v6.
7807 2011-02-23 Richard Guenther <rguenther@suse.de>
7809 PR tree-optimization/47849
7810 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7812 2011-02-23 Jie Zhang <jie@codesourcery.com>
7814 * opts-common.c (decode_cmdline_option): Print empty string
7815 argument as "" in decoded->orig_option_with_args_text.
7816 * gcc.c (execute): Print empty string argument as ""
7817 in the verbose output.
7818 (do_spec_1): Keep empty string argument.
7820 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7822 * config.gcc: Declare score-* and crx-* obsolete.
7824 2011-02-23 Jie Zhang <jie@codesourcery.com>
7826 PR rtl-optimization/47763
7827 * web.c (web_main): Ignore naked clobber when replacing register.
7829 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7831 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7834 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7837 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7839 2011-02-22 Mike Stump <mikestump@comcast.net>
7841 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7843 * configure: Regenerate.
7845 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7847 PR rtl-optimization/46002
7848 * ira-color.c (update_copy_costs): Change class intersection
7849 test to reg_class_contents[] test of 'hard_regno'.
7851 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7853 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7855 * config/hpux11.opt (mt): Likewise.
7856 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7857 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7858 * config/vax/elf.opt (mno-asm-pic): Likewise.
7859 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7861 2011-02-21 Mike Stump <mikestump@comcast.net>
7864 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7865 tree so we can get save the type.
7866 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7867 for CFString instead of trying to use past the end of the builtins.
7868 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7869 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7870 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7871 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7872 Rename to darwin_builtin_cfstring.
7873 (darwin_init_cfstring_builtins): Return the built type.
7875 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7878 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7879 (_mm256_insert_epi64): Use _mm_insert_epi64.
7881 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7883 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7884 * config/stormy16/stormy16-protos.h
7885 (xstormy16_mode_dependent_address_p): Remove.
7886 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7887 Make static. Change return type to bool. Change argument type to
7888 const_rtx. Remove dead code.
7889 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7891 2011-02-21 Richard Guenther <rguenther@suse.de>
7894 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7895 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7896 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7898 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7899 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7901 2011-02-20 Richard Guenther <rguenther@suse.de>
7904 * tree.c (free_lang_data_in_decl): Clean builtins from
7905 the TU decl BLOCK_VARS.
7907 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7911 * haifa-sched.c (fix_tick_ready): Skip tick computation
7914 2011-02-19 Richard Guenther <rguenther@suse.de>
7917 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7918 Remove lazy BLOCK_VARS streaming.
7919 (lto_input_ts_block_tree_pointers): Likewise.
7920 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7922 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7924 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7926 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7928 * config/i386/biarch32.h, config/i386/mach.h,
7929 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7931 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7934 * config/i386/i386.md (peephole2 for shift and plus): Use
7935 operands[1] original mode in the first insn.
7937 2011-02-18 Mike Stump <mikestump@comcast.net>
7939 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7941 2011-02-18 Jan Hubicka <jh@suse.cz>
7944 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7945 to zero when the function is not inlinable at all.
7947 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7949 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7950 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7951 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7952 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7953 * config/pa/t-pa64: Likewise.
7954 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7956 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7959 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7961 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7964 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7966 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7968 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7969 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7970 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7971 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7972 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7973 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7974 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7975 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7976 m32r_legitimate_address_p): New functions.
7977 * config/m32r/constraints.md (constraint "S"): Don't use
7978 STORE_PREINC_PREDEC_P.
7979 (constraint "U"): Don't use LOAD_POSTINC_P.
7981 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7983 PR rtl-optimization/46178
7984 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7985 compute ira_hard_regno_cover_class[].
7987 2011-02-18 Richard Guenther <rguenther@suse.de>
7990 * lto-streamer.h (lto_global_var_decls): Declare.
7991 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7992 statics for global var processing.
7994 2011-02-18 Richard Guenther <rguenther@suse.de>
7996 PR tree-optimization/47737
7997 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7998 edge dominance check.
8000 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8003 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8004 avoid invalid rtx sharing.
8006 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8008 * doc/cpp.texi (Obsolete Features): Add background on the
8009 origin of assertions.
8011 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8013 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8015 * config/darwin.c (output_objc_section_asm_op): Added support for
8017 (is_objc_metadata): New.
8018 (darwin_objc2_section): New.
8019 (darwin_objc1_section): New.
8020 (machopic_select_section): Added support for ABI v1 and v2.
8021 (darwin_emit_objc_zeroed): New.
8022 (darwin_output_aligned_bss): Detect objc metadata and treat it
8024 (darwin_asm_output_aligned_decl_common): Same.
8025 (darwin_asm_output_aligned_decl_local): Same.
8026 * config/darwin-sections.def: Updated for ABI v1 and v2.
8027 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8028 compiling Objective-C code for the NeXT runtime, default to using
8029 ABI version 0 for 32-bit, and version 2 for 64-bit.
8031 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8033 * common.opt (optimize_fast): New Variable.
8034 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8035 instead of local variable ofast.
8037 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8039 * doc/invoke.texi (fobjc-abi-version): Documented.
8040 (fobjc-nilcheck): Documented.
8041 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8044 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8047 * common.opt (export-dynamic): New Driver option.
8048 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8050 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8052 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8054 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
8055 Jan Hubicka <jh@suse.cz>
8059 * cfgexpand.c (account_used_vars_for_block): Remove.
8060 (estimated_stack_frame_size): Use referenced vars.
8061 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8062 that were referenced in the original function. Test src_fn
8063 rather than cfun. Drop redundant get_var_ann.
8064 (setup_one_parameter): Drop redundant get_var_ann.
8065 (declare_return_variable): Likewise.
8066 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8067 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8068 * ipa-inline.c (compute_inline_parameters): Do not compute
8069 disregard_inline_limits here.
8070 (compute_inlinable_for_current, pass_inlinable): New.
8071 (pass_inline_parameters): Require PROP_referenced_vars.
8072 * cgraphunit.c (cgraph_process_new_functions): Don't run
8073 compute_inline_parameters explicitly unless function is in SSA form.
8074 (cgraph_analyze_function): Set .disregard_inline_limits.
8075 * tree-sra.c (convert_callers): Compute inliner parameters
8076 only for functions already in SSA form.
8078 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8080 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8081 -mlittle-endian-data.
8083 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8085 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8086 -mno-fpu, not -fpu and -no-fpu.
8087 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8088 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8090 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
8093 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8094 input reload with PLUS RTX.
8096 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8098 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8099 of InverseVar(MDMX).
8101 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8103 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8106 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8108 * config/mn10300/mn10300.opt (mno-crt0): New.
8110 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8112 * config/m68k/uclinux.opt (static-libc): New Driver option.
8114 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8116 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8118 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8120 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8121 %{muser-extend-enabled}.
8123 2011-02-16 Richard Guenther <rguenther@suse.de>
8125 PR tree-optimization/47738
8126 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8127 the TODO from tree_predictive_commoning.
8129 2011-02-15 Jeff Law <law@redhat.com>
8132 2011-01-25 Jeff Law <law@redhat.com>
8134 PR rtl-optimization/37273
8135 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8136 handle them like argument loads from stack slots. Do not double
8137 count memory for memory constants and argument loads from stack slots.
8139 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8142 * combine.c (cant_combine_insn_p): Revert the last change.
8144 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8147 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8148 mode for vector constants. Remove code that checks for TImode.
8150 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8154 * cgraph.h (compute_inline_parameters): Return void.
8155 * ipa-inline.c (compute_inline_parameters): Adjust.
8157 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8161 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8163 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8164 * ipa-inline.c (compute_inline_parameters): Adjust.
8166 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8170 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8171 Adjust all users. Pass FN to...
8172 * tree-flow-inline.h (first_referenced_var): ... this. Add
8174 * ipa-struct-reorg.c: Adjust.
8175 * tree-dfa.c: Adjust.
8176 * tree-into-ssa.c: Adjust.
8177 * tree-sra.c: Adjust.
8178 * tree-ssa-alias.c: Adjust.
8179 * tree-ssa-live.c: Adjust.
8180 * tree-ssa.c: Adjust.
8181 * tree-ssanames.c: Adjust.
8182 * tree-tailcall.c: Adjust.
8184 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8188 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8190 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8191 * tree-flow-inline.h: Adjust.
8192 * gimple-pretty-print.c: Adjust.
8193 * tree-into-ssa.c: Adjust.
8194 * tree-ssa.c: Adjust.
8195 * cfgexpand.c: Adjust.
8197 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8199 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8200 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8201 (EXTRA_CONSTRAINT): Delete.
8202 * config/iq2000/constraints.md: New file.
8203 * config/iq2000/iq2000.md: Include it.
8204 (define_insn ""): Delete.
8205 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8206 unsupported constraint letters from patterns.
8207 (call_value, call_value_internal1): Likewise.
8208 (call_value_multiple_internal1): Likewise.
8210 2011-02-15 Nick Clifton <nickc@redhat.com>
8212 * config/mn10300/mn10300.c: Include tm-constrs.h.
8213 (struct liw_data): New data structure describing an LIW candidate
8215 (extract_bundle): Use struct liw_data. Allow small integer
8216 operands for some instructions.
8217 (check_liw_constraints): Use struct liw_data. Remove swapped
8218 parameter. Add comments describing the checks. Fix bug when
8219 assigning the source of liw1 to the source of liw2.
8220 (liw_candidate): Delete. Code moved into extract_bundle.
8221 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8223 * config/mn10300/predicates.md (liw_operand): New predicate.
8224 Allows registers and small integer constants.
8225 * config/mn10300/constraints.md (O): New constraint. Accetps
8226 integers in the range -8 to +7 inclusive.
8227 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8228 for moving a small integer into a register. Give this alternative
8230 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8231 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8232 using the J,K,L and M constraints,
8233 (liw): Remove SI mode on second operands to allow for HI and QI
8235 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8238 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8241 * combine.c (cant_combine_insn_p): Check zero/sign extended
8244 2011-02-15 Richard Guenther <rguenther@suse.de>
8246 PR tree-optimization/47743
8247 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8248 for a non-type-compatible VN lookup bail out.
8250 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8252 * config/fr30/constraints.md: New file.
8253 * config/fr30/fr30.md: Include it.
8254 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8255 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8256 (EXTRA_CONSTRAINT): Delete.
8258 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8260 * config/frv/constraints.md: New file.
8261 * config/frv/predicates.md: Include it.
8262 * config/frv/frv.c (reg_class_from_letter): Delete.
8263 (frv_option_override): Don't initialize it.
8264 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8265 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8266 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8267 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8268 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8269 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8270 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8271 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8272 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8273 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8274 (REG_CLASS_FROM_CONSTRAINT): Delete.
8276 2011-02-15 Jakub Jelinek <jakub@redhat.com>
8279 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8280 if frame size is 0 in a leaf function.
8282 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8285 * config/alpha/host-osf.c: New file.
8286 * config/alpha/x-osf: New file.
8287 * config.host (alpha*-dec-osf*): Use it.
8289 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8291 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8292 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8293 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8294 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8296 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8298 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8300 * config/stormy16/constraints.md: New file.
8301 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8302 Use satisfies_constraint_Q and satisfies_constraint_R.
8303 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8305 (xstormy16_legitiamte_address_p): Declare.
8306 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8307 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8308 (EXTRA_CONSTRAINT): Delete.
8309 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8311 (xstormy16_extra_constraint_p): Delete.
8313 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8315 PR tree-optimization/46494
8316 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8317 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8318 (pass_rtl_loop_done): Add TODO_verify_flow.
8319 * fwprop.c (pass_rtl_fwprop): Likewise.
8320 * modulo-sched.c (pass_sms): Likewise.
8321 * tree-ssa-dom.c (pass_dominator): Likewise.
8322 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8323 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8324 (pass_tree_loop_done): Likewise.
8325 * tree-ssa-pre.c (execute_pre): Likewise.
8326 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8327 * tree-ssa-sink.c (pass_sink_code): Likewise.
8328 * tree-vrp.c (pass_vrp): Likewise.
8330 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8332 * config/v850/constraints.md: New file.
8333 * config/v850/v850.md: Include it.
8334 * config/v850/predicates.md (reg_or_0_operand): Use
8335 satisfies_constraint_G.
8336 (special_symbolref_operand): Use satisfies_constraint_K.
8337 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8338 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8339 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8340 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8341 (EXTRA_CONSTRAINT): Delete.
8342 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8343 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8344 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8346 2011-02-14 Anatoly Sokolov <aesok@post.ru>
8349 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8352 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8354 * config/mcore/constraints.md: New file.
8355 * config/mcore/mcore.md: Include it.
8356 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8357 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8358 (REG_CLASS_FROM_LETTER): Delete.
8359 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8360 insn_const_int_ok_for_constraint.
8361 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8362 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8363 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8364 (EXTRA_CONSTRAINT): Delete.
8366 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8369 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8370 (IS_SIGHANDLER): Define.
8371 (sparc64_is_sighandler): New function, split off from
8372 sparc64_fallback_frame_state.
8373 (sparc_is_sighandler): New function, split off from
8374 sparc_fallback_frame_state.
8375 (sparc64_fallback_frame_state): Merge with ...
8376 (sparc_fallback_frame_state): ... this into ...
8377 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8378 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8379 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8380 stack instead of hardcoded offsets.
8382 2011-02-14 Andriy Gapon <avg@freebsd.org>
8385 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8387 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8389 * configure: Regenerate.
8391 2011-02-12 Joseph Myers <joseph@codesourcery.com>
8394 * gcc.c (asm_options): Correct spec matching --target-help.
8396 2011-02-12 Martin Jambor <mjambor@suse.cz>
8398 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8399 to gimple call error.
8401 2011-02-12 Mike Stump <mikestump@comcast.net>
8403 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8404 comments in backslash regions.
8406 2011-02-12 Mike Stump <mikestump@comcast.net>
8407 Jakub Jelinek <jakub@redhat.com>
8408 Iain Sandoe <iains@gcc.gnu.org>
8411 * dwarf2out.c (output_cfa_loc): When required, apply the
8412 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8413 (output_loc_sequence): Likewise.
8414 (output_loc_operands_raw): Likewise.
8415 (output_loc_sequence_raw): Likewise.
8416 (output_cfa_loc): Likewise.
8417 (output_loc_list): Suppress register number adjustment when
8418 calling output_loc_sequence()
8419 (output_die): Likewise.
8421 2011-02-12 Anatoly Sokolov <aesok@post.ru>
8423 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8425 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8426 xtensa_memory_move_cost): New functions.
8427 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8429 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
8432 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8433 in the current directory.
8434 * configure: Rebuilt.
8436 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8438 * config/darwin.c (darwin_override_options): Add a hunk missed
8439 from the commit of r168571. Trim comment line lengths and
8440 correct indents of the preceding block.
8442 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8444 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8447 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8449 * common.opt (nostartfiles): New Driver option.
8451 2011-02-11 Xinliang David Li <davidxl@google.com>
8453 PR tree-optimization/47707
8454 * tree-chrec.c (convert_affine_scev): Keep type precision.
8456 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8458 PR tree-optimization/47420
8459 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8461 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
8463 PR rtl-optimization/47614
8464 * rtl.h (check_for_inc_dec): Declare.
8465 * dse.c (check_for_inc_dec): Externalize...
8466 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8467 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8469 2011-02-11 Joseph Myers <joseph@codesourcery.com>
8472 * gcc.c (main): Do not compile inputs if there were errors in
8474 * opts-common.c (read_cmdline_option): Check for wrong language
8475 after other error checks.
8477 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8479 * cgraph.c: Fix comment typos.
8480 * cgraph.h: Likewise.
8481 * cgraphunit.c: Likewise.
8482 * ipa-cp.c: Likewise.
8483 * ipa-inline.c: Likewise.
8484 * ipa-prop.c: Likewise.
8485 * ipa-pure-const.c: Likewise.
8486 * ipa-ref.c: Likewise.
8487 * ipa-reference.c: Likewise.
8489 2011-02-11 Jakub Jelinek <jakub@redhat.com>
8492 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8494 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8497 * doc/sourcebuild.texi (Require Support): Document
8498 dg-require-ascii-locale.
8500 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8502 * doc/lto.texi (Write summary): Fix missing parentheses.
8504 2011-02-10 DJ Delorie <dj@redhat.com>
8506 * config/m32c/m32c.c (m32c_option_override): Disable
8507 -fcombine-stack-adjustments until flag value tracking and compare
8508 optimization can be rewritten.
8510 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8512 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8514 (PROCESSOR_DEFAULT64): Likewise.
8516 2011-02-10 Richard Henderson <rth@redhat.com>
8518 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8519 change from 2011-02-03.
8520 * config/rx/rx.c (flags_from_code): Likewise.
8521 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8522 is valid, n/pz otherwise.
8523 (rx_select_cc_mode): Return CCmode if Y is not zero.
8525 2011-02-10 Richard Guenther <rguenther@suse.de>
8527 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8529 2011-02-10 Richard Guenther <rguenther@suse.de>
8531 PR tree-optimization/47677
8532 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8534 2011-02-10 Jakub Jelinek <jakub@redhat.com>
8537 * combine.c (make_compound_operation): Only change shifts into
8538 multiplication for SCALAR_INT_MODE_P.
8540 2011-02-10 Jie Zhang <jie@codesourcery.com>
8544 2011-02-05 Jie Zhang <jie@codesourcery.com>
8546 * web.c (entry_register): Don't clobber the number of the
8547 first uninitialized reference in used[].
8549 2011-02-09 Richard Guenther <rguenther@suse.de>
8551 PR tree-optimization/47664
8552 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8555 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8559 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8561 (PROCESSOR_DEFAULT64): Same.
8562 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8564 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8566 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8568 2011-02-09 Martin Jambor <mjambor@suse.cz>
8571 * tree-sra.c (struct access): New flags grp_scalar_read and
8572 grp_scalar_write. Changed description of assignment read and write
8574 (dump_access): Dump new flags, reorder all of them.
8575 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8576 to detect multiple scalar reads.
8577 (analyze_access_subtree): Use the new scalar read write flags instead
8578 of the old flags. Adjusted comments.
8580 2011-02-08 DJ Delorie <dj@redhat.com>
8583 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8586 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8588 * config/m68k/uclinux.opt: New.
8589 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8591 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8593 * config/cris/elf.opt (sim): New Driver option.
8595 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8597 * config/xtensa/elf.opt: New.
8598 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8600 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8602 * config/vax/elf.opt: New.
8603 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8605 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8607 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8609 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8611 * config/gnu-user.opt: New.
8612 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8613 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8614 *-*-uclinux*): Use gnu-user.opt.
8616 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8618 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8619 * config/i386/gnu.h (CPP_SPEC): Likewise.
8621 2011-02-08 Ian Lance Taylor <iant@google.com>
8623 * common.opt (fcx-limited-range): Add SetByCombined flag.
8624 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8625 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8626 (fassociative-math, freciprocal-math): Likewise.
8627 (funsafe-math-optimizations): Likewise.
8628 * opth-gen.awk: Handle SetByCombined.
8629 * optc-gen.awk: Likewise.
8630 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8631 (set_unsafe_math_optimizations_flags): Likewise.
8632 * doc/options.texi (Option properties): Document SetByCombined.
8634 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8636 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8637 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8638 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8639 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8640 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8642 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8644 PR tree-optimization/46834
8645 PR tree-optimization/46994
8646 PR tree-optimization/46995
8647 * graphite-sese-to-poly.c (used_outside_reduction): New.
8648 (detect_commutative_reduction): Call used_outside_reduction.
8649 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8650 translate_scalar_reduction_to_array only when at least one
8651 loop-phi/close-phi tuple has been detected.
8653 2011-02-08 Richard Guenther <rguenther@suse.de>
8656 * tree-vect-generic.c (expand_vector_operations_1): Update
8658 (expand_vector_operations): ... not here. Cleanup EH info
8659 and the CFG if required.
8661 2011-02-08 Richard Guenther <rguenther@suse.de>
8663 PR tree-optimization/47641
8664 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8665 require type compatibility.
8667 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8669 * gimple-low.c (lower_function_body): Don't remove the location of
8670 the return statement here.
8671 (lower_gimple_return): Do it here instead but only if the return
8672 statement is actually used twice.
8674 2011-02-08 Richard Guenther <rguenther@suse.de>
8676 PR tree-optimization/47632
8677 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8678 unused up_to_stmt parameter, return whether cfg-cleanup is
8679 necessary, remove EH info properly.
8680 (forward_propagate_into_gimple_cond): Adjust caller.
8681 (forward_propagate_into_cond): Likewise.
8682 (forward_propagate_comparison): Likewise.
8683 (tree_ssa_forward_propagate_single_use_vars): Make
8684 forward_propagate_comparison case similar to the two others.
8686 2011-02-08 Nick Clifton <nickc@redhat.com>
8688 * config/mn10300/mn10300.opt (mliw): New command line option.
8689 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8690 (liw_bundling): New automaton.
8691 (liw): New attribute.
8692 (liw_op): New attribute.
8693 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8694 (movsi_internal): Add LIW attributes.
8698 (addsi3): Separate register and immediate alternatives.
8703 (lshrsi3): Likewise.
8704 (ashrsi3): Likewise.
8706 * config/mn10300/mn10300.c (liw_op_names): New
8707 (mn10300_print_operand): Handle 'W' operand descriptor.
8708 (extract_bundle): New function.
8709 (check_liw_constraints): New function.
8710 (liw_candidate): New function.
8711 (mn10300_bundle_liw): New function.
8712 (mn10300_reorg): New function.
8713 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8714 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8715 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8716 __LIW__ or __NO_LIW__.
8717 * doc/invoke.texi: Describe the -mliw command line option.
8719 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8721 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8722 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8723 pthread_mutex_unlock): Remove.
8724 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8725 * config/pa/t-pa64: Likewise.
8726 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8727 shared libc if not linking against libpthread.
8728 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8730 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8733 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8734 on 10.6 and later to ensure that we always use the unwinder from
8735 the system. Only add -no_compact_unwind when tarteting darwin
8738 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8741 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8742 (vec_interleave_lowv2sf): Ditto.
8743 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8744 (vec_extract_oddv2sf): Ditto.
8746 2011-02-07 Mike Stump <mikestump@comcast.net>
8749 Add __ieee_divdc3 entry point.
8750 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8752 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8753 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8754 * config/darwin.c (darwin_rename_builtins): Add.
8755 * config/darwin-protos.h (darwin_rename_builtins): Add.
8757 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8760 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8763 2011-02-07 Mike Stump <mikestump@comcast.net>
8765 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8767 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8770 * config/avr/libgcc.S (exit): Move .endfunc
8772 2011-02-07 Richard Guenther <rguenther@suse.de>
8774 PR tree-optimization/47615
8775 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8776 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8777 (run_scc_vn): Initialize it.
8778 (visit_reference_op_load): Use it.
8779 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8781 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8783 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8784 DImode trapping arithmetic libfuncs.
8786 2011-02-07 Richard Guenther <rguenther@suse.de>
8788 PR tree-optimization/47621
8789 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8791 (execute_update_addresses_taken): ... here. Make it more
8792 conservative in what we accept.
8794 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8796 * config/sparc/freebsd.h (ASM_SPEC): Define.
8797 * config/sparc/vxworks.h (ASM_SPEC): Define.
8799 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8801 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8803 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8805 * doc/invoke.texi: Remove reference to compiler internals from
8808 * reg-notes.def: Remove REG_VALUE_PROFILE.
8809 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8811 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8814 * varasm.c (default_section_type_flags): If decl is NULL,
8815 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8817 2011-02-05 Jie Zhang <jie@codesourcery.com>
8820 * web.c (entry_register): Don't clobber the number of the
8821 first uninitialized reference in used[].
8823 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8825 PR tree-optimization/46194
8826 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8827 (build_classic_dist_vector_1): Do not represent classic distance
8828 vectors when the access functions are variating in different loops.
8830 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8832 * config/mips/iris6.opt: New.
8833 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8835 2011-02-04 Richard Henderson <rth@redhat.com>
8836 Steve Ellcey <sje@cup.hp.com>
8839 * config/ia64/predicates.md (mux1_brcst_element): New.
8840 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8841 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8842 (ia64_unpack_sign): New.
8843 (ia64_expand_unpack): Rewrite using new routines.
8844 (ia64_expand_widen_sum): Ditto.
8845 (ia64_expand_dot_prod_v8qi): Ditto.
8846 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8847 routines, add endian check.
8848 (pmpy2_even): Rename from pmpy2_r, add endian check.
8849 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8850 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8851 (vec_widen_smult_hi_v4hi): Ditto.
8852 (vec_widen_umult_lo_v4hi): Ditto.
8853 (vec_widen_umult_hi_v4hi): Ditto.
8854 (mulv2si3): Change endian checks.
8855 (sdot_prodv4hi): Rewrite with new calls.
8856 (udot_prodv4hi): New.
8857 (vec_pack_ssat_v4hi): Add endian check.
8858 (vec_pack_usat_v4hi): Ditto.
8859 (vec_pack_ssat_v2si): Ditto.
8860 (max1_even): Rename from max1_r, add endian check.
8861 (max1_odd): Rename from max1_l, add endian check.
8862 (*mux1_rev): Format change.
8864 (*mux1_shuf): Ditto.
8866 (*mux1_brcst_v8qi): Use new predicate.
8867 (vec_extract_evenv8qi): Remove endian check.
8868 (vec_extract_oddv8qi): Ditto.
8869 (vec_interleave_lowv4hi): Format change.
8870 (vec_interleave_highv4hi): Ditto.
8871 (mix2_even): Rename from mix2_r, add endian check.
8872 (mix2_odd): Rename from mux2_l, add endian check.
8873 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8874 (vec_extract_evenodd_helper): Format change.
8875 (vec_extract_evenv4hi): Remove endian check.
8876 (vec_extract_oddv4hi): Remove endian check.
8877 (vec_interleave_lowv2si): Format change.
8878 (vec_interleave_highv2si): Format change.
8879 (vec_initv2si): Remove endian check.
8880 (vecinit_v2si): Add endian check.
8881 (reduc_splus_v2sf): Add endian check.
8882 (reduc_smax_v2sf): Ditto.
8883 (reduc_smin_v2sf): Ditto.
8884 (vec_initv2sf): Remove endian check.
8885 (fpack): Add endian check.
8886 (fswap): Add endian check.
8887 (vec_interleave_highv2sf): Add endian check.
8888 (vec_interleave_lowv2sf): Add endian check.
8889 (fmix_lr): Add endian check.
8890 (vec_setv2sf): Format change.
8891 (*vec_extractv2sf_0_be): Use shift to extract operand.
8892 (*vec_extractv2sf_1_be): New.
8893 (vec_pack_trunc_v4hi): Add endian check.
8894 (vec_pack_trunc_v2si): Format change.
8896 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8899 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8900 do bb, locus and block comparison and disallow loads if it is not set.
8901 (stmt_is_replaceable_p): New function.
8902 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8904 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8905 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8907 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8909 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8911 * config/rs6000/xilinx.opt: New.
8912 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8914 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8916 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8918 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8920 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8921 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8922 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8923 secondary_reload_info, xtensa_secondary_reload): Remove.
8924 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8925 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8926 (xtensa_preferred_reload_class): Make static. Change return and
8927 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8928 Use CONST_DOUBLE_P predicate.
8929 (xtensa_preferred_output_reload_class): New function.
8930 (xtensa_secondary_reload): Make static.
8932 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8934 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8935 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8936 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8938 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8941 * output.h (SECTION_RELRO): Define.
8942 (SECTION_MACH_DEP): Adjust.
8943 (get_variable_section): New prototype.
8944 * varpool.c (varpool_finalize_named_section_flags): New function.
8945 (varpool_assemble_pending_decls): Call it.
8946 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8947 * cgraphunit.c (cgraph_output_in_order): Call
8948 varpool_finalize_named_section_flags.
8949 * varasm.c (get_section): Allow section flags conflicts between
8950 relro and read-only sections if the section hasn't been declared yet.
8951 Set SECTION_OVERRIDE after diagnosing section type conflict.
8952 (get_variable_section): No longer static.
8953 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8954 readonly sections that need relocations.
8955 (decl_readonly_section_1): New function.
8956 (decl_readonly_section): Use it.
8959 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8960 Steve Ellcey <sje@cup.hp.com>
8963 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8964 if section attribute used.
8966 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8968 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8969 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8970 (darwin_init_sections): Remove assertion.
8972 2011-02-03 Nick Clifton <nickc@redhat.com>
8974 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8976 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8977 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8978 instead of "n" and "pz".
8979 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8982 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8985 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8986 fma, expand FMA_EXPR as fma{,f,l} call.
8989 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8990 copy them into a unsigned char variable and pass address of it to
8991 lto_output_data_stream.
8994 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8995 around backend_init_target and lang_dependent_init_target calls.
8996 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8997 (verify_cgraph_node): Don't call set_cfun here. Use
8998 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8999 Set error_found for incorrectly represented calls to thunks.
9001 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9004 PR rtl-optimization/43494
9005 * rtl.h (for_each_inc_dec_fn): New type.
9006 (for_each_inc_dec): Declare.
9007 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9008 (for_each_inc_dec_find_inc_dec): New fn.
9009 (for_each_inc_dec_find_mem): New fn.
9010 (for_each_inc_dec): New fn.
9011 * dse.c (struct insn_size): Remove.
9012 (replace_inc_dec, replace_inc_dec_mem): Remove.
9013 (emit_inc_dec_insn_before): New fn.
9014 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9015 (canon_address): Pass mem modes to cselib_lookup.
9016 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9017 (cselib_lookup_from_insn): Likewise.
9018 (cselib_subst_to_values): Likewise.
9019 * cselib.c (find_slot_memmode): New var.
9020 (cselib_find_slot): New fn. Use it instead of
9021 htab_find_slot_with_hash everywhere.
9022 (entry_and_rtx_equal_p): Use find_slot_memmode.
9023 (autoinc_split): New fn.
9024 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9025 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9026 Deal with autoinc. Special-case recursion into MEMs.
9027 (cselib_hash_rtx): Likewise.
9028 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9029 address and MEM modes.
9030 (cselib_subst_to_values): Add memmode, pass it on.
9032 (cselib_lookup): Add memmode argument, pass it on.
9033 (cselib_lookup_from_insn): Add memmode.
9034 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9035 (struct cselib_record_autoinc_data): New.
9036 (cselib_record_autoinc_cb): New fn.
9037 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9038 mode to cselib_lookup. Reset autoinced REGs here instead of...
9039 (cselib_process_insn): ... here.
9040 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9042 (add_uses): Likewise, also to cselib_subst_to_values.
9043 (add_stores): Likewise.
9044 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9045 cselib_subst_to_values.
9046 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9047 * gcse.c (do_local_cprop): Adjusted.
9048 * postreload.c (reload_cse_simplify_set): Adjusted.
9049 (reload_cse_simplify_operands): Adjusted.
9050 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9052 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9054 PR tree-optimization/45122
9055 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9056 unsafe assumptions when there's more than one loop exit.
9058 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9061 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9062 Document using vector double with the load/store builtins, and
9063 that the load/store builtins always use Altivec instructions.
9065 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9066 to use altivec memory instructions, even on VSX.
9067 (vector_altivec_store_<mode>): Ditto.
9069 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9072 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9073 V2DF, V2DI support to load/store overloaded builtins.
9075 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9076 altivec load/store builtins for V2DF/V2DI types.
9078 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9079 set avoid indexed addresses on power6 if -maltivec.
9080 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9081 vector_altivec_load/vector_altivec_store builtins.
9082 (altivec_expand_st_builtin): Ditto.
9083 (altivec_expand_builtin): Add VSX memory builtins.
9084 (rs6000_init_builtins): Add V2DI types to internal types.
9085 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9086 load/store builtins.
9087 (rs6000_address_for_altivec): Insure memory address is appropriate
9090 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9091 vec_vsx_ld and vec_vsx_st.
9092 (vsx_store_<mode>): Ditto.
9094 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9095 variables to hold long long types for VSX vector memory builtins.
9096 (RS6000_BTI_unsigned_long_long): Ditto.
9097 (long_long_integer_type_internal_node): Ditti.
9098 (long_long_unsigned_type_internal_node): Ditti.
9100 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9101 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9102 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9104 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9106 (vec_vsx_st): Ditto.
9108 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9110 * config/pa/pa-hpux10.opt: New.
9111 * config/hpux11.opt (pthread): New Driver option.
9112 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9113 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9115 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9117 * config/ia64/vms.opt: New.
9118 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9120 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9123 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9124 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9125 generator functions.
9126 (vsx_floatuns<VSi><mode>2): Ditto.
9127 (vsx_fix_trunc<mode><VSi>2): Ditto.
9128 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9130 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9132 * config/i386/djgpp.opt (posix): New Driver option.
9134 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9136 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9137 Move to the unsupported targets list.
9139 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9141 PR rtl-optimization/47525
9142 * df-scan.c: Update copyright years.
9143 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9144 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9146 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9148 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9149 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9150 (ASM_OUTPUT_ASCII): Remove.
9151 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9153 2011-02-02 Jeff Law <law@redhat.com>
9156 * reload.c (find_reloads_address): Handle reg+d address where both
9157 components are invalid by reloading the entire address.
9159 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9160 Richard Guenther <rguenther@suse.de>
9162 PR tree-optimization/40979
9164 * passes.c (init_optimization_passes): After LIM call copy_prop
9165 and DCE to clean up.
9166 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9168 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9170 PR tree-optimization/47576
9171 PR tree-optimization/47555
9172 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9173 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9174 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9175 * tree-scalar-evolution.c (follow_ssa_edge): Use
9176 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9178 2011-02-02 Richard Guenther <rguenther@suse.de>
9180 PR tree-optimization/47566
9181 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9183 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9187 * tree-inline.c (declare_return_variable): Remove unused caller
9192 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9193 * cfgexpand.c (account_used_vars_for_block): Use them.
9194 * tree-nrv.c (tree_nrv): Likewise.
9195 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9196 (dump_scope_block): Likewise.
9197 (remove_unused_locals): Likewise.
9201 * tree-inline.c (declare_return_variable): Add result decl to
9202 local decls only once.
9203 * gimple-low.c (record_vars_into): Mark newly-created variables
9206 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9212 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9214 (no_real_insns_p, schedule_block, set_priorities): Drop special
9215 treatment of boundary debug insns.
9216 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9217 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9218 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9219 (BOUNDARY_DEBUG_INSN_P): Likewise.
9220 (SCHEDULE_DEBUG_INSN_P): Likewise.
9221 * sched-rgn.c (init_ready_list): Drop special treatment of
9222 boundary debug insns.
9223 * final.c (rest_of_clean_state): Clear notes' BB.
9225 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9227 * config/openbsd.opt (assert=): New Driver option.
9229 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9231 * config/i386/nto.opt: New.
9232 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9234 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9236 * config/i386/netware.opt: New.
9237 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9239 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9241 * config/interix.opt (posix): New Driver option.
9243 2011-02-01 DJ Delorie <dj@redhat.com>
9245 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9247 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9250 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9252 PR tree-optimization/47561
9253 * toplev.c (process_options): Print the Graphite flags. Add
9254 flag_loop_flatten to the list of options requiring Graphite.
9256 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9258 * config/i386/cygming.opt (posix): New Driver option.
9260 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9262 * config/arm/vxworks.opt: New.
9263 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9265 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9267 * config/alpha/elf.opt: New.
9268 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9269 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9271 2011-02-01 Richard Guenther <rguenther@suse.de>
9273 PR tree-optimization/47559
9274 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9275 store-motion on references that can throw.
9277 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9279 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9280 * tree-pass.h (TDF_CSELIB): New macro.
9281 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9282 cselib_lookup): Check for it rather than for TDF_DETAILS.
9284 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9287 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9290 * opts.c (finish_options): Don't add x_aux_base_name if it is
9293 2011-02-01 Richard Guenther <rguenther@suse.de>
9295 PR tree-optimization/47555
9297 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9299 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9301 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9304 * config/lm32/t-lm32: Add multilib for all CPU options.
9306 2011-02-01 Richard Guenther <rguenther@suse.de>
9308 PR tree-optimization/47541
9309 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9310 sure to have a field at offset zero.
9312 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9314 * config/arc/arc.opt (EB, EL): New Driver options.
9316 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9318 * config/alpha/osf5.opt: New.
9319 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9321 2011-01-31 Joseph Myers <joseph@codesourcery.com>
9323 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9325 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9327 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9329 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9330 is an alias of -floop-interchange and that it requires the
9331 Graphite infrastructure.
9332 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9333 flag_loop_interchange based on the value of flag_tree_loop_linear.
9335 2011-01-31 Jakub Jelinek <jakub@redhat.com>
9336 Richard Guenther <rguenther@suse.de>
9338 PR tree-optimization/47538
9339 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9340 type instead of r1type, except for comparisons. For right
9341 shifts and comparisons punt if there are mismatches in
9342 sizetype vs. non-sizetype types.
9344 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9346 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9349 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9351 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9353 * configure: Regenerate.
9355 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9357 * configure.ac (gcc_cv_ld_static_option): Define.
9358 (gcc_cv_ld_dynamic_option): Define.
9359 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9361 (HAVE_LD_STATIC_DYNAMIC): Update message.
9362 (LD_STATIC_OPTION): Define.
9363 (LD_DYNAMIC_OPTION): Define.
9364 * configure: Regenerate.
9365 * config.in: Regenerate.
9366 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9367 HAVE_LD_STATIC_DYNAMIC]: Use them.
9369 2011-01-31 Nick Clifton <nickc@redhat.com>
9371 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9372 registers inside interrupt handlers if the handler is not a leaf
9375 2011-01-31 Nick Clifton <nickc@redhat.com>
9377 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9378 reg_renumber returning an INVALID_REGNUM.
9380 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9383 * doc/install.texi: Document host options discarded when cross
9384 configuring target libraries.
9386 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
9389 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9392 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9394 (no_real_insns_p, schedule_block, set_priorities): Drop special
9395 treatment of boundary debug insns.
9396 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9397 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9398 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9399 (BOUNDARY_DEBUG_INSN_P): Likewise.
9400 (SCHEDULE_DEBUG_INSN_P): Likewise.
9401 * sched-rgn.c (init_ready_list): Drop special treatment of
9402 boundary debug insns.
9403 * final.c (rest_of_clean-state): Clear notes' BB.
9405 2011-01-31 Alan Modra <amodra@gmail.com>
9407 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9408 toc relative expressions as we do in print_operand_address.
9410 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
9412 * doc/extend.texi: Follow spelling conventions.
9413 * doc/invoke.texi: Fix a typo.
9415 2011-01-30 Joseph Myers <joseph@codesourcery.com>
9417 * config/hpux11.opt: New.
9418 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9419 ia64*-*-hpux*): Use hpux11.opt.
9421 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
9423 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9426 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9428 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9431 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9433 * doc/install.texi (Binaries): Remove outdated reference for
9434 Motorola 68HC11/68HC12 downloads.
9436 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9438 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9441 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9444 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9447 2011-01-28 Ahmad Sharif <asharif@google.com>
9449 * value-prof.c (check_counter): Corrected error message.
9451 2011-01-29 Jie Zhang <jie@codesourcery.com>
9453 * config/arm/arm.c (arm_legitimize_reload_address): New.
9454 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9455 arm_legitimize_reload_address.
9456 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9458 2011-01-28 Ian Lance Taylor <iant@google.com>
9460 * godump.c (go_define): Ignore macros whose definitions include
9461 two adjacent operands.
9463 2011-01-28 Jakub Jelinek <jakub@redhat.com>
9466 * varasm.c (force_const_mem): Store copy of x in desc->constant
9467 instead of x itself.
9468 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9469 itself into REG_EQUAL note.
9471 2011-01-28 Joseph Myers <joseph@codesourcery.com>
9473 * config/freebsd.opt (posix, rdynamic): New Driver options.
9475 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9477 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9479 * configure: Regenerate.
9481 2011-01-27 Joseph Myers <joseph@codesourcery.com>
9483 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9484 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9486 2011-01-27 Anatoly Sokolov <aesok@post.ru>
9488 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9489 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9490 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9491 (s390_preferred_reload_class): Make static. Change return and
9492 'rclass' argument type to reg_class_t.
9494 2011-01-27 Jan Hubicka <jh@suse.cz>
9497 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9498 (process_function_and_variable_attributes): Check defined weakrefs.
9500 2011-01-27 Martin Jambor <mjambor@suse.cz>
9502 PR tree-optimization/47228
9503 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9504 build_ref_for_offset.
9506 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9508 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9510 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
9512 PR rtl-optimization/46856
9513 * postreload.c (reload_combine_recognize_const_pattern): Do not
9514 separate cc0 setter and user on cc0 targets.
9516 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9519 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9520 passed a VOID_TYPE expression, immediately emit an error and
9521 return error_mark_node.
9523 2011-01-26 Jeff Law <law@redhat.com>
9525 PR rtl-optimization/47464
9526 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9527 rather than may_trap_p as needed.
9529 2011-01-26 DJ Delorie <dj@redhat.com>
9531 PR rtl-optimization/46878
9532 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9533 setter/user dependency as well.
9535 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9537 PR rtl-optimization/44469
9538 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9539 after removing trivially dead basic blocks.
9541 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9543 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9544 * config/frv/frv.h (LINK_SPEC): Likewise.
9545 * config/i386/netware.h (LINK_SPEC): Likewise.
9546 * config/m68k/linux.h (ASM_SPEC): Likewise.
9547 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9548 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9549 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9550 * config/sparc/linux.h (ASM_SPEC): Likewise.
9551 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9552 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9554 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9556 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9557 * config/frv/frv.h (ASM_SPEC): Likewise.
9558 * config/m68k/linux.h (ASM_SPEC): Likewise.
9559 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9560 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9561 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9562 * config/sparc/linux.h (ASM_SPEC): Likewise.
9563 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9564 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9566 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9568 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9569 * config/frv/frv.h (LINK_SPEC): Likewise.
9570 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9572 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9574 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9575 * config/frv/frv.h (ASM_SPEC): Likewise.
9576 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9577 * config/m68k/linux.h (ASM_SPEC): Likewise.
9578 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9579 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9580 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9581 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9582 * config/sparc/linux.h (ASM_SPEC): Likewise.
9583 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9584 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9585 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9587 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9590 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9592 (vec_extract_evenodd_help): Ditto.
9593 (vec_extract_evenv4hi): Ditto.
9594 (vec_extract_oddv4hi): Ditto.
9595 (vec_interleave_lowv2si): Ditto.
9596 (vec_interleave_highv2si): Ditto.
9597 (vec_extract_evenv2si): Ditto.
9598 (vec_extract_oddv2si: Ditto.
9599 (vec_pack_trunc_v2si): Ditto.
9601 2011-01-22 Jan Hubicka <jh@suse.cz>
9604 * cgraph.h (cgraph_local_info): New field can_change_signature.
9605 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9606 signature can change.
9607 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9609 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9610 (cgraph_function_versioning): We can not change signature of functions
9611 that don't allow that.
9612 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9613 (lto_input_node): Likewise.
9614 * ipa-inline.c (compute_inline_parameters): Compute
9615 local.can_change_signature.
9616 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9617 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9618 functions that can not change signature.
9619 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9620 init_cumulative_args): Do not use local calling conventions
9621 for functions that can not change signature.
9623 2011-01-22 Jan Hubicka <jh@suse.cz>
9625 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9627 2011-01-26 Richard Guenther <rguenther@suse.de>
9629 PR tree-optimization/47190
9630 * cgraphunit.c (process_common_attributes): New function.
9631 (process_function_and_variable_attributes): Use it.
9633 2011-01-26 Richard Guenther <rguenther@suse.de>
9636 * cgraphbuild.c (record_eh_tables): Record reference to personality
9639 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9642 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9643 non-debug insns from moving up.
9645 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9648 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9649 t-dlldir{,-x} fragment for build and add it to tmake_file.
9650 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9651 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9652 * config/i386/t-dlldir: New file.
9653 (SHLIB_DLLDIR): Define.
9654 * config/i386/t-dlldir-x: New file.
9655 (SHLIB_DLLDIR): Define.
9656 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9657 (SHLIB_INSTALL): Use it.
9659 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9662 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9663 lower bound of the allowed Thumb-2 coprocessor load/store
9664 index range to -256. Add explaining comment.
9666 2011-01-25 Ian Lance Taylor <iant@google.com>
9668 * godump.c (go_define): Improve lexing of macro expansion to only
9669 accept expressions which match Go spec.
9671 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9674 * tree.c (handle_dll_attribute): Handle it.
9675 * doc/extend.texi (@item dllexport): Mention it.
9676 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9678 2011-01-25 Ian Lance Taylor <iant@google.com>
9680 PR tree-optimization/26854
9681 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9682 (decl_jump_unsafe): Move higher in file, with no other change.
9683 (bind): Set has_jump_unsafe_decl if appropriate.
9684 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9685 (check_earlier_gotos): Likewise.
9686 (c_check_switch_jump_warnings): Likewise.
9688 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9690 * doc/invoke.texi (Warning Options): Add missing hyphen.
9691 (-fprofile-dir): Minor grammatical fixes.
9692 (-fbranch-probabilities): Likewise.
9694 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9698 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9700 (no_real_insns_p, schedule_block, set_priorities): Drop special
9701 treatment of boundary debug insns.
9702 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9703 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9704 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9705 (BOUNDARY_DEBUG_INSN_P): Likewise.
9706 (SCHEDULE_DEBUG_INSN_P): Likewise.
9707 * sched-rgn.c (init_ready_list): Drop special treatment of
9708 boundary debug insns.
9709 * final.c (rest_of_clean-state): Clear notes' BB.
9711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9713 * Makefile.in (LAMBDA_H): Removed.
9714 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9715 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9716 lambda-trans.o, and tree-loop-linear.o.
9717 (lto-symtab.o): Remove dependence on LAMBDA_H.
9718 (tree-loop-linear.o): Remove rule.
9719 (lambda-mat.o): Same.
9720 (lambda-trans.o): Same.
9721 (lambda-code.o): Same.
9722 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9723 (tree-vect-slp.o): Same.
9724 * hwint.h (gcd): Moved here.
9725 (least_common_multiple): Same.
9726 * lambda-code.c: Removed.
9727 * lambda-mat.c: Removed.
9728 * lambda-trans.c: Removed.
9729 * lambda.h: Removed.
9730 * tree-loop-linear.c: Removed.
9731 * lto-symtab.c: Do not include lambda.h.
9732 * omega.c (gcd): Removed.
9733 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9734 * tree-data-ref.c (print_lambda_vector): Moved here.
9735 (lambda_vector_copy): Same.
9736 (lambda_matrix_copy): Same.
9737 (lambda_matrix_id): Same.
9738 (lambda_vector_first_nz): Same.
9739 (lambda_matrix_row_add): Same.
9740 (lambda_matrix_row_exchange): Same.
9741 (lambda_vector_mult_const): Same.
9742 (lambda_vector_negate): Same.
9743 (lambda_matrix_row_negate): Same.
9744 (lambda_vector_equal): Same.
9745 (lambda_matrix_right_hermite): Same.
9746 * tree-data-ref.h: Do not include lambda.h.
9747 (lambda_vector): Moved here.
9748 (lambda_matrix): Same.
9749 (dependence_level): Same.
9750 (lambda_transform_legal_p): Removed declaration.
9751 (lambda_collect_parameters): Same.
9752 (lambda_compute_access_matrices): Same.
9753 (lambda_vector_gcd): Same.
9754 (lambda_vector_new): Same.
9755 (lambda_vector_clear): Same.
9756 (lambda_vector_lexico_pos): Same.
9757 (lambda_vector_zerop): Same.
9758 (lambda_matrix_new): Same.
9759 * tree-flow.h (least_common_multiple): Removed declaration.
9760 * tree-parloops.c (lambda_trans_matrix): Moved here.
9762 (LTM_ROWSIZE): Same.
9763 (LTM_COLSIZE): Same.
9764 (LTM_DENOMINATOR): Same.
9765 (lambda_trans_matrix_new): Same.
9766 (lambda_matrix_vector_mult): Same.
9767 (lambda_transform_legal_p): Same.
9768 * tree-pass.h (pass_linear_transform): Removed declaration.
9769 * tree-ssa-loop.c (tree_linear_transform): Removed.
9770 (gate_tree_linear_transform): Removed.
9771 (pass_linear_transform): Removed.
9772 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9773 flag_loop_interchange.
9775 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9777 PR tree-optimization/47265
9778 PR tree-optimization/47443
9779 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9780 if name still has some uses.
9782 2011-01-25 Martin Jambor <mjambor@suse.cz>
9784 PR tree-optimization/47382
9785 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9786 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9788 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9790 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9791 sjlj_except_unwind_info.
9793 2011-01-25 Richard Guenther <rguenther@suse.de>
9795 PR tree-optimization/47426
9796 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9797 visible functions results escape.
9799 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9802 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9803 (arm_get_frame_offsets): Use it.
9805 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9806 Jakub Jelinek <jakub@redhat.com>
9808 PR tree-optimization/47271
9809 * tree-if-conv.c (bb_postdominates_preds): New.
9810 (if_convertible_bb_p): Call bb_postdominates_preds.
9811 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9812 (predicate_scalar_phi): Call bb_postdominates_preds.
9814 2011-01-25 Nick Clifton <nickc@redhat.com>
9816 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9817 * config/rx/rx.c (rx_function_value): Likewise.
9818 (rx_promote_function_mode): Likewise.
9819 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9820 in order to make it legitimate.
9821 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9822 make sure that the first operand is the same as the result register.
9823 (addsi3_unspec): Delete.
9824 (subdi3): Do not accept immediate operands.
9825 (subdi3_internal): Likewise.
9827 2011-01-25 Jeff Law <law@redhat.com>
9829 PR rtl-optimization/37273
9830 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9831 handle them like argument loads from stack slots. Do not double
9832 count memory for memory constants and argument loads from stack slots.
9834 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9836 PR tree-optimization/47427
9837 PR tree-optimization/47428
9838 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9839 coalesce if the new root var would be TREE_READONLY.
9841 2011-01-25 Richard Guenther <rguenther@suse.de>
9844 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9845 correct type for TBAA.
9847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9849 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9850 (close_phi_written_to_memory): Call for_each_index with
9851 dr_indices_valid_in_loop.
9853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9855 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9856 when it is initialized.
9858 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9860 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9861 call to graphite_find_data_references_in_stmt.
9862 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9863 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9864 call to graphite_find_data_references_in_stmt.
9865 (analyze_drs_in_stmts): Same.
9866 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9867 in which the scalar analysis of indices is performed.
9868 (create_data_ref): Same. Update call to dr_analyze_indices.
9869 (find_data_references_in_stmt): Update call to create_data_ref.
9870 (graphite_find_data_references_in_stmt): Same.
9871 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9873 (create_data_ref): Same.
9874 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9875 call to create_data_ref.
9877 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9879 * graphite-sese-to-poly.c (build_poly_scop): Move
9880 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9884 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9885 VAR_DECL, PARM_DECL, and RESULT_DECL.
9887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9889 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9891 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9892 that have already been marked as PBB_IS_REDUCTION.
9894 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9896 * graphite-scop-detection.c (same_close_phi_node): New.
9897 (remove_duplicate_close_phi): New.
9898 (make_close_phi_nodes_unique): New.
9899 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9903 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9904 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9905 of both data references to be the same.
9907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9909 * graphite-dependences.c (build_lexicographical_constraint): Remove
9911 (build_lexicographical_constraint): Adjust call to
9912 ppl_powerset_is_empty.
9913 (dependence_polyhedron): Same.
9914 (graphite_legal_transform_dr): Same.
9915 (graphite_carried_dependence_level_k): Same.
9916 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9918 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9920 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9922 * graphite-sese-to-poly.c
9923 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9924 (close_phi_written_to_memory): New.
9925 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9928 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9930 * doc/install.texi: Update the expected version number of PPL to 0.11.
9931 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9932 #if PPL_VERSION_MINOR < 11.
9934 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9936 * graphite-dependences.c: Include graphite-cloog-util.h.
9937 (new_poly_ddr): Inlined into dependence_polyhedron.
9938 (free_poly_ddr): Moved close by new_poly_ddr.
9939 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9940 Early return NULL when ppl_powerset_is_empty returns true.
9941 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9942 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9943 (graphite_legal_transform_dr): Call new_poly_ddr.
9944 (graphite_carried_dependence_level_k): Same.
9945 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9946 (dot_transformed_deps_stmt_1): Removed.
9947 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9948 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9949 (dot_deps_1): Call dot_deps_2.
9950 * Makefile.in (graphite-dependences.o): Add missing dependence on
9951 graphite-cloog-util.h.
9953 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9955 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9956 (build_lexicographical_constraint): Same.
9957 (dependence_polyhedron_1): Same.
9958 (graphite_legal_transform_dr): Same.
9959 (graphite_carried_dependence_level_k): Same.
9960 * graphite-ppl.c (ppl_powerset_is_empty): New.
9961 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9962 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9964 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9966 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9967 the "a followed by b" relation and document it.
9969 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9971 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9972 iteration when the bag of constraints is empty.
9974 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9976 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9980 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9981 nest and two loop depths as parameters.
9982 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9983 lst_perfect_nestify.
9985 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9987 * graphite-dependences.c (print_pddr): Call
9988 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9992 * graphite-ppl.c (debug_gmp_value): New.
9993 * graphite-ppl.h (debug_gmp_value): Declared.
9995 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9997 * doc/install.texi: Document availability of cloog-0.16.
9999 2011-01-25 Vladimir Kargov <kargov@gmail.com>
10001 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10002 invalid postdominance info.
10004 2011-01-24 Jan Hubicka <jh@suse.cz>
10007 * doc/extend.texi (weak pragma): Drop claim that it must
10008 appear before definition.
10009 * varasm.c (merge_weak, declare_weak): Only sanity check
10010 that DECL is not output at a time it is declared weak.
10012 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10014 * machmode.def: Fixed comments.
10016 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
10018 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10020 2011-01-24 Paul Koning <ni1d@arrl.net>
10022 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10025 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10028 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10029 (block_info): Add scanned and prev.
10030 (move_or_delete_vzeroupper_2): Return if the basic block
10031 has been scanned and the upper 128bit state is unchanged
10032 from the last scan.
10033 (move_or_delete_vzeroupper_1): Return true if the exit
10035 (move_or_delete_vzeroupper): Visit basic blocks using the
10036 work-list based algorithm based on vt_find_locations in
10039 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10041 2011-01-24 Nick Clifton <nickc@redhat.com>
10043 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10044 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10045 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10046 then define __v850e1__.
10047 * doc/invoke.texi: Document -mv850es.
10049 2011-01-24 Richard Henderson <rth@redhat.com>
10051 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10052 compound unordered comparisons.
10053 * config/rx/rx.c (rx_split_fp_compare): Remove.
10054 * config/rx/rx-protos.h: Update.
10055 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10056 (cbranchsf4): Don't call rx_split_fp_compare.
10057 (*cbranchsf4): Use rx_split_cbranch.
10058 (*cmpsf): Don't accept "i" constraint.
10059 (*conditional_branch): Only valid after reload.
10060 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10062 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10065 * config/rs6000/altivec.md (vector constant splitters): Add
10066 support for creating vector single precision constants if -mvsx is
10067 used and we would create the constant using Altivec primitives.
10069 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10070 Richard Sandiford <rdsandiford@googlemail.com>
10072 PR rtl-optimization/47166
10073 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10074 mechanism for PRE_MODIFY and POST_MODIFY.
10075 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10078 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10080 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10082 2011-01-22 Jan Hubicka <jh@suse.cz>
10085 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10087 2011-01-22 Jan Hubicka <jh@suse.cz>
10089 PR tree-optimization/43884
10091 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10092 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10094 2011-01-22 Anatoly Sokolov <aesok@post.ru>
10096 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10097 * config/s390/s390.c (s390_register_move_cost,
10098 s390_memory_move_cost): New.
10099 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10101 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10103 PR middle-end/47401
10104 * except.c (sjlj_assign_call_site_values): Move setting the
10105 crtl->uses_eh_lsda flag to ...
10106 (sjlj_mark_call_sites): ... here.
10107 (sjlj_emit_function_enter): Support NULL dispatch label.
10108 (sjlj_build_landing_pads): In a function with no landing pads
10109 that still has must-not-throw regions, generate code to register
10110 a personality function with empty LSDA.
10112 2011-01-21 Richard Henderson <rth@redhat.com>
10114 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10116 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10118 * compare-elim.c: New file.
10119 * Makefile.in (OBJS-common): Add it.
10120 (compare-elim.o): New.
10121 * common.opt (fcompare-elim): New.
10122 * opts.c (default_options_table): Add OPT_fcompare_elim.
10123 * tree-pass.h (pass_compare_elim_after_reload): New.
10124 * passes.c (init_optimization_passes): Add it.
10125 * recog.h: Protect against re-inclusion.
10126 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10127 * doc/invoke.texi (-fcompare-elim): Document it.
10128 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10129 * doc/tm.texi: Rebuild.
10131 2011-01-22 Nick Clifton <nickc@redhat.com>
10133 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10134 rx_split_fp_compare.
10136 2011-01-22 Nick Clifton <nickc@redhat.com>
10138 * config/rx/rx.md (UNSPEC_CONST): New.
10139 (deallocate_and_return): Wrap the amount popped off the stack in
10140 an UNSPEC_CONST in order to stop it being rejected by
10141 -mmax-constant-size.
10142 (pop_and_return): Add a "(return)" rtx.
10143 (call): Drop the immediate operand.
10144 (call_internal): Likewise.
10145 (call_value): Likewise.
10146 (call_value_internal): Likewise.
10147 (sibcall_internal): Likewise.
10148 (sibcall_value_internal): Likewise.
10149 (sibcall): Likewise. Generate an explicit call using
10151 (sibcall_value): Likewise.
10152 (mov<>): FAIL if a constant operand is not legitimate.
10153 (addsi3_unpsec): New pattern.
10155 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10156 (ok_for_max_constant): New function.
10157 (gen_safe_add): New function.
10158 (rx_expand_prologue): Use gen_safe_add.
10159 (rx_expand_epilogue): Likewise.
10160 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10163 2011-01-21 Jeff Law <law@redhat.com>
10165 PR tree-optimization/47053
10166 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10167 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10168 statements are deleted.
10169 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10170 is nonempty, then purge dead edges and cleanup the CFG.
10172 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10175 Temporarily revert:
10176 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10178 * tree-dfa.c (create_var_ann): Mark variable as used.
10180 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10182 PR middle-end/45566
10183 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10184 notes from other section in hot/cold partitioning even if
10185 last_action is -3. Increment call_site_base.
10187 PR rtl-optimization/47366
10188 * fwprop.c (forward_propagate_into): Return bool. If
10189 any changes are made, -fnon-call-exceptions is used and
10190 REG_EH_REGION note is present, call purge_dead_edges
10191 and return true if it purged anything.
10192 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10193 any EH edges were purged.
10195 2011-01-21 Jeff Law <law@redhat.com>
10197 PR rtl-optimization/41619
10198 * caller-save.c (setup_save_areas): Break out code to determine
10199 which hard regs are live across calls by examining the reload chains
10200 so that it is always used.
10201 Eliminate code which checked REG_N_CALLS_CROSSED.
10203 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10205 PR tree-optimization/47355
10206 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10207 NOP has non-debug uses beyond PHIs in new_bb.
10209 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10212 * cfgexpand.c (account_used_vars_for_block): Only account vars
10213 that are annotated as used.
10214 (estimated_stack_frame_size): Don't set TREE_USED.
10215 * tree-dfa.c (create_var_ann): Mark variable as used.
10217 2011-01-21 Richard Guenther <rguenther@suse.de>
10219 PR middle-end/47395
10220 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10222 2011-01-21 Richard Guenther <rguenther@suse.de>
10224 PR tree-optimization/47365
10225 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10226 (vn_reference_lookup_pieces): Adjust.
10227 (vn_reference_lookup): Likewise.
10228 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10229 (vn_reference_lookup_3): Only look through kills if in
10230 VN_WALKREWRITE mode.
10231 (vn_reference_lookup_pieces): Adjust.
10232 (vn_reference_lookup): Likewise.
10233 (visit_reference_op_load): Likewise.
10234 (visit_reference_op_store): Likewise.
10235 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10236 (compute_avail): Likewise.
10237 (eliminate): Likewise.
10239 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10241 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10242 DECL_IGNORED_P non-reg vars if they are used.
10244 PR tree-optimization/47391
10245 * varpool.c (const_value_known_p): Return false if
10248 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
10251 * config/i386/i386.c (ix86_local_alignment): Handle
10252 case for va_list_type_node is nil.
10253 (ix86_canonical_va_list_type): Likewise.
10255 2011-01-21 Alan Modra <amodra@gmail.com>
10257 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10258 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10260 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10262 * config/arm/arm.md (define_attr type): Rename f_load
10263 and f_store to f_fpa_load and f_fpa_store. Update.
10264 (write_conflict): Deal with rename fallout.
10265 (*push_fp_multi): Likewise.
10266 * config/arm/fpa.md (f_load): Use f_fpa_load.
10267 (f_store): Use f_fpa_store.
10268 (*movsf_fpa): Likewise.
10269 (*movdf_fpa): Likewise.
10270 (*movxf_fpa): Likewise.
10271 (*thumb2_movsf_fpa): Likewise.
10272 (*thumb2_movdf_fpa): Likewise.
10273 (*thumb2_movxf_fpa): Likewise.
10274 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10275 f_loadd and f_stored.
10276 (*thumb2_movdi_vfp): Likewise.
10277 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10278 (*thumb2_movsi_vfp): Likewise.
10279 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10280 Use f_loads instead of f_load.
10281 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10283 2011-01-20 Anatoly Sokolov <aesok@post.ru>
10285 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10286 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10287 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10288 (xtensa_mode_dependent_address_p): New function.
10289 (constantpool_address_p): Make static. Change return type to bool.
10290 Change argument type to const_rtx. Use CONST_INT_P predicate.
10292 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
10295 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10297 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10300 * cfgexpand.c (expand_debug_expr): Instead of generating
10301 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10304 2011-01-20 Richard Guenther <rguenther@suse.de>
10306 PR middle-end/47370
10307 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10308 the pointer operand of MEM_REFs.
10310 2011-01-20 Jakub Jelinek <jakub@redhat.com>
10312 PR tree-optimization/46130
10313 * ipa-split.c (consider_split): If return_bb contains non-virtual
10314 PHIs other than for retval or if split_function would not adjust it,
10317 2011-01-20 Richard Guenther <rguenther@suse.de>
10319 PR tree-optimization/47167
10320 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10321 Revert previous change, only avoid enumeral type changes.
10323 2011-01-19 Mike Stump <mikestump@comcast.net>
10325 * doc/tm.texi.in (BRANCH_COST): Englishify.
10326 * doc/tm.texi (BRANCH_COST): Likewise.
10328 2011-01-19 Dodji Seketeli <dodji@redhat.com>
10331 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10332 (gen_scheduled_generic_parms_dies): New functions.
10333 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10334 generation for the end of CU compilation.
10335 (dwarf2out_finish): Generate template parameters DIEs here.
10337 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10340 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10341 debug bind stmt on merge edges.
10343 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10347 * function.c (instantiate_expr): Instantiate incoming rtl of
10348 implicit arguments, and recurse on VALUE_EXPRs.
10349 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10350 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10352 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
10354 * c-parser.c (c_parser_for_statement): Initialize
10355 collection_expression.
10357 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10359 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10361 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10363 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10364 (LINK_SHLIB_SPEC): Don't use %(link_path).
10365 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10367 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10369 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10370 (NO_SHARED_LIB_SUPPORT): Remove.
10371 (LINK_SHLIB_SPEC): Remove one conditional definition.
10373 2011-01-19 Joseph Myers <joseph@codesourcery.com>
10375 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10377 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10378 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10379 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10380 %{call_shared} and conditionals on these options not being passed.
10381 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10384 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10386 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10389 * ipa-split.c: Spelling fixes.
10391 2011-01-19 Richard Henderson <rth@redhat.com>
10393 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10394 (*mulsi3): Likewise.
10396 * longlong.h [__mn10300__] (count_leading_zeros): New.
10397 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10398 [__mn10300__] (add_ssaaaa, subddmmss): New.
10399 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10400 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10402 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10404 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10406 2011-01-19 Richard Henderson <rth@redhat.com>
10408 * config/mn10300/mn10300.md (addsi3_flags): New.
10409 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10410 (subsi3_flags, subc_internal, subdi3): New.
10411 (subdi3_internal, *subdi3_degenerate): New.
10412 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10414 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10415 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10416 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10417 * config/mn10300/mn10300-protos.h: Update.
10418 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10419 (return_ret): Likewise. Rename from return_internal_regs.
10420 (return_internal): Remove.
10422 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10423 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10424 (mn10300_legitimate_constant_p): Likewise.
10425 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10426 (mn10300_frame_size): New.
10427 (mn10300_expand_prologue): Use it.
10428 (mn10300_expand_epilogue): Likewise.
10429 (mn10300_initial_offset): Likewise.
10430 * config/mn10300/mn10300-protos.h: Update.
10431 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10432 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10433 (prologue, epilogue, return_internal): Tidy output code.
10434 (mn10300_store_multiple_operation, return): Likewise.
10435 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10436 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10437 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10438 (load_pic, am33_load_pic): New.
10439 (mn10300_load_pic0, mn10300_load_pic1): New.
10441 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10442 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10443 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10444 (cc_flags_for_mode, cc_flags_for_code): New.
10445 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10446 overflow flag is not valid. Validate that the flags we need
10447 for the comparison are valid.
10448 (mn10300_output_cmp): Remove.
10449 (mn10300_output_add): New.
10450 (mn10300_select_cc_mode): Use cc_flags_for_code.
10451 (mn10300_split_cbranch): New.
10452 (mn10300_match_ccmode): New.
10453 (mn10300_split_and_operand_count): New.
10454 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10456 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10457 (addsi3): ... here. Use mn10300_output_add.
10458 (*addsi3_flags): New.
10459 (*am33_subsi3, *mn10300_subsi3): Merge...
10460 (subsi3): ... here. Use attribute isa.
10461 (*subsi3_flags): New.
10462 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10464 (*am33_andsi3, *mn10300_andsi3): Merge...
10465 (andsi3): ... here.
10466 (*andsi3_flags): New.
10467 (andsi3 splitters): New.
10468 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10469 (iorsi3): ... here.
10470 (*iorsi3_flags): New.
10471 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10472 (xorsi3): ... here.
10473 (*xorsi3_flags): New.
10474 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10475 (one_cmplsi2): ... here.
10476 (*one_cmplsi2_flags): New.
10477 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10478 instead of "dax" in constraints. Use mn10300_split_cbranch.
10479 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10480 use matching constraints to eliminate a self-comparison.
10481 (*integer_conditional_branch): Rename from integer_conditional_branch.
10482 Use int_mode_flags to match CC_REG.
10483 (*cbranchsi4_btst, *btstsi): New.
10484 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10485 mn10300_split_cbranch.
10486 (*am33_cmpsf): Rename from am33_cmpsf.
10487 (*float_conditional_branch): Rename from float_conditional_branch.
10488 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10489 (zero_extendqisi2): ... here.
10490 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10491 (zero_extendhisi2): ... here.
10492 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10493 (extendqisi2): ... here.
10494 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10495 (extendhisi2): ... here.
10496 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10497 (ashlsi3): ... here.
10498 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10499 (lshrsi3): ... here.
10500 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10501 (ashrsi3): ... here.
10502 (consecutive add peephole): Remove.
10503 * config/mn10300/predicates.md (label_ref_operand): New.
10504 (int_mode_flags): New.
10505 (CCZN_comparison_operator): New.
10507 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10508 (throughput_42_latency_43): New reservation.
10509 (mulsidi3, umulsidi3): New expanders.
10510 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10511 the MDR register to allocation; separately allocate the low and
10512 high parts of the DImode result.
10513 (umulsidi3_internal): Similarly.
10514 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10515 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10516 (udivsi3, umodsi3): Remove.
10517 (udivmodsi4, divmodsi4): New expanders.
10518 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10519 (*divmodsi4): Simiarly.
10520 (ext_internal): New.
10522 * config/mn10300/constraints.md ("z"): New constraint.
10523 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10524 (FIXED_REGISTERS): Don't fix MDR.
10525 (CALL_USED_REGSITERS): Reformat nicely.
10526 (REG_ALLOC_ORDER): Add MDR.
10527 (enum regclass): Add MDR_REGS.
10528 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10529 (IRA_COVER_CLASSES): Add MDR_REGS.
10530 (REGNO_REG_CLASS): Handle MDR_REG.
10531 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10532 (mn10300_register_move_cost): Likewise.
10533 * config/mn10300/mn10300.md (MDR_REG): New.
10534 (*movsi_internal): Handle moves to/from MDR_REGS.
10536 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10538 (mn10300_secondary_reload): Tidy combination reload classes.
10539 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10540 addresses for AM33. Allow symbolic offsets for reg+imm.
10541 (mn10300_regno_in_class_p): New.
10542 (mn10300_legitimize_reload_address): New.
10543 * config/mn10300/mn10300.h (enum reg_class): Remove
10544 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10545 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10546 SP_OR_GENERAL_REGS.
10547 (REG_CLASS_NAMES): Update to match.
10548 (REG_CLASS_CONTENTS): Likewise.
10549 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10550 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10551 (REGNO_IN_RANGE_P): Remove.
10552 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10553 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10554 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10555 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10556 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10557 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10558 (REGNO_GENERAL_P): New.
10559 (HAVE_POST_MODIFY_DISP): New.
10560 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10561 (LEGITIMIZE_RELOAD_ADDRESS): New.
10562 * config/mn10300/mn10300-protos.h: Update.
10564 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10565 DATA_REGS for AM33 stack-pointer destination.
10566 (mn10300_preferred_output_reload_class): Likewise.
10567 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10568 into a form appropriate for ...
10569 (TARGET_SECONDARY_RELOAD): New.
10570 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10571 * config/mn10300/mn10300-protos.h: Update.
10572 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10573 reload_insi; use the "A" constraint for the scratch; handle AM33
10574 moves of sp to non-address registers.
10576 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10577 (*movqi_internal): ... here.
10578 (*am33_movhi, *mn10300_movhi): Merge into...
10579 (*movhi_internal): ... here.
10580 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10581 as the source/destination of moves from/to SP.
10582 (movsf): Only allow for AM33-2.
10583 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10584 any integer constant constraint. Only allow for AM33-2. Tidy
10585 all of the alternative outputs.
10586 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10587 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10589 (udivsi3, umodsi3): New patterns for MN103 only.
10591 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10593 * doc/tm.texi.in: Spell out that a lack of register class unions
10595 * doc/tm.texi: Regenerate.
10597 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10599 PR rtl-optimization/47337
10600 * dce.c (check_argument_store): New function.
10601 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10603 PR tree-optimization/47290
10604 * tree-eh.c (infinite_empty_loop_p): New function.
10605 (cleanup_empty_eh): Use it.
10607 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10610 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10611 (a64_expand_widen_sum): Ditto.
10612 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10613 (vec_extract_evenodd_help): Ditto.
10614 (vec_extract_evenv4hi): Ditto.
10615 (vec_extract_oddv4hi): Ditto.
10616 (vec_extract_evenv2si): Ditto.
10617 (vec_extract_oddv2si): Ditto.
10618 (vec_extract_evenv2sf): Ditto.
10619 (vec_extract_oddv2sf): Ditto.
10620 (vec_pack_trunc_v4hi: Ditto.
10621 (vec_pack_trunc_v2si): Ditto.
10622 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10623 (vec_interleave_highv8qi): Ditto.
10625 (vec_extract_oddv8qi): Ditto.
10626 (vec_interleave_lowv4hi): Ditto.
10627 (vec_interleave_highv4hi): Ditto.
10628 (vec_interleave_lowv2si): Ditto.
10629 (vec_interleave_highv2si): Ditto.
10631 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10633 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10634 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10635 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10636 (pa_c_mode_for_suffix): New.
10637 (TARGET_EXPAND_BUILTIN): Define.
10638 (TARGET_C_MODE_FOR_SUFFIX): Define.
10639 (pa_builtins): Define.
10640 (pa_init_builtins): Register __float128 type and init new support
10642 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10643 * config/pa/quadlib.c (_U_Qfcopysign): New.
10645 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10647 PR middle-end/46894
10648 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10649 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10652 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10654 PR tree-optimization/47179
10655 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10656 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10658 2011-01-18 Richard Guenther <rguenther@suse.de>
10660 PR rtl-optimization/47216
10661 * emit-rtl.c: Include tree-flow.h.
10662 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10663 of replicating it with different semantics.
10664 * Makefile.in (emit-rtl.o): Adjust.
10666 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10668 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10669 (cortex_a9_dp): Handle neon types correctly.
10671 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10673 PR rtl-optimization/47299
10674 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10675 subtarget. Use normal multiplication if both operands are constants.
10676 * expmed.c (expand_widening_mult): Don't try to optimize constant
10677 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10680 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10682 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10683 spacing after 'e.g.', typos, comma, hyphenation.
10685 2011-01-17 Richard Henderson <rth@redhat.com>
10687 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10688 (rx_restricted_mem_operand): New.
10689 (rx_shift_operand): Use register_operand.
10690 (rx_source_operand, rx_compare_operand): Likewise.
10691 * config/rx/rx.md (addsi3_flags): New expander.
10692 (adddi3): Rewrite as expander.
10693 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10694 (subsi3_flags): New expander.
10695 (subdi3): Rewrite as expander.
10696 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10698 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10699 (rx_init_builtins): Remove sat builtin.
10700 (rx_expand_builtin): Likewise.
10701 * config/rx/rx.md (ssaddsi3): New.
10702 (*sat): Rename from sat. Represent the CC_REG input.
10704 * config/rx/predicates.md (rshift_operator): New.
10705 * config/rx/rx.c (rx_expand_insv): Remove.
10706 * config/rx/rx-protos.h: Update.
10707 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10708 operand to the canonical position.
10709 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10710 (*bitclr, *bitclr_in_memory): Similarly.
10711 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10712 (insv): Retain the zero_extract in the expansion.
10714 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10715 (bswaphi2, bitinvert, revw): Likewise.
10717 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10718 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10719 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10720 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10721 (bitset, bitset_in_memory): Likewise.
10722 (bitinvert, bitinvert_in_memory): Likewise.
10723 (bitclr, bitclr_in_memory): Likewise.
10724 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10725 (rx_strend, rx_cmpstrn): Likewise.
10726 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10727 (bitop peep2 patterns): Remove.
10729 * config/rx/rx.c (rx_match_ccmode): New.
10730 * config/rx/rx-protos.h: Update.
10731 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10732 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10733 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10734 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10735 (fix_truncsfsi2, floatsisf2): Likewise.
10736 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10737 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10738 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10739 (*subsi3_flags, *xorsi3_flags): New.
10741 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10743 * config/rx/rx.c (rx_print_operand): Remove workaround for
10744 unsplit comparison operations.
10746 * config/rx/rx.md (movsicc): Split after reload.
10747 (*movsicc): Merge *movsieq and *movsine via match_operator.
10748 (*stcc): New pattern.
10750 * config/rx/rx.c (rx_float_compare_mode): Remove.
10751 * config/rx/rx.h (rx_float_compare_mode): Remove.
10752 * config/rx/rx.md (cstoresi4): Split after reload.
10753 (*sccc): New pattern.
10755 * config/rx/predicates.md (label_ref_operand): New.
10756 (rx_z_comparison_operator): New.
10757 (rx_zs_comparison_operator): New.
10758 (rx_fp_comparison_operator): New.
10759 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10760 Validate that the flags are set properly for the comparison.
10761 (rx_gen_cond_branch_template): Remove.
10762 (rx_cc_modes_compatible): Remove.
10763 (mode_from_flags): New.
10764 (flags_from_code): Rename from flags_needed_for_conditional.
10765 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10766 (rx_select_cc_mode): Likewise.
10767 (rx_split_fp_compare): New.
10768 (rx_split_cbranch): New.
10769 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10770 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10771 (*cbranchsf4): Similarly.
10772 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10773 match_operator and rx_split_cbranch.
10774 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10775 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10776 (*cmpsi): Rename from cmpsi.
10777 (*tstsi): Rename from tstsi.
10778 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10779 (*conditional_branch): Rename from conditional_branch.
10780 (*reveresed_conditional_branch): Remove.
10781 (b<code>): Remove expander.
10782 * config/rx/rx-protos.h: Update.
10784 * config/rx/rx.c (rx_compare_redundant): Remove.
10785 * config/rx/rx.md (cmpsi): Don't use it.
10786 * config/rx/rx-protos.h: Update.
10788 * config/rx/rx-modes.def (CC_F): New mode.
10789 * config/rx/rx.c (rx_select_cc_mode): New.
10790 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10791 * config/rx/rx-protos.h: Update.
10793 2011-01-17 Richard Henderson <rth@redhat.com>
10795 * except.c (dump_eh_tree): Fix stray ; after for statement.
10797 2011-01-17 Richard Guenther <rguenther@suse.de>
10799 PR tree-optimization/47313
10800 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10801 handling before copying the body. Properly deal with
10802 by-reference result in SSA form.
10804 2011-01-17 Ian Lance Taylor <iant@google.com>
10807 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10808 (struct_value_alias_set): Don't define.
10809 (sparc_option_override): Don't set sparc_sr_alias_set and
10810 struct_value_alias_set.
10811 (save_or_restore_regs): Use gen_frame_mem rather than calling
10813 (sparc_struct_value_rtx): Likewise.
10815 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10818 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10819 (_mm_maskstore_pd): Likewise.
10820 (_mm_maskload_ps): Likewise.
10821 (_mm_maskstore_ps): Likewise.
10822 (_mm256_maskload_pd): Change mask to __m256i.
10823 (_mm256_maskstore_pd): Likewise.
10824 (_mm256_maskload_ps): Likewise.
10825 (_mm256_maskstore_ps): Likewise.
10827 * config/i386/i386-builtin-types.def: Updated.
10828 (ix86_expand_special_args_builtin): Likewise.
10830 * config/i386/i386.c (bdesc_special_args): Update
10831 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10832 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10833 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10834 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10836 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10837 Use <avxpermvecmode> on mask register.
10838 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10840 2011-01-17 Olivier Hainque <hainque@adacore.com>
10841 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10842 Eric Botcazou <ebotcazou@adacore.com>
10845 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10846 if <= USHRT_MAX in 32-bit mode.
10848 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10850 * doc/install.texi (Configuration, Specific): Wrap long
10851 lines in examples. Allow line wrapping in long options
10852 and URLs where beneficial for PDF output.
10854 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10856 * config/mips/mips.c (mips_classify_symbol): Don't return
10857 SYMBOL_PC_RELATIVE for nonlocal labels.
10859 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10861 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10863 2011-01-15 Jan Hubicka <jh@suse.cz>
10865 PR tree-optimization/47276
10866 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10867 declarations as needed.
10869 2011-01-15 Martin Jambor <mjambor@suse.cz>
10871 * common.opt (fdevirtualize): New flag.
10872 * doc/invoke.texi (Option Summary): Document it.
10873 * opts.c (default_options_table): Add devirtualize flag.
10874 * ipa-prop.c (detect_type_change): Return immediately if
10875 devirtualize flag is not set.
10876 (detect_type_change_ssa): Likewise.
10877 (compute_known_type_jump_func): Likewise.
10878 (ipa_analyze_virtual_call_uses): Likewise.
10880 2011-01-14 Martin Jambor <mjambor@suse.cz>
10882 PR tree-optimization/45934
10883 PR tree-optimization/46302
10884 * ipa-prop.c (type_change_info): New type.
10885 (stmt_may_be_vtbl_ptr_store): New function.
10886 (check_stmt_for_type_change): Likewise.
10887 (detect_type_change): Likewise.
10888 (detect_type_change_ssa): Likewise.
10889 (compute_complex_assign_jump_func): Check for dynamic type change.
10890 (compute_complex_ancestor_jump_func): Likewise.
10891 (compute_known_type_jump_func): Likewise.
10892 (compute_scalar_jump_functions): Likewise.
10893 (ipa_analyze_virtual_call_uses): Likewise.
10894 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10896 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10898 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10899 * config/i386/i386.opt (msse5): New Alias.
10901 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10903 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10904 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10905 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10906 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10910 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10912 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10913 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10914 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10915 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10917 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10919 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10921 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10923 2011-01-14 Mike Stump <mikestump@comcast.net>
10925 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10926 * config/fr30/fr30.md: Likweise
10927 (movsi_push): Likewise.
10928 (movsi_pop): Likewise.
10929 (enter_func): Likewise.
10930 * config/moxie/moxie.md (movsi_push): Likewise.
10931 (movsi_pop): Likewise.
10933 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10935 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10936 %{no_archive} %{exact_version}.
10937 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10938 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10939 %{no_archive} %{exact_version}.
10940 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10941 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10942 * config/mips/vxworks.h: Likewise.
10944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10946 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10948 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10950 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10951 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10953 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10955 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10958 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10960 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10962 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10963 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10965 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10966 Don't handle -shlib.
10968 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10970 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10971 (CC1_SPEC): Don't handle -profile.
10973 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10975 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10976 * config/mips/mips.h (CC1_SPEC): Likewise.
10978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10980 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10981 * config/mips/mips.h (CC1_SPEC): Likewise.
10983 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10985 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10986 * config/m32r/linux.h (LINK_SPEC): Likewise.
10987 * config/mips/linux.h (LINK_SPEC): Likewise.
10988 * config/mips/linux64.h (LINK_SPEC): Likewise.
10989 * config/sparc/linux.h (LINK_SPEC): Likewise.
10990 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10991 LINK_SPEC): Likewise.
10992 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10994 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10996 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10998 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11000 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11002 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11003 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11005 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11007 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11009 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11011 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11012 supports -Bstatic/-Bdynamic.
11013 * configure: Regenerate.
11015 2011-01-14 Jan Hubicka <jh@suse.cz>
11016 Jack Howarth <howarth@bromo.med.uc.edu>
11019 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11020 when checking debug_info_level. Test write_symbols instead of
11021 debug_hooks->var_location when setting flag_var_tracking_uninit.
11023 2011-01-14 Richard Guenther <rguenther@suse.de>
11025 PR tree-optimization/47179
11026 * target.def (ref_may_alias_errno): New target hook.
11027 * targhooks.h (default_ref_may_alias_errno): Declare.
11028 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11029 (default_ref_may_alias_errno): New function.
11030 * target.h (struct ao_ref_s): Declare.
11031 * tree-ssa-alias.c: Include target.h.
11032 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11033 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11034 (targhooks.o): Likewise.
11035 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11036 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11038 2011-01-14 Richard Guenther <rguenther@suse.de>
11040 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11042 2011-01-14 Richard Guenther <rguenther@suse.de>
11044 PR tree-optimization/47280
11045 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11046 return CFG changes.
11047 (tree_ssa_forward_propagate_single_use_vars): Deal with
11048 CFG changes from associate_plusminus.
11050 2011-01-14 Richard Guenther <rguenther@suse.de>
11052 PR middle-end/47281
11054 2011-01-11 Richard Guenther <rguenther@suse.de>
11056 PR tree-optimization/46076
11057 * tree-ssa.c (useless_type_conversion_p): Conversions from
11058 unprototyped to empty argument list function types are useless.
11060 2011-01-14 Richard Guenther <rguenther@suse.de>
11062 PR tree-optimization/47286
11063 * tree-ssa-structalias.c (new_var_info): Register variables are global.
11065 2011-01-14 Martin Jambor <mjambor@suse.cz>
11067 PR middle-end/46823
11068 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11070 2011-01-13 Anatoly Sokolov <aesok@post.ru>
11072 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11073 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11074 * config/xtensa/xtensa.c (xtensa_libcall_value,
11075 xtensa_function_value_regno_p): New functions.
11076 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11078 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11081 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11083 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11084 New function prototype.
11085 * config/i386/winnt.c (i386_pe_assemble_visibility):
11086 Warn only if attribute was specified by user.
11088 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11091 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11093 (floatunsdidf2_fcfidu): Ditto.
11095 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11097 * config/s390/s390.c (print_operand_address): Replace 'error' with
11098 'output_operand_lossage'.
11099 (print_operand): Likewise.
11101 2011-01-13 Jeff Law <law@redhat.com>
11103 PR rtl-optimization/39077
11104 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11105 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11106 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11107 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11108 * gcse.c (prune_insertions_deletions): New function.
11109 (compute_pre_data): Use it.
11111 2011-01-13 Dodji Seketeli <dodji@redhat.com>
11114 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11116 (prune_unused_types_mark): Use it.
11118 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
11120 PR rtl-optimization/45352
11121 * sel-sched.c: Update copyright years.
11122 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11123 in the advancing loop when we have issued issue_rate insns.
11125 2011-01-12 Richard Henderson <rth@redhat.com>
11127 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11128 (TARGET_MD_ASM_CLOBBERS): New.
11130 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11131 (TARGET_DELEGITIMIZE_ADDRESS): New.
11133 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11134 (clzsi2, *bsch): New patterns.
11136 * config/mn10300/mn10300.md (INT): New mode iterator.
11137 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11139 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11140 flag_split_wide_types.
11142 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11143 (mn10300_trampoline_init): Rewrite without a template, an immediate
11144 load and a direct branch.
11145 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11147 2011-01-12 Anatoly Sokolov <aesok@post.ru>
11149 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11150 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11151 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11152 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11154 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
11157 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11160 2011-01-12 Jan Hubicka <jh@suse.cz>
11163 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11164 (PLUGIN_COND_CLOSE): New macro.
11165 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11167 2011-01-12 Richard Guenther <rguenther@suse.de>
11170 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11171 register variables in a MEM_REF.
11173 2011-01-12 Joseph Myers <joseph@codesourcery.com>
11175 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11176 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11177 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11178 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11179 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11180 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11181 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11182 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11183 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11184 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11185 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11186 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11187 * config/gnu-user.h: New. Copied from linux.h.
11188 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11189 GNU_USER_TARGET_STARTFILE_SPEC.
11190 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11191 GNU_USER_TARGET_ENDFILE_SPEC.
11192 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11193 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11194 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11195 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11196 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11197 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11198 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11199 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11200 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11201 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11202 * config/arm/linux-eabi.h (CC1_SPEC): Use
11203 GNU_USER_TARGET_CC1_SPEC.
11204 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11205 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11206 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11207 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11208 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11209 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11210 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11211 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11213 2011-01-12 Richard Guenther <rguenther@suse.de>
11216 * doc/invoke.texi (ffast-math): Document it is turned on
11219 2011-01-12 Jan Hubicka <jh@suse.cz>
11221 PR tree-optimization/47233
11222 * opts.c (common_handle_option): Disable ipa-reference with profile
11225 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11227 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11230 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11232 * c-parser.c (c_lex_one_token): Updated and reindented some
11233 comments. No changes in code.
11235 2011-01-11 Ian Lance Taylor <iant@google.com>
11237 * godump.c (go_output_var): Don't output the variable if there is
11238 already a type with the same name.
11240 2011-01-11 Ian Lance Taylor <iant@google.com>
11242 * godump.c (go_format_type): Don't generate float80.
11244 2011-01-11 Richard Henderson <rth@redhat.com>
11246 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11247 declaration. Rewrite for both speed and size.
11248 (mn10300_address_cost_1): Remove.
11249 (mn10300_register_move_cost): New.
11250 (mn10300_memory_move_cost): New.
11251 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11252 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11253 extensions, shifts, BSWAP, CLZ.
11254 (mn10300_wide_const_load_uses_clr): Remove.
11255 (TARGET_REGISTER_MOVE_COST): New.
11256 (TARGET_MEMORY_MOVE_COST): New.
11257 * config/mn10300/mn10300-protos.h: Update.
11258 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11260 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11261 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11262 * config/mn10300/mn10300-protos.h: Update.
11263 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11264 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11265 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11266 (*test_int_bitfield, *test_byte_bitfield): Remove.
11267 (*bit_test, *subreg_bit_test): Remove.
11268 * config/mn10300/predicates.md (const_8bit_operand): Remove.
11270 * config/mn10300/constraints.md ("c"): Rename from "A".
11271 ("A", "D"): New constraint letters.
11272 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11273 (fmssf4, fnmasf4, fnmssf4): Likewise.
11275 * config/mn10300/mn10300.md (isa): New attribute.
11276 (enabled): New attribute.
11278 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11279 (abssf2, negsf2): Define only for hardware fp.
11280 (sqrtsf2): Reformat.
11281 (addsf3, subsf3, mulsf3): Merge expander and insn.
11283 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11284 (DEBUGGER_AUTO_OFFSET): Remove.
11285 (DEBUGGER_ARG_OFFSET): Remove.
11287 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11288 Emit register stores with the same offsets as the hardware.
11289 (mn10300_store_multiple_operation): Don't check that the register
11290 save offsets are monotonic.
11291 * config/mn10300/mn10300-protos.h: Update.
11293 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11295 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11296 in terms of the value on the stack, not the MDR register.
11298 2011-01-11 Jan Hubicka <jh@suse.cz>
11302 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11303 (symbol_alias_set_destroy, symbol_alias_set_contains,
11304 propagate_aliases_backward): Declare.
11305 * lto-streamer-out.c (struct sets): New sturcture.
11306 (trivally_defined_alias): New function.
11307 (output_alias_pair_p): Rewrite.
11308 (output_unreferenced_globals): Fix output of alias pairs.
11309 (produce_symtab): Likewise.
11310 * ipa.c (function_and_variable_visibility): Set weak alias destination
11312 * varasm.c (symbol_alias_set_t): Remove.
11313 (symbol_alias_set_destroy): Export.
11314 (propagate_aliases_forward, propagate_aliases_backward): New functions
11316 (compute_visible_aliases): ... this one; remove.
11317 (trivially_visible_alias): New
11318 (trivially_defined_alias): New.
11319 (remove_unreachable_alias_pairs): Rewrite.
11320 (finish_aliases_1): Reorganize code checking if alias is defined.
11321 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11324 2011-01-11 Richard Guenther <rguenther@suse.de>
11326 PR tree-optimization/46076
11327 * tree-ssa.c (useless_type_conversion_p): Conversions from
11328 unprototyped to empty argument list function types are useless.
11330 2011-01-11 Richard Guenther <rguenther@suse.de>
11332 PR middle-end/45235
11333 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11334 volatile MEMs as MEM_READONLY_P.
11336 2011-01-11 Richard Guenther <rguenther@suse.de>
11338 PR tree-optimization/47239
11339 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11341 2011-01-11 Jeff Law <law@redhat.com>
11343 PR tree-optimization/47086
11344 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11345 IVs from statements that might throw.
11347 2011-01-10 Jan Hubicka <jh@suse.cz>
11350 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11352 2011-01-10 Jan Hubicka <jh@suse.cz>
11355 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11356 when correcting profile.
11358 2011-01-10 Jan Hubicka <jh@suse.cz>
11361 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11362 DECL_FINI_PRIORITY.
11363 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11364 Restore DECL_FINI_PRIORITY.
11366 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11368 * doc/gimple.texi: Fix quoting of multi-word return values in
11369 @deftypefn statements. Ensure presence of return value. Wrap
11370 overlong @deftypefn lines.
11371 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11372 descriptions of removed functions.
11373 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11374 of multi-word return value in @deftypefn statement.
11376 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11378 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11379 (Conditional Expressions, Logical Operators)
11380 (Statement and operand traversals): Do not indent smallexample
11381 code. Fix duplicate function argument in example.
11383 2011-01-10 Jeff Law <law@redhat.com>
11385 PR tree-optimization/47141
11386 * ipa-split.c (split_function): Handle case where we are
11387 returning a value and the return block has a virtual operand phi.
11389 2011-01-10 Jan Hubicka <jh@suse.cz>
11391 PR tree-optimization/47234
11392 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11393 (pass_feedback_split_functions): Declare.
11394 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11396 * ipa-split.c (gate_split_functions): Update comments; disable
11397 split-functions for profile_arc_flag and branch_probabilities.
11398 (gate_feedback_split_functions): New function.
11399 (execute_feedback_split_functions): New function.
11400 (pass_feedback_split_functions): New global var.
11402 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11405 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11406 calling gimple_call_set_cannot_inline.
11408 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11410 * config/darwin-sections.def: Remove unused section.
11412 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11415 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11417 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11420 * c-parser.c (c_parser_declaration_or_fndef): Improved
11423 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
11425 * config/i386/winnt.c (i386_pe_start_function): Make sure
11426 to switch back to function's section.
11428 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11432 * plugin.c: Move include of dlfcn.h from here...
11433 * system.h: ... to here.
11435 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11437 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11439 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11440 two extra empty pages in PDF output.
11442 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11445 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11446 for error recovery purposes behave as if it was not specified so
11447 that the default type is usd.
11449 2011-01-07 Jan Hubicka <jh@suse.cz>
11451 PR tree-optmization/46469
11452 * ipa.c (function_and_variable_visibility): Clear needed flags on
11453 nodes with external decls; handle weakrefs merging correctly.
11455 2011-01-07 Joseph Myers <joseph@codesourcery.com>
11457 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11460 2011-01-07 Jan Hubicka <jh@suse.cz>
11462 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11463 and no longer claim that gold is required for linker plugin.
11464 * configure: Regenerate.
11465 * gcc.c (PLUGIN_COND): New macro.
11466 (LINK_COMMAND_SPEC): Use it.
11467 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11468 * config.in (HAVE_LTO_PLUGIN): New.
11469 * configure.ac (--with-lto-plugin): New parameter; autodetect
11472 2011-01-07 Jan Hubicka <jh@suse.cz>
11474 PR tree-optimization/46367
11475 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11476 when we can update original.
11477 (cgraph_mark_inline_edge): Sanity check.
11478 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11480 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11482 * config/spu/spu.h (ASM_COMMENT_START): Define.
11484 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11487 * gcc.c (%>S): New.
11488 (SWITCH_KEEP_FOR_GCC): Likewise.
11489 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11490 (do_spec_1): Handle "%>".
11492 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11494 2011-01-07 Jakub Jelinek <jakub@redhat.com>
11497 * config/i386/i386.c (ix86_delegitimize_address): If
11498 simplify_gen_subreg fails, return orig_x.
11501 * value-prof.c (gimple_stringop_fixed_value): Handle
11502 lhs of the call properly.
11504 2011-01-07 Jan Hubicka <jh@suse.cz>
11507 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11509 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11511 * target.def (function_switched_text_sections): New hook.
11512 * doc/tm.texi: Regenerated.
11513 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11514 * final.c (default_function_switched_text_sections): New.
11515 (final_scan_insn): Call function_switched_text_sections when a
11516 mid-function section change occurs.
11517 * output.h (default_function_switched_text_sections): Declare.
11518 * config/darwin-protos.h (darwin_function_switched_text_sections):
11520 * config/darwin.c (darwin_function_switched_text_sections): New.
11521 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11523 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11525 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11526 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11527 the secondary code fragment when outputting for DWARF == 2.
11529 2011-01-07 Anatoly Sokolov <aesok@post.ru>
11531 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11532 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11534 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11535 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11537 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11540 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11541 when it is not empty.
11543 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11546 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11547 (case ${target}): Add btver1.
11548 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11549 -march=native recognize btver1 processors.
11550 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11551 btver1 def_and_undef
11552 * config/i386/i386.c (struct processor_costs btver1_cost): New
11554 (m_BTVER1): New definition.
11555 (m_AMD_MULTIPLE): Includes m_BTVER1.
11556 (initial_ix86_tune_features): Add btver1 tune.
11557 (processor_target_table): Add btver1 entry.
11558 (static const char *const cpu_names): Add btver1 entry.
11559 (software_prefetching_beneficial_p): Add btver1.
11560 (ix86_option_override_internal): Add btver1 instruction sets.
11561 (ix86_issue_rate): Add btver1.
11562 (ix86_adjust_cost): Add btver1.
11563 * config/i386/i386.h (TARGET_BTVER1): New definition.
11564 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11565 (enum processor_type): Add PROCESSOR_BTVER1.
11566 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11568 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11571 * config/i386/i386.c (legitimize_tls_address)
11572 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11573 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11574 (tls_initial_exec_64_sun): New pattern.
11576 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11578 * doc/invoke.texi (Overall Options): Improve wording and markup
11579 of the description of -wrapper.
11581 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11583 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11584 rdynamic, threads): New Driver options.
11586 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11589 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11590 if coming from .tdata.
11591 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11593 2011-01-06 Jan Hubicka <jh@suse.cz>
11596 * collect2.c (main): Do not enable LTOmode when plugin is active.
11598 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11601 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11602 --version output if supported.
11603 * configure: Regenerate.
11605 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11607 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11610 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11613 * c-convert.c (convert): When converting a complex expression
11614 other than COMPLEX_EXPR to a different complex type, ensure
11615 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11616 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11617 when converting COMPLEX_TYPE.
11619 2011-01-06 Ira Rosen <irar@il.ibm.com>
11621 PR tree-optimization/47139
11622 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11623 only the last reduction value is used outside the loop. Update
11626 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11628 * config/rtems.opt: New.
11629 * config.gcc (*-*-rtems*): Use rtems.opt.
11631 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11633 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11634 processors do not support 3DNow instructions.
11636 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11638 * config/spu/spu.c (spu_option_override): Set parameter
11639 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11641 2011-01-05 Jan Hubicka <jh@suse.cz>
11643 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11644 at the command line.
11646 2011-01-05 Martin Jambor <mjambor@suse.cz>
11649 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11650 deltas on streamed outgoing edges.
11651 (output_node_opt_summary): Output info for outgoing edges only when
11652 the node is in new parameter set.
11653 (output_cgraph_opt_summary): New parameter set, passed to the two
11654 aforementioned functions. Update its forward declaration and its
11657 2011-01-05 Tom Tromey <tromey@redhat.com>
11659 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11660 operator to c_finish_omp_atomic.
11661 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11662 (build_unary_op): Update.
11663 (build_modify_expr): Update.
11664 (build_asm_expr): Update.
11666 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11668 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11669 newly inserted insns.
11670 (pad_bb): Likewise.
11671 (spu_emit_branch_hint): Likewise.
11672 (insert_hbrp_for_ilb_runout): Likewise.
11673 (spu_machine_dependent_reorg): Call df_finish_pass after
11674 schedule_insns returns.
11676 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11678 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11680 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11682 PR tree-optimization/47005
11683 * tree-sra.c (struct access): Add 'non_addressable' bit.
11684 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11685 (decide_one_param_reduction): Return 0 if the parameter is passed by
11686 reference and one of the accesses in the group is non_addressable.
11688 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11690 PR tree-optimization/47056
11691 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11692 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11693 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11695 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11697 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11698 initializer. Skip view conversions from aggregate types.
11700 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11703 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11705 2011-01-04 Philipp Thomas <pth@suse.de>
11707 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11710 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11712 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11713 on empty epilogue sequences.
11715 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11717 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11718 non-static): New Driver options.
11720 2011-01-04 Jie Zhang <jie@codesourcery.com>
11723 * gcc.c (default_compilers[]): Set combinable field to 0
11724 for all assembly languages.
11726 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11728 * config/mips/loongson3a.md: New file.
11729 * config/mips/mips.md: Include loongson3a.md.
11730 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11733 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11735 PR middle-end/47017
11736 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11737 instead of convert_memory_address_addr_space on the base expression.
11739 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11741 * config/spu/spu.c (spu_option_override): Update error text
11742 for bad -march= / -mtune= values.
11744 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11746 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11747 if branch-hint optimization will be performed.
11749 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11751 PR tree-optimization/47148
11752 * ipa-split.c (split_function): Convert arguments to
11753 DECL_ARG_TYPE if possible.
11755 PR tree-optimization/47155
11756 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11757 when computing uns.
11759 PR rtl-optimization/47157
11760 * combine.c (try_combine): If undobuf.other_insn becomes
11761 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11762 and set *new_direct_jump_p too.
11764 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11766 PR tree-optimization/47021
11767 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11769 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11771 * gcc.c (process_command): Update copyright notice dates.
11772 * gcov.c (print_version): Likewise.
11773 * gcov-dump.c (print_version): Likewise.
11774 * mips-tfile.c (main): Likewise.
11775 * mips-tdump.c (main): Likewise.
11777 2011-01-03 Martin Jambor <mjambor@suse.cz>
11779 PR tree-optimization/46801
11780 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11781 aggregate fields start at byte boundary instead of the bit-field flag.
11783 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11786 * gcc.c (main): Revert revision 168407.
11788 2011-01-03 Martin Jambor <mjambor@suse.cz>
11790 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11792 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11794 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11795 vector optab to expand vector/scalar shift, update gimple to vector.
11797 2011-01-03 Martin Jambor <mjambor@suse.cz>
11799 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11802 2011-01-03 Martin Jambor <mjambor@suse.cz>
11804 PR tree-optimization/46984
11805 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11807 (cgraph_create_indirect_edge): Fixed line length.
11808 (cgraph_indirect_call_info): Declare.
11809 (cgraph_make_edge_direct) Update declaration.
11810 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11811 (cgraph_create_indirect_edge): Use it.
11812 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11814 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11815 the new thunk_delta representation.
11816 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11818 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11819 (ipa_read_indirect_edge_info): Likewise.
11820 * lto-cgraph.c (output_edge_opt_summary): New function.
11821 (output_node_opt_summary): Call it on all outgoing edges.
11822 (input_edge_opt_summary): New function.
11823 (input_node_opt_summary): Call it on all outgoing edges.
11825 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11828 * gcc.c (main): Don't check have_o when settting combine_inputs.
11830 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11832 * regrename.c: Add general comment describing the pass.
11833 (struct du_head): Remove 'length' field.
11834 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11835 (regrename_optimize): Do not sort chains. Rework comments, add others.
11836 Force renaming to the preferred class (if any) in the first pass and do
11837 not consider registers that belong to it in the second pass.
11838 (create_new_chain): Do not set 'length' field.
11839 (scan_rtx_reg): Likewise.
11841 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11843 PR tree-optimization/47140
11844 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11845 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11846 to bit_value_binop.
11848 PR rtl-optimization/47028
11849 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11850 parm_birth_insn instead of at the beginning of first bb.
11852 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11854 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11855 Remove the word "see" before "@pxref".
11856 * doc/rtl.texi: Remove the word "see" before "@pxref".
11858 2011-01-01 Jan Hubicka <jh@suse.cz>
11860 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11863 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11866 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11869 Copyright (C) 2011 Free Software Foundation, Inc.
11871 Copying and distribution of this file, with or without modification,
11872 are permitted in any medium without royalty provided the copyright
11873 notice and this notice are preserved.