1 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5 is a SUBREG with non-MODE_INT mode inside of it.
7 2011-04-19 Martin Jambor <mjambor@suse.cz>
9 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
10 also according to actual contants.
11 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
12 (gimple_fold_call): Use it.
13 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15 2011-04-19 Martin Jambor <mjambor@suse.cz>
17 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18 non-pointer assignments.
20 2011-04-19 Martin Jambor <mjambor@suse.cz>
22 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
23 account anc_offset and otr_type from the indirect edge info.
24 * ipa-prop.c (get_ancestor_addr_info): New function.
25 (compute_complex_ancestor_jump_func): Assignment analysis moved to
26 get_ancestor_addr_info, call it.
27 (ipa_note_param_call): Do not initialize information about polymorphic
28 calls, return the indirect call graph edge. Remove the last
29 parameter, adjust all callers.
30 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
31 parameters. Initialize polymorphic information in the indirect edge.
33 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
36 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
37 the types if they have different enumeration identifiers.
39 2011-04-19 Jan Hubicka <jh@suse.cz>
41 * cgraph.h (cgraph_optimize_for_size_p): Declare.
42 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
43 * predict.c (cgraph_optimize_for_size_p): Break out from ...
44 (optimize_function_for_size_p) ... here.
46 2011-04-19 Richard Guenther <rguenther@suse.de>
49 * tree.c (free_lang_data): Do not reset the decl-assembler-name
52 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
54 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
55 if DECL_NO_INLINE_WARNING_P is set on the function.
57 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
60 * reload1.c (inc_for_reload): Return void. All callers changed.
61 (emit_input_reload_insns): Don't try to delete previous output
62 reloads to a register, or record spill_reg_store for autoincs.
64 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
66 * gengtype.h: Updated copyright year.
67 (struct input_file_st): Add inpisplugin field.
68 (type_fileloc): New function.
70 (write_typed_struct_alloc_def): Add gcc_assert.
71 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
72 (write_typed_alloc_defns): Don't output for plugin files.
73 (input_file_by_name): Clear inpisplugin field.
74 (main): Set inpisplugin field for plugin files.
76 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
78 * gengtype-state.c (string_eq): New.
79 (read_state): Use string_eq instead of strcmp when creating the
82 2011-04-19 Wei Guozhi <carrot@google.com>
85 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
86 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
88 * config/arm/constraints.md (Uu): New constraint.
89 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
91 2011-04-19 Tristan Gingold <gingold@adacore.com>
93 * config.gcc (-*-*-*vms): Added.
94 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
96 * config/vms/vms-ld.c: New file.
97 * config/vms/vms-ar.c: New file.
98 * config/vms/t-vmsnative: New file.
100 2011-04-18 Xinliang David Li <davidxl@google.com>
102 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
104 2011-04-18 Jakub Jelinek <jakub@redhat.com>
107 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
108 if TREE_TYPE (v) is non-NULL.
110 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
111 gimple_get_virt_mehtod_for_binfo.
112 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
113 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
115 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
117 2011-04-18 Michael Matz <matz@suse.de>
118 Steve Ellcey <sje@cup.hp.com>
120 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
121 use its mode as source mode if it isn't VOIDmode.
123 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
125 * doc/passes.texi: Fill crossref nodes.
127 2011-04-18 Jim Meyering <meyering@redhat.com>
129 Fix doubled-word typos in comments and strings
130 * config/alpha/vms-unwind.h: s/for for/for/
131 * config/arm/unwind-arm.h: Likewise.
132 * config/microblaze/microblaze.c: Likewise.
133 * config/sh/constraints.md: s/in in/in/
134 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
136 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
138 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
139 (AVX_FLOAT_MODE_P): Ditto.
140 (AVX128_VEC_FLOAT_MODE_P): Ditto.
141 (AVX256_VEC_FLOAT_MODE_P): Ditto.
142 (AVX_VEC_FLOAT_MODE_P): Ditto.
143 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
144 (UNSPEC_MASKSTORE): Ditto.
145 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
146 Merge from <sse>_movmsk<ssemodesuffix> and
147 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
148 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
150 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
151 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
152 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
154 2011-04-18 Jan Hubicka <jh@suse.cz>
156 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
158 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
159 (want_inline_function_called_once_p): Break out the logic from
161 (edge_badness): Ensure that profile is not misupdated.
162 (lookup_recursive_calls): Prioritize by call frequencies.
163 (inline_small_functions): Move program size estimates here;
164 actually process whole queue even when unit growth has been
165 met. (to properly compute inline_failed reasons and for the
166 case unit size decrease.) Revisit comments on recursive inlining.
167 (ipa_inline): Remove unit summary code; first inline hot calls
168 of functions called once, cold calls next.
169 (order, nnodes): Remove unused variables.
170 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
171 (GTFILES): Remove ipa-inline.c
172 * sel-sched.c (fill_insns): Silence uninitialized var warning.
174 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
176 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
178 2011-04-18 Jie Zhang <jie@codesourcery.com>
179 Richard Earnshaw <rearnsha@arm.com>
181 * arm.c (neon_builtin_type_bits): Remove.
182 (typedef enum neon_builtin_mode): New.
183 (T_MAX): Don't define.
184 (typedef enum neon_builtin_datum): Remove bits, codes[],
185 num_vars and base_fcode. Add mode, code and fcode.
186 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
187 VAR10): Change accordingly.
188 (neon_builtin_data[]): Change accordingly
189 (arm_init_neon_builtins): Change accordingly.
190 (neon_builtin_compare): Remove.
191 (locate_neon_builtin_icode): Remove.
192 (arm_expand_neon_builtin): Change accordingly.
194 * arm.h (enum arm_builtins): Move to ...
195 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
197 * arm.c (arm_builtin_decl): Declare.
198 (TARGET_BUILTIN_DECL): Define.
199 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
200 (arm_builtin_decls[]): New.
201 (arm_init_neon_builtins): Store builtin declarations in
203 (arm_init_tls_builtins): Likewise.
204 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
205 (arm_builtin_decl): New.
207 2011-04-18 Richard Guenther <rguenther@suse.de>
209 * tree.c (upper_bound_in_type): Build properly canonicalized
211 (lower_bound_in_type): Likewise.
213 2011-04-18 Richard Guenther <rguenther@suse.de>
215 * gimple.h (gimple_call_addr_fndecl): New function.
216 (gimple_call_fndecl): Use it.
217 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
219 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
220 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
222 2011-04-18 Richard Guenther <rguenther@suse.de>
225 * tree.c (build_string): STRING_CST is now derived from tree_typed.
227 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
230 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
231 DECL_IN_CONSTANT_POOL without RTL.
233 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
234 Ira Rosen <ira.rosen@linaro.org>
237 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
238 to match neon_vzip/vuzp/vtrn_internal.
239 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
240 outputs explicitly dependent on both inputs.
241 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
243 2011-04-18 Jakub Jelinek <jakub@redhat.com>
245 PR tree-optimization/48616
246 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
247 whether the shift is by scalar or vector based on whether all SLP
248 scalar stmts have the same rhs.
250 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
252 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
255 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
257 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
260 2011-04-17 Jan Hubicka <jh@suse.cz>
262 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
263 * cgrpahunit.c (cgraph_finalize_function): Do not set
264 finalized_by_frontend.
265 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
266 finalized_by_frontend.
268 2011-04-17 Jan Hubicka <jh@suse.cz>
270 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
271 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
272 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
273 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
275 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
277 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
279 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
282 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
283 is non-null before accessing it.
284 (input_cgraph): Remove trailing spaces.
286 2011-04-17 Revital Eres <revital.eres@linaro.org>
288 * params.def (sms-min-sc): New param flag.
289 * modulo-sched.c (sms_schedule): Use it.
290 * doc/invoke.texi (sms-min-sc): Document it.
292 2011-04-17 Jan Hubicka <jh@suse.cz>
294 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
295 present, also set gimple_call_set_cannot_inline.
296 * ipa-inline.c: Update toplevel comment.
298 (cgraph_clone_inlined_nodes): Fix linebreaks.
299 (cgraph_check_inline_limits): Restructure to ...
300 (caller_growth_limits): ... this one; be more tolerant
301 on growth in nested inline chains; add explanatory comment;
302 fix stack accounting thinko introduced by previous patch.
303 (cgraph_default_inline_p): Remove.
304 (report_inline_failed_reason): New function.
305 (can_inline_edge_p): New function.
306 (can_early_inline_edge_p): New function.
307 (leaf_node_p): Move upwards in file.
308 (want_early_inline_function_p): New function.
309 (want_inline_small_function_p): New function.
310 (want_inline_self_recursive_call_p): New function.
311 (cgraph_edge_badness): Rename to ...
312 (edge_badness) ... this one; fix linebreaks.
313 (update_edge_key): Update call of edge_baddness; add
314 detailed dump about queue updates.
315 (update_caller_keys): Use can_inline_edge_p and
316 want_inline_small_function_p.
317 (cgraph_decide_recursive_inlining): Rename to...
318 (recursive_inlining): Use can_inline_edge_p and
319 want_inline_self_recursive_call_p; simplify and remove no longer
321 (cgraph_set_inline_failed): Remove.
322 (add_new_edges_to_heap): Use can_inline_edge_p and
323 want_inline_small_function_p.
324 (cgraph_decide_inlining_of_small_functions): Rename to ...
325 (inline_small_functions): ... this one; cleanup; use
326 can/want predicates; cleanup debug ouput; work edges till fibheap
327 is exhausted and do not stop once unit growth is reached; remove
328 later loop processing remaining edges.
329 (cgraph_flatten): Rename to ...
330 (flatten_function): ... this one; use can_inline_edge_p
331 and can_early_inline_edge_p predicates.
332 (cgraph_decide_inlining): Rename to ...
333 (ipa_inline): ... this one; remove unreachable nodes before
334 inlining functions called once; simplify the pass.
335 (cgraph_perform_always_inlining): Rename to ...
336 (inline_always_inline_functions): ... this one; use
337 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
338 (cgraph_decide_inlining_incrementally): Rename to ...
339 (early_inline_small_functions): ... this one; simplify
340 using new predicates; cleanup; make dumps prettier.
341 (cgraph_early_inlining): Rename to ...
342 (early_inliner): newer inline regular functions into always-inlines;
343 fix updating of call stmt summaries.
344 (pass_early_inline): Update for new names.
345 (inline_transform): Fix formating.
346 (gate_cgraph_decide_inlining): Rename to ...
347 (pass_ipa_inline): ... this one.
348 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
349 * ipa-inline-analysis.c (dump_inline_summary): Update.
350 (compute_inline_parameters): Do not compute disregard_inline_limits;
351 look for mismatching arguments.
352 (estimate_growth): Fix handlig of non-trivial self recursion.
353 (inline_read_summary): Do not read info->disregard_inline_limits.
354 (inline_write_summary): Do not write info->disregard_inline_limits.
355 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
356 and move all checks into can_inline_edge_p predicate; re-enable code
357 comparing optimization levels.
358 (expand_call_inline): Do not test inline_forbidden_into_p.
359 * Makefile.in (ipa-inline.o): Update arguments.
361 2011-04-17 Revital Eres <revital.eres@linaro.org>
363 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
365 2011-04-17 Revital Eres <revital.eres@linaro.org>
367 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
369 2011-04-17 Michael Matz <matz@suse.de>
371 PR tree-optimization/48622
373 * ipa-inline-analysis.c (inline_read_summary): Read size/time
374 in same order as they're written.
376 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
378 * config/pa/predicates.md: Reorganize and simplify predicates.
379 Eliminate duplicate code checks.
380 (arith_operand): Rename to arith14_operand
381 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
382 * config/pa/pa.md: Use renamed operands.
383 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
384 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
385 arith11_operand, adddi3_operand, indexed_memory_operand,
386 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
387 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
388 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
389 move_dest_operand, move_src_operand, prefetch_cc_operand,
390 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
391 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
392 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
393 div_operand, int5_operand, movb_comparison_operator,
394 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
395 arith_double_operand, ireg_operand, lhs_lshift_operand,
396 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
397 integer_store_memory_operand): Likewise.
398 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
399 (integer_store_memory_operand, read_only_operand,
400 function_label_operand, borx_reg_operand,
401 non_hard_reg_operand): Likewise.
402 (eq_neq_comparison_operator): Delete unused operator.
403 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
404 function_label_operand.
405 (emit_move_sequence): Likewise.
407 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
409 * config/i386/sse.md (sseunpackmode): New mode attribute.
410 (ssepackmode): Ditto.
411 (vec_pack_trunc_<mode>): Macroize expander from
412 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
413 (vec_unpacks_lo_<mode>): Macroize expander from
414 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
415 (vec_unpacks_hi_<mode>): Macroize expander from
416 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
417 (vec_unpacku_lo_<mode>): Macroize expander from
418 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
419 (vec_unpacku_hi_<mode>): Macroize expander from
420 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
421 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
422 ix86_expand_sse4_unpack.
423 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
425 2011-04-16 Jan Hubicka <jh@suse.cz>
427 * cgraphbuild.c: Include ipa-inline.h.
428 (reset_inline_failed): Use initialize_inline_failed.
429 * cgraph.c: Include ipa-inline.h.
430 (cgraph_create_node_1): Do not initialize estimated_growth.
431 (initialize_inline_failed): More to ipa-inline-analysis.c
432 (dump_cgraph_node): Do not dump inline flags.
433 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
434 and disregard_inline_limits flags.
435 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
436 time, size, estimated_growth.
437 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
439 * cgraphunit.c (cgraph_decide_is_function_needed): Use
440 DECL_DISREGARD_INLINE_LIMITS.
441 (cgraph_analyze_function): Do not initialize
442 node->local.disregard_inline_limits.
443 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
444 inlinable, versionable and disregard_inline_limits.
445 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
446 cgraph_check_inline_limits, cgraph_default_inline_p,
447 cgraph_edge_badness, update_caller_keys, update_callee_keys,
448 add_new_edges_to_heap): Update.
449 (cgraph_decide_inlining_of_small_function): Update; set
450 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
451 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
452 cgraph_decide_inlining_incrementally): Update.
453 * ipa-inline.h (inline_summary): Add inlinable, versionable,
454 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
455 time, size and estimated_growth parameters.
456 (estimate_edge_growth): Update.
457 (initialize_inline_failed): Declare.
458 * ipa-split.c: Include ipa-inline.h
459 (execute_split_functions): Update.
460 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
461 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
462 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
463 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
464 estimated_growth to INT_MIN.
465 (inline_node_duplication_hook): Likewise.
466 (dump_inline_summary): Dump new fields.
467 (compute_inline_parameters): Update.
468 (estimate_edge_time, estimate_time_after_inlining,
469 estimate_size_after_inlining, estimate_growth, inline_read_summary,
470 inline_write_summary):
471 (initialize_inline_failed): Move here from cgraph.c.
472 * tree-sra.c: Include ipa-inline.h.
473 (ipa_sra_preliminary_function_checks): Update.
474 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
477 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
479 * config/i386/sse.md (V16): New mode iterator.
481 (AVXMODEQI, AVXMODEDI): Remove.
482 (sse2, sse3): New mode attribute.
483 (mov<mode>): Use V16 mode iterator.
484 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
485 (push<mode>1): Use V16 mode iterator.
486 (movmisalign<mode>): Ditto.
487 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
488 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
489 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
490 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
491 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
492 avx_movdqu<avxmodesuffix>.
493 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
494 *avx_movdqu<avxmodesuffix>.
495 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
496 avx_lddqu<avxmodesuffix>.
497 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
498 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
499 avx_movnt<AVXMODEDI:mode>.
500 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
501 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
503 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
506 * haifa-sched.c (prune_ready_list, schedule_block): Use
507 sched_pressure_p rather than flag_sched_pressure.
509 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
511 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
512 cgraph_get_node instead of cgraph_get_create_node.
514 2011-04-15 Jakub Jelinek <jakub@redhat.com>
516 * cfgexpand.c (expand_debug_expr): Use
517 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
519 2011-04-15 Michael Matz <matz@suse.de>
521 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
522 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
523 * function.c (gimplify_parameters): Ditto.
524 * gimplify.c (gimplify_vla_decl): Ditto.
526 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
527 (gimple_call_set_alloca_for_var): New inline function.
528 (gimple_call_alloca_for_var_p): Ditto.
529 * gimple.c (gimple_build_call_from_tree): Remember
530 CALL_ALLOCA_FOR_VAR_P state.
531 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
533 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
534 calls if they were for VLA objects.
536 2011-04-15 Martin Jambor <mjambor@suse.cz>
538 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
541 2011-04-15 Martin Jambor <mjambor@suse.cz>
544 * tree-emutls.c (lower_emutls_function_body): Call
545 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
548 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
550 * c-decl.c (detect_field_duplicates): Call
551 objc_detect_field_duplicates instead of objc_get_interface_ivars.
553 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
555 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
556 * gimple.c (gimple_asm_clobbers_memory_p): Define.
557 * ipa-pure-const.c (check_stmt): Call it.
558 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
560 2011-04-15 Richard Guenther <rguenther@suse.de>
562 PR tree-optimization/48290
563 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
564 Properly decide inhibiting propagation based on the valueized
565 operand. Do loop-closed SSA form preserving here ...
566 (init_copy_prop): ... not here.
568 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
571 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
572 (*ieee_smax<mode>3): Likewise.
574 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
576 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
577 Replace match_operand with match_dup for the third operand in
580 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
582 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
583 to track processing of conditionals. Update all callers.
584 (try_combine, simplify_if_then_else): Update.
586 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
588 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
591 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
593 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
594 instead of match_operand for operand 3.
596 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
598 * recog.h (insn_operand_data): Add an "allows_mem" field.
599 * genoutput.c (output_operand_data): Initialize it.
600 * optabs.c (maybe_legitimize_operand_same_code): New function.
601 (maybe_legitimize_operand): Use it when matching the original
604 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
606 * gimplify.c: Fix issues in comments throughout.
607 (voidify_wrapper_expr): Fix long line.
608 (build_stack_save_restore): Likewise.
609 (gimplify_loop_expr): Likewise.
610 (gimplify_compound_lval): Likewise.
611 (gimplify_init_ctor_eval): Likewise.
612 (gimplify_modify_expr_rhs): Likewise.
613 (omp_notice_threadprivate_variable): Likewise.
615 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
617 * cfgexpand.c (expand_call_stmt): Convert the function type to the
618 original one if this is not a builtin function.
620 2011-04-14 Jakub Jelinek <jakub@redhat.com>
623 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
624 offset it as needed based on top 2 bits in operands[3], change
625 MEM mode to SFmode and mask those 2 bits away from operands[3].
627 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
629 * c-parser.c (c_parser_objc_protocol_definition): Updated for
630 change from objc_declare_protocols() to objc_declare_protocol().
632 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
634 * config/i386/sse.md (sse4_1): New mode attribute.
635 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
636 avx_blend<ssemodesuffix><avxmodesuffix> and
637 sse4_1_blend<ssemodesuffix> using VF mode iterator.
638 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
639 avx_blendv<ssemodesuffix><avxmodesuffix> and
640 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
641 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
642 avx_dp<ssemodesuffix><avxmodesuffix> and
643 sse4_1_dp<ssemodesuffix> using VF mode iterator.
644 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
645 (sse4_1_packusdw): Merge with *avx_packusdw.
646 (sse4_1_pblendvb): Merge with *avx_pblendvb.
647 (sse4_1_pblendw): Merge with *avx_pblendw.
648 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
649 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
650 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
652 (sse4_1_round<ssescalarmodesuffix>): Merge with
653 *avx_round<ssescalarmodesuffix>.
654 (aesenc): Merge with *avx_aesenc.
655 (aesenclast): Merge with *avx_aesenclast.
656 (aesdec): Merge with *avx_aesdec.
657 (aesdeclast): Merge with *avx_aesdeclast.
658 (pclmulqdq): Merge with *pclmulqdq.
659 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
661 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
663 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
666 * cfgexpand.c (get_decl_align_unit): Renamed to ...
667 (align_local_variable): This. Update DECL_ALIGN.
668 (add_stack_var): Updated.
669 (expand_one_stack_var): Likewise.
671 2011-04-14 Richard Guenther <rguenther@suse.de>
673 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
675 (dse_initialize_block_local_data, dse_leave_block,
676 record_voperand_set, get_stmt_uid): Likewise.
677 (dse_possible_dead_store_p): Allow any kind of killing stmt.
678 (dse_optimize_stmt): Remove voperand set handling code.
679 Simplify and improve to handle any kind of killing stmt.
680 (dse_record_phi): Remove.
681 (dse_enter_block): Simplify.
682 (tree_ssa_dse): Likewise.
683 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
685 2011-04-14 Jan Hubicka <jh@suse.cz>
687 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
688 * cgraph.h (struct inline_summary): Move to ipa-inline.h
689 (cgraph_local_info): Remove inline_summary.
690 * ipa-cp.c: Include ipa-inline.h.
691 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
692 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
694 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
695 (input_overwrite_node): Do not set inline summary.
696 (input_node): Do not stream inline summary.
697 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
698 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
699 growth; we do not have inline parameters computed for that anyway.
700 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
701 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
702 (inline_summary_t): New type and VECtor.
703 (debug_inline_summary, dump_inline_summaries): Declare.
704 (inline_summary): Use VOCtor.
705 (estimate_edge_growth): Kill hack computing call stmt size directly.
706 * lto-section-in.c (lto_section_name): Add inline section.
707 * ipa-inline-analysis.c: Include lto-streamer.h
708 (node_removal_hook_holder, node_duplication_hook_holder): New holders
709 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
710 (inline_summary_vec): Define.
711 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
712 dump_inline_summaries): New functions.
713 (estimate_function_body_sizes): Properly compute size/time of outgoing
715 (compute_inline_parameters): Alloc inline_summary; do not compute
716 size/time of incomming calls.
717 (estimate_edge_time): Avoid missing time summary hack.
718 (inline_read_summary): Read inline summary info.
719 (inline_write_summary): Write inline summary info.
720 (inline_free_summary): Free all hooks and inline summary vector.
721 * lto-streamer.h: Add LTO_section_inline_summary section.
722 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
723 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
725 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
727 * tree-vectorizer.h (vect_strided_store_supported): Add a
728 HOST_WIDE_INT argument.
729 (vect_strided_load_supported): Likewise.
730 (vect_permute_store_chain): Return void.
731 (vect_transform_strided_load): Likewise.
732 (vect_permute_load_chain): Delete.
733 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
734 count argument. Check that the count is a power of two.
735 (vect_strided_load_supported): Likewise.
736 (vect_permute_store_chain): Return void. Update after above changes.
737 Assert that the access is supported.
738 (vect_permute_load_chain): Likewise.
739 (vect_transform_strided_load): Return void.
740 * tree-vect-stmts.c (vectorizable_store): Update calls after
741 above interface changes.
742 (vectorizable_load): Likewise.
743 (vect_analyze_stmt): Don't check for strided powers of two here.
745 2011-04-14 Richard Guenther <rguenther@suse.de>
747 PR tree-optimization/48590
748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
749 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
750 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
752 * tree-ssa-dce.c (propagate_necessity): Handle
753 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
755 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
757 * c-parser.c (c_parser_objc_class_declaration): Updated call to
760 2011-04-14 Richard Guenther <rguenther@suse.de>
762 * tree.h (get_object_alignment_1): Declare.
763 * builtins.c (get_object_alignment_1): Split out worker from ...
764 (get_object_alignment): ... here.
765 * fold-const.c (get_pointer_modulus_and_residue): Use
766 get_object_alignment_1.
768 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
770 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
772 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
773 parameter. Generalise code to handle arrays as well as vectors.
774 (vect_setup_realignment): Update accordingly.
775 * tree-vect-stmts.c (vectorizable_store): Likewise.
776 (vectorizable_load): Likewise.
778 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
780 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
781 within the per-copy loop.
783 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
785 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
788 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
790 * doc/options.texi (Negative): Explicitly mention that the
791 Negative chain must be circular.
793 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
795 * function.h (block_chainon): Declare.
796 * function.c (block_chainon): Define.
798 2011-04-14 Anatoly Sokolov <aesok@post.ru>
799 Eric Weddington <eric.weddington@atmel.com>
800 Georg-Johann Lay <avr@gjlay.de>
802 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
804 (avr_init_builtins, avr_expand_builtin,
805 avr_expand_delay_cycles, avr_expand_unop_builtin,
806 avr_expand_binop_builtin ): New functions.
807 (avr_builtin_id): New enum
808 (struct avr_builtin_description): New struct
809 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
810 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
812 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
813 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
814 UNSPECV_DELAY_CYCLES): new enumeration values
815 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
816 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
817 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
818 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
819 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
820 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
823 * config/avr/avr-c.c: fix line endings
824 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
825 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
826 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
827 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
828 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
830 * doc/extend.texi (AVR Built-in Functions): New node
831 (Target Builtins): Add documentation of AVR
834 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
837 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
838 alone. Error if non-const data has attribute progmem.
840 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
842 * tree.h (struct tree_constructor): Include tree_typed instead of
844 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
845 TS_TYPED instead of TS_COMMON.
847 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
849 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
850 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
851 (sse2_psadbw): Merge with *avx_psadbw.
852 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
853 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
854 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
855 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
856 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
857 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
858 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
859 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
860 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
861 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
862 (ssse3_palignrti): Merge with *avx_palignrti.
864 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
866 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
867 * tree-ssanames.c (fini_ssanames): VEC_free it.
868 (make_ssa_name_fn): Update for VECness of free_ssanames.
869 (release_ssa_name, release_dead_ssa_names): Likewise.
870 * tree.h (struct tree_ssa_name): Include tree_typed instead of
872 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
873 TS_TYPED instead of TS_COMMON.
875 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
877 * postreload-gcse.c (gcse_after_reload_main): Add calls to
878 statistics_counter_event.
879 * tree-ssa-copyrename.c (stats): Define.
880 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
881 statistics_counter_event.
882 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
883 (bswap_stats, widen_mul_stats): Define.
884 (insert_reciprocals): Increment rdivs_inserted.
885 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
886 rfuncs_inserted. Add calls to statistics_counter_event.
887 (execute_cse_sincos_1): Increment inserted.
888 (execute_cse_sincos): Zeroize sincos_stats. Add call to
889 statistics_counter_event.
890 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
891 of bswap_stats. Add calls to statistics_counter_event.
892 (convert_mult_to_widen): Increment widen_mults_inserted.
893 (convert_plusminus_to_widen): Increment maccs_inserted.
894 (convert_mult_to_fma): Increment fmas_inserted.
895 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
896 calls to statistics_counter_event.
898 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
900 PR rtl-optimization/48455
901 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
902 `temp_costs->mem_cost'.
904 2011-04-13 Jan Hubicka <jh@suse.cz>
906 * ipa-inline.h: New file.
907 * ipa-inline-analysis.c: New file. Broken out of ...
908 * ipa-inline.c: ... this file; update toplevel comment;
910 (inline_summary): Move to ipa-inline.h
911 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
912 ipa-inline-analysis.c.
913 (cgraph_estimate_time_after_inlining): Rename to
914 estiamte_time_after_inlining; move to ipa-inline-analysis.c
915 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
916 to estimate_edge_growth.
917 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
918 rename to estimate_size_after_inlining.
919 (cgraph_mark_inline_edge): Update for new naming convention.
920 (cgraph_check_inline_limits): Likewise.
921 (cgraph_edge_badness): Likewise.
922 (cgraph_decide_recursive_inlining): Likewise.
923 (cgraph_decide_inlining_of_small_functions): Likewise.
924 (cgraph_decide_inlining_incrementally): Likewise.
925 (cgraph_estimate_growth): Rename to estimate_growth; move to
926 ipa-inline-analysis.c.
927 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
928 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
929 (compute_inline_parameters): Likewise.
930 (compute_inline_parameters_for_current): Likewise.
931 (pass_inline_parameters): Likewise.
932 (inline_indirect_intraprocedural_analysis): Likewise.
933 (analyze_function): Rename to inline_analyze_function; likewise.
934 (add_new_function): Move to ipa-inline-analysis.c.
935 (inline_generate_summary): Likewise.
936 (inline_read_summary): Likewise.
937 (inline_write_summary): Likewise.
938 * Makefile.in (ipa-inline-analysis.c): New file.
940 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
942 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
943 * configure: Regenerate.
945 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
947 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
948 instead of tree_common.
949 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
951 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
952 TS_TYPED rather than TS_COMMON.
953 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
955 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
958 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
959 r20 around calls of __tablejump_elpm__
961 2011-04-13 Jakub Jelinek <jakub@redhat.com>
964 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
966 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
968 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
970 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
971 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
972 (cfi_vec): New typedef.
973 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
974 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
975 (cie_cfi_vec): New static variable.
976 (cie_cfi_head): Delete.
977 (add_cfi): Accept a cfi_vec * as first argument. All callers and
978 declaration changed. Use vector rather than list operations.
979 (new_cfi): Don't initialize the dw_cfi_next field.
980 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
981 rather than list operations.
982 (lookup_cfa): Use vector rather than list operations.
983 (output_cfis): New argument upto. Accept a cfi_vec rather than
984 a dw_cfi_ref list head as argument. All callers changed.
985 Iterate over the vector using upto as a maximum index.
986 (output_all_cfis): New static function.
987 (output_fde): Use vector rather than list operations. Use the
988 new upto argument for output_cfis rather than manipulating a
990 (dwarf2out_begin_prologue): Change initializations to match
992 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
993 from the vector length rather than searching for the end of a list.
995 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
997 2011-04-13 Nick Clifton <nickc@redhat.com>
999 * config/rx/rx.md (movmemsi): Do not use this pattern when
1000 volatile pointers are involved.
1002 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1004 * config/i386/sse.md (pinsrbits): Remove.
1005 (sse2_packsswb): Merge with *avx_packsswb.
1006 (sse2_packssdw): Merge with *avx_packssdw.
1007 (sse2_packuswb): Merge with *avx_packuswb.
1008 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1009 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1010 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1011 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1012 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1013 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1014 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1015 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1016 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1017 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1018 (sse2_loadld): Merge with *avx_loadld.
1019 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1020 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1021 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1022 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1023 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1025 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1027 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1029 * print-tree.c (print_node): Likewise.
1030 * tree-inline.c (copy_tree_r): Likewise.
1031 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1032 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1033 instead of TS_COMMON.
1034 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1035 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1036 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1037 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1038 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1040 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1042 (TREE_CHAIN): Check for a TS_COMMON structure.
1043 (TREE_TYPE): Check for a TS_TYPED structure.
1045 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1047 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1048 cgraph_get_create_node instead of cgraph_node.
1050 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1052 * c-parser.c (c_parser_initelt): Updated call to
1053 objc_build_message_expr.
1054 (c_parser_postfix_expression): Likewise.
1056 2011-04-12 Kai Tietz <ktietz@redhat.com>
1058 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1059 MASK_MS_BITFIELD_LAYOUT bit.
1061 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1063 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1064 assert it is always true.
1065 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1068 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1070 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1071 compiling Objective-C to be more efficient.
1073 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1075 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1078 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1080 * recog.h, genoutput.c, optabs.c: Revert last patch.
1082 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1085 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1087 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1089 * recog.h (insn_operand_data): Add an "allows_mem" field.
1090 * genoutput.c (output_operand_data): Initialize it.
1091 * optabs.c (maybe_legitimize_operand_same_code): New function.
1092 (maybe_legitimize_operand): Use it when matching the original
1095 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1097 * genpreds.c (process_define_predicate): Move most processing
1098 to gensupport.c. Continue to validate the expression.
1099 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1100 (process_define_predicate): Move processing to gensupport.c.
1101 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1102 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1103 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1105 (valid_predicate_name_p): New function, split out from old
1106 genpreds.c:process_define_predicate.
1107 (process_define_predicate): New function, combining code from
1108 old genpreds.c and genrecog.c functions.
1109 (process_rtx): Call it for DEFINE_PREDICATE and
1110 DEFINE_SPECIAL_PREDICATE.
1112 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1114 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1115 size of a '%A' memory reference.
1116 (T_DREG, T_QREG): New neon_builtin_type_bits.
1117 (arm_init_neon_builtins): Assert that the load and store operands
1118 are neon_struct_operands.
1119 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1120 (NEON_ARG_MEMORY): New builtin_arg.
1121 (neon_dereference_pointer): New function.
1122 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1123 Handle NEON_ARG_MEMORY.
1124 (arm_expand_neon_builtin): Update after above interface changes.
1125 Use NEON_ARG_MEMORY for loads and stores.
1126 * config/arm/predicates.md (neon_struct_operand): New predicate.
1127 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1128 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1129 (V_four_elem): Tweak formatting.
1130 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1131 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1132 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1133 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1134 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1135 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1136 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1137 Use %A in the output template.
1138 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1139 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1140 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1141 the width of the memory access. Remove post-increment.
1142 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1144 2011-04-12 Nick Clifton <nickc@redhat.com>
1146 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1147 instruction for interrupt handlers if the target is the basic V850
1149 (expand_epilogue): Likewise.
1151 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1153 PR rtl-optimization/48549
1154 * combine.c (propagate_for_debug): Also stop after BB_END of
1155 this_basic_block. Process LAST and just stop processing after it.
1156 (combine_instructions): If last_combined_insn has been deleted,
1157 set last_combined_insn to its PREV_INSN.
1159 2011-04-12 Richard Guenther <rguenther@suse.de>
1161 PR tree-optimization/46076
1162 * gimple.h (struct gimple_statement_call): Add fntype field.
1163 (gimple_call_fntype): Adjust.
1164 (gimple_call_set_fntype): New function.
1165 * gimple.c (gimple_build_call_1): Set the call function type.
1166 * gimplify.c (gimplify_call_expr): Preserve the function
1167 type the frontend used for the call.
1168 (gimplify_modify_expr): Likewise.
1169 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1171 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1173 * tree-ssa.c (useless_type_conversion_p): Function pointer
1174 conversions are useless.
1176 2011-04-12 Martin Jambor <mjambor@suse.cz>
1178 * cgraph.h (cgraph_node): Remove function declaration.
1179 (cgraph_create_node): Declare.
1180 (cgraph_get_create_node): Likewise.
1181 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1182 Updated all callers.
1183 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1184 the decl does not already exist. Call cgraph_get_create_node instead
1186 (cgraph_get_create_node): New function.
1187 (cgraph_same_body_alias): Update comment.
1188 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1189 assert it does not return NULL.
1190 (cgraph_update_edges_for_call_stmt): Likewise.
1191 (cgraph_clone_edge): Likewise.
1192 (cgraph_create_virtual_clone): Likewise.
1193 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1194 instead of cgraph_node.
1195 (cgraph_add_new_function): Call cgraph_create_node or
1196 cgraph_get_create_node instead of cgraph_node.
1197 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1198 instead of cgraph_node.
1199 (record_eh_tables): Likewise.
1200 (mark_address): Likewise.
1201 (mark_load): Likewise.
1202 (build_cgraph_edges): Call cgraph_get_create_node instead
1204 (rebuild_cgraph_edges): Likewise.
1205 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1206 instead of cgraph_node.
1207 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1209 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1210 cgraph_create_node instead of cgraph_node.
1211 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1213 * lto-cgraph.c (input_node): Likewise.
1214 * lto-streamer-in.c (input_function): Likewise.
1215 * varasm.c (mark_decl_referenced): Likewise.
1216 (assemble_alias): Likewise.
1218 2011-04-12 Martin Jambor <mjambor@suse.cz>
1220 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1221 instead of cgraph_node and assert it does not return NULL.
1222 * lto-streamer-in.c (lto_read_body): Likewise.
1223 * omp-low.c (new_omp_context): Likewise.
1224 (create_task_copyfn): Likewise.
1225 * tree-emutls.c (lower_emutls_function_body): Likewise.
1226 * matrix-reorg.c (transform_allocation_sites): Likewise.
1228 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1231 * c-typeck.c (build_asm_expr): Error out on attempts to use
1232 void type outputs or inputs for constraints that allow reg or
1235 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1236 Richard Earnshaw <rearnsha@arm.com>
1239 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1240 to use sign-magnitude offsets. Reject unsupported unaligned
1241 cases. Add detailed description in comments.
1242 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1243 condition from TARGET_32BIT to TARGET_ARM.
1245 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1247 * tree.h (struct typed_tree): New.
1248 (struct tree_common): Include it instead of tree_base.
1249 (TREE_TYPE): Update for new location of type field.
1250 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1251 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1252 (union tree_node): Add typed field.
1253 * treestruct.def (TS_TYPED): New.
1254 * lto-streamer.c (check_handled_ts_structures): Handle it.
1255 * tree.c (MARK_TS_TYPED): New macro.
1256 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1258 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1260 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1261 (force_nonfallthru): Do not alter the loop nest if no basic block
1264 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1266 * config/i386/sse.md (VI): New mode iterator.
1268 (AVX256MODEI): Ditto.
1269 (AVXMODEF4P): Ditto.
1270 (avxvecpsmode): Ditto.
1271 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1272 (sse2_andnot<mode>3): New expander.
1273 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1274 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1275 (<any_logic:code><mode>3): Use VI mode iterator.
1276 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1277 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1278 (*andnottf3): Handle AVX three-operand constraints.
1279 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1281 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1282 Robert Millan <rmh@gnu.org>
1284 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1285 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1286 GNU_USER_DYNAMIC_LINKER64): Define.
1287 (REG_NAME): Don't undefine.
1288 (MD_UNWIND_SUPPORT): Undefine.
1289 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1290 (REG_NAME): Don't undefine.
1291 (MD_UNWIND_SUPPORT): Undefine.
1292 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1294 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1296 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1297 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1299 2011-04-11 Xinliang David Li <davidxl@google.com>
1301 * value-profile.c (check_ic_target): New function.
1302 (gimple_ic_transform): Sanity check indirect call target.
1303 * gimple-low.c (gimple_check_call_args): Interface change.
1304 (gimple_check_call_matching_types): New function.
1305 * tree-inline.c (tree_can_inline_p): Call new function.
1307 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1309 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1310 tree-pretty-print.h & realmpfr.h.
1312 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1315 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1316 (setup_allocno_and_important_classes): Ditto.
1318 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1320 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1321 GNU_USER_DYNAMIC_LINKER.
1322 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1323 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1324 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1325 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1326 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1327 GNU_USER_TARGET_OS_CPP_BUILTINS.
1328 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1330 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1331 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1332 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1333 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1334 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1335 GNU_USER_TARGET_OS_CPP_BUILTINS.
1336 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1337 GNU_USER_DYNAMIC_LINKER.
1338 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1339 GNU_USER_TARGET_OS_CPP_BUILTINS.
1340 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1342 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1344 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1345 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1346 GNU_USER_DYNAMIC_LINKER64): Remove.
1347 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1348 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1349 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1350 GNU_USER_DYNAMIC_LINKER.
1351 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1352 GNU_USER_TARGET_OS_CPP_BUILTINS.
1353 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1354 GNU_USER_TARGET_OS_CPP_BUILTINS.
1355 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1356 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1357 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1358 GNU_USER_TARGET_OS_CPP_BUILTINS.
1359 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1360 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1361 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1362 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1364 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1365 GNU_USER_DYNAMIC_LINKER.
1366 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1367 GNU_USER_TARGET_OS_CPP_BUILTINS.
1368 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1370 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1371 GNU_USER_DYNAMIC_LINKER.
1372 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1374 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1376 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1377 GNU_USER_DYNAMIC_LINKER.
1378 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1379 GNU_USER_DYNAMIC_LINKERN32.
1380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1381 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1382 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1383 GNU_USER_DYNAMIC_LINKER32.
1384 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1386 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1387 GNU_USER_DYNAMIC_LINKER.
1388 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1389 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1390 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1392 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1393 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1394 GNU_USER_DYNAMIC_LINKER32.
1395 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1396 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1397 GNU_USER_DYNAMIC_LINKER.
1398 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1401 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1402 GNU_USER_DYNAMIC_LINKER64.
1403 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1404 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1405 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1406 GNU_USER_DYNAMIC_LINKER.
1407 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1409 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1410 GNU_USER_DYNAMIC_LINKER.
1411 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1412 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1413 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1414 GNU_USER_DYNAMIC_LINKER32.
1415 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1416 GNU_USER_DYNAMIC_LINKER64.
1417 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1418 GNU_USER_DYNAMIC_LINKER64.
1419 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1420 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1421 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1422 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1423 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1425 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1427 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1428 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1429 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1430 GNU_USER_DYNAMIC_LINKER.
1431 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1432 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1433 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1434 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1435 GNU_USER_DYNAMIC_LINKER64.
1436 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1437 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1438 GNU_USER_LINK_EMULATION.
1439 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1440 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1441 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1442 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1443 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1444 CPP_SPEC, CC1_SPEC): Remove.
1445 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1446 (GNU_USER_DYNAMIC_LINKER): Define.
1447 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1448 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1449 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1450 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1451 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1452 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1453 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1454 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1455 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1456 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1457 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1458 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1459 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1460 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1461 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1462 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1463 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1464 GNU_USER_DYNAMIC_LINKER.
1465 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1466 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1467 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1468 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1469 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1470 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1471 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1472 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1473 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1474 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1476 2011-04-11 Kai Tietz <ktietz@redhat.com>
1480 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1481 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1483 (ix86_is_msabi_thiscall): Removed.
1484 (ix86_is_type_thiscall): Likewise.
1485 (ix86_get_callcvt): New function.
1486 (ix86_comp_type_attributes): Simplify check.
1487 (ix86_function_regparm): Use ix86_get_callcvt for calling
1488 convention attribute checks.
1489 (ix86_return_pops_args): Likewise.
1490 (ix86_static_chain): Likewise.
1491 (x86_this_parameter): Likewise.
1492 (x86_output_mi_thunk): Likewise.
1493 (ix86_function_type_abi): Optimize check for types without attributes.
1494 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1495 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1496 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1498 (IX86_BASE_CALLCVT): Helper macro.
1499 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1500 Use ix86_get_callcvt for calling convention attribute checks and avoid
1501 symbol-decoration for stdcall in TARGET_RTD case.
1502 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1504 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1507 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1509 * config/i386/sse.md (VI_128): New mode iterator.
1510 (VI12_128): Rename from SSEMODE12.
1511 (VI14_128): Rename from SSEMODE14.
1512 (VI124_128): New mode iterator.
1513 (VI24_128): Rename from SSEMODE248.
1514 (VI248_128): Rename from SSEMODE248.
1515 (SSEMODE124C8): Remove.
1516 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1517 (*sse2_<plusminus_insn><mode>3): Merge with
1518 *avx_<plusminus_insn><mode>3.
1519 (*mulv8hi3): Merge with *avx_mulv8hi3.
1520 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1521 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1522 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1523 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1524 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1525 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1526 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1527 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1528 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1529 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1530 (*<smaxmin:code>v8hi3): Ditto.
1531 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1532 (*<smaxmin:code>v16qi3): Ditto.
1533 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1534 (*sse2_eq<mode>3): Ditto.
1535 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1536 (*sse2_gt<mode>3): Ditto.
1537 (vcondv2di): Split out of vcond<mode>.
1538 (vconduv2di): Split out of vcondu<mode>.
1540 2011-04-11 Richard Guenther <rguenther@suse.de>
1542 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1543 before calling tree_low_cst.
1545 2011-04-11 Richard Guenther <rguenther@suse.de>
1547 * stor-layout.c (layout_type): Compute all array index size operations
1548 in the original type.
1549 (initialize_sizetypes): Add comment.
1550 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1552 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1554 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1556 2011-04-11 Martin Jambor <mjambor@suse.cz>
1558 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1559 of cgraph_node, handle NULL return value.
1560 (cgraph_global_info): Likewise.
1561 (cgraph_rtl_info): Likewise.
1562 * tree-inline.c (estimate_num_insns): Likewise.
1563 * gimplify.c (unshare_body): Likewise.
1564 (unvisit_body): Likewise.
1565 (gimplify_body): Likewise.
1566 * predict.c (optimize_function_for_size_p): Likewise.
1567 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1568 (call_may_clobber_ref_p_1): Likewise.
1569 * varasm.c (function_section_1): Likewise.
1570 (assemble_start_function): Likewise.
1572 2011-04-11 Martin Jambor <mjambor@suse.cz>
1574 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1576 * final.c (rest_of_clean_state): Likewise.
1577 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1578 * passes.c (pass_init_dump_file): Likewise.
1579 (execute_all_ipa_transforms): Likewise.
1580 (function_called_by_processed_nodes_p): Likewise.
1581 * predict.c (maybe_hot_frequency_p): Likewise.
1582 (probably_never_executed_bb_p): Likewise.
1583 (compute_function_frequency): Likewise.
1584 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1585 (unnest_nesting_tree_1): Likewise.
1586 (lower_nested_functions): Likewise.
1587 * tree-optimize.c (execute_fixup_cfg): Likewise.
1588 (tree_rest_of_compilation): Likewise.
1589 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1590 * tree-sra.c (ipa_early_sra): Likewise.
1591 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1592 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1593 * ipa.c (record_cdtor_fn): Likewise.
1594 * ipa-inline.c (cgraph_early_inlining): Likewise.
1595 (compute_inline_parameters_for_current): Likewise.
1596 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1597 * ipa-pure-const.c (local_pure_const): Likewise.
1598 * ipa-split.c (split_function): Likewise.
1599 (execute_split_functions): Likewise.
1600 * cgraphbuild.c (build_cgraph_edges): Likewise.
1601 (rebuild_cgraph_edges): Likewise.
1602 (cgraph_rebuild_references): Likewise.
1603 (remove_cgraph_callee_edges): Likewise.
1604 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1605 (verify_cgraph_node): Likewise.
1606 (cgraph_analyze_functions): Likewise.
1607 (cgraph_preserve_function_body_p): Likewise.
1608 (save_inline_function_body): Likewise.
1609 (save_inline_function_body): Likewise.
1610 * tree-inline.c (copy_bb): Likewise.
1611 (optimize_inline_calls): Likewise.
1613 2011-04-11 Martin Jambor <mjambor@suse.cz>
1615 PR tree-optimization/48195
1616 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1617 ipa_check_create_edge_args.
1618 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1619 ipa_check_create_edge_args.
1620 * ipa-inline.c (inline_generate_summary): Do not call
1621 ipa_check_create_node_params and ipa_check_create_edge_args.
1622 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1623 ipa_check_create_edge_args.
1625 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1627 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1629 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1630 * function.c (record_hard_reg_sets): Likewise.
1631 * ira.c (compute_regs_asm_clobbered): Likewise.
1632 * sched-deps.c (sched_analyze_1): Likewise.
1633 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1635 2011-04-09 Xinliang David Li <davidxl@google.com>
1637 PR tree-optimization/PR48484
1638 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1639 has_valid_pred lazily
1641 2011-04-09 Duncan Sands <baldrick@free.fr>
1643 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1645 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1647 * combine.c (combine_validate_cost): Adjust comments. Set registered
1648 cost of I0 to zero at the end, if any.
1650 2011-04-08 Xinliang David Li <davidxl@google.com>
1652 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1653 to insane profile data.
1655 2011-04-08 Xinliang David Li <davidxl@google.com>
1657 * final.c (dump_basic_block_info): New function.
1658 (final): Dump basic block.
1659 (final_scan_insn): Remove old dump.
1661 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1664 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1667 2011-04-08 Michael Matz <matz@suse.de>
1670 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1672 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1673 * rtl.h (rebuild_jump_labels_chain): Declare.
1674 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1675 insns inserted on edges.
1677 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1679 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1680 * config/arm/arm-arches.def: New.
1681 * config/arm/arm-opts.h: New.
1682 * config/arm/genopt.sh: New.
1683 * config/arm/arm-tables.opt: New (generated).
1684 * config/arm/arm.c (arm_handle_option, arm_target_help,
1685 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1686 (all_architectures): Get most table contents from arm-arches.def.
1687 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1688 arm_selected_tune here.
1689 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1690 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1691 (march=, mcpu=, mtune=): Use Enum and Var.
1692 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1693 (arm.o): Update dependencies.
1695 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1697 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1699 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1700 (write_typed_alloc_defns): Likewise.
1701 (main): Calls write_typed_alloc_defns with output_header.
1703 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1706 * ira-color.c (setup_profitable_hard_regs): Add comments.
1707 Don't take prohibited hard regs into account.
1708 (setup_conflict_profitable_regs): Rename to
1709 get_conflict_profitable_regs.
1710 (check_hard_reg_p): Check prohibited hard regs.
1712 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1714 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1715 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1716 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1718 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1721 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1722 move from floating point to shift amount register.
1723 (emit_move_sequence): Remove secondary reload support for floating
1724 point to shift amount amount register copies.
1725 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1726 amount register copies.
1727 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1728 register, return false if mode isn't a scalar integer mode.
1729 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1731 2011-04-08 Richard Guenther <rguenther@suse.de>
1733 * gimple.c (gimple_call_flags): Remove kludge.
1735 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1737 * sel-sched.c (sel_region_init): Move call to
1738 sel_setup_region_sched_flags after setup_current_loop_nest.
1740 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1742 PR rtl-optimization/48272
1743 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1744 init_insn_reg_pressure_info. Adjust a caller.
1745 * sched-int.h (init_insn_reg_pressure_info): Declare.
1746 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1747 when sched-pressure is enabled.
1749 2011-04-08 Richard Guenther <rguenther@suse.de>
1751 * gimple.c (gimple_set_modified): Do not queue calls to
1752 MODIFIED_NORETURN_CALLS here ...
1753 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1755 2011-04-08 Richard Guenther <rguenther@suse.de>
1758 * toplev.c (lang_dependent_init): Do not open asm_out_file
1759 in WPA mode, nor perform debug machinery initialization.
1760 (finalize): Do not unlink asm_out_file in WPA mode.
1762 2011-04-08 Richard Guenther <rguenther@suse.de>
1764 * gimple.h (gimple_call_fntype): New function.
1765 (gimple_call_return_type): Use it.
1766 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1767 * gimple-low.c (gimple_check_call_args): Likewise.
1768 * gimple.c (gimple_call_flags): Likewise.
1769 (gimple_call_arg_flags): Likewise.
1770 (gimple_call_return_flags): Likewise.
1771 * tree-cfg.c (verify_gimple_call): Likewise.
1772 (do_warn_unused_result): Likewise.
1773 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1774 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1776 2011-04-08 Dmitry Melnik <dm@ispras.ru>
1778 PR rtl-optimization/48235
1779 * sel-sched.c (code_motion_process_successors): Recompute the last
1780 insn in basic block if control flow changed.
1781 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1782 Update condition for ilist_remove.
1784 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1786 PR rtl-optimization/48302
1787 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1788 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1789 it to record added preheader blocks.
1790 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1791 on to sel_add_loop_preheaders.
1792 (sel_region_init): Move call to setup_current_loop_nest after
1795 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1798 * cfgloop.h (loop_has_exit_edges): New helper.
1799 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1801 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1802 that have no exit edges.
1804 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1806 PR rtl-optimization/48442
1807 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1808 all callers. Adjust assert.
1810 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1812 PR tree-optimization/48377
1813 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1814 is_packed to true even for types with smaller TYPE_ALIGN than
1817 2011-04-08 Richard Guenther <rguenther@suse.de>
1820 * doc/tm.texi: Re-generate.
1822 2011-04-08 Wei Guozhi <carrot@google.com>
1825 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1826 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1827 * config/arm/arm.md (*push_multi): Change the length computation to
1830 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1832 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1833 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1834 * doc/tm.texi: Regenerate.
1835 * system.h (ASM_OUTPUT_BSS): Poison.
1836 * varasm.c (asm_output_bss): Remove function.
1837 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1839 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1840 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1841 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1842 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1844 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1846 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1848 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1850 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1852 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1855 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1857 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1858 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1859 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1861 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1862 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1863 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1864 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1865 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1866 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1867 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1868 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1869 options. Don't map other m68k options manually. Don't handle
1870 old-style options as canonical.
1871 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1872 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1874 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1876 * basic-block.h (force_nonfallthru): Move to...
1877 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1878 (force_nonfallthru): ...here.
1879 * cfghooks.c (force_nonfallthru): New function.
1880 * cfgrtl.c (force_nonfallthru): Rename into...
1881 (rtl_force_nonfallthru): ...this.
1882 (commit_one_edge_insertion): Do not set AUX field.
1883 (commit_edge_insertions): Do not discover new basic blocks.
1884 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1885 (cfg_layout_rtl_cfg_hooks): Likewise.
1886 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1887 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1888 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1890 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1892 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1895 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1897 * config/i386/sse.md: Update copyright year.
1898 (avxcvtvecmode): Remove.
1899 (sse_movhlps): Merge with *avx_movhlps.
1900 (sse_movlhps): Merge with *avx_movlhps.
1901 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1902 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1903 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1904 (sse_loadhps): Merge with *avx_loadhps.
1905 (sse_storelps): Merge with *avx_storelps.
1906 (sse_loadlps): Merge with *avx_loadlps.
1907 (sse_movss): Merge with *avx_movss.
1908 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1909 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1910 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1911 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1912 (vec_set<mode>_0): Ditto.
1913 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1914 (sse4_1_insertps): Merge with *avx_insertps.
1915 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1916 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1917 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1918 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1919 (sse2_storehpd): Merge with *avx_storehpd.
1920 (sse2_loadhpd): Merge with *avx_loadhpd.
1921 (sse2_loadlpd): Merge with *avx_loadlpd.
1922 (sse2_movsd): Merge with *avx_movsd.
1923 (*vec_concatv2df): Merge with *vec_concatv2df.
1925 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1928 * combine.c (combine_instructions): Add last_combined_insn,
1929 update it if insn is after it, pass it to all try_combine calls.
1930 (try_combine): Add last_combined_insn parameter, pass it instead of
1931 i3 to propagate_for_debug.
1933 2011-04-07 Nick Clifton <nickc@redhat.com>
1935 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1936 to handle MDR <-> data register transfers.
1937 (movhi_internal): Likewise.
1939 2011-04-07 Alan Modra <amodra@gmail.com>
1941 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1942 previous stack info.
1944 2011-04-07 Tom de Vries <tom@codesourcery.com>
1947 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1948 flow_find_cross_jump. Swap variables to implement backward replacement.
1949 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1951 2011-04-07 Tom de Vries <tom@codesourcery.com>
1954 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1955 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1957 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1958 src1 or src2. Redirect edges to the last basic block. Update
1959 frequency and count on multiple basic blocks in case of fallthru.
1961 2011-04-07 Tom de Vries <tom@codesourcery.com>
1964 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1966 (old_insns_match_p): Change return type. Replace return false/true
1967 with return dir_none/dir_both. Use can_replace_by.
1968 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1969 direction from dir_p. Register replacement direction in dir, last_dir
1970 and afterlast_dir. Handle new return type of old_insns_match_p using
1971 merge_dir. Return replacement direction in dir_p.
1972 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1973 return type of old_insns_match_p.
1974 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1975 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1976 flow_find_cross_jump.
1977 * basic-block.h (enum replace_direction): New type.
1978 (flow_find_cross_jump): Add parameter to declaration.
1980 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1982 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1983 (AVXMODEDCVTPS2DQ): Ditto.
1984 (VEC_FLOAT_MODE): Ditto.
1985 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1986 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1987 (<any_logic:code><mode>3): Use VF mode iterator.
1988 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1989 Use VF mode iterator.
1990 (copysign<mode>3): Use VF mode iterator.
1991 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1992 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1993 (*<any_logic:code><MODEF:mode>3): Merge with
1994 *avx_<any_logic:code><MODEF:mode>3.
1995 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1996 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1997 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1998 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1999 (sse2_cvtdq2ps): Use %v modifier.
2000 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2001 (avx_cvtps2dq<avxmodesuffix>): Remove.
2002 (sse2_cvtps2dq): Use %v modifier.
2003 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2004 (avx_cvttps2dq<avxmodesuffix>): Remove.
2005 (sse2_cvttps2dq): Use %v modifier.
2006 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2007 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2008 (sse2_cvtsd2siq): Fix insn template.
2009 (sse2_cvtsd2siq_2): Ditto.
2010 (sse2_cvttsd2siq): Ditto.
2011 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2012 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2014 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2016 * gcov-io.c: Use GCC Runtime Library Exception.
2018 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2021 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2022 as base_reg whatever register reg has been eliminated to, instead
2023 of hardcoding STACK_POINTER_REGNUM.
2025 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2027 * doc/tm.texi.in: Document C target hooks as separate from general
2029 * doc/tm.texi: Regenerate.
2030 * genhooks.c (struct hook_desc): Add docname field.
2031 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2033 (hook_array): Include c-target.def.
2034 (emit_documentation): Use docname field in output.
2035 (emit_init_macros): Take docname argument. Only emit definitions
2036 for hooks matching docname.
2037 (main): Expect additional arguments in all cases. Pass argument
2038 to emit_init_macros.
2039 * target.def: Move initial macro definitions and comments to
2040 target-hooks-macros.h.
2041 (gcc_targetcm): Move to c-family/c-target.def.
2042 * target.h (targetcm): Move declaration to c-family/c-target.h.
2043 * targhooks.c (default_handle_c_option): Move to
2045 * targhooks.h (default_handle_c_option): Move declaration to
2046 c-family/c-common.h.
2047 * target-hooks-macros.h: New file.
2048 * config.gcc (target_has_targetcm): Define and use to add to
2049 c_target_objs and cxx_target_objs.
2050 * config/default-c.c: New file.
2051 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2052 of target.h and target-def.h.
2053 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2054 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2055 darwin_check_cfstring_format_arg): Make static.
2056 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2057 TARGET_STRING_OBJECT_REF_TYPE_P,
2058 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2059 * config/darwin-protos.h (darwin_objc_construct_string,
2060 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2062 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2063 TARGET_STRING_OBJECT_REF_TYPE_P,
2064 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2065 * config/t-darwin (darwin-c.o): Update dependencies.
2066 * system.h (TARGET_HAS_TARGETCM): Poison.
2067 * Makefile.in (TARGET_H): Update.
2068 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2069 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2070 (default-c.o): New target.
2071 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2072 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2073 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2075 (build/genhooks.o): Update dependencies.
2077 2011-04-06 Richard Guenther <rguenther@suse.de>
2079 * ipa-inline.c (enum inlining_mode): Remove.
2080 (cgraph_flatten): Use some other token.
2081 (cgraph_edge_early_inlinable_p): New function, split out from ...
2082 (cgraph_perform_always_inlining): New function, split out from ...
2083 (cgraph_decide_inlining_incrementally): ... here.
2084 (cgraph_mark_inline_edge): Adjust.
2085 (cgraph_early_inlining): Re-structure.
2086 (pass_early_inline): Require SSA form.
2088 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2089 Julian Brown <julian@codesourcery.com>
2090 Mark Shinwell <shinwell@codesourcery.com>
2092 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2093 LO_REGS only for Thumb-1.
2094 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2095 be used in short instructions when optimising for size on Thumb-2.
2097 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2099 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2100 associated with user returns to be preserved.
2102 2011-04-06 Tristan Gingold <gingold@adacore.com>
2104 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2105 symbol_queue_size, DBXOUT_DECR_NESTING,
2106 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2107 if XCOFF_DEBUGGING_INFO.
2109 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2111 * config/i386/i386.md (attribute isa): New.
2112 (attribute enabled): New.
2113 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2114 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2115 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2116 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2117 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2118 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2119 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2120 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2122 * config/i386/sse.md (VF): New mode iterator.
2126 (SSEMODEF4): Remove.
2127 (attribute sse): Handle V8SF and V4DF modes.
2128 (<absneg:code><mode>2): Use VF mode iterator.
2129 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2131 (<plusminus_insn><mode>3): Use VF mode iterator.
2132 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2133 Use VF mode iterator.
2134 (<sse>_vm<plusminus_insn><mode>3): Merge with
2135 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2136 (mul<mode>3): Use VF mode iterator.
2137 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2138 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2140 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2141 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2142 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2143 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2145 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2146 Use VF1 mode iterator.
2147 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2148 (sqrt<VF2:mode>2): New expander.
2149 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2150 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2151 and sqrtv2df2. Use VF mode iterator.
2152 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2154 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2155 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2156 Use VF1 mode iterator.
2157 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2158 (<smaxmin:code><mode>3): Use VF mode iterator.
2159 (*<smaxmin:code><mode>3_finite): Merge with
2160 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2161 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2162 (<sse>_vm<smaxmin:code><mode>2): Merge with
2163 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2164 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2166 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2168 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2169 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2170 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2171 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2172 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2174 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2175 Use VF_128 mode iterator.
2176 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2178 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2179 VF_128 mode iterator.
2180 (vcond<mode>): Use VF mode iterator.
2181 * config/i386/predicates.md (sse_comparison_operator): Merge with
2182 avx_comparison_float_operator. Do not declare as special_predicate.
2183 * config/i386/i386.c (struct builtin_description): Update for renamed
2185 (ix86_expand_args_builtin): Ditto.
2186 (ix86_expand_sse_compare_mask): Ditto.
2188 2011-04-06 Richard Guenther <rguenther@suse.de>
2190 * tree-inline.c (estimate_num_insns): For calls simply account
2191 for all passed arguments and a used return value.
2193 2011-04-06 Richard Guenther <rguenther@suse.de>
2195 PR tree-optimization/47663
2196 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2197 call_stmt_time fields.
2198 (cgraph_edge_inlinable_p): Declare.
2199 (cgraph_edge_recursive_p): New inline function.
2200 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2201 (cgraph_clone_edge): Copy it.
2202 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2203 Account for call stmt time.
2204 (cgraph_estimate_time_after_inlining): Take edge argument.
2205 (cgraph_estimate_edge_growth): Account call stmt size.
2206 (cgraph_estimate_size_after_inlining): Take edge argument.
2207 (cgraph_mark_inline_edge): Adjust.
2208 (cgraph_check_inline_limits): Likewise.
2209 (cgraph_recursive_inlining_p): Remove.
2210 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2211 (cgraph_decide_recursive_inlining): Take edge argument and
2213 (cgraph_decide_inlining_of_small_functions): Do not avoid
2214 diags for recursive inlining here.
2215 (cgraph_flatten): Adjust.
2216 (cgraph_decide_inlining_incrementally): Likewise.
2217 (estimate_function_body_sizes): Remove call cost handling.
2218 (compute_inline_parameters): Initialize caller edge call costs.
2219 (cgraph_estimate_edge_growth): New function.
2220 (cgraph_estimate_growth): Use it.
2221 (cgraph_edge_badness): Likewise.
2222 (cgraph_check_inline_limits): Take an edge argument.
2223 (cgraph_decide_inlining_of_small_functions): Adjust.
2224 (cgraph_decide_inlining): Likewise.
2225 * tree-inline.c (estimate_num_insns): Only account for call
2226 return value if it is used.
2227 (expand_call_inline): Avoid diagnostics on recursive inline
2229 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2230 (input_edge): Input edge call costs.
2232 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2234 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2236 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2238 * doc/invoke.texi (Spec Files): Fix typo.
2240 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2242 * profile.c (branch_prob): Move declaration of local variable. Remove
2243 obsolete ??? comment. Expand the location explicitly instead of using
2244 the LOCATION_FILE and LOCATION_LINE macros.
2246 2011-04-06 Wei Guozhi <carrot@google.com>
2249 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2250 (arm_cond_branch): Likewise.
2251 (arm_cond_branch_reversed): Likewise.
2252 (arm_jump): Likewise.
2253 (push_multi): Likewise.
2254 * config/arm/constraints.md (Py): New constraint.
2256 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2259 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2261 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2262 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2263 #ifdef DBX_DEBUGGING_INFO.
2265 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2268 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2269 if old and new states differ.
2271 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2273 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2274 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2275 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2276 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2277 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2279 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2280 ColdFire options to -mcpu= options.
2282 2011-04-05 Jeff Law <law@redhat.com>
2284 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2285 check if BB is a successor of LOOP->header and return
2286 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2288 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2290 * cprop.c (struct reg_use): Remove.
2291 (reg_use_table): Make an array of RTX.
2292 (find_used_regs, constprop_register, local_cprop_pass,
2293 bypass_block): Simplify users of reg_use_table.
2294 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2295 on one of the uses found by find_used_regs.
2297 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2300 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2303 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2305 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2307 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2309 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2312 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2314 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2316 * combine.c: Include obstack.h.
2317 (struct insn_link): Define.
2318 (uid_log_links): Adjust type.
2319 (FOR_EACH_LOG_LINK): New macro.
2320 (insn_link_obstack): Declare.
2321 (alloc_insn_link): Define.
2322 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2323 type of link variables.
2324 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2325 (try_combine, record_promoted_values, distribute_notes): Likewise.
2326 (distribute_links): Likewise. Tweak prototype.
2327 (clear_log_links): Delete.
2328 (adjust_for_new_dest): Call alloc_insn_link.
2329 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2331 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2333 * gcse.c (modify_mem_list): Convert to an array of VECs.
2334 (canon_modify_mem_list, compute_transp): Tweak formatting.
2335 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2336 (load_killed_in_block_p): Likewise.
2337 (record_last_mem_set_info): Likewise.
2338 (clear_modify_mem_tables): Likewise.
2340 2011-04-05 Tom de Vries <tom@codesourcery.com>
2343 * function.c (emit_use_return_register_into_block): Only define if
2346 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2348 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2350 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2352 * config/rx/rx-opts.h: New.
2353 * config/rx/rx.c (rx_cpu_type): Remove.
2354 (rx_handle_option): Don't assert that global structures are in
2355 use. Access variables via opts pointer. Defer most handling of
2356 OPT_mint_register_. Use error_at.
2357 (rx_option_override): Handle deferred OPT_mint_register_ here.
2358 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2359 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2360 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2361 (rx_cpu_types): New Enum and EnumValue entries.
2362 (mint-register=): Use Defer and use Var accordingly.
2364 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2366 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2367 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2368 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2370 (debug_free_queue, debug_nesting, symbol_queue_index):
2372 * dbxout.c: ...to here. Make static.
2374 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2376 * gcse.c (modify_pair): Define. Define a VEC of it.
2377 (canon_modify_mem_list): Convert to an array of VECs.
2378 (free_insn_expr_list_list): Delete.
2379 (clear_modify_mem_tables): Call VEC_free instead.
2380 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2381 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2382 (canon_list_insert, compute_transp): Likewise.
2384 2011-04-05 Tom de Vries <tom@codesourcery.com>
2387 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2390 2011-04-05 Tom de Vries <tom@codesourcery.com>
2393 * function.c (emit_use_return_register_into_block): New function.
2394 (thread_prologue_and_epilogue_insns): Use
2395 emit_use_return_register_into_block.
2397 2011-04-05 Tom de Vries <tom@codesourcery.com>
2400 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2403 2011-04-05 Tom de Vries <tom@codesourcery.com>
2405 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2407 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2409 * config/arm/arm.md (define_constants for unspec): Replace with
2411 (define_constants for unspecv): Replace with define_c_enum.
2412 * config/arm/neon.md (define_constants for unspec): Replace with
2415 2011-04-04 Richard Henderson <rth@redhat.com>
2418 * dwarf2out.c (output_line_info): Always emit line info from
2419 at least one section.
2420 (dwarf2out_init): Create text_section_line_info here ...
2421 (set_cur_line_info_table): ... not here.
2423 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2426 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2429 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2431 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2433 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2434 (expr_equiv_p): Remove.
2435 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2436 (hash_scan_set): Update call to insert_set_in_table.
2437 (dump_hash_table): Dump <dest, src> pair.
2438 (lookup_set): Simplify. Lookup <dest, src> pair.
2439 (compute_transp): Remove, fold heavily simplified code into...
2440 (compute_local_properties): ...here. Expect COMP and TRANSP
2442 (find_avail_set): Take set directly from struct expr.
2443 (find_bypass-set): Likewise.
2444 (bypass_block): Likewise.
2445 (cprop_insn): Likewise. Remove redundant INSN_P test.
2447 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2448 checks on form of COND from find_implicit_sets to here.
2449 (find_implicit_sets): Cleanup control flow. Split critical edges
2450 if it exposes implicit sets. Allocate/resize implicit_sets as
2452 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2453 changed something. Run df_analyze after find_implicit_sets if any
2454 edges were split. Do not allocate implicit_sets here.
2456 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2457 (gcse_obstack): Renamed to cprop_obstack.
2458 (GNEW, GNEWVEC, GNEWVAR): Remove.
2460 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2461 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2462 (gcse_alloc): Likewise, and rename to cprop_alloc.
2463 (alloc_gcse_men, free_gcse_mem): Remove.
2464 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2465 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2466 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2468 * cprop.c (oprs_not_set_p): Remove.
2469 (mark_set, mark_clobber): Remove.
2470 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2471 (reg_not_set_p): New function.
2472 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2473 (cprop_insn): Likewise.
2474 (cprop_jump): Use FOR_EACH_EDGE.
2476 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2479 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2480 (rank_for_schedule): Use scheduled_insns vector instead of
2481 last_scheduled_insn.
2482 (ok_for_early_queue_removal): Likewise.
2483 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2485 (choose_ready): Likewise.
2486 (commit_schedule): Use VEC_iterate.
2487 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2488 a dbg_cnt, use it and ensure the first insn is in the ready list.
2489 (haifa_sched_init): Allocate scheduled_insns.
2490 (sched_extend_ready_list): Don't allocate it; reserve space.
2491 (haifa_sched_finish): Free it.
2493 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2495 * optc-gen.awk: Always remove type from Variable entry before
2496 recording in var_seen.
2498 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2500 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2501 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2502 call to tidy_fallthru_edges.
2504 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2506 * doc/options.texi (ToLower): Document.
2507 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2508 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2509 * opts.h (cl_option): Add cl_tolower field.
2510 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2511 arguments with lowercase strings.
2512 * config/rx/rx.opt (mcpu=): Add ToLower.
2513 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2516 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2518 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2520 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2522 * config/vax/vax.c: Include reload.h.
2524 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2526 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2527 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2528 (sparc_preferred_reload_class): New function.
2530 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2533 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2534 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2536 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2538 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2539 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2541 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2543 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2544 (ASM_OUTPUT_ALIGNED_BSS): Define.
2546 2011-04-03 Michael Matz <matz@suse.de>
2548 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2549 and next_slot members.
2550 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2551 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2552 (lto_streamer_cache_append): Declare.
2553 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2554 unsigned index, remove offset parameter, ensure that we append
2555 or update existing entries.
2556 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2557 parameter, update next_slot for append.
2558 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2560 (lto_streamer_cache_insert_at): Likewise.
2561 (lto_streamer_cache_append): New function.
2562 (lto_streamer_cache_lookup): Use unsigned index.
2563 (lto_streamer_cache_get): Likewise.
2564 (lto_record_common_node): Don't test tree_node_can_be_shared.
2565 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2566 (lto_streamer_cache_delete): Don't free offsets member.
2567 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2568 (lto_output_string_with_length): Use lto_output_data_stream.
2569 (lto_output_tree_header): Remove ix parameter, don't write it.
2570 (lto_output_builtin_tree): Likewise.
2571 (lto_write_tree): Adjust callers to above, don't track and write
2572 offset, write unsigned index.
2573 (output_unreferenced_globals): Don't emit all global vars.
2574 (write_global_references): Use unsigned indices.
2575 (lto_output_decl_state_refs): Likewise.
2576 (write_symbol): Likewise.
2577 * lto-streamer-in.c (lto_input_chain): Move earlier.
2578 (input_function): Use unsigned index.
2579 (input_alias_pairs): Don't read and then ignore all global vars.
2580 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2581 don't pass it back, use lto_streamer_cache_append.
2582 (lto_register_var_decl_in_symtab): Use unsigned index.
2583 (lto_register_function_decl_in_symtab): Likewise.
2584 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2586 (lto_get_builtin_tree): Don't read index, use
2587 lto_streamer_cache_append.
2588 (lto_read_tree): Adjust call to lto_materialize_tree.
2590 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2591 don't use function calls in arguments to MIN.
2593 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2596 * gimple.c (gimple_type_leader_entry): Mark deletable.
2598 2011-04-03 Alan Modra <amodra@gmail.com>
2600 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2602 2011-04-03 Michael Matz <matz@suse.de>
2604 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2606 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2608 2011-04-03 Michael Matz <matz@suse.de>
2610 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2611 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2612 without function context.
2613 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2614 current_function_decl and cfun.
2616 2011-04-03 Michael Matz <matz@suse.de>
2618 * tree.c (decl_init_priority_insert): Don't create entry for
2620 (decl_fini_priority_insert): Ditto.
2621 (fields_compatible_p, find_compatible_field): Remove.
2622 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2623 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2625 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2627 * combine.c (try_combine): Remove useless local variable.
2629 2011-04-03 Richard Guenther <rguenther@suse.de>
2630 Ira Rosen <ira.rosen@linaro.org>
2632 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2633 non-variable offsets and compare the remaining bases of the two
2634 accesses instead of looking for exact same data-ref.
2636 2011-04-02 Kai Tietz <ktietz@redhat.com>
2639 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2641 * i386.c (ix86_is_msabi_thiscall): New helper function.
2642 (ix86_is_type_thiscall): New helper function.
2643 (ix86_comp_type_attributes): Handle thiscall for method-functions
2645 (init_cumulative_args): Likewise.
2646 (find_drap_reg): Likewise.
2647 (ix86_static_chain): Likewise.
2648 (x86_this_parameter): Likewise.
2649 (x86_output_mi_thunk): Likewise.
2651 2011-04-01 Olivier Hainque <hainque@adacore.com>
2652 Nicolas Setton <setton@adacore.com>
2653 Eric Botcazou <ebotcazou@adacore.com>
2655 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2656 (add_gnat_descriptive_type_attribute): New function.
2657 (gen_array_type_die): Call it.
2658 (gen_enumeration_type_die): Likewise.
2659 (gen_struct_or_union_type_die): Likewise.
2660 (modified_type_die): Likewise.
2661 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2662 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2663 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2665 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2668 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2669 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2672 2011-03-17 Richard Guenther <rguenther@suse.de>
2675 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2676 origin for decls in other ltrans units.
2677 (input_varpool_node): Likewise.
2679 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2682 * expr.c (expand_assignment): Handle all possibilities
2683 if TO_RTX is CONCAT.
2684 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2685 (store_split_bit_field): If SUBREG_REG (op0) or
2686 op0 itself has smaller mode than word, return it
2687 for offset 0 and const0_rtx for out-of-bounds stores.
2688 If word is const0_rtx, skip it.
2690 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2692 * config/h8300/h8300.c (print_operand_address): Rename to...
2693 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2694 Call h8300_print_operand and h8300_print_operand_address instead of
2695 print_operand and print_operand_address. Declare.
2696 (print_operand): Renake to...
2697 (h8300_print_operand): ...this. Make static. Adjust comments.
2698 Call h8300_print_operand instead of print_operand. Declare.
2699 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2700 (h8300_register_move_cost): Likewise.
2701 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2702 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2703 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2704 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2705 * config/h8300/h8300-protos.h (print_operand): Delete.
2706 (print_operand_address): Delete.
2708 2011-04-01 Richard Henderson <rth@redhat.com>
2711 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2712 in strict mode before dwarf4. Re-order tests to early out
2713 before switching sections.
2715 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2717 * config/h8300/constraints.md: New file.
2718 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2719 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2720 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2721 * config/h8300/predicates.md (bit_operand): Likewise.
2722 (incdec_operand): Use satisfies_constraint_M and
2723 satisfies_constraint_O. Don't use C code block.
2724 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2725 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2726 (compute_mov_length): Use satisfies_constraint_G.
2727 (fix_bit_operand): Use satisfies_constraint_U.
2728 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2729 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2730 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2731 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2732 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2733 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2734 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2735 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2736 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2737 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2738 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2739 (EXTRA_MEMORY_CONSTRAINT): Delete.
2741 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2742 Michael Meissner <meissner@linux.vnet.ibm.com>
2745 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2746 operands, as per the specifications.
2748 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2749 (vec_extract_evenv4sf): Ditto.
2750 (vec_extract_evenv8hi): Ditto.
2751 (vec_extract_evenv16qi): Ditto.
2752 (vec_extract_oddv4si): Ditto.
2754 2011-03-31 Mark Wielaard <mjw@redhat.com>
2756 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2757 high_pc attribute if the CU has no associated code. Only output
2758 DW_AT_entry_pc for CU if not generating strict dwarf and
2761 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2763 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2764 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2766 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2767 * final.c (final_start_function): Call the new function rather
2768 than using a NULL argument for dwarf2out_frame_debug.
2770 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2771 that contains the prologue.
2773 * haifa-sched.c (queue_insn): New arg REASON. All callers
2774 changed. Print it in debugging output.
2776 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2778 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2779 Split most of the code into...
2780 (begin_move_insn): ... here. New function.
2781 (ebb_sched_info): Add a pointer to it.
2782 * haifa-sched.c (scheduled_insns): New static variable.
2783 (sched_extend_ready_list): Allocate it.
2784 (schedule_block): Use it to record the order of scheduled insns.
2785 Perform RTL changes to move insns only after all scheduling
2786 decisions have been made.
2787 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2788 begin_move_insn field.
2789 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2790 * sched-int.h (struct haifa_sched_info): Remove second argument
2791 from begin_schedule_ready hook. Add new member begin_move_insn.
2792 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2793 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2795 * haifa-sched.c (prune_ready_list): New function, broken out of
2797 (schedule_block): Use it.
2799 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2801 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2803 2011-04-01 Kai Tietz <ktietz@redhat.com>
2805 * config.gcc (*-*-mingw*): Allow as option the
2806 posix threading model.
2807 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2808 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2810 (CPP_SPEC): Add pthread/no-pthread handling.
2811 (LIB_SPEC): Likewise.
2812 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2813 (LIB_SPEC): Likewise.
2814 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2815 flag to pass -pthread option for shared libgcc build.
2816 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2817 for shared libgcc build.
2818 * config/i386/t-mingw-pthread: New file.
2819 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2820 New define to enable use of library pthread by default.
2821 * config/i386/mingw.opt (pthread): New driver option.
2822 (no-pthread): New driver option.
2823 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2824 * config/i386/mingw-w64.opt: Likewise.
2826 2011-04-01 Gary Funck <gary@intrepid.com>
2828 * c-decl.c (grokdeclarator): Fix formatting.
2830 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2832 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2833 instead of n_operands.
2834 (set_storage_via_setmem): Likewise.
2835 * optabs.c (maybe_gen_insn): Likewise.
2836 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2837 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2838 (mips_expand_builtin_direct): Likewise.
2839 * config/spu/spu.c (expand_builtin_args): Likewise.
2841 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2843 * recog.h (insn_data_d): Add n_generator_args.
2844 * genoutput.c (data): Likewise.
2845 (output_insn_data): Print it.
2846 (max_opno, num_dups): Delete.
2847 (scan_operands): Just fill in "d->operand[...]".
2848 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2850 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2852 * gensupport.h (pattern_stats): New structure.
2853 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2854 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2855 (max_operand_1, max_operand_vec): Delete.
2856 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2858 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2860 * emit-rtl.c (emit_pattern_after_setloc): New function.
2861 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2862 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2863 (emit_pattern_after): New function.
2864 (emit_insn_after, emit_jump_insn_after): Call it.
2865 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2866 (emit_pattern_before_setloc): New function.
2867 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2868 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2870 (emit_pattern_before): New function.
2871 (emit_insn_before, emit_jump_insn_before): Call it.
2872 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2874 2011-03-31 Richard Henderson <rth@redhat.com>
2876 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2877 (dw_separate_line_info_entry): Remove.
2878 (enum dw_line_info_opcode): New.
2879 (dw_line_info_entry): Use it.
2880 (dw_line_info_table, dw_line_info_table_p): New.
2881 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2882 (line_info_table, line_info_label_num): Remove.
2883 (line_info_table_in_use): Remove.
2884 (separate_line_info_table): Remove.
2885 (separate_line_info_table_allocated): Remove.
2886 (separate_line_info_table_in_use): Remove.
2887 (LINE_INFO_TABLE_INCREMENT): Remove.
2888 (line_info_label_num): New.
2889 (cur_line_info_table): New.
2890 (text_section_line_info, cold_text_section_line_info): New.
2891 (separate_line_info): New.
2892 (SEPARATE_LINE_CODE_LABEL): Remove.
2893 (print_dwarf_line_table): Remove.
2894 (debug_dwarf): Don't dump it.
2895 (output_one_line_info_table): New.
2896 (output_line_info): Use it.
2897 (new_line_info_table): New.
2898 (set_cur_line_info_table): New.
2899 (dwarf2out_switch_text_section): Use it.
2900 (dwarf2out_begin_function): Likewise.
2901 (push_dw_line_info_entry): New.
2902 (dwarf2out_source_line): Rewrite for new line info tables.
2903 (dwarf2out_init): Remove dead initailizations.
2905 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2907 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2909 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2910 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2911 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2912 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2913 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2914 * opt-functions.awk (flag_init, switch_bit_fields): New.
2915 (switch_flags): Don't handle flags moved to bit-fields. Don't
2916 generate CL_MISSING_OK or CL_SAVE.
2917 * optc-gen.awk: Update to generate bit-field output as well as
2919 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2920 bit-field instead of CL_REJECT_DRIVER flag.
2921 * opts-common.c (generate_canonical_option,
2922 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2923 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2924 instead of CL_REJECT_NEGATIVE flag.
2925 * toplev.c (print_switch_values): Use cl_report bit-field instead
2928 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2930 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2931 a zero minimum index only if it is redundant.
2933 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2935 PR rtl-optimization/48381
2936 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2937 instead of ira_class_hard_reg_index for calculating conflicting
2940 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2942 * cprop.c: Clean up hash table building.
2943 (reg_avail_info): Remove.
2944 (oprs_available_p): Remove.
2945 (record_last_reg_set_info): Remove.
2946 (record_last_set_info): Remove.
2947 (reg_available_p): New function.
2948 (gcse_constant_p): Do not treat unfolded conditions as constants.
2949 (make_set_regs_unavailable): New function.
2950 (hash_scan_set): Simplify with new reg_available_p.
2951 (compute_hash_table_work): Traverse insns stream only once.
2952 Do not compute reg_avail_info. Traverse insns in reverse order.
2953 Record implicit sets after recording explicit sets from the block.
2955 2011-03-31 Michael Matz <matz@suse.de>
2957 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2959 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2961 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2962 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2963 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2964 (h8300_mode_dependent_address_p): New function.
2965 (h8300_get_index): Make static.
2967 2011-03-31 Jeff Law <law@redhat.com>
2969 * reload1.c (elimination_effects): Fix typo in recent change.
2971 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2972 typo potentially leading to null pointer dereference.
2974 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2975 (setup_save_areas): Corresponding changes to avoid useless
2978 * jump.c (reversed_comparison_code_parts): Avoid successive return
2979 statements when REVERSE_CONDITION is defined.
2981 * expr.c (expand_assignment): Avoid useless assignments.
2982 (expand_expr_real_1): Likewise.
2983 (expand_expr_real_2): Avoid useless statements.
2985 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2987 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2989 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2992 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2994 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2997 * doc/tm.texi.in (TARGET_VERSION): Remove.
2998 * doc/tm.texi: Regenerate.
2999 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3000 * collect2.c (main): Don't use TARGET_VERSION.
3001 * mips-tdump.c (main): Don't use TARGET_VERSION.
3002 * mips-tfile.c (main): Don't use TARGET_VERSION.
3003 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3004 * config/rs6000/vxworksae.h: Remove.
3005 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3006 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3007 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3008 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3009 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3010 * config/arm/arm.h (TARGET_VERSION): Remove.
3011 * config/arm/coff.h (TARGET_VERSION): Remove.
3012 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3013 * config/arm/elf.h (TARGET_VERSION): Remove.
3014 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3015 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3016 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3017 * config/arm/pe.h (TARGET_VERSION): Remove.
3018 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3019 * config/arm/semi.h (TARGET_VERSION): Remove.
3020 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3021 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3022 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3023 * config/avr/avr.h (TARGET_VERSION): Remove.
3024 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3025 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3026 * config/frv/frv.h (TARGET_VERSION): Remove.
3027 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3028 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3029 * config/i386/darwin.h (TARGET_VERSION): Remove.
3030 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3031 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3032 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3033 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3034 * config/i386/gnu.h (TARGET_VERSION): Remove.
3035 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3036 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3037 * config/i386/linux.h (TARGET_VERSION): Remove.
3038 * config/i386/linux64.h (TARGET_VERSION): Remove.
3039 * config/i386/lynx.h (TARGET_VERSION): Remove.
3040 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3041 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3042 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3043 * config/i386/netware.h (TARGET_VERSION): Remove.
3044 * config/i386/nto.h (TARGET_VERSION): Remove.
3045 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3046 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3047 * config/ia64/elf.h (TARGET_VERSION): Remove.
3048 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3049 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3050 * config/ia64/linux.h (TARGET_VERSION): Remove.
3051 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3052 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3053 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3054 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3055 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3056 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3057 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3058 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3059 * config/m68k/linux.h (TARGET_VERSION): Remove.
3060 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3061 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3062 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3063 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3064 * config/mep/mep.h (TARGET_VERSION): Remove.
3065 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3066 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3067 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3068 * config/mips/linux.h (TARGET_VERSION): Remove.
3069 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3070 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3071 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3072 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3073 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3074 * config/pa/pa.h (TARGET_VERSION): Remove.
3075 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3076 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3077 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3078 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3079 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3080 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3081 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3082 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3083 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3084 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3085 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3086 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3087 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3088 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3089 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3090 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3091 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3092 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3093 * config/s390/linux.h (TARGET_VERSION): Remove.
3094 * config/s390/s390.h (TARGET_VERSION): Remove.
3095 * config/s390/tpf.h (TARGET_VERSION): Remove.
3096 * config/score/score.h (TARGET_VERSION): Remove.
3097 * config/sh/linux.h (TARGET_VERSION): Remove.
3098 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3099 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3100 * config/sh/sh.h (TARGET_VERSION): Remove.
3101 * config/sh/sh64.h (TARGET_VERSION): Remove.
3102 * config/sh/superh.h (TARGET_VERSION): Remove.
3103 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3104 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3105 * config/sparc/linux.h (TARGET_VERSION): Remove.
3106 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3107 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3108 TARGET_NAME32, TARGET_NAME): Remove.
3109 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3110 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3111 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3112 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3113 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3114 * config/spu/spu.h (TARGET_VERSION): Remove.
3115 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3116 * config/v850/v850.h (TARGET_VERSION): Remove.
3117 * config/vax/linux.h (TARGET_VERSION): Remove.
3118 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3119 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3120 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3122 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3125 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3126 frame-related from frame-unrelated adjustments to the stack pointer.
3128 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3130 * common.opt (fdebug-types-section): Move earlier.
3131 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3133 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3135 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3138 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3140 * tree.h (CASE_CHAIN): Define.
3141 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3142 (gimple_redirect_edge_and_branch): Likewise.
3144 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3147 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3150 2011-03-30 Jeff Law <law@redhat.com>
3152 * PR bootstrap/48371
3153 * reload1.c (reload): Fix botch in last change.
3155 * reload.h (struct reload): Fix typo introduced in last change.
3157 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3159 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3160 Undocumented. Remove help text.
3161 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3164 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3166 * doc/options.texi (NegativeAlias): Document.
3167 (Alias): Mention NegativeAlias.
3168 * opt-functions.awk: Handle NegativeAlias.
3169 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3170 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3171 * opts.h (CL_NEGATIVE_ALIAS): Define.
3172 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3173 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3175 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3177 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3178 mno-spe and mno-isel instead of mspe=no and -misel=no.
3180 2011-03-29 Mark Wielaard <mjw@redhat.com>
3182 * common.opt (fdebug-types-section): New flag.
3183 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3184 * dwarf2out.c (use_debug_types): New define.
3185 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3186 (print_die): Guard output of type unit signatures using
3188 (build_abbrev_table): Replace assert of dwarf_version >= 4
3189 with assert on use_debug_types.
3190 (size_of_die): Likewise.
3191 (unmark_dies): Likewise.
3192 (value_format): Decide AT_ref_external form on use_debug_types.
3193 (output_die): Replace dwarf_version version check guard with
3194 use_debug_types where appropriate.
3195 (modified_type_die): Likewise.
3196 (gen_reference_type_die): Likewise.
3197 (dwarf2out_start_source_file): Likewise.
3198 (dwarf2out_end_source_file): Likewise.
3199 (prune_unused_types_walk_attribs): Likewise.
3200 (dwarf2out_finish): Likewise.
3202 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3204 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3206 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3208 PR rtl-optimization/48332
3209 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3210 mode of input operand N and modeN to its actual mode.
3212 2011-03-30 Jeff Law <law@redhat.com>
3214 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3215 define accessor macro.
3216 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3217 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3218 (reg_equiv_init): Likewise.
3219 (reg_equivs_size): New variable.
3220 (reg_equiv_init_size): Remove.
3221 (allocate_initial_values): Move prototype to here from....
3222 * integrate.h (allocate_initial_values): Remove prototype.
3223 * integrate.c: Include reload.h.
3224 (allocate_initial_values): Corresponding changes.
3225 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3226 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3227 (update_equiv_regs): Corresponding changes.
3228 (ira): Corresponding changes.
3229 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3230 (push_secondary_reload): Corresponding changes.
3231 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3232 (make_memloc, find_reloads_address): Corresponding changes.
3233 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3234 (find_reloads_address_1): Corresponding changes.
3235 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3236 (refers_to_regno_for_reload_p): Corresponding changes.
3237 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3238 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3239 * reload1.c: Include ggc.h.
3240 (grow_reg_equivs): New function.
3241 (replace_pseudos_in, reload): Corresponding changes.
3242 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3243 (eliminate_regs_1, elimination_effects): Corresponding changes.
3244 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3245 (delete_output_reload): Likewise.
3246 * caller-save.c (mark_referenced_regs): Corresponding changes.
3247 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3248 * frv/predicates.md (frv_load_operand): Corresponding changes.
3249 * microblaze/microblaze.c (double_memory_operand): Corresponding
3251 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3252 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3253 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3254 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3255 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3257 * pa/pa.c (emit_move_sequence): Corresponding changes.
3258 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3260 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3263 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3264 structure modes. Don't check neon_vector_mem_operand for
3265 vector or structure modes.
3267 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3268 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3271 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3272 operand 1 and reshuffle the operands to match.
3273 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3275 2011-03-30 Christian Schüler <cschueler@gmx.de>
3278 * config/c.opt (F): Added 'Driver' to -F option.
3281 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3283 * config/darwin.opt: Added '-arch' option.
3285 2011-03-30 Nick Clifton <nickc@redhat.com>
3287 * config/rx/rx.md: Add peepholes and patterns to combine
3288 extending loads and simple arithmetic instructions.
3289 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3290 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3291 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3292 modes to use pre-decrement and post-increment addressing.
3293 (rx_is_restricted_memory_address): Add range checking of REG+INT
3295 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3296 (rx_memory_move_cost): Adjust cost of stores.
3297 (rx_adjust_insn_length): New function.
3299 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3302 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3303 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3304 matching arg00/arg01 types.
3306 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3308 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3309 last_location to UNKNOWN_LOCATION.
3311 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3314 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3317 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3318 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3321 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3323 (sparc_cpu): Likewise.
3324 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3327 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3331 PR rtl-optimization/48345
3332 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3333 hard regs for given mode from profitable regs when doing secondary
3336 2011-03-29 Jeff Law <law@redhat.com>
3339 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3340 do_not_duplicate field.
3341 (lookup_redirection_data): Corresponding changes.
3342 (create_duplicates): Always create a template block.
3343 (redirect_edges): Remove code which reused the original block
3344 when it was going to become unreachable code.
3345 (thread_block): Don't set do_not_duplicate field.
3347 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3349 * lto-opts.c (register_user_option_p, lto_register_user_option):
3350 Make type argument unsigned.
3351 * lto-streamer.h (lto_register_user_option): Make type argument
3353 * opth-gen.awk: Make CL_* macros unsigned.
3354 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3355 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3356 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3357 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3358 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3359 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3360 (find_opt): Make lang_mask argument unsigned.
3362 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3364 PR rtl-optimization/48331
3365 PR rtl-optimization/48334
3366 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3367 for any used algorithm.
3369 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3371 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3374 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3376 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3377 (alpha_option_override): Don't set alpha_sr_alias_set.
3378 (emit_frame_store_1): Use gen_frame_mem rather than calling
3380 (alpha_expand_epilogue): Ditto.
3382 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3384 PR tree-optimization/48290
3385 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3386 vectorization, check that relevant phis in the basic block after
3387 the inner loop are really inner loop's exit phis.
3389 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3392 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3393 (cached_dw_loc_list_def): New structure.
3394 (cached_dw_loc_list): New typedef.
3395 (cached_dw_loc_list_table): New variable.
3396 (cached_dw_loc_list_table_hash): New function.
3397 (cached_dw_loc_list_table_eq): Likewise.
3398 (add_location_or_const_value_attribute): Take a bool cache_p.
3399 Cache the list when the parameter is true.
3400 (gen_formal_parameter_die): Update caller.
3401 (gen_variable_die): Likewise.
3402 (dwarf2out_finish): Likewise.
3403 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3404 while generating debug info for the decl.
3405 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3406 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3407 (resolve_addr): Cache the result of resolving a chain of
3410 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3412 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3413 conflict object hard regset nodes have intersecting hard reg sets.
3415 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3416 after regstat_init_n_sets_and_refs.
3418 * ira.c: Add more comments at the top.
3419 (setup_stack_reg_pressure_class, setup_pressure_classes):
3420 Add comments how we compute the register pressure classes.
3421 (setup_allocno_and_important_classes): Add more comments.
3422 (setup_class_translate_array, reorder_important_classes)
3423 (setup_reg_class_relations): Add comments.
3425 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3428 * ira-color.c: Add 2011 to the Copyright line.
3429 (assign_hard_reg): Add more comments.
3430 (improve_allocation): Ditto.
3432 * ira-costs.c: Add 2011 to the Copyright line.
3433 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3435 (setup_regno_cost_classes_by_mode): Ditto.
3437 Initial patches from ira-improv branch:
3439 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3441 * ira-build.c (ira_create_object): Remove initialization of
3442 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3443 (ira_create_allocno): Remove initialization of
3444 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3445 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3446 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3447 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3448 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3449 Initialize ALLOCNO_ADD_DATA.
3450 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3451 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3453 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3454 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3456 * ira.c (ira_reallocate): Remove.
3457 (setup_pressure_classes): Call
3458 ira_init_register_move_cost_if_necessary. Use
3459 ira_register_move_cost instead of ira_get_register_move_cost.
3460 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3461 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3463 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3464 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3465 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3466 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3467 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3468 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3470 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3471 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3472 (struct allocno_color_data): New.
3473 (allocno_color_data_t): New typedef.
3474 (allocno_color_data): New definition.
3475 (ALLOCNO_COLOR_DATA): New macro.
3476 (struct object_color_data): New.
3477 (object_color_data_t): New typedef.
3478 (object_color_data): New definition.
3479 (OBJECT_COLOR_DATA): New macro.
3480 (update_copy_costs, calculate_allocno_spill_cost): Call
3481 ira_init_register_move_cost_if_necessary. Use
3482 ira_register_move_cost instead of ira_get_register_move_cost.
3483 (move_spill_restore, update_curr_costs): Ditto.
3484 (allocno_spill_priority): Make it inline.
3485 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3486 (struct coalesce_data, coalesce_data_t): New.
3487 (allocno_coalesce_data): New definition.
3488 (ALLOCNO_COALESCE_DATA): New macro.
3489 (merge_allocnos, coalesced_allocno_conflict_p): Use
3490 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3491 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3492 (coalesce_allocnos): Ditto.
3493 (setup_coalesced_allocno_costs_and_nums): Ditto.
3494 (collect_spilled_coalesced_allocnos): Ditto.
3495 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3496 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3497 (coalesce_spill_slots): Ditto.
3498 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3499 free allocno_coalesce_data.
3501 * ira-conflicts.c: Fix formatting.
3502 (process_regs_for_copy): Call
3503 ira_init_register_move_cost_if_necessary. Use
3504 ira_register_move_cost instead of ira_get_register_move_cost.
3505 (build_object_conflicts): Optimize.
3507 * ira-costs.c (record_reg_classes): Optimize. Call
3508 ira_init_register_move_cost_if_necessary. Use
3509 ira_register_move_cost, ira_may_move_in_cost, and
3510 ira_may_move_out_cost instead of ira_get_register_move_cost and
3511 ira_get_may_move_cost.
3512 (record_address_regs): Ditto.
3513 (scan_one_insn): Optimize.
3514 (find_costs_and_classes): Optimize.
3515 (process_bb_node_for_hard_reg_moves): Call
3516 ira_init_register_move_cost_if_necessary. Use
3517 ira_register_move_cost instead of ira_get_register_move_cost.
3519 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3520 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3521 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3522 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3524 (ira_initiate_emit_data, ira_finish_emit_data)
3525 (create_new_allocno): New functions.
3526 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3527 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3528 Use ira_register_move_cost instead of ira_get_register_move_cost.
3530 * ira-int.h: Fix some comments.
3531 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3532 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3533 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3534 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3536 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3537 bitfield after mode. Make hard_regno a short int. Make
3538 hard_regno short. Remove first_coalesced_allocno and
3539 next_coalesced_allocno. Move mem_optimized_dest_p,
3540 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3541 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3542 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3543 temp, colorable_p. Add new member add_data.
3544 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3545 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3546 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3547 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3548 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3549 (ALLOCNO_ADD_DATA): New macro.
3550 (ira_emit_data_t): New typedef.
3551 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3552 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3553 from struct ira_allocno.
3554 (ALLOCNO_EMIT_DATA): New macro.
3555 (ira_allocno_emit_data, allocno_emit_reg): New.
3556 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3557 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3558 (OBJECT_ADD_DATA): New macro.
3559 (ira_reallocate): Remove.
3560 (ira_initiate_emit_data, ira_finish_emit_data): New.
3561 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3562 (ira_init_register_move_cost_if_necessary): New.
3563 (ira_object_conflict_iter_next): Merge into
3564 ira_object_conflict_iter_cond.
3565 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3567 * ira-live.c (process_single_reg_class_operands): Call
3568 ira_init_register_move_cost_if_necessary. Use
3569 ira_register_move_cost instead of ira_get_register_move_cost.
3571 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3573 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3575 * ira-costs.c: Fix formatting.
3576 (cost_classes, cost_classes_num): Remove.
3577 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3578 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3579 (cost_classes_del, cost_classes_htab): New.
3580 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3581 (initiate_regno_cost_classes, setup_cost_classes): New.
3582 (setup_regno_cost_classes_by_aclass): New.
3583 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3584 (record_reg_classes): Use regno_cost_classes instead of
3585 cost_classes. Move checking opposite operand up.
3586 (record_address_regs): Use regno_cost_classes
3587 instead of cost_classes.
3588 (scan_one_insn): Ditto. Use always general register.
3589 (print_allocno_costs): Use regno_cost_classes instead of
3591 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3592 (find_costs_and_classes): Set up cost classes for each registers.
3593 Use also their mode for this. Use regno_cost_classes instead of
3595 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3597 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3598 (ira_costs, ira_set_pseudo_classes): Call
3599 initiate_regno_cost_classes and finish_regno_cost_classes.
3601 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3603 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3605 * target.def (ira_cover_classes): Remove.
3607 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3609 * doc/tm.texi.in: Ditto.
3611 * ira-conflicts.c: Remove mentioning cover classes from the file.
3612 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3613 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3615 * targhooks.c (default_ira_cover_classes): Remove.
3617 * targhooks.h (default_ira_cover_classes): Ditto.
3619 * haifa-sched.c: Remove mentioning cover classes from the file.
3620 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3621 ira_pressure_classes and ira_pressure_classes_num instead of
3622 ira_reg_class_cover_size and ira_reg_class_cover. Use
3623 sched_regno_pressure_class instead of sched_regno_cover_class.
3624 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3625 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3627 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3628 classes from the file.
3629 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3630 (struct object_hard_regs, struct object_hard_regs_node): New.
3631 (struct ira_object): New members profitable_hard_regs,
3632 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3633 (struct ira_allocno): Rename cover_class to aclass. Rename
3634 cover_class_cost and updated_cover_class_cost to class_cost and
3635 updated_class_cost. Remove splay_removed_p and
3636 left_conflict_size. Add new members colorable_p.
3637 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3638 (ALLOCNO_COLORABLE_P): New macro.
3639 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3640 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3641 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3642 (OBJECT_...): Rename parameter C to O.
3643 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3644 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3645 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3646 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3647 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3648 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3649 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3650 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3651 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3652 x_ira_reg_class_subunion.
3653 (ira_max_memory_move_cost, ira_max_register_move_cost)
3654 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3655 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3656 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3657 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3658 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3659 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3660 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3661 (ira_tune_allocno_costs_and_cover_classes): Rename to
3662 ira_tune_allocno_costs.
3663 (ira_debug_hard_regs_forest): New.
3664 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3665 (ira_object_conflict_iter_next): Fix comments.
3666 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3667 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3668 cover_class to aclass.
3669 (ira_allocate_and_accumulate_costs): Ditto.
3670 (ira_allocate_and_set_or_copy_costs): Ditto.
3672 * opts.c (decode_options): Remove ira_cover_class check.
3674 * ira-color.c: Remove mentioning cover classes from the file. Use
3675 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3676 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3677 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3678 (splay-tree.h): Remove include.
3679 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3680 before copy_freq_compare_func.
3681 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3682 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3684 (hard_regs_roots, hard_regs_node_vec): Ditto.
3685 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3686 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3687 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3688 (create_new_object_hard_regs_node): Ditto.
3689 (add_new_object_hard_regs_node_to_forest): Ditto.
3690 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3691 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3693 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3694 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3695 (remove_unused_object_hard_regs_nodes): Ditto.
3696 (enumerate_object_hard_regs_nodes): Ditto.
3697 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3698 (object_hard_regs_subnode_t): Ditto.
3699 (struct object_hard_regs_subnode): Ditto.
3700 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3701 (setup_object_hard_regs_subnode_index): Ditto.
3702 (get_object_hard_regs_subnodes_num): Ditto.
3703 (form_object_hard_regs_nodes_forest): Ditto.
3704 (finish_object_hard_regs_nodes_tree): Ditto.
3705 (finish_object_hard_regs_nodes_forest): Ditto.
3706 (allocnos_have_intersected_live_ranges_p): Rename to
3707 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3708 (pseudos_have_intersected_live_ranges_p): Rename to
3709 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3710 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3711 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3712 (update_copy_costs): Remove assert. Skip cost update if the hard
3713 reg does not belong the class.
3714 (assign_hard_reg): Process only profitable hard regs.
3715 (uncolorable_allocnos_num): Make it scalar.
3716 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3717 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3718 and ira_reg_class_max_nregs.
3719 (bucket_allocno_compare_func): Check frequency first.
3720 (sort_bucket): Add compare function as a parameter.
3721 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3722 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3723 (push_allocno_to_stack): Rewrite for checking new allocno
3725 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3726 (push_only_colorable): Pass new parameter to sort_bucket.
3727 (push_allocno_to_spill): Remove.
3728 (allocno_spill_priority_compare): Make it inline and rewrite.
3729 (splay_tree_allocate, splay_tree_free): Remove.
3730 (allocno_spill_sort_compare): New function.
3731 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3732 build and use splay tree. Choose first allocno in uncolorable
3733 allocno bucket to spill. Remove setting spill cost.
3734 (all_conflicting_hard_regs): Remove.
3735 (setup_allocno_available_regs_num): Check only profitable hard
3736 regs. Print info about hard regs nodes.
3737 (setup_allocno_left_conflicts_size): Remove.
3738 (put_allocno_into_bucket): Don't call
3739 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3740 (improve_allocation): New.
3741 (color_allocnos): Call setup_profitable_hard_regs,
3742 form_object_hard_regs_nodes_forest, improve_allocation,
3743 finish_object_hard_regs_nodes_forest. Setup spill cost.
3744 (print_loop_title): Use pressure classes.
3745 (color_allocnso): Ditto.
3746 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3747 and allocnos_for_spilling.
3748 (ira_sort_regnos_for_alter_reg): Don't setup members
3749 {first,next}_coalesced_allocno.
3750 (color): Remove allocating and freeing removed_splay_allocno_vec.
3751 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3752 prohibited_class_mode_regs.
3754 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3756 (update_allocno_pressure_excess_length): Use pressure classes.
3757 (inc_register_pressure, dec_register_pressure): Check for pressure
3759 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3760 pressure class. Use ira_reg_class_nregs instead of
3761 ira_reg_class_max_nregs.
3762 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3763 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3764 (single_reg_class): Use ira_reg_class_nregs instead of
3765 ira_reg_class_max_nregs.
3766 (process_bb_node_lives): Use pressure classes.
3768 * ira-emit.c: Remove mentioning cover classes from the file. Use
3769 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3770 (change_loop): Use pressure classes.
3771 (modify_move_list): Call ira_set_allocno_class instead of
3772 ira_set_allocno_cover_class.
3774 * ira-build.c: Remove mentioning cover classes from the file. Use
3775 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3776 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3777 ALLOCNO_UPDATED_CLASS_COST instead of
3778 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3779 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3780 (ira_create_allocno): Remove initialization of
3781 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3782 ALLOCNO_COLORABLE_P.
3783 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3784 Update conflict regs for the objects.
3785 (create_cap_allocno): Remove assert. Don't propagate
3786 ALLOCNO_AVAILABLE_REGS_NUM.
3787 (ira_free_allocno_costs): New function.
3788 (finish_allocno): Change a part of code into call of
3789 ira_free_allocno_costs.
3790 (low_pressure_loop_node_p): Use pressure classes.
3791 (object_range_compare_func): Don't compare classes.
3792 (setup_min_max_conflict_allocno_ids): Ditto.
3794 * loop-invariant.c: Remove mentioning cover classes from the file.
3795 Use ira_pressure_classes and ira_pressure_classes_num instead of
3796 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3797 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3798 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3799 Use reg_allocno_class instead of reg_cover_class.
3800 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3801 STACK_REG_COVER_CLASS.
3802 (get_regno_cover_class): Rename to get_regno_pressure_class.
3803 (move_loop_invariants): Initialize and finalize regstat.
3805 * ira.c: Remove mentioning cover classes from the file. Add
3806 comments about coloring without cover classes. Use ALLOCNO_CLASS
3807 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3808 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3809 setup_class_subset_and_memory_move_costs.
3810 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3811 (setup_cover_and_important_classes): Rename to
3812 setup_allocno_and_important_classes.
3813 (setup_class_translate_array): New.
3814 (setup_class_translate): Call it for allocno and pressure classes.
3815 (cover_class_order): Rename to allocno_class_order.
3816 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3817 of ira_class_translate.
3818 (reorder_important_classes): Set up ira_important_class_nums.
3819 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3820 (print_class_cover): Rename to print_classes. Add parameter.
3821 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3822 Print pressure classes too.
3823 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3824 setup_reg_subclasses.
3825 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3826 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3827 (setup_prohibited_class_mode_regs): Use
3828 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3829 (clarify_prohibited_class_mode_regs): New function.
3830 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3831 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3832 (ira_init_once): Initialize them.
3833 (free_register_move_costs): Process them.
3834 (ira_init): Move calls of find_reg_classes and
3835 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3836 Call clarify_prohibited_class_mode_regs.
3837 (ira_no_alloc_reg): Remove.
3838 (too_high_register_pressure_p): Use pressure classes.
3840 * sched-deps.c: Remove mentioning cover classes from the file.
3841 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3842 ira_pressure_classes and ira_pressure_classes_num instead of
3843 ira_reg_class_cover_size and ira_reg_class_cover.
3844 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3845 sched_regno_pressure_class instead of sched_regno_cover_class.
3846 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3847 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3849 * ira.h: Add 2010 to Copyright.
3850 (ira_no_alloc_reg): Remove external.
3851 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3852 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3853 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3854 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3855 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3856 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3857 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3858 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3859 x_ira_no_alloc_regs.
3860 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3861 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3862 ira_allocno_classes_num and ira_allocno_classes.
3863 (ira_class_translate): Rename to ira_allocno_class_translate.
3864 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3865 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3866 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3867 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3868 (ira_no_alloc_regs): New.
3870 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3871 classes from the file. Use ALLOCNO_CLASS instead of
3872 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3873 ALLOCNO_COVER_CLASS_COST.
3874 (regno_cover_class): Rename to regno_aclass.
3875 (record_reg_classes): Use ira_reg_class_subunion instead of
3876 ira_reg_class_union.
3877 (record_address_regs): Check overflow.
3878 (scan_one_insn): Ditto.
3879 (print_allocno_costs): Print total mem cost fore regional allocation.
3880 (print_pseudo_costs): Use REG_N_REFS.
3881 (find_costs_and_classes): Use classes intersected with them on the
3882 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3883 ira_reg_class_union. Use ira_allocno_class_translate and
3884 regno_aclass instead of ira_class_translate and regno_cover_class.
3885 Modify code for finding regno_aclass. Setup preferred classes for
3887 (setup_allocno_cover_class_and_costs): Rename to
3888 setup_allocno_class_and_costs. Use regno_aclass instead of
3889 regno_cover_class. Use ira_set_allocno_class instead of
3890 ira_set_allocno_cover_class.
3891 (init_costs, finish_costs): Use regno_aclass instead of
3893 (ira_costs): Use setup_allocno_class_and_costs instead of
3894 setup_allocno_cover_class_and_costs.
3895 (ira_tune_allocno_costs_and_cover_classes): Rename to
3896 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3897 by processing objects. Use ira_reg_class_max_nregs instead of
3898 ira_reg_class_nregs.
3900 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3902 * sched-int.h: Remove mentioning cover classes from the file.
3903 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3905 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3906 classes from the file.
3907 (struct reg_pref): Rename coverclass into allocnoclass.
3908 (reg_cover_class): Rename to reg_allocno_class.
3910 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3912 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3914 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3916 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3918 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3920 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3922 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3924 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3926 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3928 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3930 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3931 (i386_ira_cover_classes): Ditto.
3933 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3935 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3937 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3939 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3941 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3943 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3945 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3946 (mips_ira_cover_classes): Ditto.
3948 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3950 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3952 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3954 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3956 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3958 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3959 (IRA_COVER_CLASSES_VSX): Ditto.
3961 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3962 (rs6000_ira_cover_classes): Ditto.
3964 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3966 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3968 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3970 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3972 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3974 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3976 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3978 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3980 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3982 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3984 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3987 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3988 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3989 dw_fde_unlikely_section_end_label, cold_in_std_section,
3990 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3991 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3993 (output_fde): Use dw_fde_second_{begin,end} if second is
3994 true, otherwise dw_fde_{begin,end}.
3995 (output_call_frame_info): Test dw_fde_second_begin != NULL
3996 instead of dw_fde_switched_sections.
3997 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3998 fields, initialize new fields. Initialize in_std_section
3999 unconditionally from the first partition.
4000 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4001 dw_fde_second_begin is non-NULL.
4002 (dwarf2out_switch_text_section): Stop initializing removed
4003 dw_fde_struct fields, initialize new fields, initialize
4004 also dw_fde_end here. Set dw_fde_switch_cfi even when
4005 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4006 (struct var_loc_list_def): Add last_before_switch field.
4007 (arange_table, arange_table_allocated, arange_table_in_use,
4008 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4009 (size_of_aranges): Count !in_std_section and !second_in_std_section
4010 hunks in fdes, instead of looking at arange_table_in_use.
4011 (output_aranges): Add aranges_length argument, don't call
4012 size_of_aranges here. Instead of using aranges_table*
4013 emit ranges for fdes when !in_std_section resp.
4014 !second_in_std_section.
4015 (dw_loc_list): Break ranges crossing section switch.
4016 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4017 use dw_fde_second_end instead of dw_fde_end as end of last range.
4018 (gen_subprogram_die): Don't call add_arange. Use
4019 dw_fde_{begin,end} for first partition and if switched
4020 section dw_fde_second_{begin,end} for the second.
4021 (var_location_switch_text_section_1,
4022 var_location_switch_text_section): New functions.
4023 (dwarf2out_begin_function): Initialize cold_text_section even
4024 when function_section () isn't text_section.
4025 (prune_unused_types): Don't walk arange_table.
4026 (dwarf2out_finish): Don't needlessly test
4027 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4028 If info_section_emitted, call size_of_aranges and if it indicates
4029 non-empty .debug_aranges, call output_aranges with the computed
4030 size. Stop using removed dw_fde_struct fields, use
4031 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4035 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4036 create ENTRY_VALUE if incoming or address of incoming's MEM
4038 * dwarf2out.c (mem_loc_descriptor): Don't emit
4039 DW_OP_GNU_entry_value of DW_OP_fbreg.
4040 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4041 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4042 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4043 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4045 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4046 is a REG_P or MEM_P with REG_P address, compute hash directly
4047 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4048 (preserve_only_constants): Don't clear VALUES forwaring
4049 ENTRY_VALUE to some other VALUE.
4051 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4053 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4056 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4058 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4059 block before expanding the statement.
4060 (expand_gimple_stmt_1): Likewise. Set them here...
4061 (expand_gimple_stmt): ...and not here. Tidy.
4062 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4065 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4067 * Makefile.in: New rule for cprop.o.
4068 * gcse.c: Move constant/copy propagation to cprop.c.
4069 (compute_local_properties): Only handle expression tables.
4070 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4071 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4072 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4073 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4074 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4075 compute_cprop_data, find_used_regs, try_replace_reg,
4076 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4077 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4078 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4079 find_bypass_set, reg_killed_on_edge, bypass_block,
4080 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4081 execute_rtl_cprop, pass_rtl_cprop): Move to...
4082 * cprop.c: ...here. New file, constant/copy propagation for RTL
4083 moved from gcse.c to here with minor cleanups in duplicated code.
4085 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4087 * config/i386/i386.c (flag_opts): Fix a typo in
4088 -mavx256-split-unaligned-store.
4090 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4092 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4093 LIBCALL_VALUE): Remove macros.
4094 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4095 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4096 (h8300_function_value, h8300_libcall_value,
4097 h8300_function_value_regno_p): New functions.
4099 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4101 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4103 2011-03-28 Jeff Law <law@redhat.com>
4105 * tree-ssa-threadupdate.c (redirect_edges): Call
4106 create_edge_and_update_destination_phis as needed.
4107 (create_edge_and_update_destination_phis): Accept new BB argument.
4108 All callers updated.
4109 (thread_block): Do not update the profile when threading around
4110 intermediate blocks.
4111 (thread_single_edge): Likewise.
4112 (determine_bb_domination_status): If BB is not a successor of the
4113 loop header, return NONDOMINATING.
4114 (register_jump_thread): Note when we register a jump thread around
4115 an intermediate block.
4116 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4117 (thread_across_edge): Use it.
4119 2011-03-28 Tristan Gingold <gingold@adacore.com>
4121 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4122 when for_return is 2.
4124 2011-03-28 Jeff Law <law@redhat.com>
4126 * var-tracking.c (canonicalize_values_mark): Delete unused
4128 (canonicalize_values_star, set_variable_part): Likewise.
4129 (clobber_variable_part, delete_variable_part): Likewise.
4131 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4133 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4135 2011-03-28 Martin Jambor <mjambor@suse.cz>
4137 * tree-inline.c (expand_call_inline): Do not check that destination
4139 (optimize_inline_calls): Assert that destination node is analyzed.
4140 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4141 not call tree_lowering_passes.
4142 * cgraph.h (cgraph_analyze_function): Declare.
4143 * cgraphunit.c (cgraph_analyze_function): Make public.
4145 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4147 * config/sparc/sparc-opts.h: New.
4148 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4149 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4150 (sparc_option_override): Store processor_type enumeration rather
4151 than string in cpu_default. Remove name and enumeration from
4152 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4153 without using sparc_select. Use target_flags_explicit instead of
4155 * config/sparc/sparc.h (enum processor_type): Move to
4157 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4158 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4159 HeaderInclude entry.
4160 (mcpu=, mtune=): Use Var and Enum.
4161 (sparc_processor_type): New Enum and EnumValue entries.
4163 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4164 Iain Sandoe <iains@gcc.gnu.org>
4167 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4169 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4171 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4172 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4173 Insert new statements at it in lieu of STMT.
4174 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4175 * tree-vect-stmts.c (vectorizable_store): Likewise.
4176 (vectorizable_load): Likewise.
4178 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4180 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4185 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4187 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4188 unaligned 256bit load/store.
4189 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4190 (*avx_movdqu<avxmodesuffix>): Likewise.
4192 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4195 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4196 * config/pa/pa.md (iordi3): Use new predicate in expander.
4199 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4201 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4202 FUNCTION_VALUE_REGNO_P): Remove macros.
4203 * config/mips/mips-protos.h (mips_function_value): Remove.
4204 * config/mips/mips.c (mips_function_value): Rename to...
4205 (mips_function_value_1): ... this. Make static. Handle receiving
4206 the function type in 'fn_decl_or_type' argument.
4207 (mips_function_value, mips_libcall_value,
4208 mips_function_value_regno_p): New function.
4209 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4210 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4212 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4214 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4215 and -mavx256-split-unaligned-store.
4216 (ix86_option_override_internal): Split 32-byte AVX unaligned
4217 load/store by default.
4218 (ix86_avx256_split_vector_move_misalign): New.
4219 (ix86_expand_vector_move_misalign): Use it.
4221 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4222 -mavx256-split-unaligned-store.
4224 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4225 256bit load/store. Generate unaligned store on misaligned memory
4227 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4229 (*avx_movdqu<avxmodesuffix>): Likewise.
4231 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4232 -mavx256-split-unaligned-store.
4234 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4237 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4240 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4242 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4243 opno arguments with an expand_operand. Use create_input_operand.
4244 (mips_prepare_builtin_target): Delete.
4245 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4247 (mips_expand_builtin_direct): Use create_output_operand and
4248 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4249 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4250 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4252 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4254 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4256 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4258 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4260 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4261 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4262 basic blocks and call commit_edge_insertions directly.
4263 (fixup_abnormal_edges): Move from here to...
4264 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4265 on the edges and return whether some have actually been inserted.
4266 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4269 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4271 PR rtl-optimization/48144
4272 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4273 (merge_expr_data): ... here.
4274 (av_set_intersect): Rename to av_set_code_motion_filter.
4275 Update all callers. Call merge_history_vect when an expression
4276 is found in both sets.
4277 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4279 2011-03-26 Alan Modra <amodra@gmail.com>
4281 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4282 cmodel medium addresses.
4283 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4284 64-bit gpr loads and stores.
4285 (rs6000_secondary_reload_ppc64): New function.
4286 * config/rs6000/rs6000-protos.h: Declare it.
4287 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4289 2011-03-26 Alan Modra <amodra@gmail.com>
4292 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4293 GNU Go in traceback table.
4295 2011-03-25 Richard Henderson <rth@redhat.com>
4297 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4298 if there are exactly 6 operands.
4299 (set_storage_via_setmem): Similarly.
4301 2011-03-25 Kai Tietz <ktietz@redhat.com>
4303 * collect2.c (write_c_file_stat): Handle backslash
4304 as right-hand directory separator.
4305 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4306 checking just for slash.
4307 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4308 instead of checking for trailing slash.
4309 * gcc.c (record_temp_file): Use filename_cmp instead
4311 (do_spec_1): Likewise.
4312 (replace_outfile_spec_function): Likewise.
4313 (is_directory): Use filename_ncmp instead of strncmp.
4314 (print_multilib_info): Likewise.
4315 * gcov.c (find_source): Use filename_cmp instead
4317 (make_gcov_file_name): Fix order of slash/backslash
4319 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4320 (add_standard_paths): Likewise.
4321 * mips-tfile.c (saber_stop): Handle backslash.
4322 * prefix.c (update_path): Use filename_ncmp instead of
4324 * profile.c (output_location): Use filename_cmp instead
4326 * read-md.c (handle_toplevel_file): Handle backslash.
4327 * tlink.c (frob_extension): Likewise.
4328 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4330 * tree-dump.c (dequeue_and_dump): Handle backslash.
4331 * tree.c (get_file_function_name): Likewise.
4332 * gengtype.c (read_input_list): Likewise.
4333 (get_file_realbasename): Likewise.
4334 (get_output_file_with_visibility): Use filename_cmp
4337 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4339 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4342 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4344 * fold-const.c (expr_location_or): New function.
4345 (fold_truth_not_expr): Call it.
4347 2011-03-25 Jeff Law <law@redhat.com>
4349 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4351 * c-family/c-common.c (def_fn_type): Likewise.
4352 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4353 * emit-rtl.c (gen_rtvec): Likewise.
4354 * lto/lto-lang.c (def_fn_type): Likewise.
4356 2011-03-25 Richard Guenther <rguenther@suse.de>
4358 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4359 also generate copies.
4360 (fini_copy_prop): Handle constant values properly.
4362 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4364 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4365 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4366 (hash_loc_operands, compare_loc_operands): Handle
4367 DW_OP_GNU_entry_value.
4369 2011-03-25 Kai Tietz <ktietz@redhat.com>
4371 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4372 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4373 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4374 comment and use macro TARGET_64BIT_MS_ABI instead.
4375 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4376 and change default behavior for 32-bit MS_ABI.
4377 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4378 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4380 (ix86_cfun_abi): Likewise.
4381 (ix86_maybe_switch_abi): Adjust comment.
4382 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4383 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4384 instead of checking for SYSV_ABI.
4385 (ix86_nsaved_sseregs): Likewise.
4386 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4388 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4389 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4390 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4391 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4392 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4394 2011-03-25 Richard Guenther <rguenther@suse.de>
4396 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4397 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4398 (verify_gimple): Remove.
4399 * tree-cfg.c (verify_gimple_call): Merge verification
4401 (verify_gimple_phi): Merge verification from verify_stmts.
4402 (verify_gimple_label): New function.
4403 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4404 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4405 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4406 (verify_stmts): Rename to verify_gimple_in_cfg.
4407 (verify_gimple_in_cfg): New function.
4408 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4409 * tree-ssa.c (verify_ssa): Likewise.
4410 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4412 2011-03-25 Richard Guenther <rguenther@suse.de>
4414 * passes.c (init_optimization_passes): Add FRE pass after
4417 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4418 Andrew Stubbs <ams@codesourcery.com>
4420 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4422 (arm_movdi_vfp_cortexa8): New pattern.
4423 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4424 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4425 instructions when tuning for Cortex-A8. Set attribute "arch".
4426 * config/arm/arm.md: Move include arm-tune.md up a bit.
4427 (define_attr "arch"): Add "onlya8" and "nota8" values.
4428 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4430 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4434 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4436 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4437 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4438 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4439 * passes.c (init_optimization_passes): Move
4440 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4442 2011-03-25 Kai Tietz <ktietz@redhat.com>
4444 * c-typeck.c (comptypes_internal): Replace target
4445 hook call of comp_type_attributes by version in tree.c file.
4446 * gimple.c (gimple_types_compatible_p_1): Likewise.
4447 * tree-ssa.c (useless_type_conversion_p): Likewise.
4448 * tree.c (build_type_attribute_qual_variant): Likewise.
4449 (attribute_value_equal): New static helper function.
4450 (comp_type_attributes): New function.
4451 (merge_attributes): Use attribute_value_equal for comparison.
4452 (attribute_list_contained): Likewise.
4453 * tree.h (comp_type_attributes): New prototype.
4455 2011-03-25 Richard Guenther <rguenther@suse.de>
4457 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4458 of complex types at -O0.
4459 (verify_gimple_assign_binary): Likewise.
4460 (verify_gimple_assign_ternary): Likewise.
4462 2011-03-24 Mark Wielaard <mjw@redhat.com>
4464 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4465 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4467 2011-03-24 Mark Wielaard <mjw@redhat.com>
4470 * dwarf2out.c (output_abbrev_section): Only write table when
4471 abbrev_die_table_in_use > 1.
4473 2011-02-24 Richard Henderson <rth@redhat.com>
4475 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4476 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4477 (alpha_expand_unaligned_load_words): Use extql.
4478 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4479 (emit_insxl): Handle all modes for consistency.
4481 2011-02-24 Richard Henderson <rth@redhat.com>
4483 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4484 (alpha_expand_unaligned_load): Likewise.
4485 (alpha_expand_unaligned_store): Likewise.
4486 (alpha_expand_unaligned_load_words): Likewise.
4487 (alpha_expand_unaligned_store_words): Likewise.
4488 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4489 (alpha_split_lock_test_and_set_12): Likewise.
4490 (print_operand, alpha_fold_builtin_extxx): Likewise.
4491 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4492 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4493 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4494 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4495 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4496 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4497 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4498 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4499 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4500 (extwl, extll, extql): Similarly.
4501 (inswh, inslh, insqh): Similarly.
4502 (mskbl, mskwl, mskll, mskql): Similarly.
4503 (mskwh, msklh, mskqh): Similarly.
4505 2011-02-24 Richard Henderson <rth@redhat.com>
4507 * config/alpha/alpha.md (attribute isa): Add er, ner.
4508 (attribute enabled): Handle them.
4509 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4511 2011-02-24 Richard Henderson <rth@redhat.com>
4513 * config/alpha/alpha.md (attribute isa): Add vms.
4514 (attribute enabled): Handle it.
4515 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4516 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4517 (*movtf): Rename from *movtf_internal for consistency.
4518 (*movsi): Merge with *movsi_nt_vms.
4519 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4520 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4521 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4522 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4524 2011-02-24 Richard Henderson <rth@redhat.com>
4526 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4527 (extendqisi2, extendhisi2): Likewise.
4528 (extendqidi2): Simplify BWX/non-BWX expansions.
4529 (extendhidi2): Similarly.
4531 2011-02-24 Richard Henderson <rth@redhat.com>
4533 * config/alpha/alpha.md (attribute isa): New.
4534 (attribute enabled): New.
4535 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4536 (zero_extendqisi2, zero_extendqidi2): Similarly.
4537 (zero_extendhisi2, zero_extendhidi2): Similarly.
4538 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4540 2011-02-24 Richard Henderson <rth@redhat.com>
4542 * config/alpha/predicates.md (input_operand): Revert last change;
4543 update comment to mention 32-bit VMS rather than Windows.
4545 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4547 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4548 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4549 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4550 * passes.c (init_optimization_passes): Move
4551 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4553 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4555 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4557 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4559 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4562 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4565 * simplify-rtx.c (simplify_const_unary_operation): Call
4566 real_convert when changing mode class with FLOAT_EXTEND.
4568 2011-03-24 Nick Clifton <nickc@redhat.com>
4570 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4571 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4572 * config/rx/rx.c (rx_option_override): Set align_jumps,
4573 align_loops and align_labels if not set by the user.
4574 (rx_align_for_label): New function.
4575 (rx_max_skip_for_label): New function.
4576 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4577 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4578 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4579 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4580 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4582 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4584 PR rtl-optimization/48263
4585 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4586 and original commutative_p handling. Use maybe_gen_insn.
4588 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4590 * reload.c (find_reloads_subreg_address): Add address_reloaded
4591 parameter and return true there if the full address has been
4593 (find_reloads_toplev): Pass address_reloaded flag.
4594 (find_reloads_address_1): Don't use address_reloaded parameter.
4596 2011-03-24 Jeff Law <law@redhat.com>
4598 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4599 unused variable "ann".
4600 (remove_unused_locals): Likewise.
4602 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4605 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4608 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4610 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4611 for invalid symbolic addresses.
4612 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4615 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4617 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4618 the argument in calls to fold_truth_not_expr.
4620 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4622 * tree.c (record_node_allocation_statistics): New function.
4623 (make_node_stat, copy_node_stat, build_string): Call it.
4624 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4625 (build1_stat, build_omp_clause): Likewise.
4627 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4629 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4632 2011-03-24 Richard Guenther <rguenther@suse.de>
4634 PR tree-optimization/48271
4635 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4636 blocks that still exist.
4638 2011-03-24 Richard Guenther <rguenther@suse.de>
4640 PR tree-optimization/48270
4641 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4642 not free datarefs before ddrs.
4644 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4646 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4647 from the address built for a reference with variable offset.
4649 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4652 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4653 alternatives that can be handled with movq or movabsq insn.
4654 (*movdf_internal): Disable for !TARGET_64BIT.
4655 (*movdf_internal_nointeger): Ditto.
4656 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4658 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4660 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4661 (FUNCTION_ARG_ADVANCE): Likewise.
4662 * tm.texi.in: Change references to them to hook references.
4663 * tm.texi: Regenerate.
4664 * targhooks.c (default_function_arg): Eliminate check for target macro.
4665 (default_function_incoming_arg): Likewise.
4666 (default_function_arg_advance): Likewise.
4667 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4668 (function_arg_advance): Likewise.
4669 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4671 2011-03-24 Richard Guenther <rguenther@suse.de>
4674 * tree-object-size.c (addr_object_size): Do not double-account
4675 for MEM_REF offsets.
4677 2011-03-24 Diego Novillo <dnovillo@google.com>
4679 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4680 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4681 (lto_input_data_block): Move from lto-opts.c. Make extern.
4683 (lto_input_string): Rename from input_string. Make extern.
4685 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4686 output_string_with_length.
4687 Output 0 to indicate a non-NULL string. Update all callers to
4689 (lto_output_string): Rename from output_string. Make extern.
4691 (lto_output_decl_state_streams): Make extern.
4692 (lto_output_decl_state_refs): Make extern.
4693 * lto-streamer.h (lto_input_string): Declare.
4694 (lto_input_data_block): Declare.
4695 (lto_output_string): Declare.
4696 (lto_output_string_with_length): Declare.
4697 (lto_output_decl_state_streams): Declare.
4698 (lto_output_decl_state_refs): Declare.
4700 2011-03-24 Richard Guenther <rguenther@suse.de>
4702 PR tree-optimization/46562
4703 * tree.c (build_invariant_address): New function.
4704 * tree.h (build_invariant_address): Declare.
4705 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4706 a renamed function moved ...
4707 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4708 Take valueization callback parameter.
4709 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4710 * gimple-fold.h: New file.
4711 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4712 (ccp_fold, fold_const_aggregate_ref,
4713 fold_ctor_reference, fold_nonarray_ctor_reference,
4714 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4715 get_base_constructor): Move ...
4716 * gimple-fold.c: ... here.
4717 (gimple_fold_stmt_to_constant_1): New function
4718 split out from ccp_fold. Take a valueization callback parameter.
4719 Valueize all operands.
4720 (gimple_fold_stmt_to_constant): New wrapper function.
4721 (fold_const_aggregate_ref_1): New function split out from
4722 fold_const_aggregate_ref. Take a valueization callback parameter.
4723 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4724 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4725 invariant POINTER_PLUS_EXPRs to invariant form.
4726 (vn_valueize): New function.
4727 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4728 * tree-vrp.c (vrp_valueize): New function.
4729 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4730 to fold statements to constants.
4731 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4732 function declarations.
4733 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4734 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4736 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4738 * config/h8300/predicates.md (jump_address_operand): Fix register
4741 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4743 * doc/invoke.texi (max-stores-to-sink): Document.
4744 * params.h (MAX_STORES_TO_SINK): Define.
4745 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4746 if either vectorization or if-conversion is disabled.
4747 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4748 tree-vect-data-refs.c vect_equal_offsets.
4749 (dr_equal_offsets_p): New function.
4750 (find_data_references_in_bb): Remove static.
4751 * tree-data-ref.h (find_data_references_in_bb): Declare.
4752 (dr_equal_offsets_p): Likewise.
4753 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4754 (vect_drs_dependent_in_basic_block): Update calls to
4756 (vect_check_interleaving): Likewise.
4757 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4758 (cond_if_else_store_replacement): Rename to...
4759 (cond_if_else_store_replacement_1): ... this. Change arguments and
4761 (cond_if_else_store_replacement): New function.
4762 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4763 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4765 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4768 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4769 to subtract lower bound instead of GEN_INT().
4771 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4776 * doc/extend.texi (Alignment): Move section to match order in TOC.
4777 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4778 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4780 2011-03-23 Jeff Law <law@redhat.com>
4782 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4783 before removing the edge.
4785 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4786 it may have been freed by redirect_branch_edge or
4787 redirect_edge_succ_nodup.
4789 2011-03-23 Richard Guenther <rguenther@suse.de>
4791 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4792 (check_va_list_escapes): Likewise.
4793 (check_all_va_list_escapes): Likewise.
4795 2011-03-23 Richard Guenther <rguenther@suse.de>
4797 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4798 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4799 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4800 (alias.o): Likewise.
4801 (ipa-type-escape.o): Remove.
4802 (ipa-struct-reorg.o): Likewise.
4803 (GTFILES): Remove ipa-struct-reorg.c.
4804 * alias.c: Do not include ipa-type-escape.h.
4805 * tree-ssa-alias.c: Likewise.
4806 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4807 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4808 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4809 and ipa-type-escape passes.
4810 * tree-pass.h (pass_ipa_type_escape): Remove.
4811 (pass_ipa_struct_reorg): Likewise.
4812 * ipa-struct-reorg.h: Remove.
4813 * ipa-struct-reorg.c: Likewise.
4814 * ipa-type-escape.h: Likewise.
4815 * ipa-type-escape.c: Likewise.
4816 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4817 (--param struct-reorg-cold-struct-ratio): Likewise.
4818 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4819 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4820 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4822 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4824 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4825 cpu attribute value.
4826 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4827 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4828 * config/s390/s390.c (processor_flags_table): New constant array.
4829 (s390_handle_arch_option): Remove.
4830 (s390_handle_option): Remove s390_handle_arch_option invocations
4831 and OPT_mwarn_framesize_ handling.
4832 (s390_option_override): Remove s390_handle_arch_option invocation.
4833 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4835 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4836 * config/s390/s390.opt (s390_tune, s390_arch)
4837 (march=): Replace s390_arch_option enum and values with
4838 processor_type. Set variable name to s390_arch. Set
4839 initialization value.
4840 (mtune=): Replace s390_arch_option with processor_type. Set
4841 variable name to s390_tune. Set initialization value.
4843 2011-03-23 Julian Brown <julian@codesourcery.com>
4845 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4846 accesses which are not naturally aligned.
4848 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4851 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4853 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4855 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4856 parameter from "int" to "enum insn_code".
4857 (expand_operand_type): New enum.
4858 (expand_operand): New structure.
4859 (create_expand_operand): New function.
4860 (create_fixed_operand, create_output_operand): Likewise
4861 (create_input_operand, create_convert_operand_to): Likewise.
4862 (create_convert_operand_from, create_address_operand): Likewise.
4863 (create_integer_operand): Likewise.
4864 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4865 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4866 (expand_insn, expand_jump_insn): Likewise.
4867 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4868 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4869 (expand_movstr, expand_builtin___clear_cache): Likewise.
4870 (expand_builtin_lock_release): Likewise.
4871 * explow.c (allocate_dynamic_stack_space): Likewise.
4872 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4873 and use the default handling in that case.
4874 * expmed.c (check_predicate_volatile_ok): Delete.
4875 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4876 (emit_cstore): Likewise.
4877 * expr.c (emit_block_move_via_movmem): Likewise.
4878 (set_storage_via_setmem, expand_assignment): Likewise.
4879 (emit_storent_insn, try_casesi): Likewise.
4880 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4881 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4882 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4883 (expand_twoval_unop, expand_twoval_binop): Likewise.
4884 (expand_unop_direct, emit_indirect_jump): Likewise.
4885 (emit_conditional_move, vector_compare_rtx): Likewise.
4886 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4887 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4888 (expand_sync_lock_test_and_set): Likewise.
4889 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4890 (emit_unop_insn): Likewise.
4891 (expand_copysign_absneg): Change icode to an insn_code.
4892 (create_convert_operand_from_type): New function.
4893 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4894 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4895 (expand_insn, expand_jump_insn): Likewise.
4896 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4897 than const_int_operand for operand 2.
4899 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4901 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4904 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4906 * emit-rtl.c (emit_pattern_before_noloc): New function.
4907 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4908 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4909 (emit_pattern_after_noloc): New function.
4910 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4911 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4913 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4915 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4916 (__ffsDI2): Likewise.
4918 2011-03-22 Richard Henderson <rth@redhat.com>
4920 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4921 of !TARGET_ABI_OPEN_VMS.
4922 (alpha_trampoline_init, alpha_start_function): Likewise.
4923 (alpha_expand_epilogue, alpha_file_start): Likewise.
4924 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4925 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4926 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4927 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4928 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4932 * config/s390/s390-opts.h: New.
4933 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4934 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4935 s390_stack_guard): Remove.
4936 (s390_handle_arch_option): Return void. Take enum
4937 s390_arch_option value instead of string and searching array.
4938 (s390_handle_option): Don't assert that global structures are in
4939 use. Access variables via opts pointer. Use error_at. Don't use
4940 sscanf for -mstack-guard= or -mstack-size=. Update call to
4941 s390_handle_arch_option.
4942 (s390_option_override): Update call to s390_handle_arch_option.
4943 (s390_emit_prologue): Use %d format for s390_stack_size in
4944 diagnostic. Use %wd for HOST_WIDE_INT.
4945 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4946 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4947 * config/s390/s390.opt (config/s390/s390-opts.h): New
4948 HeaderInclude entry.
4949 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4950 s390_arch_flags, s390_warn_framesize): New Variable entries.
4951 (s390_arch_option): New Enum and EnumValue entries.
4952 (march=): Use Enum instead of Var.
4953 (mstack-guard=, mstack-size=): Use UInteger and Var.
4956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4958 * config/score/score.c (score_handle_option): Don't assert that
4959 global structures are in use. Access target_flags via opts
4960 pointer. Use value of -march= option to determine target_flags
4962 * config/score/score.opt (march=): Use Enum.
4963 (score_arch): New Enum and EnumValue entries.
4965 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4967 * config/mep/mep.c (option_mtiny_specified): Remove.
4968 (mep_option_override): Move register handling for -mivc2 from
4969 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4970 instead of option_mtiny_specified.
4971 (mep_handle_option): Access target_flags via opts pointer. Don't
4972 assert that global structures are in use. Defer part of -mivc2
4973 handling and move it to mep_option_override.
4974 * config/mep/mep.opt (IVC2): New Mask entry.
4975 (mivc2): Use Var and Defer instead of Mask.
4977 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4979 * config/v850/v850-opts.h: New.
4980 * config/v850/v850.c (small_memory): Replace with
4981 small_memory_physical_max array. Make that array static const.
4982 (v850_handle_memory_option): Take integer value of argument. Take
4983 gcc_options pointer, option text and location. Return void.
4984 Update for changes to small memory structures.
4985 (v850_handle_option): Access target_flags via opts pointer. Don't
4986 assert that global structures are in use. Update calls to
4987 v850_handle_memory_option.
4988 (v850_encode_data_area): Update references to small memory settings.
4989 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4990 (enum small_memory_type): Move to v850-opts.h.
4991 * config/v850/v850.opt (config/v850/v850-opts.h): New
4992 HeaderInclude entry.
4993 (small_memory_max): New Variable entry.
4994 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4995 (mtda, mzda): Likewise.
4997 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4999 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5000 pointer. Don't assert that global structures are in use.
5002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5004 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5005 via opts pointer. Don't assert that global structures are in use.
5007 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5009 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5010 (munix=93): Use Var.
5011 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5012 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5013 * config/pa/pa-opts.h: New.
5014 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5015 (pa_handle_option): Don't assert that global structures are in
5016 use. Access target_flags via opts pointer. Don't handle
5017 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5019 (pa_option_override): Handle deferred OPT_mfixed_range_.
5021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5023 * config/mn10300/mn10300-opts.h: New.
5024 * config/mn10300/mn10300.c (mn10300_processor,
5025 mn10300_tune_string): Remove.
5026 (mn10300_handle_option): Don't assert that global structures are
5027 in use. Access mn10300_processor via opts pointer. Don't handle
5029 * config/mn10300/mn10300.h (enum processor_type): Move to
5031 (mn10300_processor): Remove.
5032 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5033 HeaderInclude entry.
5034 (mn10300_processor): New Variable entry.
5037 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5039 * config/microblaze/microblaze.c: Don't include opts.h.
5040 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5041 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5042 (mno-clearbss): Use Var and Warn.
5044 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5046 * config/m32r/m32r-opts.h: New.
5047 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5048 (m32r_handle_option): Don't assert that global structures are in
5049 use. Access target_flags and m32r_cache_flush_func via opts
5050 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5051 OPT_mno_flush_trap here.
5052 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5053 include of m32r-opts.h.
5054 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5055 HeaderInclude entry.
5056 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5057 (mmodel=): Use Enum and Var.
5058 (m32r_model): New Enum and EnumValue entries.
5059 (mno-flush-trap): Use Var.
5060 (msdata=): Use Enum and Var.
5061 (m32r_sdata): New Enum and EnumValue entries.
5063 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5065 * config/m32c/m32c.c: Don't include opts.h.
5066 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5067 m32c_handle_option): Remove.
5068 (m32c_option_override): Check global_options_set.x_target_memregs
5069 instead of target_memregs_set.
5070 * config/m32c/m32c.h (target_memregs): Remove.
5071 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5076 * config/iq2000/iq2000-opts.h: New.
5077 * config/iq2000/iq2000.c: Don't include opts.h.
5078 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5079 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5080 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5081 HeaderInclude entry.
5082 (iq2000_tune): New Variable entry.
5083 (march=): Add comment. Use Enum.
5084 (iq2000_arch): New Enum and EnumValue entries.
5085 (mcpu=): Use Enum and Var.
5086 (iq2000_tune): New Enum and EnumValue entries.
5088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5090 * config/ia64/ia64-opts.h: New.
5091 * config/ia64/ia64.c (ia64_tune): Remove.
5092 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5094 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5095 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5096 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5097 HeaderInclude entry.
5098 (ia64_tune): New Variable entry.
5099 (mfixed-range=): Use Defer and Var.
5100 (mtune=): Use Enum and Var.
5101 (ia64_tune): New Enum and EnumValue entries.
5103 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5105 * config/frv/frv-opts.h: New.
5106 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5108 (frv_cpu_type): Remove.
5109 * config/frv/frv.c: Don't include opts.h.
5110 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5111 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5112 (frv_cpu_type): New Variable entry.
5113 (frv_cpu): New Enum and EnumValue entries.
5115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5117 * config/cris/cris.c (cris_handle_option): Access target_flags via
5118 opts pointer. Don't assert that global structures are in use.
5119 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5120 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5122 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5124 * config/bfin/bfin-opts.h: New.
5125 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5126 bfin_si_revision, bfin_workarounds): Remove.
5127 (bfin_cpus): Make static const.
5128 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5129 not bfin_lib_id_given.
5130 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5131 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5132 pointer. Use error_at. Don't assert that global structures are in use.
5133 * config/bfin/bfin.h: Include bfin-opts.h.
5134 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5135 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5136 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5137 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5140 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5142 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5143 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5144 or -msoft-float here.
5145 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5146 -msoft-float and -mhard-float.
5147 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5148 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5150 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5152 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5153 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5155 (LIBGCC_SPEC): Don't handle -msoft-float.
5156 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5158 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5160 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5161 -mfloat-abi=*, not -msoft-float and -mhard-float.
5162 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5164 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5165 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5166 mhard-float and msoft-float.
5167 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5168 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5169 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5170 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5172 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5173 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5175 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5177 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5180 2011-03-22 Richard Henderson <rth@redhat.com>
5182 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5183 TARGET_ABI_WINDOWS_NT.
5184 (alpha_output_function_end_prologue): Likewise.
5185 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5186 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5187 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5188 (trap, *movsi_nt_vms): Likewise.
5189 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5190 (*tablejump_osf_nt_internal): Remove.
5191 * config/alpha/predicates.md (input_operand): Only test Pmode.
5193 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5195 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5196 via opts pointer. Use error_at. Don't assert that global
5197 structures are in use.
5199 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5201 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5202 (ix86_handle_option): Access ix86_isa_flags and
5203 ix86_isa_flags_explicit via opts pointer. Don't assert that
5204 global structures are in use.
5205 (ix86_function_specific_save, ix86_function_specific_restore):
5206 Update ix86_isa_flags_explicit field name.
5207 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5208 (ix86_isa_flags_explicit): Rename TargetSave entry to
5209 x_ix86_isa_flags_explicit.
5211 2011-03-22 Richard Henderson <rth@redhat.com>
5213 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5214 (alpha_option_override, direct_return): Likewise.
5215 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5216 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5217 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5218 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5219 (alpha_expand_epilogue, alpha_end_function): Likewise.
5220 (alpha_init_libfuncs): Likewise.
5221 (struct machine_function): Remove unicosmk members.
5222 (print_operand) ['t']: Remove.
5223 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5224 unicosmk_output_module_name, unicosmk_output_common,
5225 current_section_align, unicosmk_output_text_section_asm_op,
5226 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5227 unicosmk_section_type_flags, unicosmk_unique_section,
5228 unicosmk_asm_named_section, unicosmk_insert_attributes,
5229 unicosmk_output_align, unicosmk_defer_case_vector,
5230 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5231 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5232 unicosmk_output_ssib, unicosmk_add_call_info_word,
5233 unicosmk_extern_head, unicosmk_output_default_externs,
5234 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5235 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5236 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5237 * config/alpha/alpha-protos.h: Update.
5238 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5239 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5240 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5241 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5242 (*mulsi_se, mulvsi3): Likewise.
5243 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5244 (*divmodsi_internal, call, call_value, realign): Likewise.
5245 (moddi3, umoddi3): Likewise; remove duplicate expander.
5246 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5247 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5248 (*movdi_nofix): Remove r/U alternative.
5249 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5250 * config/alpha/constraints.md ("U"): Remove.
5251 * config/alpha/predicates.md (call_operand"): Don't test
5252 TARGET_ABI_UNICOSMK.
5254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5256 * target.def (handle_option): Take gcc_options and
5257 cl_decoded_option pointers and location_t.
5258 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5259 * doc/tm.texi: Regenerate.
5260 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5261 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5262 * lto-opts.c (lto_reissue_options): Generate option structure for
5263 targetm.handle_option call.
5264 * opts.c (target_handle_option): Update call to
5265 targetm.handle_option. Remove assertions about values now passed
5267 * targhooks.c (default_target_handle_option): New.
5268 * targhooks.h (default_target_handle_option): Declare.
5269 * config/alpha/alpha.c: Include opts.h.
5270 (alpha_handle_option): Update to new hook interface.
5271 * config/arm/arm.c: Include opts.h.
5272 (arm_handle_option): Update to new hook interface.
5273 * config/arm/t-arm (arm.o): Update dependencies.
5274 * config/bfin/bfin.c: Include opts.h.
5275 (bfin_handle_option): Update to new hook interface.
5276 * config/cris/cris.c: Include opts.h.
5277 (cris_handle_option): Update to new hook interface.
5278 * config/frv/frv.c: Include opts.h.
5279 (frv_handle_option): Update to new hook interface.
5280 * config/i386/i386.c: Include opts.h.
5281 (ix86_handle_option): Update to new hook interface.
5282 (ix86_valid_target_attribute_inner_p): Generate option structure
5283 for call to ix86_handle_option.
5284 * config/i386/t-i386 (i386.o): Update dependencies.
5285 * config/ia64/ia64.c: Include opts.h.
5286 (ia64_handle_option): Update to new hook interface.
5287 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5288 * config/iq2000/iq2000.c: Include opts.h.
5289 (iq2000_handle_option): Update to new hook interface.
5290 * config/m32c/m32c.c: Include opts.h.
5291 (m32c_handle_option): Update to new hook interface.
5292 * config/m32r/m32r.c: Include opts.h.
5293 (m32r_handle_option): Update to new hook interface.
5294 * config/m68k/m68k.c: Include opts.h.
5295 (m68k_handle_option): Update to new hook interface.
5296 * config/mep/mep.c: Include opts.h.
5297 (mep_handle_option): Update to new hook interface.
5298 * config/microblaze/microblaze.c: Include opts.h.
5299 (microblaze_handle_option): Update to new hook interface.
5300 * config/mips/mips.c: Include opts.h.
5301 (mips_handle_option): Update to new hook interface.
5302 * config/mn10300/mn10300.c: Include opts.h.
5303 (mn10300_handle_option): Update to new hook interface.
5304 * config/pa/pa.c: Include opts.h.
5305 (pa_handle_option): Update to new hook interface.
5306 * config/pdp11/pdp11.c: Include opts.h.
5307 (pdp11_handle_option): Update to new hook interface.
5308 * config/rs6000/rs6000.c: Include opts.h.
5309 (rs6000_handle_option): Update to new hook interface.
5310 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5311 * config/rx/rx.c: Include opts.h.
5312 (rx_handle_option): Update to new hook interface.
5313 * config/s390/s390.c: Include opts.h.
5314 (s390_handle_option): Update to new hook interface.
5315 * config/score/score.c: Include opts.h.
5316 (score_handle_option): Update to new hook interface.
5317 * config/sh/sh.c: Include opts.h.
5318 (sh_handle_option): Update to new hook interface.
5319 * config/sparc/sparc.c: Include opts.h.
5320 (sparc_handle_option): Update to new hook interface.
5321 * config/v850/v850.c: Include opts.h.
5322 (v850_handle_option): Update to new hook interface.
5324 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5326 * gcc.c (driver_unknown_option_callback): Only permit and save
5327 unknown -Wno- options.
5328 (driver_wrong_lang_callback): Save options directly instead of via
5329 driver_unknown_option_callback.
5331 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5333 * combine.c (simplify_set): Try harder to find the best CC mode when
5334 simplifying a nested COMPARE on the RHS.
5336 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5338 * config/alpha/gnu.h: Remove.
5339 * config/arc: Remove directory.
5340 * config/arm/netbsd.h: Remove.
5341 * config/arm/t-pe: Remove.
5342 * config/crx: Remove directory.
5343 * config/i386/netbsd.h: Remove.
5344 * config/m68hc11: Remove directory.
5345 * config/m68k/uclinux-oldabi.h: Remove.
5346 * config/mcore/mcore-pe.h: Remove.
5347 * config/mcore/t-mcore-pe: Remove.
5348 * config/netbsd-aout.h: Remove.
5349 * config/rs6000/gnu.h: Remove.
5350 * config/sh/sh-symbian.h: Remove.
5351 * config/sh/symbian-base.c: Remove.
5352 * config/sh/symbian-c.c: Remove.
5353 * config/sh/symbian-cxx.c: Remove.
5354 * config/sh/symbian-post.h: Remove.
5355 * config/sh/symbian-pre.h: Remove.
5356 * config/sh/t-symbian: Remove.
5357 * config/svr3.h: Remove.
5358 * config/vax/netbsd.h: Remove.
5359 * config.build: Don't handle i[34567]86-*-pe.
5360 * config.gcc: Remove handling of deprecations for most deprecated
5362 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5363 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5364 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5365 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5366 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5367 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5369 * config.host: Don't handle i[34567]86-*-pe.
5370 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5371 (ASM_SPEC32): Don't handle -mcall-gnu.
5372 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5374 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5375 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5376 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5377 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5378 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5379 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5380 conditional on SYMBIAN.
5381 * configure.ac: Don't handle powerpc*-*-gnu*.
5382 * configure: Regenerate.
5383 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5384 * doc/install-old.texi (m6811, m6812): Don't mention.
5385 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5386 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5387 (m68k-uclinuxoldabi): Don't mention.
5388 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5390 (-mcall-gnu): Remove.
5391 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5392 families): Remove constraint documentation.
5394 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5396 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5397 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5398 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5400 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5402 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5403 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5404 * config/avr/avr.c (init_cumulative_args)
5405 (avr_function_arg_advance): Use it.
5406 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5408 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5409 (avr_function_ok_for_sibcall): ...this new function.
5410 (avr_lookup_function_attribute1): New static Function.
5411 (avr_naked_function_p, interrupt_function_p)
5412 (signal_function_p, avr_OS_task_function_p)
5413 (avr_OS_main_function_p): Use it.
5414 * config/avr/avr.md ("sibcall", "sibcall_value")
5415 ("sibcall_epilogue"): New expander.
5416 ("*call_insn", "*call_value_insn"): New insn.
5417 ("call_insn", "call_value_insn"): Remove
5418 ("call", "call_value", "epilogue"): Change expander to handle
5421 2011-03-21 Nick Clifton <nickc@redhat.com>
5423 * doc/invoke.texi (Overall Options): Move closing brace to end of
5425 (Optimization Options): Add missing @gol.
5426 (Directory Options): Likewise.
5427 (i386 and x86-64 Options): Likewise.
5428 (RS6000 and PowerPC Options): Likewise.
5429 (i386 and x86-64 Windows Options): Likewise.
5430 (V850 Options): Add text missing from descriptions.
5432 2011-03-22 Richard Henderson <rth@redhat.com>
5434 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5435 (avr_incoming_return_addr_rtx): New.
5436 (emit_push_byte): New.
5437 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5438 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5439 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5440 (emit_pop_byte): New.
5441 (expand_epilogue): Use it. Pop frame pointer by bytes.
5442 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5443 (INCOMING_RETURN_ADDR_RTX): New.
5444 (INCOMING_FRAME_SP_OFFSET): New.
5445 (ARG_POINTER_CFA_OFFSET): New.
5446 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5447 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5450 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5452 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5454 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5455 (FUNCTION_ARG_ADVANCE): Likewise.
5456 * tm.texi.in: Change references to them to hook references.
5457 * tm.texi: Regenerate.
5458 * targhooks.c (default_function_arg): Eliminate check for target
5460 (default_function_incoming_arg): Likewise.
5461 (default_function_arg_advance): Likewise.
5462 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5463 (function_arg_advance): Likewise.
5464 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5466 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5468 * tree.c (build_call_1): New function.
5469 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5471 2011-03-22 Richard Guenther <rguenther@suse.de>
5473 PR tree-optimization/48228
5474 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5475 for single-arg PHIs.
5477 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5479 PR rtl-optimization/48143
5480 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5481 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5482 sse2_cvtps2pd): Likewise.
5484 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5486 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5488 2011-03-22 Richard Guenther <rguenther@suse.de>
5490 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5491 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5492 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5493 and REALIGN_LOAD_EXPR.
5494 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5495 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5496 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5497 DOT_PROD_EXPR case ...
5498 (expand_expr_real_2): ... here.
5499 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5500 and REALIGN_LOAD_EXPR.
5501 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5502 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5503 (vect_create_epilog_for_reduction): Likewise.
5504 (vectorizable_reduction): Likewise.
5505 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5506 * tree-vect-stmts.c (vectorizable_load): Likewise.
5508 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5510 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5512 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5514 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5515 handling for PLTOFF/GOTOFF.
5517 2011-03-22 Nick Clifton <nickc@redhat.com>
5519 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5520 trailing backslash from the end of the macro definition.
5522 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5524 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5527 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5529 * expr.h (prepare_operand): Move to...
5530 * optabs.h (prepare_operand): ...here and change the insn code
5531 parameter from "int" to "enum insn_code".
5532 (insn_operand_matches): Declare.
5533 * expr.c (init_expr_target): Use insn_operand_matches.
5534 (compress_float_constant): Likewise.
5535 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5536 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5537 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5538 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5540 (gen_cond_trap): Likewise.
5541 (prepare_operand): Likewise. Change icode to an insn_code.
5542 (insn_operand_matches): New function.
5543 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5544 * reload1.c (gen_reload): Likewise.
5545 * targhooks.c (default_secondary_reload): Likewise.
5547 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5549 * config/alpha/alpha.md (unspec): New define_c_enum.
5552 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5555 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5556 between a call and its CALL_ARG_LOCATION note.
5558 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5560 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5562 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5566 * c-common.c (shorten_compare): If primopN is first sign-extended
5567 to opN and then zero-extended to result type, set primopN to opN.
5569 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5571 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5572 for barrier handlers.
5574 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5576 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5577 UNSPEC constants to be in the unspec enumeration, and redefine
5578 all UNSPECV constants to be in the unspecv enumeration, so that
5579 dumps print which unspec/unspec_volatile this is.
5580 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5581 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5582 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5583 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5584 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5586 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5587 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5588 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5589 * config/rs6000/sync.md (isync, lwsync): Ditto.
5591 2011-03-21 Richard Guenther <rguenther@suse.de>
5593 * params.def (lto-min-partition): Fix typo.
5595 2011-03-21 Richard Guenther <rguenther@suse.de>
5598 * c-decl.c (grokdeclarator): Drop to the main variant only
5599 for array types. Drop flag_gen_aux_info check.
5601 2011-03-21 Richard Guenther <rguenther@suse.de>
5603 PR translation/47911
5604 * params.def (lto-partitions): Fix typo.
5605 (lto-min-partition): Fix wording.
5607 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5609 * config/rs6000/t-freebsd: Remove duplication from file.
5611 2011-03-21 Richard Guenther <rguenther@suse.de>
5614 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5616 2011-03-21 Richard Guenther <rguenther@suse.de>
5619 * params.def (lto-partitions): Require at least 1 partition.
5621 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5623 * gthr-solaris.h: Remove.
5624 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5625 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5626 (LIB_SPEC): Likewise.
5627 * config/sol2.opt (threads): Remove.
5628 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5629 (sparc*-*-solaris2*): Likewise.
5630 * configure.ac (enable_threads): Enable solaris support.
5631 * configure: Regenerate.
5632 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5633 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5636 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5638 * config.gcc: Obsolete *-*-solaris2.8*.
5639 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5641 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5644 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5645 reference. Solaris 8 perl works.
5647 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5650 * doc/install.texi (Prerequisites): Move jar etc. up.
5651 Explain support library version requirements.
5653 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5656 * doc/install.texi (Prerequisites): Move Perl to build
5657 requirements. Always necessary on Solaris 2 with Sun ld.
5659 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5661 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5663 (Specific, i?86-*-solaris2.[89]): Likewise.
5664 (Specific, i?86-*-solaris2.10): Likewise.
5665 (Specific, mips-sgi-irix6): Likewise.
5666 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5667 Update for binutils 2.21.
5669 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5671 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5672 Allow -fuse-linker-plugin for non-default plugin linker.
5673 * configure: Regenerate.
5675 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5678 * gengtype.c (files_rules): Added rule for cp/parser.h.
5680 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5683 * config/s390/s390.c (s390_delegitimize_address): Don't call
5684 lowpart_subreg if orig_x has BLKmode.
5686 2011-03-21 Kai Tietz <ktietz@redhat.com>
5689 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5690 * tree.h (attribute_spec): Add new member affects_type_identity.
5691 * attribs.c (empty_attribute_table): Adjust attribute_spec
5693 * config/alpha/alpha.c: Likewise.
5694 * config/arc/arc.c: Likewise.
5695 * config/arm/arm.c: Likewise.
5696 * config/avr/avr.c: Likewise.
5697 * config/bfin/bfin.c: Likewise.
5698 * config/crx/crx.c: Likewise.
5699 * config/darwin.h: Likewise.
5700 * config/h8300/h8300.c: Likewise.
5701 * config/i386/cygming.h: Likewise.
5702 * config/i386/i386.c: Likewise.
5703 * config/ia64/ia64.c: Likewise.
5704 * config/m32c/m32c.c: Likewise.
5705 * config/m32r/m32r.c: Likewise.
5706 * config/m68hc11/m68hc11.c: Likewise.
5707 * config/m68k/m68k.c: Likewise.
5708 * config/mcore/mcore.c: Likewise.
5709 * config/mep/mep.c: Likewise.
5710 * config/microblaze/microblaze.c: Likewise.
5711 * config/mips/mips.c: Likewise.
5712 * config/rs6000/rs6000.c: Likewise.
5713 * config/rx/rx.c: Likewise.
5714 * config/sh/sh.c: Likewise.
5715 * config/sol2.h: Likewise.
5716 * config/sparc/sparc.c: Likewise.
5717 * config/spu/spu.c: Likewise.
5718 * config/stormy16/stormy16.c: Likewise.
5719 * config/v850/v850.c: Likewise.
5721 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5723 * simplify-rtx.c (simplify_binary_operation_1): Handle
5724 (xor (and A B) C) case when B and C are both constants.
5726 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5728 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5730 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5733 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5735 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5737 PR rtl-optimization/48156
5738 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5739 assume df and df_lr are not NULL.
5741 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5744 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5745 between a call and its CALL_ARG_LOCATION note.
5747 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5750 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5751 between a call and its corresponding CALL_ARG_LOCATION note.
5753 2011-03-19 Anatoly Sokolov <aesok@post.ru>
5755 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5756 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5757 * haifa-sched.c (setup_ref_regs): Ditto.
5758 * caller-save.c (add_used_regs_1): Ditto.
5759 * dse.c (look_for_hardregs): Ditto.
5760 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5761 * sched-rgn.c (check_live_1): Ditto.
5763 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5765 * c-decl.c (diagnose_mismatched_decls): Give an error for
5766 redefining a typedef with variably modified type.
5768 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5770 * c-decl.c (grokfield): Don't allow typedefs for structures or
5771 unions with no tag by default.
5772 * doc/extend.texi (Unnamed Fields): Update.
5774 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
5776 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5777 Rewrite using indirect functions.
5778 (lwp_slwpcb): Ditto.
5779 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5780 (avx_vinsertf128<mode>): Ditto.
5782 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5784 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5787 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5789 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5790 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5792 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5794 PR rtl-optimization/48170
5795 * gcse.c (hoist_code): Remove bogus asserts.
5797 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5799 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5800 computation for prologue/epilogue.
5802 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5804 * Makefile.in (check-consistency): Remove.
5806 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5809 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5810 arange_table_in_use is 0, but either text_section_used or
5811 cold_text_section_used is true. Don't call it if
5812 !info_section_emitted.
5814 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5816 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5817 FUNCTION_VALUE_REGNO_P): Remove.
5818 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5820 * config/avr/avr.c (avr_ret_register): Make static inline.
5821 (avr_function_value_regno_p): New function.
5822 (avr_libcall_value): Make static. Add 'func' argument.
5823 (avr_function_value): Make static. Rename 'func' argument to
5824 'fn_decl_or_type', forward it to avr_libcall_value. Call
5825 avr_ret_register function instead of RET_REGISTER macro.
5826 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5828 2011-03-18 Jason Merrill <jason@redhat.com>
5831 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5833 2011-03-18 Richard Guenther <rguenther@suse.de>
5835 * doc/install.texi (--enable-gold): Remove.
5836 (--with-plugin-ld): Document.
5837 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5839 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5842 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5843 again after expansion changes.
5845 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5847 * combine.c (try_combine): Do simplification only call of
5848 subst() on i2 even when i1 is present. Update comments.
5850 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5852 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5853 and UNSPEC_PCREL_SYMOFF.
5855 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5857 * config/s390/s390.md: Use define_c_enum for the unspec constant
5860 2011-03-18 Richard Henderson <rth@redhat.com>
5861 Jakub Jelinek <jakub@redhat.com>
5864 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5865 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5867 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5870 * combine.c (cant_combine_insn_p): Don't check zero/sign
5871 extended hard registers.
5873 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5876 * combine.c (cant_combine_insn_p): Check zero/sign extended
5879 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5881 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5882 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5883 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5884 Change return type to bool.
5885 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5887 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5890 * var-tracking.c (prepare_call_arguments): If CALL target
5891 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5892 pc instead of looking it up using cselib_lookup and use
5893 Pmode for it if x has VOIDmode.
5894 * dwarf2out.c (gen_subprogram_die): If also both first and
5895 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5898 * function.c (assign_parms): For data.passed_pointer parms
5899 use MEM of data.entry_parm instead of data.entry_parm itself
5900 as DECL_INCOMING_RTL.
5901 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5902 also when passed and declared mode is the same, DECL_RTL
5903 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5906 2011-03-16 Jeff Law <law@redhat.com>
5908 PR rtl-optimization/37273
5909 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5910 handle them like argument loads from stack slots. Do not double
5911 count memory for memory constants and argument loads from stack slots.
5913 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5916 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5918 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5921 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5923 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5926 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5928 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5929 Clear call_arg_locations and call_arg_loc_last always.
5932 * var-tracking.c (prepare_call_arguments): If argument needs to be
5933 passed by reference, adjust argtype and mode.
5935 2011-03-17 Richard Guenther <rguenther@suse.de>
5938 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5939 a value make sure to fold the statement.
5941 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5944 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5945 return condition with !cfun->calls_alloca.
5947 2011-03-17 Richard Guenther <rguenther@suse.de>
5950 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5951 origin for decls in other ltrans units.
5952 (input_varpool_node): Likewise.
5954 2011-03-17 Richard Guenther <rguenther@suse.de>
5957 * tree-object-size.c (compute_object_offset): Properly return
5958 the offset operand of MEM_REFs as sizetype.
5960 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5962 PR rtl-optimization/48141
5963 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5964 * dse.c: Include params.h.
5965 (active_local_stores_len): New variable.
5966 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5968 (record_store, check_mem_read_rtx): Decrease it when removing
5970 (scan_insn): Likewise. Increase it when adding to chain, if it
5971 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5972 set active_local_stores to NULL before the addition.
5973 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5975 PR rtl-optimization/48141
5976 * dse.c (record_store): If no positions are needed in an insn
5977 that cannot be deleted, at least unchain it from active_local_stores.
5979 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5982 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5983 (lookup_type_die_strip_naming_typedef): ... here.
5984 (get_context_die): Use it.
5985 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5986 the anonymous struct named by the naming typedef.
5988 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5991 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5992 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5994 2011-03-16 Jeff Law <law@redhat.com>
5996 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5997 check for operands of conditional. Allow type to be a pointer.
5999 2011-03-16 Richard Guenther <rguenther@suse.de>
6001 PR tree-optimization/48149
6002 * fold-const.c (fold_binary_loc): Fold
6003 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6005 2011-03-16 Richard Guenther <rguenther@suse.de>
6007 PR tree-optimization/26134
6008 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6009 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6010 (non_rewritable_mem_ref_base): Handle complex type component
6011 accesses, constrain offsets for vector and complex extracts
6014 2011-03-16 Richard Guenther <rguenther@suse.de>
6016 PR tree-optimization/48146
6017 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6018 operands avoiding the need for renaming.
6020 2011-03-16 Richard Guenther <rguenther@suse.de>
6022 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6023 constant folding. Move MEM_REF canonicalization first.
6024 Rely on fold_const_aggregate_ref for initializer folding.
6025 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6027 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6030 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6031 arg0/arg1 or their arguments are always fold converted to matching
6034 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6037 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6040 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6041 Handle in-tree gold.
6042 (ld_vers): Extract binutils version for gold.
6043 (gcc_cv_ld_hidden): Handle gold here.
6044 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6045 * configure: Regenerate.
6046 * config.in: Regenerate.
6047 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6048 -fuse-linker-plugin otherwise.
6049 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6050 (LINK_COMMAND_SPEC): Use it.
6051 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6053 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6055 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6056 * calls.c: Remove debug.h include.
6057 (emit_call_1): Don't call virtual_call_token debug hook.
6058 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6059 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6060 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6061 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6062 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6063 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6064 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6065 dwarf2out_virtual_call): Remove.
6066 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6067 copy_call_info and virtual_call hooks.
6068 (dwarf2out_init): Don't initialize vcall_insn_table,
6069 debug_dcall_section and debug_vcall_section.
6070 (prune_unused_types): Don't mark nodes from dcall_table.
6071 (dwarf2out_finish): Don't output dcall or vcall tables.
6072 * final.c (final_scan_insn): Don't call direct_call or
6073 virtual_call debug hooks.
6074 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6075 virtual_call_token, copy_call_info and virtual_call hooks.
6076 (debug_nothing_uid): Remove prototype.
6077 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6078 copy_call_info and virtual_call hooks.
6079 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6080 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6081 * debug.c (do_nothing_debug_hooks): Likewise.
6082 (debug_nothing_uid): Remove.
6083 * doc/invoke.texi (-fenable-icf-debug): Remove.
6084 * common.opt (-fenable-icf-debug): Likewise.
6086 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6087 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6088 call's MEM. Handle functions returning aggregate through a hidden
6089 first pointer. For virtual calls add clobbered pc to call arguments
6091 * dwarf2out.c (gen_subprogram_die): Emit
6092 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6096 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6097 * rtl.h (ENTRY_VALUE_EXP): Define.
6098 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6099 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6100 * print-rtl.c (print_rtx): Likewise.
6101 * gengtype.c (adjust_field_rtx_def): Likewise.
6102 * var-tracking.c (vt_add_function_parameter): Adjust
6103 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6104 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6105 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6106 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6107 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6109 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6110 Call var_location debug hook even on CALL_INSNs.
6111 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6112 * rtl.def (ENTRY_VALUE): New.
6113 * dwarf2out.c: Include cfglayout.h.
6114 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6115 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6116 (struct call_arg_loc_node): New type.
6117 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6118 tail_call_site_count): New variables.
6119 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6120 DW_TAG_GNU_call_site_parameter.
6121 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6122 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6123 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6124 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6125 and DW_AT_GNU_all_source_call_sites.
6126 (mem_loc_descriptor): Handle ENTRY_VALUE.
6127 (add_src_coords_attributes): Don't add enything if
6128 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6129 (dwarf2out_abstract_function): Save and clear call_arg_location,
6130 call_site_count and tail_call_site_count around dwarf2out_decl call.
6131 (gen_call_site_die): New function.
6132 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6133 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6134 (dwarf2out_function_decl): Clear call_arg_locations,
6135 call_arg_loc_last, set call_site_count and tail_call_site_count
6136 to -1 and free block_map.
6137 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6138 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6139 followed by any real instructions.
6140 (dwarf2out_begin_function): Set call_site_count and
6141 tail_call_site_count to 0.
6142 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6143 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6144 attempt to force a DIE for it and worst case remove the attribute.
6145 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6146 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6148 * var-tracking.c: Include tm_p.h.
6149 (vt_stack_adjustments): For calls call note_register_arguments.
6150 (argument_reg_set): New variable.
6151 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6152 ensure the VALUE is resolved.
6153 (call_arguments): New variable.
6154 (prepare_call_arguments): New function.
6155 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6156 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6157 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6158 always use the best expression.
6159 (vt_expand_loc): Add ignore_cur_loc argument.
6160 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6161 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6162 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6164 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6165 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6166 argument. Don't call cselib_preserve_only_values and
6168 (note_register_arguments): New function.
6169 (vt_initialize): Compute argument_reg_set. Call
6170 vt_add_function_parameters before processing basic blocks instead of
6171 afterwards. For calls call prepare_call_arguments before calling
6172 cselib_process_insn.
6173 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6174 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6175 (var-tracking.o): Depend on $(TM_P_H).
6176 * cfglayout.h (insn_scope): New prototype.
6177 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6178 * cfglayout.c (insn_scope): No longer static.
6179 * insn-notes.def (CALL_ARG_LOCATION): New.
6180 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6181 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6182 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6183 nothing for DECL_EXTERNAL BLOCK_VARS.
6185 2011-03-16 Alan Modra <amodra@gmail.com>
6188 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6189 create invalid offset address for vsx splat insn.
6190 * config/rs6000/predicates.md (splat_input_operand): New.
6191 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6193 2011-03-15 Xinliang David Li <davidxl@google.com>
6196 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6197 (normalize_preds): New function.
6198 (is_use_properly_guarded): Normalize def predicates.
6200 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6203 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6204 in the output template.
6206 2011-03-15 Richard Guenther <rguenther@suse.de>
6209 * tree-pretty-print.c (dump_function_declaration): Properly
6210 dump unprototyped and varargs function types.
6212 2011-03-15 Richard Guenther <rguenther@suse.de>
6214 PR tree-optimization/13954
6215 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6218 2011-03-15 Richard Guenther <rguenther@suse.de>
6220 PR tree-optimization/48037
6221 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6222 selects into BIT_FIELD_REFs.
6223 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6226 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6228 PR tree-optimization/48129
6229 * builtins.c (fold_builtin_snprintf): Convert to type of
6230 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6231 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6233 2011-03-15 Richard Guenther <rguenther@suse.de>
6235 PR tree-optimization/41490
6236 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6237 value but with VUSE.
6238 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6240 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6241 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6242 * tree-tailcall.c (find_tail_calls): Ignore returns.
6244 2011-03-15 Richard Guenther <rguenther@suse.de>
6247 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6248 or variable-indexed array accesses when in gimple form.
6250 2011-03-15 Richard Guenther <rguenther@suse.de>
6252 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6254 2011-03-15 Alan Modra <amodra@gmail.com>
6257 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6258 presume symbol_refs without a symbol_ref_decl are suitably
6259 aligned, nor other trees we may see here. Handle anchor symbols.
6260 (legitimate_constant_pool_address_p): Comment. Add mode param.
6261 Check cmodel=medium addresses. Adjust all calls.
6262 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6263 creating cmodel=medium optimized access to locals.
6264 * config/rs6000/constraints.md (R): Pass QImode to
6265 legitimate_constant_pool_address_p.
6266 * config/rs6000/predicates.md (input_operand): Pass mode to
6267 legitimate_constant_pool_address_p.
6268 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6271 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6274 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6275 64-bit constants being loaded into registers other than GPRs such
6276 as loading 0 into a VSX register.
6278 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6280 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6282 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6285 * builtins.c (fold_builtin_snprintf): New function.
6286 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6287 (fold_builtin_4): Likewise.
6290 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6291 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6292 and C - X == X also strip nops from +/-/p+ operand.
6293 When optimizing -X == C, fold C to arg0's type.
6296 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6297 emit it as add_AT_int instead of add_AT_unsigned.
6299 2011-03-14 Tom Tromey <tromey@redhat.com>
6301 * unwind-dw2.c: Include sys/sdt.h if it exists.
6302 (_Unwind_DebugHook): Use STAP_PROBE2.
6303 * config.in, configure: Rebuild.
6304 * configure.ac: Check for sys/sdt.h.
6306 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6308 * config/i386/i386.md (ROUND_FLOOR): New constant.
6309 (ROUND_CEIL): Ditto.
6310 (ROUND_TRUNC): Ditto.
6311 (ROUND_MXCSR): Ditto.
6312 (ROUND_NO_EXC): Ditto.
6313 (rint<mode>2): Use new defines instead of numerical constants.
6314 (floor<mode>2): Ditto.
6315 (ceil<mode>2): Ditto.
6316 (btrunc<mode>2): Ditto.
6317 * config/i386/i386-builtin-types.def: Define ROUND function type
6319 * config/i386/i386.c (enum ix86_builtins): Add
6320 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6321 (struct builtin_description): Add
6322 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6323 (ix86_expand_sse_round): New static function.
6324 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6326 (ix86_builtin_vectorized_function): Handle
6327 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6329 2011-03-14 Tom Tromey <tromey@redhat.com>
6331 * c-parser.c (c_parser_asm_string_literal): Clear
6332 warn_overlength_strings.
6334 2011-03-14 Tom Tromey <tromey@redhat.com>
6336 * c-parser.c (disable_extension_diagnostics): Save
6337 warn_overlength_strings.
6338 (restore_extension_diagnostics): Restore warn_overlength_strings.
6340 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6342 * BASE-VER: Change to 4.7.0.
6344 2011-03-14 Richard Guenther <rguenther@suse.de>
6347 * tree.c (build_vector_from_val): Adjust assert to requirements
6350 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6353 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6355 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6357 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6358 terms of target_flags_explicit. Adjust copyright year.
6360 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6361 * config/rs6000/t-freebsd: New file. Add override for
6364 2011-03-13 Chris Demetriou <cgd@google.com>
6366 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6367 (-fno-diagnostics-show-option): this, to reflect current default.
6368 (-Werror=): Update text about -fno-diagnostics-show-option.
6370 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6373 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6374 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6375 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6376 mode is not V2DImode or V2DFmode.
6377 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6378 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6379 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6381 (movdi_internal64): Likewise.
6383 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6385 PR tree-optimization/47127
6386 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6388 (set_cloog_options): Same.
6389 (scop_to_clast): Same.
6390 (print_clast_stmt): Do not call cloog_state_malloc and
6392 (print_generated_program): Same.
6394 * graphite-clast-to-gimple.h (cloog_state): Declared.
6395 (scop_to_clast): Adjust declaration.
6396 * graphite.c (cloog_state): Defined here.
6397 (graphite_initialize): Call cloog_state_malloc.
6398 (graphite_finalize): Call cloog_state_free.
6400 2011-03-11 Jason Merrill <jason@redhat.com>
6402 * attribs.c (lookup_attribute_spec): Take const_tree.
6405 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6407 * config/sparc/sparc.c (sparc_option_override): Use
6408 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6410 2011-03-11 Richard Guenther <rguenther@suse.de>
6412 PR tree-optimization/48067
6413 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6414 multiplication result will be only used once on the target
6417 2011-03-11 Richard Guenther <rguenther@suse.de>
6419 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6421 2011-03-11 Richard Guenther <rguenther@suse.de>
6424 * tree.c (find_decls_types_r): Do not walk types only reachable
6425 from IDENTIFIER_NODEs.
6427 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6430 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6431 all vnode->force_output nodes as needed.
6433 2011-03-11 Jason Merrill <jason@redhat.com>
6436 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6437 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6439 2011-03-11 Martin Jambor <mjambor@suse.cz>
6441 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6444 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6446 PR tree-optimization/48063
6447 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6448 inline functions called once if !tree_can_inline_p (node->callers).
6450 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6452 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6454 * config/score/score3.c: Delete.
6455 * config/score/score3.h: Delete.
6456 * config/score/mul-div.S: Delete.
6457 * config/score/sfp-machine.h: Add new file.
6458 * config/score/constraints.md: Add new file.
6459 * config/score/t-score-softfp: Add new file.
6460 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6461 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6462 (score7_extra_constraint): Delete.
6463 (score7_option_override): Remove unused code.
6464 * config/score/score.c: Remove score3 and score5 define and code.
6465 * config/score/score.h: Remove score3 and score5 define and code.
6466 * config/score/score.md: Remove score3 template and unusual insn.
6467 * config/score/score.opt: Remove score3 and score5 options.
6469 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6471 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6472 when _HPUX_SOURCE is defined.
6473 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6475 2011-03-10 Jason Merrill <jason@redhat.com>
6478 * stor-layout.c (layout_type): Don't set structural equality
6479 on arrays of incomplete type.
6480 * tree.c (type_hash_eq): Handle comparing them properly.
6482 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6485 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6486 result mode matches original rtl mode.
6488 2011-03-10 Nick Clifton <nickc@redhat.com>
6490 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6491 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6493 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6495 PR rtl-optimization/47866
6496 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6497 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6498 if target wasn't scalar.
6499 * function.c (assign_stack_temp_for_type): Assert that neither
6500 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6501 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6503 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6505 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6507 * config/s390/s390-protos.h (s390_label_align): New prototype.
6508 * config/s390/s390.c (s390_label_align): New function.
6509 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6511 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6514 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6515 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6516 (output_vec_const_move): Ditto.
6518 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6520 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6521 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6522 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6523 Change 'rclass' argument and result type to reg_class_t.
6524 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6526 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6528 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6529 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6530 (TARGET_MEMORY_MOVE_COST): Define.
6531 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6533 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6536 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6539 PR tree-optimization/48022
6540 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6543 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6546 * var-tracking.c (find_use_val): Return NULL for
6547 cui->sets && cui->store_p BLKmode MEMs.
6549 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6551 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6553 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6554 xstormy16_print_operand_address): Remove.
6555 * config/stormy16/stormy16.c (xstormy16_print_operand,
6556 xstormy16_print_operand_address): Make static.
6557 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6559 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6562 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6563 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6566 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6569 * cfgloopmanip.c (fix_bb_placements): Return immediately
6570 if FROM is BASE_LOOP's header.
6572 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6574 * gimplify.c (gimplify_function_tree): Fix building calls
6575 to __builtin_return_address.
6577 2011-03-07 Alan Modra <amodra@gmail.com>
6579 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6580 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6581 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6582 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6584 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6585 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6586 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6587 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6588 * config/rs6000/rs6000.c
6589 (rs6000_elf_end_indicate_exec_stack): Rename to..
6590 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6591 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6592 (rs6000_file_start): ..here.
6593 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6594 file scope variables.
6595 (call_ABI_of_interest): New function.
6596 (init_cumulative_args): Set above vars when function return value
6597 is a float, vector, or small struct.
6598 (rs6000_function_arg_advance_1): Likewise for function args.
6599 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6600 references float args.
6602 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6604 * doc/cfg.texi: Remove "See" before @ref.
6605 * doc/invoke.texi: Likewise.
6607 2011-03-05 Jason Merrill <jason@redhat.com>
6609 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6611 2011-03-05 Anthony Green <green@moxielogic.com>
6613 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6615 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6617 PR rtl-optimization/47899
6618 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6619 to flow_loop_nested_p when moving the loop upward.
6621 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6624 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6626 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6628 PR tree-optimization/47967
6629 * ipa-cp.c (build_const_val): Return NULL instead of creating
6630 VIEW_CONVERT_EXPR for mismatching sizes.
6631 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6632 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6633 give up on versioning.
6635 2011-03-05 Alan Modra <amodra@gmail.com>
6638 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6639 full cmodel medium/large lo_sum + high addresses.
6641 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6643 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6644 pool references in UNSPEC_LTREL_OFFSET.
6646 2011-03-04 Jan Hubicka <jh@suse.cz>
6649 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6650 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6651 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6653 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6654 cgraph_add_thunk): Add node pointers.
6655 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6656 associated to right node.
6657 (input_node): Update use of cgraph_same_body_alias
6658 and cgraph_add_thunk.
6660 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6662 * config/i386/i386.opt (mprefer-avx128): New flag.
6663 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6664 modes when the flag -mprefer-avx128 is on.
6666 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6668 * dwarf2out.c (compare_loc_operands): Fix address handling.
6670 2011-03-04 Alan Modra <amodra@gmail.com>
6672 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6674 2011-03-04 Richard Guenther <rguenther@suse.de>
6677 * expmed.c (extract_bit_field_1): Prefer vector modes that
6678 vec_extract patterns can handle.
6680 2011-03-04 Richard Guenther <rguenther@suse.de>
6683 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6685 2011-03-04 Richard Henderson <rth@redhat.com>
6687 * explow.c (emit_stack_save): Remove 'after' parameter.
6688 (emit_stack_restore): Likewise.
6689 * expr.h: Update to match.
6690 * builtins.c, calls.c, stmt.c: Likewise.
6691 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6692 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6693 * function.c (expand_function_end): Insert the emit_stack_save
6694 sequence before parm_birth_insn instead of after.
6696 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6698 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6699 (ssse3_pmaddubsw128): Ditto.
6700 (ssse3_pmaddubsw): Ditto.
6702 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6704 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6706 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6709 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6710 on TYPE_SIZE_UNIT if it is a DECL.
6713 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6714 first operand is not is_gimple_mem_ref_addr, try to fold it.
6715 If the operand still isn't is_gimple_mem_ref_addr, clear
6718 2011-03-03 Richard Guenther <rguenther@suse.de>
6721 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6723 (refs_may_alias_p_1): For release branches return true if
6724 we are confused by our input.
6726 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6728 * config/s390/s390.c (s390_function_value): Rename to ...
6729 (s390_function_and_libcall_value): ... this.
6730 (s390_function_value): New function.
6731 (s390_libcall_value): New function.
6732 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6733 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6734 target macro definitions.
6735 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6737 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6739 * config/i386/freebsd64.h (CC1_SPEC): Define.
6740 * config/i386/linux64.h (CC1_SPEC): Define.
6741 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6743 2011-03-02 Anatoly Sokolov <aesok@post.ru>
6745 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6747 * config/stormy16/stormy16.c: Include reload.h.
6748 (xstormy16_memory_move_cost): New function.
6749 (TARGET_MEMORY_MOVE_COST): Define.
6751 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6753 PR rtl-optimization/47925
6754 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6755 with side effects. Remove the more-specific check for volatile asms.
6757 2011-03-02 Alan Modra <amodra@gmail.com>
6760 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6761 toc relative addresses for valid offsets.
6763 2011-03-01 Richard Guenther <rguenther@suse.de>
6765 PR tree-optimization/47890
6766 * tree-vect-loop.c (get_initial_def_for_induction): Set
6767 related stmt properly.
6769 2011-03-01 Richard Guenther <rguenther@suse.de>
6772 * lto-streamer.c (lto_record_common_node): Also register
6775 2011-03-01 Richard Guenther <rguenther@suse.de>
6778 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6779 Do not stream DECL_ABSTRACT_ORIGIN.
6780 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6781 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6782 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6783 Do not stream DECL_ABSTRACT_ORIGIN.
6784 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6785 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6787 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6789 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6790 FUNCTION_VALUE_REGNO_P): Remove.
6791 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6792 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6793 Add 'outgoing' argument.
6794 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6796 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6797 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6799 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6802 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6803 (lookup_filename): Likewise.
6804 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6806 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6807 Jakub Jelinek <jakub@redhat.com>
6810 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6811 (assign_stack_local_1): Change last argument type to int.
6812 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6813 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6814 don't record padding space into frame_space_list nor use those areas.
6815 (assign_stack_local): Adjust caller.
6816 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6817 of assign_stack_local, pass 0 as last argument.
6818 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6821 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6824 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6825 Use target address_mode and pointer_mode hooks instead of hardcoded
6826 Pmode and ptr_mode. Handle some simple cases of extending if
6827 POINTERS_EXTEND_UNSIGNED < 0.
6828 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6829 Call convert_debug_memory_address.
6830 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6831 convert_debug_memory_address.
6834 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6835 * configure: Regenerated.
6836 * config.in: Regenerated.
6837 * varasm.c (default_function_section): Return NULL
6838 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6840 2011-02-28 Martin Jambor <mjambor@suse.cz>
6842 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6843 the description to match the printed values.
6845 2011-02-28 Richard Guenther <rguenther@suse.de>
6847 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6848 of the copied scope tree.
6850 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6852 * doc/extend.texi (Function Attributes): Avoid deeply (and
6853 wrongly) nested tables.
6855 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6858 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6859 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6860 r isn't op0 nor op1.
6862 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6864 * config/avr/avr.md: Remove magic comment for emacs.
6866 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6869 * config/avr/avr.c (avr_option_override): Use error on bad options.
6870 (avr_help): New function.
6871 (TARGET_HELP): Define.
6873 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6876 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6877 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6879 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6881 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6882 (ARM Options): Ditto.
6883 (i386 and x86-64 Options): Ditto.
6884 (RX Options): Ditto.
6885 (SPARC Options): Ditto.
6887 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6889 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6890 FreeBSD 6 and later. Generally use cpu generic.
6892 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6894 * doc/cpp.texi: Update copyright years.
6896 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6899 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6901 2011-02-25 Jon Beniston <jon@beniston.com>
6904 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6905 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6906 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6907 (lm32_block_move_inline): Add type cast to remove warning.
6908 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6909 (gen_int_relational): Move declarations to start of function.
6911 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6913 PR tree-optimization/45470
6914 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6915 can throw internally only.
6916 * tree-vect-stmts.c (vectorizable_call): Likewise.
6918 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6920 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6921 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6922 * config/stormy16/stormy16-protos.h
6923 (xstormy16_preferred_reload_class): Remove.
6924 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6925 static. Change 'rclass' argument and return type to reg_class_t.
6926 (TARGET_PREFERRED_RELOAD_CLASS,
6927 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6929 2011-02-24 Richard Guenther <rguenther@suse.de>
6931 * lto-streamer-in.c (input_bb): Do not find referenced vars
6932 in debug statements.
6934 2011-02-23 Jason Merrill <jason@redhat.com>
6936 * common.opt (fabi-version): Document v5 and v6.
6938 2011-02-23 Richard Guenther <rguenther@suse.de>
6940 PR tree-optimization/47849
6941 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6943 2011-02-23 Jie Zhang <jie@codesourcery.com>
6945 * opts-common.c (decode_cmdline_option): Print empty string
6946 argument as "" in decoded->orig_option_with_args_text.
6947 * gcc.c (execute): Print empty string argument as ""
6948 in the verbose output.
6949 (do_spec_1): Keep empty string argument.
6951 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6953 * config.gcc: Declare score-* and crx-* obsolete.
6955 2011-02-23 Jie Zhang <jie@codesourcery.com>
6957 PR rtl-optimization/47763
6958 * web.c (web_main): Ignore naked clobber when replacing register.
6960 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6962 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6965 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6968 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6970 2011-02-22 Mike Stump <mikestump@comcast.net>
6972 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6974 * configure: Regenerate.
6976 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6978 PR rtl-optimization/46002
6979 * ira-color.c (update_copy_costs): Change class intersection
6980 test to reg_class_contents[] test of 'hard_regno'.
6982 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6984 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6986 * config/hpux11.opt (mt): Likewise.
6987 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6988 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6989 * config/vax/elf.opt (mno-asm-pic): Likewise.
6990 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6992 2011-02-21 Mike Stump <mikestump@comcast.net>
6995 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6996 tree so we can get save the type.
6997 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6998 for CFString instead of trying to use past the end of the builtins.
6999 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7000 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7001 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7002 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7003 Rename to darwin_builtin_cfstring.
7004 (darwin_init_cfstring_builtins): Return the built type.
7006 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7009 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7010 (_mm256_insert_epi64): Use _mm_insert_epi64.
7012 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7014 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7015 * config/stormy16/stormy16-protos.h
7016 (xstormy16_mode_dependent_address_p): Remove.
7017 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7018 Make static. Change return type to bool. Change argument type to
7019 const_rtx. Remove dead code.
7020 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7022 2011-02-21 Richard Guenther <rguenther@suse.de>
7025 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7026 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7027 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7029 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7030 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7032 2011-02-20 Richard Guenther <rguenther@suse.de>
7035 * tree.c (free_lang_data_in_decl): Clean builtins from
7036 the TU decl BLOCK_VARS.
7038 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7042 * haifa-sched.c (fix_tick_ready): Skip tick computation
7045 2011-02-19 Richard Guenther <rguenther@suse.de>
7048 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7049 Remove lazy BLOCK_VARS streaming.
7050 (lto_input_ts_block_tree_pointers): Likewise.
7051 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7053 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7055 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7057 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7059 * config/i386/biarch32.h, config/i386/mach.h,
7060 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7062 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7065 * config/i386/i386.md (peephole2 for shift and plus): Use
7066 operands[1] original mode in the first insn.
7068 2011-02-18 Mike Stump <mikestump@comcast.net>
7070 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7072 2011-02-18 Jan Hubicka <jh@suse.cz>
7075 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7076 to zero when the function is not inlinable at all.
7078 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7080 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7081 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7082 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7083 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7084 * config/pa/t-pa64: Likewise.
7085 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7087 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7090 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7092 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7095 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7097 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7099 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7100 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7101 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7102 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7103 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7104 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7105 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7106 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7107 m32r_legitimate_address_p): New functions.
7108 * config/m32r/constraints.md (constraint "S"): Don't use
7109 STORE_PREINC_PREDEC_P.
7110 (constraint "U"): Don't use LOAD_POSTINC_P.
7112 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7114 PR rtl-optimization/46178
7115 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7116 compute ira_hard_regno_cover_class[].
7118 2011-02-18 Richard Guenther <rguenther@suse.de>
7121 * lto-streamer.h (lto_global_var_decls): Declare.
7122 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7123 statics for global var processing.
7125 2011-02-18 Richard Guenther <rguenther@suse.de>
7127 PR tree-optimization/47737
7128 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7129 edge dominance check.
7131 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7134 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7135 avoid invalid rtx sharing.
7137 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7139 * doc/cpp.texi (Obsolete Features): Add background on the
7140 origin of assertions.
7142 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7144 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7146 * config/darwin.c (output_objc_section_asm_op): Added support for
7148 (is_objc_metadata): New.
7149 (darwin_objc2_section): New.
7150 (darwin_objc1_section): New.
7151 (machopic_select_section): Added support for ABI v1 and v2.
7152 (darwin_emit_objc_zeroed): New.
7153 (darwin_output_aligned_bss): Detect objc metadata and treat it
7155 (darwin_asm_output_aligned_decl_common): Same.
7156 (darwin_asm_output_aligned_decl_local): Same.
7157 * config/darwin-sections.def: Updated for ABI v1 and v2.
7158 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7159 compiling Objective-C code for the NeXT runtime, default to using
7160 ABI version 0 for 32-bit, and version 2 for 64-bit.
7162 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7164 * common.opt (optimize_fast): New Variable.
7165 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7166 instead of local variable ofast.
7168 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7170 * doc/invoke.texi (fobjc-abi-version): Documented.
7171 (fobjc-nilcheck): Documented.
7172 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7175 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7178 * common.opt (export-dynamic): New Driver option.
7179 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7181 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7183 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7185 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7186 Jan Hubicka <jh@suse.cz>
7190 * cfgexpand.c (account_used_vars_for_block): Remove.
7191 (estimated_stack_frame_size): Use referenced vars.
7192 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7193 that were referenced in the original function. Test src_fn
7194 rather than cfun. Drop redundant get_var_ann.
7195 (setup_one_parameter): Drop redundant get_var_ann.
7196 (declare_return_variable): Likewise.
7197 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7198 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7199 * ipa-inline.c (compute_inline_parameters): Do not compute
7200 disregard_inline_limits here.
7201 (compute_inlinable_for_current, pass_inlinable): New.
7202 (pass_inline_parameters): Require PROP_referenced_vars.
7203 * cgraphunit.c (cgraph_process_new_functions): Don't run
7204 compute_inline_parameters explicitly unless function is in SSA form.
7205 (cgraph_analyze_function): Set .disregard_inline_limits.
7206 * tree-sra.c (convert_callers): Compute inliner parameters
7207 only for functions already in SSA form.
7209 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7211 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7212 -mlittle-endian-data.
7214 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7216 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7217 -mno-fpu, not -fpu and -no-fpu.
7218 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7219 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7221 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7224 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7225 input reload with PLUS RTX.
7227 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7229 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7230 of InverseVar(MDMX).
7232 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7234 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7237 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7239 * config/mn10300/mn10300.opt (mno-crt0): New.
7241 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7243 * config/m68k/uclinux.opt (static-libc): New Driver option.
7245 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7247 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7249 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7251 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7252 %{muser-extend-enabled}.
7254 2011-02-16 Richard Guenther <rguenther@suse.de>
7256 PR tree-optimization/47738
7257 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7258 the TODO from tree_predictive_commoning.
7260 2011-02-15 Jeff Law <law@redhat.com>
7263 2011-01-25 Jeff Law <law@redhat.com>
7265 PR rtl-optimization/37273
7266 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7267 handle them like argument loads from stack slots. Do not double
7268 count memory for memory constants and argument loads from stack slots.
7270 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7273 * combine.c (cant_combine_insn_p): Revert the last change.
7275 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7278 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7279 mode for vector constants. Remove code that checks for TImode.
7281 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7285 * cgraph.h (compute_inline_parameters): Return void.
7286 * ipa-inline.c (compute_inline_parameters): Adjust.
7288 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7292 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7294 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7295 * ipa-inline.c (compute_inline_parameters): Adjust.
7297 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7301 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7302 Adjust all users. Pass FN to...
7303 * tree-flow-inline.h (first_referenced_var): ... this. Add
7305 * ipa-struct-reorg.c: Adjust.
7306 * tree-dfa.c: Adjust.
7307 * tree-into-ssa.c: Adjust.
7308 * tree-sra.c: Adjust.
7309 * tree-ssa-alias.c: Adjust.
7310 * tree-ssa-live.c: Adjust.
7311 * tree-ssa.c: Adjust.
7312 * tree-ssanames.c: Adjust.
7313 * tree-tailcall.c: Adjust.
7315 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7319 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7321 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7322 * tree-flow-inline.h: Adjust.
7323 * gimple-pretty-print.c: Adjust.
7324 * tree-into-ssa.c: Adjust.
7325 * tree-ssa.c: Adjust.
7326 * cfgexpand.c: Adjust.
7328 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7330 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7331 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7332 (EXTRA_CONSTRAINT): Delete.
7333 * config/iq2000/constraints.md: New file.
7334 * config/iq2000/iq2000.md: Include it.
7335 (define_insn ""): Delete.
7336 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7337 unsupported constraint letters from patterns.
7338 (call_value, call_value_internal1): Likewise.
7339 (call_value_multiple_internal1): Likewise.
7341 2011-02-15 Nick Clifton <nickc@redhat.com>
7343 * config/mn10300/mn10300.c: Include tm-constrs.h.
7344 (struct liw_data): New data structure describing an LIW candidate
7346 (extract_bundle): Use struct liw_data. Allow small integer
7347 operands for some instructions.
7348 (check_liw_constraints): Use struct liw_data. Remove swapped
7349 parameter. Add comments describing the checks. Fix bug when
7350 assigning the source of liw1 to the source of liw2.
7351 (liw_candidate): Delete. Code moved into extract_bundle.
7352 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7354 * config/mn10300/predicates.md (liw_operand): New predicate.
7355 Allows registers and small integer constants.
7356 * config/mn10300/constraints.md (O): New constraint. Accetps
7357 integers in the range -8 to +7 inclusive.
7358 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7359 for moving a small integer into a register. Give this alternative
7361 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7362 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7363 using the J,K,L and M constraints,
7364 (liw): Remove SI mode on second operands to allow for HI and QI
7366 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7369 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7372 * combine.c (cant_combine_insn_p): Check zero/sign extended
7375 2011-02-15 Richard Guenther <rguenther@suse.de>
7377 PR tree-optimization/47743
7378 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7379 for a non-type-compatible VN lookup bail out.
7381 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7383 * config/fr30/constraints.md: New file.
7384 * config/fr30/fr30.md: Include it.
7385 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7386 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7387 (EXTRA_CONSTRAINT): Delete.
7389 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7391 * config/frv/constraints.md: New file.
7392 * config/frv/predicates.md: Include it.
7393 * config/frv/frv.c (reg_class_from_letter): Delete.
7394 (frv_option_override): Don't initialize it.
7395 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7396 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7397 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7398 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7399 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7400 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7401 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7402 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7403 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7404 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7405 (REG_CLASS_FROM_CONSTRAINT): Delete.
7407 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7410 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7411 if frame size is 0 in a leaf function.
7413 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7416 * config/alpha/host-osf.c: New file.
7417 * config/alpha/x-osf: New file.
7418 * config.host (alpha*-dec-osf*): Use it.
7420 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7422 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7423 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7424 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7425 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7427 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7429 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7431 * config/stormy16/constraints.md: New file.
7432 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7433 Use satisfies_constraint_Q and satisfies_constraint_R.
7434 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7436 (xstormy16_legitiamte_address_p): Declare.
7437 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7438 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7439 (EXTRA_CONSTRAINT): Delete.
7440 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7442 (xstormy16_extra_constraint_p): Delete.
7444 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7446 PR tree-optimization/46494
7447 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7448 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7449 (pass_rtl_loop_done): Add TODO_verify_flow.
7450 * fwprop.c (pass_rtl_fwprop): Likewise.
7451 * modulo-sched.c (pass_sms): Likewise.
7452 * tree-ssa-dom.c (pass_dominator): Likewise.
7453 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7454 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7455 (pass_tree_loop_done): Likewise.
7456 * tree-ssa-pre.c (execute_pre): Likewise.
7457 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7458 * tree-ssa-sink.c (pass_sink_code): Likewise.
7459 * tree-vrp.c (pass_vrp): Likewise.
7461 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7463 * config/v850/constraints.md: New file.
7464 * config/v850/v850.md: Include it.
7465 * config/v850/predicates.md (reg_or_0_operand): Use
7466 satisfies_constraint_G.
7467 (special_symbolref_operand): Use satisfies_constraint_K.
7468 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7469 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7470 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7471 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7472 (EXTRA_CONSTRAINT): Delete.
7473 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7474 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7475 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7477 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7480 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7483 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7485 * config/mcore/constraints.md: New file.
7486 * config/mcore/mcore.md: Include it.
7487 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7488 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7489 (REG_CLASS_FROM_LETTER): Delete.
7490 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7491 insn_const_int_ok_for_constraint.
7492 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7493 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7494 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7495 (EXTRA_CONSTRAINT): Delete.
7497 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7500 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7501 (IS_SIGHANDLER): Define.
7502 (sparc64_is_sighandler): New function, split off from
7503 sparc64_fallback_frame_state.
7504 (sparc_is_sighandler): New function, split off from
7505 sparc_fallback_frame_state.
7506 (sparc64_fallback_frame_state): Merge with ...
7507 (sparc_fallback_frame_state): ... this into ...
7508 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7509 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7510 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7511 stack instead of hardcoded offsets.
7513 2011-02-14 Andriy Gapon <avg@freebsd.org>
7516 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7518 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7520 * configure: Regenerate.
7522 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7525 * gcc.c (asm_options): Correct spec matching --target-help.
7527 2011-02-12 Martin Jambor <mjambor@suse.cz>
7529 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7530 to gimple call error.
7532 2011-02-12 Mike Stump <mikestump@comcast.net>
7534 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7535 comments in backslash regions.
7537 2011-02-12 Mike Stump <mikestump@comcast.net>
7538 Jakub Jelinek <jakub@redhat.com>
7539 Iain Sandoe <iains@gcc.gnu.org>
7542 * dwarf2out.c (output_cfa_loc): When required, apply the
7543 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7544 (output_loc_sequence): Likewise.
7545 (output_loc_operands_raw): Likewise.
7546 (output_loc_sequence_raw): Likewise.
7547 (output_cfa_loc): Likewise.
7548 (output_loc_list): Suppress register number adjustment when
7549 calling output_loc_sequence()
7550 (output_die): Likewise.
7552 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7554 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7556 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7557 xtensa_memory_move_cost): New functions.
7558 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7560 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7563 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7564 in the current directory.
7565 * configure: Rebuilt.
7567 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7569 * config/darwin.c (darwin_override_options): Add a hunk missed
7570 from the commit of r168571. Trim comment line lengths and
7571 correct indents of the preceding block.
7573 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7575 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7578 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7580 * common.opt (nostartfiles): New Driver option.
7582 2011-02-11 Xinliang David Li <davidxl@google.com>
7584 PR tree-optimization/47707
7585 * tree-chrec.c (convert_affine_scev): Keep type precision.
7587 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7589 PR tree-optimization/47420
7590 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7592 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7594 PR rtl-optimization/47614
7595 * rtl.h (check_for_inc_dec): Declare.
7596 * dse.c (check_for_inc_dec): Externalize...
7597 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7598 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7600 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7603 * gcc.c (main): Do not compile inputs if there were errors in
7605 * opts-common.c (read_cmdline_option): Check for wrong language
7606 after other error checks.
7608 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7610 * cgraph.c: Fix comment typos.
7611 * cgraph.h: Likewise.
7612 * cgraphunit.c: Likewise.
7613 * ipa-cp.c: Likewise.
7614 * ipa-inline.c: Likewise.
7615 * ipa-prop.c: Likewise.
7616 * ipa-pure-const.c: Likewise.
7617 * ipa-ref.c: Likewise.
7618 * ipa-reference.c: Likewise.
7620 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7623 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7625 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7628 * doc/sourcebuild.texi (Require Support): Document
7629 dg-require-ascii-locale.
7631 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7633 * doc/lto.texi (Write summary): Fix missing parentheses.
7635 2011-02-10 DJ Delorie <dj@redhat.com>
7637 * config/m32c/m32c.c (m32c_option_override): Disable
7638 -fcombine-stack-adjustments until flag value tracking and compare
7639 optimization can be rewritten.
7641 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7643 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7645 (PROCESSOR_DEFAULT64): Likewise.
7647 2011-02-10 Richard Henderson <rth@redhat.com>
7649 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7650 change from 2011-02-03.
7651 * config/rx/rx.c (flags_from_code): Likewise.
7652 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7653 is valid, n/pz otherwise.
7654 (rx_select_cc_mode): Return CCmode if Y is not zero.
7656 2011-02-10 Richard Guenther <rguenther@suse.de>
7658 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7660 2011-02-10 Richard Guenther <rguenther@suse.de>
7662 PR tree-optimization/47677
7663 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7665 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7668 * combine.c (make_compound_operation): Only change shifts into
7669 multiplication for SCALAR_INT_MODE_P.
7671 2011-02-10 Jie Zhang <jie@codesourcery.com>
7675 2011-02-05 Jie Zhang <jie@codesourcery.com>
7677 * web.c (entry_register): Don't clobber the number of the
7678 first uninitialized reference in used[].
7680 2011-02-09 Richard Guenther <rguenther@suse.de>
7682 PR tree-optimization/47664
7683 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7686 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7690 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7692 (PROCESSOR_DEFAULT64): Same.
7693 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7695 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7697 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7699 2011-02-09 Martin Jambor <mjambor@suse.cz>
7702 * tree-sra.c (struct access): New flags grp_scalar_read and
7703 grp_scalar_write. Changed description of assignment read and write
7705 (dump_access): Dump new flags, reorder all of them.
7706 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7707 to detect multiple scalar reads.
7708 (analyze_access_subtree): Use the new scalar read write flags instead
7709 of the old flags. Adjusted comments.
7711 2011-02-08 DJ Delorie <dj@redhat.com>
7714 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7719 * config/m68k/uclinux.opt: New.
7720 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7724 * config/cris/elf.opt (sim): New Driver option.
7726 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7728 * config/xtensa/elf.opt: New.
7729 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7731 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7733 * config/vax/elf.opt: New.
7734 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7736 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7738 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7740 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7742 * config/gnu-user.opt: New.
7743 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7744 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7745 *-*-uclinux*): Use gnu-user.opt.
7747 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
7749 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7750 * config/i386/gnu.h (CPP_SPEC): Likewise.
7752 2011-02-08 Ian Lance Taylor <iant@google.com>
7754 * common.opt (fcx-limited-range): Add SetByCombined flag.
7755 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7756 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7757 (fassociative-math, freciprocal-math): Likewise.
7758 (funsafe-math-optimizations): Likewise.
7759 * opth-gen.awk: Handle SetByCombined.
7760 * optc-gen.awk: Likewise.
7761 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7762 (set_unsafe_math_optimizations_flags): Likewise.
7763 * doc/options.texi (Option properties): Document SetByCombined.
7765 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7767 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7768 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7769 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7770 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7771 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7773 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7775 PR tree-optimization/46834
7776 PR tree-optimization/46994
7777 PR tree-optimization/46995
7778 * graphite-sese-to-poly.c (used_outside_reduction): New.
7779 (detect_commutative_reduction): Call used_outside_reduction.
7780 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7781 translate_scalar_reduction_to_array only when at least one
7782 loop-phi/close-phi tuple has been detected.
7784 2011-02-08 Richard Guenther <rguenther@suse.de>
7787 * tree-vect-generic.c (expand_vector_operations_1): Update
7789 (expand_vector_operations): ... not here. Cleanup EH info
7790 and the CFG if required.
7792 2011-02-08 Richard Guenther <rguenther@suse.de>
7794 PR tree-optimization/47641
7795 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7796 require type compatibility.
7798 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7800 * gimple-low.c (lower_function_body): Don't remove the location of
7801 the return statement here.
7802 (lower_gimple_return): Do it here instead but only if the return
7803 statement is actually used twice.
7805 2011-02-08 Richard Guenther <rguenther@suse.de>
7807 PR tree-optimization/47632
7808 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7809 unused up_to_stmt parameter, return whether cfg-cleanup is
7810 necessary, remove EH info properly.
7811 (forward_propagate_into_gimple_cond): Adjust caller.
7812 (forward_propagate_into_cond): Likewise.
7813 (forward_propagate_comparison): Likewise.
7814 (tree_ssa_forward_propagate_single_use_vars): Make
7815 forward_propagate_comparison case similar to the two others.
7817 2011-02-08 Nick Clifton <nickc@redhat.com>
7819 * config/mn10300/mn10300.opt (mliw): New command line option.
7820 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7821 (liw_bundling): New automaton.
7822 (liw): New attribute.
7823 (liw_op): New attribute.
7824 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7825 (movsi_internal): Add LIW attributes.
7829 (addsi3): Separate register and immediate alternatives.
7834 (lshrsi3): Likewise.
7835 (ashrsi3): Likewise.
7837 * config/mn10300/mn10300.c (liw_op_names): New
7838 (mn10300_print_operand): Handle 'W' operand descriptor.
7839 (extract_bundle): New function.
7840 (check_liw_constraints): New function.
7841 (liw_candidate): New function.
7842 (mn10300_bundle_liw): New function.
7843 (mn10300_reorg): New function.
7844 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7845 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7846 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7847 __LIW__ or __NO_LIW__.
7848 * doc/invoke.texi: Describe the -mliw command line option.
7850 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7852 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7853 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7854 pthread_mutex_unlock): Remove.
7855 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7856 * config/pa/t-pa64: Likewise.
7857 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7858 shared libc if not linking against libpthread.
7859 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7861 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7864 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7865 on 10.6 and later to ensure that we always use the unwinder from
7866 the system. Only add -no_compact_unwind when tarteting darwin
7869 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7872 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7873 (vec_interleave_lowv2sf): Ditto.
7874 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7875 (vec_extract_oddv2sf): Ditto.
7877 2011-02-07 Mike Stump <mikestump@comcast.net>
7880 Add __ieee_divdc3 entry point.
7881 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7883 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7884 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7885 * config/darwin.c (darwin_rename_builtins): Add.
7886 * config/darwin-protos.h (darwin_rename_builtins): Add.
7888 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7891 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7894 2011-02-07 Mike Stump <mikestump@comcast.net>
7896 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7898 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7901 * config/avr/libgcc.S (exit): Move .endfunc
7903 2011-02-07 Richard Guenther <rguenther@suse.de>
7905 PR tree-optimization/47615
7906 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7907 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7908 (run_scc_vn): Initialize it.
7909 (visit_reference_op_load): Use it.
7910 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7912 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7914 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7915 DImode trapping arithmetic libfuncs.
7917 2011-02-07 Richard Guenther <rguenther@suse.de>
7919 PR tree-optimization/47621
7920 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7922 (execute_update_addresses_taken): ... here. Make it more
7923 conservative in what we accept.
7925 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7927 * config/sparc/freebsd.h (ASM_SPEC): Define.
7928 * config/sparc/vxworks.h (ASM_SPEC): Define.
7930 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7932 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7934 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7936 * doc/invoke.texi: Remove reference to compiler internals from
7939 * reg-notes.def: Remove REG_VALUE_PROFILE.
7940 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7942 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7945 * varasm.c (default_section_type_flags): If decl is NULL,
7946 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7948 2011-02-05 Jie Zhang <jie@codesourcery.com>
7951 * web.c (entry_register): Don't clobber the number of the
7952 first uninitialized reference in used[].
7954 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7956 PR tree-optimization/46194
7957 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7958 (build_classic_dist_vector_1): Do not represent classic distance
7959 vectors when the access functions are variating in different loops.
7961 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7963 * config/mips/iris6.opt: New.
7964 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7966 2011-02-04 Richard Henderson <rth@redhat.com>
7967 Steve Ellcey <sje@cup.hp.com>
7970 * config/ia64/predicates.md (mux1_brcst_element): New.
7971 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7972 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7973 (ia64_unpack_sign): New.
7974 (ia64_expand_unpack): Rewrite using new routines.
7975 (ia64_expand_widen_sum): Ditto.
7976 (ia64_expand_dot_prod_v8qi): Ditto.
7977 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7978 routines, add endian check.
7979 (pmpy2_even): Rename from pmpy2_r, add endian check.
7980 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7981 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7982 (vec_widen_smult_hi_v4hi): Ditto.
7983 (vec_widen_umult_lo_v4hi): Ditto.
7984 (vec_widen_umult_hi_v4hi): Ditto.
7985 (mulv2si3): Change endian checks.
7986 (sdot_prodv4hi): Rewrite with new calls.
7987 (udot_prodv4hi): New.
7988 (vec_pack_ssat_v4hi): Add endian check.
7989 (vec_pack_usat_v4hi): Ditto.
7990 (vec_pack_ssat_v2si): Ditto.
7991 (max1_even): Rename from max1_r, add endian check.
7992 (max1_odd): Rename from max1_l, add endian check.
7993 (*mux1_rev): Format change.
7995 (*mux1_shuf): Ditto.
7997 (*mux1_brcst_v8qi): Use new predicate.
7998 (vec_extract_evenv8qi): Remove endian check.
7999 (vec_extract_oddv8qi): Ditto.
8000 (vec_interleave_lowv4hi): Format change.
8001 (vec_interleave_highv4hi): Ditto.
8002 (mix2_even): Rename from mix2_r, add endian check.
8003 (mix2_odd): Rename from mux2_l, add endian check.
8004 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8005 (vec_extract_evenodd_helper): Format change.
8006 (vec_extract_evenv4hi): Remove endian check.
8007 (vec_extract_oddv4hi): Remove endian check.
8008 (vec_interleave_lowv2si): Format change.
8009 (vec_interleave_highv2si): Format change.
8010 (vec_initv2si): Remove endian check.
8011 (vecinit_v2si): Add endian check.
8012 (reduc_splus_v2sf): Add endian check.
8013 (reduc_smax_v2sf): Ditto.
8014 (reduc_smin_v2sf): Ditto.
8015 (vec_initv2sf): Remove endian check.
8016 (fpack): Add endian check.
8017 (fswap): Add endian check.
8018 (vec_interleave_highv2sf): Add endian check.
8019 (vec_interleave_lowv2sf): Add endian check.
8020 (fmix_lr): Add endian check.
8021 (vec_setv2sf): Format change.
8022 (*vec_extractv2sf_0_be): Use shift to extract operand.
8023 (*vec_extractv2sf_1_be): New.
8024 (vec_pack_trunc_v4hi): Add endian check.
8025 (vec_pack_trunc_v2si): Format change.
8027 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8030 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8031 do bb, locus and block comparison and disallow loads if it is not set.
8032 (stmt_is_replaceable_p): New function.
8033 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8035 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8036 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8038 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8040 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8042 * config/rs6000/xilinx.opt: New.
8043 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8045 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8047 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8049 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8051 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8052 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8053 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8054 secondary_reload_info, xtensa_secondary_reload): Remove.
8055 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8056 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8057 (xtensa_preferred_reload_class): Make static. Change return and
8058 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8059 Use CONST_DOUBLE_P predicate.
8060 (xtensa_preferred_output_reload_class): New function.
8061 (xtensa_secondary_reload): Make static.
8063 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8065 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8066 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8067 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8069 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8072 * output.h (SECTION_RELRO): Define.
8073 (SECTION_MACH_DEP): Adjust.
8074 (get_variable_section): New prototype.
8075 * varpool.c (varpool_finalize_named_section_flags): New function.
8076 (varpool_assemble_pending_decls): Call it.
8077 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8078 * cgraphunit.c (cgraph_output_in_order): Call
8079 varpool_finalize_named_section_flags.
8080 * varasm.c (get_section): Allow section flags conflicts between
8081 relro and read-only sections if the section hasn't been declared yet.
8082 Set SECTION_OVERRIDE after diagnosing section type conflict.
8083 (get_variable_section): No longer static.
8084 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8085 readonly sections that need relocations.
8086 (decl_readonly_section_1): New function.
8087 (decl_readonly_section): Use it.
8090 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8091 Steve Ellcey <sje@cup.hp.com>
8094 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8095 if section attribute used.
8097 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8099 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8100 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8101 (darwin_init_sections): Remove assertion.
8103 2011-02-03 Nick Clifton <nickc@redhat.com>
8105 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8107 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8108 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8109 instead of "n" and "pz".
8110 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8113 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8116 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8117 fma, expand FMA_EXPR as fma{,f,l} call.
8120 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8121 copy them into a unsigned char variable and pass address of it to
8122 lto_output_data_stream.
8125 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8126 around backend_init_target and lang_dependent_init_target calls.
8127 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8128 (verify_cgraph_node): Don't call set_cfun here. Use
8129 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8130 Set error_found for incorrectly represented calls to thunks.
8132 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8135 PR rtl-optimization/43494
8136 * rtl.h (for_each_inc_dec_fn): New type.
8137 (for_each_inc_dec): Declare.
8138 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8139 (for_each_inc_dec_find_inc_dec): New fn.
8140 (for_each_inc_dec_find_mem): New fn.
8141 (for_each_inc_dec): New fn.
8142 * dse.c (struct insn_size): Remove.
8143 (replace_inc_dec, replace_inc_dec_mem): Remove.
8144 (emit_inc_dec_insn_before): New fn.
8145 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8146 (canon_address): Pass mem modes to cselib_lookup.
8147 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8148 (cselib_lookup_from_insn): Likewise.
8149 (cselib_subst_to_values): Likewise.
8150 * cselib.c (find_slot_memmode): New var.
8151 (cselib_find_slot): New fn. Use it instead of
8152 htab_find_slot_with_hash everywhere.
8153 (entry_and_rtx_equal_p): Use find_slot_memmode.
8154 (autoinc_split): New fn.
8155 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8156 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8157 Deal with autoinc. Special-case recursion into MEMs.
8158 (cselib_hash_rtx): Likewise.
8159 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8160 address and MEM modes.
8161 (cselib_subst_to_values): Add memmode, pass it on.
8163 (cselib_lookup): Add memmode argument, pass it on.
8164 (cselib_lookup_from_insn): Add memmode.
8165 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8166 (struct cselib_record_autoinc_data): New.
8167 (cselib_record_autoinc_cb): New fn.
8168 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8169 mode to cselib_lookup. Reset autoinced REGs here instead of...
8170 (cselib_process_insn): ... here.
8171 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8173 (add_uses): Likewise, also to cselib_subst_to_values.
8174 (add_stores): Likewise.
8175 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8176 cselib_subst_to_values.
8177 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8178 * gcse.c (do_local_cprop): Adjusted.
8179 * postreload.c (reload_cse_simplify_set): Adjusted.
8180 (reload_cse_simplify_operands): Adjusted.
8181 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8183 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8185 PR tree-optimization/45122
8186 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8187 unsafe assumptions when there's more than one loop exit.
8189 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8192 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8193 Document using vector double with the load/store builtins, and
8194 that the load/store builtins always use Altivec instructions.
8196 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8197 to use altivec memory instructions, even on VSX.
8198 (vector_altivec_store_<mode>): Ditto.
8200 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8203 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8204 V2DF, V2DI support to load/store overloaded builtins.
8206 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8207 altivec load/store builtins for V2DF/V2DI types.
8209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8210 set avoid indexed addresses on power6 if -maltivec.
8211 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8212 vector_altivec_load/vector_altivec_store builtins.
8213 (altivec_expand_st_builtin): Ditto.
8214 (altivec_expand_builtin): Add VSX memory builtins.
8215 (rs6000_init_builtins): Add V2DI types to internal types.
8216 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8217 load/store builtins.
8218 (rs6000_address_for_altivec): Insure memory address is appropriate
8221 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8222 vec_vsx_ld and vec_vsx_st.
8223 (vsx_store_<mode>): Ditto.
8225 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8226 variables to hold long long types for VSX vector memory builtins.
8227 (RS6000_BTI_unsigned_long_long): Ditto.
8228 (long_long_integer_type_internal_node): Ditti.
8229 (long_long_unsigned_type_internal_node): Ditti.
8231 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8232 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8233 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8235 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8237 (vec_vsx_st): Ditto.
8239 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8241 * config/pa/pa-hpux10.opt: New.
8242 * config/hpux11.opt (pthread): New Driver option.
8243 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8244 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8246 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8248 * config/ia64/vms.opt: New.
8249 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8251 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8254 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8255 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8256 generator functions.
8257 (vsx_floatuns<VSi><mode>2): Ditto.
8258 (vsx_fix_trunc<mode><VSi>2): Ditto.
8259 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8261 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8263 * config/i386/djgpp.opt (posix): New Driver option.
8265 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8267 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8268 Move to the unsupported targets list.
8270 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8272 PR rtl-optimization/47525
8273 * df-scan.c: Update copyright years.
8274 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8275 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8277 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8279 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8280 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8281 (ASM_OUTPUT_ASCII): Remove.
8282 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8284 2011-02-02 Jeff Law <law@redhat.com>
8287 * reload.c (find_reloads_address): Handle reg+d address where both
8288 components are invalid by reloading the entire address.
8290 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8291 Richard Guenther <rguenther@suse.de>
8293 PR tree-optimization/40979
8295 * passes.c (init_optimization_passes): After LIM call copy_prop
8296 and DCE to clean up.
8297 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8299 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8301 PR tree-optimization/47576
8302 PR tree-optimization/47555
8303 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8304 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8305 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8306 * tree-scalar-evolution.c (follow_ssa_edge): Use
8307 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8309 2011-02-02 Richard Guenther <rguenther@suse.de>
8311 PR tree-optimization/47566
8312 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8314 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8318 * tree-inline.c (declare_return_variable): Remove unused caller
8323 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8324 * cfgexpand.c (account_used_vars_for_block): Use them.
8325 * tree-nrv.c (tree_nrv): Likewise.
8326 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8327 (dump_scope_block): Likewise.
8328 (remove_unused_locals): Likewise.
8332 * tree-inline.c (declare_return_variable): Add result decl to
8333 local decls only once.
8334 * gimple-low.c (record_vars_into): Mark newly-created variables
8337 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8343 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8345 (no_real_insns_p, schedule_block, set_priorities): Drop special
8346 treatment of boundary debug insns.
8347 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8348 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8349 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8350 (BOUNDARY_DEBUG_INSN_P): Likewise.
8351 (SCHEDULE_DEBUG_INSN_P): Likewise.
8352 * sched-rgn.c (init_ready_list): Drop special treatment of
8353 boundary debug insns.
8354 * final.c (rest_of_clean_state): Clear notes' BB.
8356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8358 * config/openbsd.opt (assert=): New Driver option.
8360 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8362 * config/i386/nto.opt: New.
8363 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8365 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8367 * config/i386/netware.opt: New.
8368 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8370 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8372 * config/interix.opt (posix): New Driver option.
8374 2011-02-01 DJ Delorie <dj@redhat.com>
8376 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8378 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8381 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8383 PR tree-optimization/47561
8384 * toplev.c (process_options): Print the Graphite flags. Add
8385 flag_loop_flatten to the list of options requiring Graphite.
8387 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8389 * config/i386/cygming.opt (posix): New Driver option.
8391 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8393 * config/arm/vxworks.opt: New.
8394 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8396 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8398 * config/alpha/elf.opt: New.
8399 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8400 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8402 2011-02-01 Richard Guenther <rguenther@suse.de>
8404 PR tree-optimization/47559
8405 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8406 store-motion on references that can throw.
8408 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8410 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8411 * tree-pass.h (TDF_CSELIB): New macro.
8412 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8413 cselib_lookup): Check for it rather than for TDF_DETAILS.
8415 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8418 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8421 * opts.c (finish_options): Don't add x_aux_base_name if it is
8424 2011-02-01 Richard Guenther <rguenther@suse.de>
8426 PR tree-optimization/47555
8428 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8430 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8432 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8435 * config/lm32/t-lm32: Add multilib for all CPU options.
8437 2011-02-01 Richard Guenther <rguenther@suse.de>
8439 PR tree-optimization/47541
8440 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8441 sure to have a field at offset zero.
8443 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8445 * config/arc/arc.opt (EB, EL): New Driver options.
8447 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8449 * config/alpha/osf5.opt: New.
8450 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8452 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8454 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8456 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8458 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8460 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8461 is an alias of -floop-interchange and that it requires the
8462 Graphite infrastructure.
8463 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8464 flag_loop_interchange based on the value of flag_tree_loop_linear.
8466 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8467 Richard Guenther <rguenther@suse.de>
8469 PR tree-optimization/47538
8470 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8471 type instead of r1type, except for comparisons. For right
8472 shifts and comparisons punt if there are mismatches in
8473 sizetype vs. non-sizetype types.
8475 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8477 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8480 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8482 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8484 * configure: Regenerate.
8486 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8488 * configure.ac (gcc_cv_ld_static_option): Define.
8489 (gcc_cv_ld_dynamic_option): Define.
8490 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8492 (HAVE_LD_STATIC_DYNAMIC): Update message.
8493 (LD_STATIC_OPTION): Define.
8494 (LD_DYNAMIC_OPTION): Define.
8495 * configure: Regenerate.
8496 * config.in: Regenerate.
8497 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8498 HAVE_LD_STATIC_DYNAMIC]: Use them.
8500 2011-01-31 Nick Clifton <nickc@redhat.com>
8502 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8503 registers inside interrupt handlers if the handler is not a leaf
8506 2011-01-31 Nick Clifton <nickc@redhat.com>
8508 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8509 reg_renumber returning an INVALID_REGNUM.
8511 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8514 * doc/install.texi: Document host options discarded when cross
8515 configuring target libraries.
8517 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8520 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8523 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8525 (no_real_insns_p, schedule_block, set_priorities): Drop special
8526 treatment of boundary debug insns.
8527 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8528 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8529 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8530 (BOUNDARY_DEBUG_INSN_P): Likewise.
8531 (SCHEDULE_DEBUG_INSN_P): Likewise.
8532 * sched-rgn.c (init_ready_list): Drop special treatment of
8533 boundary debug insns.
8534 * final.c (rest_of_clean-state): Clear notes' BB.
8536 2011-01-31 Alan Modra <amodra@gmail.com>
8538 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8539 toc relative expressions as we do in print_operand_address.
8541 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8543 * doc/extend.texi: Follow spelling conventions.
8544 * doc/invoke.texi: Fix a typo.
8546 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8548 * config/hpux11.opt: New.
8549 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8550 ia64*-*-hpux*): Use hpux11.opt.
8552 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8554 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8557 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8559 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8562 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8564 * doc/install.texi (Binaries): Remove outdated reference for
8565 Motorola 68HC11/68HC12 downloads.
8567 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8569 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8572 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8575 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8578 2011-01-28 Ahmad Sharif <asharif@google.com>
8580 * value-prof.c (check_counter): Corrected error message.
8582 2011-01-29 Jie Zhang <jie@codesourcery.com>
8584 * config/arm/arm.c (arm_legitimize_reload_address): New.
8585 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8586 arm_legitimize_reload_address.
8587 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8589 2011-01-28 Ian Lance Taylor <iant@google.com>
8591 * godump.c (go_define): Ignore macros whose definitions include
8592 two adjacent operands.
8594 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8597 * varasm.c (force_const_mem): Store copy of x in desc->constant
8598 instead of x itself.
8599 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8600 itself into REG_EQUAL note.
8602 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8604 * config/freebsd.opt (posix, rdynamic): New Driver options.
8606 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8608 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8610 * configure: Regenerate.
8612 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8614 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8615 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8617 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8619 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8620 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8621 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8622 (s390_preferred_reload_class): Make static. Change return and
8623 'rclass' argument type to reg_class_t.
8625 2011-01-27 Jan Hubicka <jh@suse.cz>
8628 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8629 (process_function_and_variable_attributes): Check defined weakrefs.
8631 2011-01-27 Martin Jambor <mjambor@suse.cz>
8633 PR tree-optimization/47228
8634 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8635 build_ref_for_offset.
8637 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8639 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8641 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8643 PR rtl-optimization/46856
8644 * postreload.c (reload_combine_recognize_const_pattern): Do not
8645 separate cc0 setter and user on cc0 targets.
8647 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8650 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8651 passed a VOID_TYPE expression, immediately emit an error and
8652 return error_mark_node.
8654 2011-01-26 Jeff Law <law@redhat.com>
8656 PR rtl-optimization/47464
8657 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8658 rather than may_trap_p as needed.
8660 2011-01-26 DJ Delorie <dj@redhat.com>
8662 PR rtl-optimization/46878
8663 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8664 setter/user dependency as well.
8666 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8668 PR rtl-optimization/44469
8669 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8670 after removing trivially dead basic blocks.
8672 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8674 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8675 * config/frv/frv.h (LINK_SPEC): Likewise.
8676 * config/i386/netware.h (LINK_SPEC): Likewise.
8677 * config/m68k/linux.h (ASM_SPEC): Likewise.
8678 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8679 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8680 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8681 * config/sparc/linux.h (ASM_SPEC): Likewise.
8682 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8683 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8685 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8687 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8688 * config/frv/frv.h (ASM_SPEC): Likewise.
8689 * config/m68k/linux.h (ASM_SPEC): Likewise.
8690 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8691 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8692 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8693 * config/sparc/linux.h (ASM_SPEC): Likewise.
8694 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8695 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8697 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8699 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8700 * config/frv/frv.h (LINK_SPEC): Likewise.
8701 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8703 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8705 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8706 * config/frv/frv.h (ASM_SPEC): Likewise.
8707 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8708 * config/m68k/linux.h (ASM_SPEC): Likewise.
8709 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8710 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8711 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8712 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8713 * config/sparc/linux.h (ASM_SPEC): Likewise.
8714 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8715 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8716 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8718 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8721 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8723 (vec_extract_evenodd_help): Ditto.
8724 (vec_extract_evenv4hi): Ditto.
8725 (vec_extract_oddv4hi): Ditto.
8726 (vec_interleave_lowv2si): Ditto.
8727 (vec_interleave_highv2si): Ditto.
8728 (vec_extract_evenv2si): Ditto.
8729 (vec_extract_oddv2si: Ditto.
8730 (vec_pack_trunc_v2si): Ditto.
8732 2011-01-22 Jan Hubicka <jh@suse.cz>
8735 * cgraph.h (cgraph_local_info): New field can_change_signature.
8736 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8737 signature can change.
8738 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8740 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8741 (cgraph_function_versioning): We can not change signature of functions
8742 that don't allow that.
8743 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8744 (lto_input_node): Likewise.
8745 * ipa-inline.c (compute_inline_parameters): Compute
8746 local.can_change_signature.
8747 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8748 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8749 functions that can not change signature.
8750 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8751 init_cumulative_args): Do not use local calling conventions
8752 for functions that can not change signature.
8754 2011-01-22 Jan Hubicka <jh@suse.cz>
8756 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8758 2011-01-26 Richard Guenther <rguenther@suse.de>
8760 PR tree-optimization/47190
8761 * cgraphunit.c (process_common_attributes): New function.
8762 (process_function_and_variable_attributes): Use it.
8764 2011-01-26 Richard Guenther <rguenther@suse.de>
8767 * cgraphbuild.c (record_eh_tables): Record reference to personality
8770 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
8773 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8774 non-debug insns from moving up.
8776 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8779 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8780 t-dlldir{,-x} fragment for build and add it to tmake_file.
8781 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8782 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8783 * config/i386/t-dlldir: New file.
8784 (SHLIB_DLLDIR): Define.
8785 * config/i386/t-dlldir-x: New file.
8786 (SHLIB_DLLDIR): Define.
8787 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8788 (SHLIB_INSTALL): Use it.
8790 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8793 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8794 lower bound of the allowed Thumb-2 coprocessor load/store
8795 index range to -256. Add explaining comment.
8797 2011-01-25 Ian Lance Taylor <iant@google.com>
8799 * godump.c (go_define): Improve lexing of macro expansion to only
8800 accept expressions which match Go spec.
8802 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8805 * tree.c (handle_dll_attribute): Handle it.
8806 * doc/extend.texi (@item dllexport): Mention it.
8807 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8809 2011-01-25 Ian Lance Taylor <iant@google.com>
8811 PR tree-optimization/26854
8812 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8813 (decl_jump_unsafe): Move higher in file, with no other change.
8814 (bind): Set has_jump_unsafe_decl if appropriate.
8815 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8816 (check_earlier_gotos): Likewise.
8817 (c_check_switch_jump_warnings): Likewise.
8819 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8821 * doc/invoke.texi (Warning Options): Add missing hyphen.
8822 (-fprofile-dir): Minor grammatical fixes.
8823 (-fbranch-probabilities): Likewise.
8825 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8829 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8831 (no_real_insns_p, schedule_block, set_priorities): Drop special
8832 treatment of boundary debug insns.
8833 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8834 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8835 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8836 (BOUNDARY_DEBUG_INSN_P): Likewise.
8837 (SCHEDULE_DEBUG_INSN_P): Likewise.
8838 * sched-rgn.c (init_ready_list): Drop special treatment of
8839 boundary debug insns.
8840 * final.c (rest_of_clean-state): Clear notes' BB.
8842 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8844 * Makefile.in (LAMBDA_H): Removed.
8845 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8846 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8847 lambda-trans.o, and tree-loop-linear.o.
8848 (lto-symtab.o): Remove dependence on LAMBDA_H.
8849 (tree-loop-linear.o): Remove rule.
8850 (lambda-mat.o): Same.
8851 (lambda-trans.o): Same.
8852 (lambda-code.o): Same.
8853 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8854 (tree-vect-slp.o): Same.
8855 * hwint.h (gcd): Moved here.
8856 (least_common_multiple): Same.
8857 * lambda-code.c: Removed.
8858 * lambda-mat.c: Removed.
8859 * lambda-trans.c: Removed.
8860 * lambda.h: Removed.
8861 * tree-loop-linear.c: Removed.
8862 * lto-symtab.c: Do not include lambda.h.
8863 * omega.c (gcd): Removed.
8864 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8865 * tree-data-ref.c (print_lambda_vector): Moved here.
8866 (lambda_vector_copy): Same.
8867 (lambda_matrix_copy): Same.
8868 (lambda_matrix_id): Same.
8869 (lambda_vector_first_nz): Same.
8870 (lambda_matrix_row_add): Same.
8871 (lambda_matrix_row_exchange): Same.
8872 (lambda_vector_mult_const): Same.
8873 (lambda_vector_negate): Same.
8874 (lambda_matrix_row_negate): Same.
8875 (lambda_vector_equal): Same.
8876 (lambda_matrix_right_hermite): Same.
8877 * tree-data-ref.h: Do not include lambda.h.
8878 (lambda_vector): Moved here.
8879 (lambda_matrix): Same.
8880 (dependence_level): Same.
8881 (lambda_transform_legal_p): Removed declaration.
8882 (lambda_collect_parameters): Same.
8883 (lambda_compute_access_matrices): Same.
8884 (lambda_vector_gcd): Same.
8885 (lambda_vector_new): Same.
8886 (lambda_vector_clear): Same.
8887 (lambda_vector_lexico_pos): Same.
8888 (lambda_vector_zerop): Same.
8889 (lambda_matrix_new): Same.
8890 * tree-flow.h (least_common_multiple): Removed declaration.
8891 * tree-parloops.c (lambda_trans_matrix): Moved here.
8893 (LTM_ROWSIZE): Same.
8894 (LTM_COLSIZE): Same.
8895 (LTM_DENOMINATOR): Same.
8896 (lambda_trans_matrix_new): Same.
8897 (lambda_matrix_vector_mult): Same.
8898 (lambda_transform_legal_p): Same.
8899 * tree-pass.h (pass_linear_transform): Removed declaration.
8900 * tree-ssa-loop.c (tree_linear_transform): Removed.
8901 (gate_tree_linear_transform): Removed.
8902 (pass_linear_transform): Removed.
8903 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8904 flag_loop_interchange.
8906 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8908 PR tree-optimization/47265
8909 PR tree-optimization/47443
8910 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8911 if name still has some uses.
8913 2011-01-25 Martin Jambor <mjambor@suse.cz>
8915 PR tree-optimization/47382
8916 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8917 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8919 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8921 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8922 sjlj_except_unwind_info.
8924 2011-01-25 Richard Guenther <rguenther@suse.de>
8926 PR tree-optimization/47426
8927 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8928 visible functions results escape.
8930 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8933 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8934 (arm_get_frame_offsets): Use it.
8936 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8937 Jakub Jelinek <jakub@redhat.com>
8939 PR tree-optimization/47271
8940 * tree-if-conv.c (bb_postdominates_preds): New.
8941 (if_convertible_bb_p): Call bb_postdominates_preds.
8942 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8943 (predicate_scalar_phi): Call bb_postdominates_preds.
8945 2011-01-25 Nick Clifton <nickc@redhat.com>
8947 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8948 * config/rx/rx.c (rx_function_value): Likewise.
8949 (rx_promote_function_mode): Likewise.
8950 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8951 in order to make it legitimate.
8952 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8953 make sure that the first operand is the same as the result register.
8954 (addsi3_unspec): Delete.
8955 (subdi3): Do not accept immediate operands.
8956 (subdi3_internal): Likewise.
8958 2011-01-25 Jeff Law <law@redhat.com>
8960 PR rtl-optimization/37273
8961 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8962 handle them like argument loads from stack slots. Do not double
8963 count memory for memory constants and argument loads from stack slots.
8965 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8967 PR tree-optimization/47427
8968 PR tree-optimization/47428
8969 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8970 coalesce if the new root var would be TREE_READONLY.
8972 2011-01-25 Richard Guenther <rguenther@suse.de>
8975 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8976 correct type for TBAA.
8978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8980 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8981 (close_phi_written_to_memory): Call for_each_index with
8982 dr_indices_valid_in_loop.
8984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8986 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8987 when it is initialized.
8989 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8991 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8992 call to graphite_find_data_references_in_stmt.
8993 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8994 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8995 call to graphite_find_data_references_in_stmt.
8996 (analyze_drs_in_stmts): Same.
8997 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8998 in which the scalar analysis of indices is performed.
8999 (create_data_ref): Same. Update call to dr_analyze_indices.
9000 (find_data_references_in_stmt): Update call to create_data_ref.
9001 (graphite_find_data_references_in_stmt): Same.
9002 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9004 (create_data_ref): Same.
9005 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9006 call to create_data_ref.
9008 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9010 * graphite-sese-to-poly.c (build_poly_scop): Move
9011 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9015 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9016 VAR_DECL, PARM_DECL, and RESULT_DECL.
9018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9020 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9022 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9023 that have already been marked as PBB_IS_REDUCTION.
9025 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9027 * graphite-scop-detection.c (same_close_phi_node): New.
9028 (remove_duplicate_close_phi): New.
9029 (make_close_phi_nodes_unique): New.
9030 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9034 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9035 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9036 of both data references to be the same.
9038 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9040 * graphite-dependences.c (build_lexicographical_constraint): Remove
9042 (build_lexicographical_constraint): Adjust call to
9043 ppl_powerset_is_empty.
9044 (dependence_polyhedron): Same.
9045 (graphite_legal_transform_dr): Same.
9046 (graphite_carried_dependence_level_k): Same.
9047 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9049 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9051 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9053 * graphite-sese-to-poly.c
9054 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9055 (close_phi_written_to_memory): New.
9056 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9061 * doc/install.texi: Update the expected version number of PPL to 0.11.
9062 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9063 #if PPL_VERSION_MINOR < 11.
9065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9067 * graphite-dependences.c: Include graphite-cloog-util.h.
9068 (new_poly_ddr): Inlined into dependence_polyhedron.
9069 (free_poly_ddr): Moved close by new_poly_ddr.
9070 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9071 Early return NULL when ppl_powerset_is_empty returns true.
9072 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9073 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9074 (graphite_legal_transform_dr): Call new_poly_ddr.
9075 (graphite_carried_dependence_level_k): Same.
9076 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9077 (dot_transformed_deps_stmt_1): Removed.
9078 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9079 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9080 (dot_deps_1): Call dot_deps_2.
9081 * Makefile.in (graphite-dependences.o): Add missing dependence on
9082 graphite-cloog-util.h.
9084 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9086 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9087 (build_lexicographical_constraint): Same.
9088 (dependence_polyhedron_1): Same.
9089 (graphite_legal_transform_dr): Same.
9090 (graphite_carried_dependence_level_k): Same.
9091 * graphite-ppl.c (ppl_powerset_is_empty): New.
9092 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9093 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9097 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9098 the "a followed by b" relation and document it.
9100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9102 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9103 iteration when the bag of constraints is empty.
9105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9107 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9109 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9111 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9112 nest and two loop depths as parameters.
9113 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9114 lst_perfect_nestify.
9116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9118 * graphite-dependences.c (print_pddr): Call
9119 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9121 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9123 * graphite-ppl.c (debug_gmp_value): New.
9124 * graphite-ppl.h (debug_gmp_value): Declared.
9126 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9128 * doc/install.texi: Document availability of cloog-0.16.
9130 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9132 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9133 invalid postdominance info.
9135 2011-01-24 Jan Hubicka <jh@suse.cz>
9138 * doc/extend.texi (weak pragma): Drop claim that it must
9139 appear before definition.
9140 * varasm.c (merge_weak, declare_weak): Only sanity check
9141 that DECL is not output at a time it is declared weak.
9143 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9145 * machmode.def: Fixed comments.
9147 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9149 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9151 2011-01-24 Paul Koning <ni1d@arrl.net>
9153 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9156 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9159 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9160 (block_info): Add scanned and prev.
9161 (move_or_delete_vzeroupper_2): Return if the basic block
9162 has been scanned and the upper 128bit state is unchanged
9164 (move_or_delete_vzeroupper_1): Return true if the exit
9166 (move_or_delete_vzeroupper): Visit basic blocks using the
9167 work-list based algorithm based on vt_find_locations in
9170 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9172 2011-01-24 Nick Clifton <nickc@redhat.com>
9174 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9175 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9176 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9177 then define __v850e1__.
9178 * doc/invoke.texi: Document -mv850es.
9180 2011-01-24 Richard Henderson <rth@redhat.com>
9182 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9183 compound unordered comparisons.
9184 * config/rx/rx.c (rx_split_fp_compare): Remove.
9185 * config/rx/rx-protos.h: Update.
9186 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9187 (cbranchsf4): Don't call rx_split_fp_compare.
9188 (*cbranchsf4): Use rx_split_cbranch.
9189 (*cmpsf): Don't accept "i" constraint.
9190 (*conditional_branch): Only valid after reload.
9191 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9193 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9196 * config/rs6000/altivec.md (vector constant splitters): Add
9197 support for creating vector single precision constants if -mvsx is
9198 used and we would create the constant using Altivec primitives.
9200 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9201 Richard Sandiford <rdsandiford@googlemail.com>
9203 PR rtl-optimization/47166
9204 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9205 mechanism for PRE_MODIFY and POST_MODIFY.
9206 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9209 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9211 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9213 2011-01-22 Jan Hubicka <jh@suse.cz>
9216 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9218 2011-01-22 Jan Hubicka <jh@suse.cz>
9220 PR tree-optimization/43884
9222 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9223 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9225 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9227 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9228 * config/s390/s390.c (s390_register_move_cost,
9229 s390_memory_move_cost): New.
9230 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9232 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9235 * except.c (sjlj_assign_call_site_values): Move setting the
9236 crtl->uses_eh_lsda flag to ...
9237 (sjlj_mark_call_sites): ... here.
9238 (sjlj_emit_function_enter): Support NULL dispatch label.
9239 (sjlj_build_landing_pads): In a function with no landing pads
9240 that still has must-not-throw regions, generate code to register
9241 a personality function with empty LSDA.
9243 2011-01-21 Richard Henderson <rth@redhat.com>
9245 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9247 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9249 * compare-elim.c: New file.
9250 * Makefile.in (OBJS-common): Add it.
9251 (compare-elim.o): New.
9252 * common.opt (fcompare-elim): New.
9253 * opts.c (default_options_table): Add OPT_fcompare_elim.
9254 * tree-pass.h (pass_compare_elim_after_reload): New.
9255 * passes.c (init_optimization_passes): Add it.
9256 * recog.h: Protect against re-inclusion.
9257 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9258 * doc/invoke.texi (-fcompare-elim): Document it.
9259 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9260 * doc/tm.texi: Rebuild.
9262 2011-01-22 Nick Clifton <nickc@redhat.com>
9264 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9265 rx_split_fp_compare.
9267 2011-01-22 Nick Clifton <nickc@redhat.com>
9269 * config/rx/rx.md (UNSPEC_CONST): New.
9270 (deallocate_and_return): Wrap the amount popped off the stack in
9271 an UNSPEC_CONST in order to stop it being rejected by
9272 -mmax-constant-size.
9273 (pop_and_return): Add a "(return)" rtx.
9274 (call): Drop the immediate operand.
9275 (call_internal): Likewise.
9276 (call_value): Likewise.
9277 (call_value_internal): Likewise.
9278 (sibcall_internal): Likewise.
9279 (sibcall_value_internal): Likewise.
9280 (sibcall): Likewise. Generate an explicit call using
9282 (sibcall_value): Likewise.
9283 (mov<>): FAIL if a constant operand is not legitimate.
9284 (addsi3_unpsec): New pattern.
9286 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9287 (ok_for_max_constant): New function.
9288 (gen_safe_add): New function.
9289 (rx_expand_prologue): Use gen_safe_add.
9290 (rx_expand_epilogue): Likewise.
9291 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9294 2011-01-21 Jeff Law <law@redhat.com>
9296 PR tree-optimization/47053
9297 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9298 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9299 statements are deleted.
9300 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9301 is nonempty, then purge dead edges and cleanup the CFG.
9303 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9307 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9309 * tree-dfa.c (create_var_ann): Mark variable as used.
9311 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9314 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9315 notes from other section in hot/cold partitioning even if
9316 last_action is -3. Increment call_site_base.
9318 PR rtl-optimization/47366
9319 * fwprop.c (forward_propagate_into): Return bool. If
9320 any changes are made, -fnon-call-exceptions is used and
9321 REG_EH_REGION note is present, call purge_dead_edges
9322 and return true if it purged anything.
9323 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9324 any EH edges were purged.
9326 2011-01-21 Jeff Law <law@redhat.com>
9328 PR rtl-optimization/41619
9329 * caller-save.c (setup_save_areas): Break out code to determine
9330 which hard regs are live across calls by examining the reload chains
9331 so that it is always used.
9332 Eliminate code which checked REG_N_CALLS_CROSSED.
9334 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9336 PR tree-optimization/47355
9337 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9338 NOP has non-debug uses beyond PHIs in new_bb.
9340 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9343 * cfgexpand.c (account_used_vars_for_block): Only account vars
9344 that are annotated as used.
9345 (estimated_stack_frame_size): Don't set TREE_USED.
9346 * tree-dfa.c (create_var_ann): Mark variable as used.
9348 2011-01-21 Richard Guenther <rguenther@suse.de>
9351 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9353 2011-01-21 Richard Guenther <rguenther@suse.de>
9355 PR tree-optimization/47365
9356 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9357 (vn_reference_lookup_pieces): Adjust.
9358 (vn_reference_lookup): Likewise.
9359 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9360 (vn_reference_lookup_3): Only look through kills if in
9361 VN_WALKREWRITE mode.
9362 (vn_reference_lookup_pieces): Adjust.
9363 (vn_reference_lookup): Likewise.
9364 (visit_reference_op_load): Likewise.
9365 (visit_reference_op_store): Likewise.
9366 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9367 (compute_avail): Likewise.
9368 (eliminate): Likewise.
9370 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9372 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9373 DECL_IGNORED_P non-reg vars if they are used.
9375 PR tree-optimization/47391
9376 * varpool.c (const_value_known_p): Return false if
9379 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9382 * config/i386/i386.c (ix86_local_alignment): Handle
9383 case for va_list_type_node is nil.
9384 (ix86_canonical_va_list_type): Likewise.
9386 2011-01-21 Alan Modra <amodra@gmail.com>
9388 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9389 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9391 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9393 * config/arm/arm.md (define_attr type): Rename f_load
9394 and f_store to f_fpa_load and f_fpa_store. Update.
9395 (write_conflict): Deal with rename fallout.
9396 (*push_fp_multi): Likewise.
9397 * config/arm/fpa.md (f_load): Use f_fpa_load.
9398 (f_store): Use f_fpa_store.
9399 (*movsf_fpa): Likewise.
9400 (*movdf_fpa): Likewise.
9401 (*movxf_fpa): Likewise.
9402 (*thumb2_movsf_fpa): Likewise.
9403 (*thumb2_movdf_fpa): Likewise.
9404 (*thumb2_movxf_fpa): Likewise.
9405 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9406 f_loadd and f_stored.
9407 (*thumb2_movdi_vfp): Likewise.
9408 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9409 (*thumb2_movsi_vfp): Likewise.
9410 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9411 Use f_loads instead of f_load.
9412 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9414 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9416 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9417 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9418 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9419 (xtensa_mode_dependent_address_p): New function.
9420 (constantpool_address_p): Make static. Change return type to bool.
9421 Change argument type to const_rtx. Use CONST_INT_P predicate.
9423 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9426 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9428 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9431 * cfgexpand.c (expand_debug_expr): Instead of generating
9432 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9435 2011-01-20 Richard Guenther <rguenther@suse.de>
9438 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9439 the pointer operand of MEM_REFs.
9441 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9443 PR tree-optimization/46130
9444 * ipa-split.c (consider_split): If return_bb contains non-virtual
9445 PHIs other than for retval or if split_function would not adjust it,
9448 2011-01-20 Richard Guenther <rguenther@suse.de>
9450 PR tree-optimization/47167
9451 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9452 Revert previous change, only avoid enumeral type changes.
9454 2011-01-19 Mike Stump <mikestump@comcast.net>
9456 * doc/tm.texi.in (BRANCH_COST): Englishify.
9457 * doc/tm.texi (BRANCH_COST): Likewise.
9459 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9462 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9463 (gen_scheduled_generic_parms_dies): New functions.
9464 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9465 generation for the end of CU compilation.
9466 (dwarf2out_finish): Generate template parameters DIEs here.
9468 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9471 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9472 debug bind stmt on merge edges.
9474 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9478 * function.c (instantiate_expr): Instantiate incoming rtl of
9479 implicit arguments, and recurse on VALUE_EXPRs.
9480 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9481 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9483 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9485 * c-parser.c (c_parser_for_statement): Initialize
9486 collection_expression.
9488 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9490 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9492 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9494 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9495 (LINK_SHLIB_SPEC): Don't use %(link_path).
9496 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9498 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9500 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9501 (NO_SHARED_LIB_SUPPORT): Remove.
9502 (LINK_SHLIB_SPEC): Remove one conditional definition.
9504 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9506 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9508 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9509 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9510 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9511 %{call_shared} and conditionals on these options not being passed.
9512 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9515 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9517 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9520 * ipa-split.c: Spelling fixes.
9522 2011-01-19 Richard Henderson <rth@redhat.com>
9524 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9525 (*mulsi3): Likewise.
9527 * longlong.h [__mn10300__] (count_leading_zeros): New.
9528 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9529 [__mn10300__] (add_ssaaaa, subddmmss): New.
9530 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9531 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9533 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9535 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9537 2011-01-19 Richard Henderson <rth@redhat.com>
9539 * config/mn10300/mn10300.md (addsi3_flags): New.
9540 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9541 (subsi3_flags, subc_internal, subdi3): New.
9542 (subdi3_internal, *subdi3_degenerate): New.
9543 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9545 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9546 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9547 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9548 * config/mn10300/mn10300-protos.h: Update.
9549 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9550 (return_ret): Likewise. Rename from return_internal_regs.
9551 (return_internal): Remove.
9553 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9554 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9555 (mn10300_legitimate_constant_p): Likewise.
9556 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9557 (mn10300_frame_size): New.
9558 (mn10300_expand_prologue): Use it.
9559 (mn10300_expand_epilogue): Likewise.
9560 (mn10300_initial_offset): Likewise.
9561 * config/mn10300/mn10300-protos.h: Update.
9562 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9563 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9564 (prologue, epilogue, return_internal): Tidy output code.
9565 (mn10300_store_multiple_operation, return): Likewise.
9566 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9567 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9568 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9569 (load_pic, am33_load_pic): New.
9570 (mn10300_load_pic0, mn10300_load_pic1): New.
9572 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9573 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9574 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9575 (cc_flags_for_mode, cc_flags_for_code): New.
9576 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9577 overflow flag is not valid. Validate that the flags we need
9578 for the comparison are valid.
9579 (mn10300_output_cmp): Remove.
9580 (mn10300_output_add): New.
9581 (mn10300_select_cc_mode): Use cc_flags_for_code.
9582 (mn10300_split_cbranch): New.
9583 (mn10300_match_ccmode): New.
9584 (mn10300_split_and_operand_count): New.
9585 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9587 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9588 (addsi3): ... here. Use mn10300_output_add.
9589 (*addsi3_flags): New.
9590 (*am33_subsi3, *mn10300_subsi3): Merge...
9591 (subsi3): ... here. Use attribute isa.
9592 (*subsi3_flags): New.
9593 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9595 (*am33_andsi3, *mn10300_andsi3): Merge...
9597 (*andsi3_flags): New.
9598 (andsi3 splitters): New.
9599 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9601 (*iorsi3_flags): New.
9602 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9604 (*xorsi3_flags): New.
9605 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9606 (one_cmplsi2): ... here.
9607 (*one_cmplsi2_flags): New.
9608 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9609 instead of "dax" in constraints. Use mn10300_split_cbranch.
9610 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9611 use matching constraints to eliminate a self-comparison.
9612 (*integer_conditional_branch): Rename from integer_conditional_branch.
9613 Use int_mode_flags to match CC_REG.
9614 (*cbranchsi4_btst, *btstsi): New.
9615 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9616 mn10300_split_cbranch.
9617 (*am33_cmpsf): Rename from am33_cmpsf.
9618 (*float_conditional_branch): Rename from float_conditional_branch.
9619 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9620 (zero_extendqisi2): ... here.
9621 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9622 (zero_extendhisi2): ... here.
9623 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9624 (extendqisi2): ... here.
9625 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9626 (extendhisi2): ... here.
9627 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9628 (ashlsi3): ... here.
9629 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9630 (lshrsi3): ... here.
9631 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9632 (ashrsi3): ... here.
9633 (consecutive add peephole): Remove.
9634 * config/mn10300/predicates.md (label_ref_operand): New.
9635 (int_mode_flags): New.
9636 (CCZN_comparison_operator): New.
9638 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9639 (throughput_42_latency_43): New reservation.
9640 (mulsidi3, umulsidi3): New expanders.
9641 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9642 the MDR register to allocation; separately allocate the low and
9643 high parts of the DImode result.
9644 (umulsidi3_internal): Similarly.
9645 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9646 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9647 (udivsi3, umodsi3): Remove.
9648 (udivmodsi4, divmodsi4): New expanders.
9649 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9650 (*divmodsi4): Simiarly.
9651 (ext_internal): New.
9653 * config/mn10300/constraints.md ("z"): New constraint.
9654 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9655 (FIXED_REGISTERS): Don't fix MDR.
9656 (CALL_USED_REGSITERS): Reformat nicely.
9657 (REG_ALLOC_ORDER): Add MDR.
9658 (enum regclass): Add MDR_REGS.
9659 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9660 (IRA_COVER_CLASSES): Add MDR_REGS.
9661 (REGNO_REG_CLASS): Handle MDR_REG.
9662 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9663 (mn10300_register_move_cost): Likewise.
9664 * config/mn10300/mn10300.md (MDR_REG): New.
9665 (*movsi_internal): Handle moves to/from MDR_REGS.
9667 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9669 (mn10300_secondary_reload): Tidy combination reload classes.
9670 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9671 addresses for AM33. Allow symbolic offsets for reg+imm.
9672 (mn10300_regno_in_class_p): New.
9673 (mn10300_legitimize_reload_address): New.
9674 * config/mn10300/mn10300.h (enum reg_class): Remove
9675 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9676 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9678 (REG_CLASS_NAMES): Update to match.
9679 (REG_CLASS_CONTENTS): Likewise.
9680 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9681 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9682 (REGNO_IN_RANGE_P): Remove.
9683 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9684 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9685 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9686 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9687 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9688 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9689 (REGNO_GENERAL_P): New.
9690 (HAVE_POST_MODIFY_DISP): New.
9691 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9692 (LEGITIMIZE_RELOAD_ADDRESS): New.
9693 * config/mn10300/mn10300-protos.h: Update.
9695 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9696 DATA_REGS for AM33 stack-pointer destination.
9697 (mn10300_preferred_output_reload_class): Likewise.
9698 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9699 into a form appropriate for ...
9700 (TARGET_SECONDARY_RELOAD): New.
9701 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9702 * config/mn10300/mn10300-protos.h: Update.
9703 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9704 reload_insi; use the "A" constraint for the scratch; handle AM33
9705 moves of sp to non-address registers.
9707 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9708 (*movqi_internal): ... here.
9709 (*am33_movhi, *mn10300_movhi): Merge into...
9710 (*movhi_internal): ... here.
9711 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9712 as the source/destination of moves from/to SP.
9713 (movsf): Only allow for AM33-2.
9714 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9715 any integer constant constraint. Only allow for AM33-2. Tidy
9716 all of the alternative outputs.
9717 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9718 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9720 (udivsi3, umodsi3): New patterns for MN103 only.
9722 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9724 * doc/tm.texi.in: Spell out that a lack of register class unions
9726 * doc/tm.texi: Regenerate.
9728 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9730 PR rtl-optimization/47337
9731 * dce.c (check_argument_store): New function.
9732 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9734 PR tree-optimization/47290
9735 * tree-eh.c (infinite_empty_loop_p): New function.
9736 (cleanup_empty_eh): Use it.
9738 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9741 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9742 (a64_expand_widen_sum): Ditto.
9743 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9744 (vec_extract_evenodd_help): Ditto.
9745 (vec_extract_evenv4hi): Ditto.
9746 (vec_extract_oddv4hi): Ditto.
9747 (vec_extract_evenv2si): Ditto.
9748 (vec_extract_oddv2si): Ditto.
9749 (vec_extract_evenv2sf): Ditto.
9750 (vec_extract_oddv2sf): Ditto.
9751 (vec_pack_trunc_v4hi: Ditto.
9752 (vec_pack_trunc_v2si): Ditto.
9753 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9754 (vec_interleave_highv8qi): Ditto.
9756 (vec_extract_oddv8qi): Ditto.
9757 (vec_interleave_lowv4hi): Ditto.
9758 (vec_interleave_highv4hi): Ditto.
9759 (vec_interleave_lowv2si): Ditto.
9760 (vec_interleave_highv2si): Ditto.
9762 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9764 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9765 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9766 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9767 (pa_c_mode_for_suffix): New.
9768 (TARGET_EXPAND_BUILTIN): Define.
9769 (TARGET_C_MODE_FOR_SUFFIX): Define.
9770 (pa_builtins): Define.
9771 (pa_init_builtins): Register __float128 type and init new support
9773 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9774 * config/pa/quadlib.c (_U_Qfcopysign): New.
9776 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9779 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9780 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9783 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9785 PR tree-optimization/47179
9786 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9787 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9789 2011-01-18 Richard Guenther <rguenther@suse.de>
9791 PR rtl-optimization/47216
9792 * emit-rtl.c: Include tree-flow.h.
9793 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9794 of replicating it with different semantics.
9795 * Makefile.in (emit-rtl.o): Adjust.
9797 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9799 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9800 (cortex_a9_dp): Handle neon types correctly.
9802 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9804 PR rtl-optimization/47299
9805 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9806 subtarget. Use normal multiplication if both operands are constants.
9807 * expmed.c (expand_widening_mult): Don't try to optimize constant
9808 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9811 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9813 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9814 spacing after 'e.g.', typos, comma, hyphenation.
9816 2011-01-17 Richard Henderson <rth@redhat.com>
9818 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9819 (rx_restricted_mem_operand): New.
9820 (rx_shift_operand): Use register_operand.
9821 (rx_source_operand, rx_compare_operand): Likewise.
9822 * config/rx/rx.md (addsi3_flags): New expander.
9823 (adddi3): Rewrite as expander.
9824 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9825 (subsi3_flags): New expander.
9826 (subdi3): Rewrite as expander.
9827 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9829 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9830 (rx_init_builtins): Remove sat builtin.
9831 (rx_expand_builtin): Likewise.
9832 * config/rx/rx.md (ssaddsi3): New.
9833 (*sat): Rename from sat. Represent the CC_REG input.
9835 * config/rx/predicates.md (rshift_operator): New.
9836 * config/rx/rx.c (rx_expand_insv): Remove.
9837 * config/rx/rx-protos.h: Update.
9838 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9839 operand to the canonical position.
9840 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9841 (*bitclr, *bitclr_in_memory): Similarly.
9842 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9843 (insv): Retain the zero_extract in the expansion.
9845 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9846 (bswaphi2, bitinvert, revw): Likewise.
9848 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9849 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9850 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9851 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9852 (bitset, bitset_in_memory): Likewise.
9853 (bitinvert, bitinvert_in_memory): Likewise.
9854 (bitclr, bitclr_in_memory): Likewise.
9855 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9856 (rx_strend, rx_cmpstrn): Likewise.
9857 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9858 (bitop peep2 patterns): Remove.
9860 * config/rx/rx.c (rx_match_ccmode): New.
9861 * config/rx/rx-protos.h: Update.
9862 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9863 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9864 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9865 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9866 (fix_truncsfsi2, floatsisf2): Likewise.
9867 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9868 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9869 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9870 (*subsi3_flags, *xorsi3_flags): New.
9872 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9874 * config/rx/rx.c (rx_print_operand): Remove workaround for
9875 unsplit comparison operations.
9877 * config/rx/rx.md (movsicc): Split after reload.
9878 (*movsicc): Merge *movsieq and *movsine via match_operator.
9879 (*stcc): New pattern.
9881 * config/rx/rx.c (rx_float_compare_mode): Remove.
9882 * config/rx/rx.h (rx_float_compare_mode): Remove.
9883 * config/rx/rx.md (cstoresi4): Split after reload.
9884 (*sccc): New pattern.
9886 * config/rx/predicates.md (label_ref_operand): New.
9887 (rx_z_comparison_operator): New.
9888 (rx_zs_comparison_operator): New.
9889 (rx_fp_comparison_operator): New.
9890 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9891 Validate that the flags are set properly for the comparison.
9892 (rx_gen_cond_branch_template): Remove.
9893 (rx_cc_modes_compatible): Remove.
9894 (mode_from_flags): New.
9895 (flags_from_code): Rename from flags_needed_for_conditional.
9896 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9897 (rx_select_cc_mode): Likewise.
9898 (rx_split_fp_compare): New.
9899 (rx_split_cbranch): New.
9900 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9901 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9902 (*cbranchsf4): Similarly.
9903 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9904 match_operator and rx_split_cbranch.
9905 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9906 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9907 (*cmpsi): Rename from cmpsi.
9908 (*tstsi): Rename from tstsi.
9909 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9910 (*conditional_branch): Rename from conditional_branch.
9911 (*reveresed_conditional_branch): Remove.
9912 (b<code>): Remove expander.
9913 * config/rx/rx-protos.h: Update.
9915 * config/rx/rx.c (rx_compare_redundant): Remove.
9916 * config/rx/rx.md (cmpsi): Don't use it.
9917 * config/rx/rx-protos.h: Update.
9919 * config/rx/rx-modes.def (CC_F): New mode.
9920 * config/rx/rx.c (rx_select_cc_mode): New.
9921 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9922 * config/rx/rx-protos.h: Update.
9924 2011-01-17 Richard Henderson <rth@redhat.com>
9926 * except.c (dump_eh_tree): Fix stray ; after for statement.
9928 2011-01-17 Richard Guenther <rguenther@suse.de>
9930 PR tree-optimization/47313
9931 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9932 handling before copying the body. Properly deal with
9933 by-reference result in SSA form.
9935 2011-01-17 Ian Lance Taylor <iant@google.com>
9938 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9939 (struct_value_alias_set): Don't define.
9940 (sparc_option_override): Don't set sparc_sr_alias_set and
9941 struct_value_alias_set.
9942 (save_or_restore_regs): Use gen_frame_mem rather than calling
9944 (sparc_struct_value_rtx): Likewise.
9946 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9949 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9950 (_mm_maskstore_pd): Likewise.
9951 (_mm_maskload_ps): Likewise.
9952 (_mm_maskstore_ps): Likewise.
9953 (_mm256_maskload_pd): Change mask to __m256i.
9954 (_mm256_maskstore_pd): Likewise.
9955 (_mm256_maskload_ps): Likewise.
9956 (_mm256_maskstore_ps): Likewise.
9958 * config/i386/i386-builtin-types.def: Updated.
9959 (ix86_expand_special_args_builtin): Likewise.
9961 * config/i386/i386.c (bdesc_special_args): Update
9962 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9963 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9964 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9965 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9967 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9968 Use <avxpermvecmode> on mask register.
9969 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9971 2011-01-17 Olivier Hainque <hainque@adacore.com>
9972 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9973 Eric Botcazou <ebotcazou@adacore.com>
9976 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9977 if <= USHRT_MAX in 32-bit mode.
9979 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9981 * doc/install.texi (Configuration, Specific): Wrap long
9982 lines in examples. Allow line wrapping in long options
9983 and URLs where beneficial for PDF output.
9985 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9987 * config/mips/mips.c (mips_classify_symbol): Don't return
9988 SYMBOL_PC_RELATIVE for nonlocal labels.
9990 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9992 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9994 2011-01-15 Jan Hubicka <jh@suse.cz>
9996 PR tree-optimization/47276
9997 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9998 declarations as needed.
10000 2011-01-15 Martin Jambor <mjambor@suse.cz>
10002 * common.opt (fdevirtualize): New flag.
10003 * doc/invoke.texi (Option Summary): Document it.
10004 * opts.c (default_options_table): Add devirtualize flag.
10005 * ipa-prop.c (detect_type_change): Return immediately if
10006 devirtualize flag is not set.
10007 (detect_type_change_ssa): Likewise.
10008 (compute_known_type_jump_func): Likewise.
10009 (ipa_analyze_virtual_call_uses): Likewise.
10011 2011-01-14 Martin Jambor <mjambor@suse.cz>
10013 PR tree-optimization/45934
10014 PR tree-optimization/46302
10015 * ipa-prop.c (type_change_info): New type.
10016 (stmt_may_be_vtbl_ptr_store): New function.
10017 (check_stmt_for_type_change): Likewise.
10018 (detect_type_change): Likewise.
10019 (detect_type_change_ssa): Likewise.
10020 (compute_complex_assign_jump_func): Check for dynamic type change.
10021 (compute_complex_ancestor_jump_func): Likewise.
10022 (compute_known_type_jump_func): Likewise.
10023 (compute_scalar_jump_functions): Likewise.
10024 (ipa_analyze_virtual_call_uses): Likewise.
10025 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10027 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10029 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10030 * config/i386/i386.opt (msse5): New Alias.
10032 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10034 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10035 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10036 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10037 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10039 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10041 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10043 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10044 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10045 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10046 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10048 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10052 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10054 2011-01-14 Mike Stump <mikestump@comcast.net>
10056 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10057 * config/fr30/fr30.md: Likweise
10058 (movsi_push): Likewise.
10059 (movsi_pop): Likewise.
10060 (enter_func): Likewise.
10061 * config/moxie/moxie.md (movsi_push): Likewise.
10062 (movsi_pop): Likewise.
10064 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10066 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10067 %{no_archive} %{exact_version}.
10068 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10069 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10070 %{no_archive} %{exact_version}.
10071 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10072 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10073 * config/mips/vxworks.h: Likewise.
10075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10077 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10079 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10081 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10082 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10084 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10086 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10089 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10091 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10093 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10094 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10096 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10097 Don't handle -shlib.
10099 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10101 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10102 (CC1_SPEC): Don't handle -profile.
10104 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10106 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10107 * config/mips/mips.h (CC1_SPEC): Likewise.
10109 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10111 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10112 * config/mips/mips.h (CC1_SPEC): Likewise.
10114 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10116 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10117 * config/m32r/linux.h (LINK_SPEC): Likewise.
10118 * config/mips/linux.h (LINK_SPEC): Likewise.
10119 * config/mips/linux64.h (LINK_SPEC): Likewise.
10120 * config/sparc/linux.h (LINK_SPEC): Likewise.
10121 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10122 LINK_SPEC): Likewise.
10123 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10125 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10127 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10129 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10133 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10134 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10138 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10140 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10142 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10143 supports -Bstatic/-Bdynamic.
10144 * configure: Regenerate.
10146 2011-01-14 Jan Hubicka <jh@suse.cz>
10147 Jack Howarth <howarth@bromo.med.uc.edu>
10150 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10151 when checking debug_info_level. Test write_symbols instead of
10152 debug_hooks->var_location when setting flag_var_tracking_uninit.
10154 2011-01-14 Richard Guenther <rguenther@suse.de>
10156 PR tree-optimization/47179
10157 * target.def (ref_may_alias_errno): New target hook.
10158 * targhooks.h (default_ref_may_alias_errno): Declare.
10159 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10160 (default_ref_may_alias_errno): New function.
10161 * target.h (struct ao_ref_s): Declare.
10162 * tree-ssa-alias.c: Include target.h.
10163 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10164 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10165 (targhooks.o): Likewise.
10166 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10167 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10169 2011-01-14 Richard Guenther <rguenther@suse.de>
10171 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10173 2011-01-14 Richard Guenther <rguenther@suse.de>
10175 PR tree-optimization/47280
10176 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10177 return CFG changes.
10178 (tree_ssa_forward_propagate_single_use_vars): Deal with
10179 CFG changes from associate_plusminus.
10181 2011-01-14 Richard Guenther <rguenther@suse.de>
10183 PR middle-end/47281
10185 2011-01-11 Richard Guenther <rguenther@suse.de>
10187 PR tree-optimization/46076
10188 * tree-ssa.c (useless_type_conversion_p): Conversions from
10189 unprototyped to empty argument list function types are useless.
10191 2011-01-14 Richard Guenther <rguenther@suse.de>
10193 PR tree-optimization/47286
10194 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10196 2011-01-14 Martin Jambor <mjambor@suse.cz>
10198 PR middle-end/46823
10199 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10201 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10203 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10204 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10205 * config/xtensa/xtensa.c (xtensa_libcall_value,
10206 xtensa_function_value_regno_p): New functions.
10207 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10209 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10212 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10214 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10215 New function prototype.
10216 * config/i386/winnt.c (i386_pe_assemble_visibility):
10217 Warn only if attribute was specified by user.
10219 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10222 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10224 (floatunsdidf2_fcfidu): Ditto.
10226 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10228 * config/s390/s390.c (print_operand_address): Replace 'error' with
10229 'output_operand_lossage'.
10230 (print_operand): Likewise.
10232 2011-01-13 Jeff Law <law@redhat.com>
10234 PR rtl-optimization/39077
10235 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10236 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10237 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10238 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10239 * gcse.c (prune_insertions_deletions): New function.
10240 (compute_pre_data): Use it.
10242 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10245 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10247 (prune_unused_types_mark): Use it.
10249 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10251 PR rtl-optimization/45352
10252 * sel-sched.c: Update copyright years.
10253 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10254 in the advancing loop when we have issued issue_rate insns.
10256 2011-01-12 Richard Henderson <rth@redhat.com>
10258 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10259 (TARGET_MD_ASM_CLOBBERS): New.
10261 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10262 (TARGET_DELEGITIMIZE_ADDRESS): New.
10264 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10265 (clzsi2, *bsch): New patterns.
10267 * config/mn10300/mn10300.md (INT): New mode iterator.
10268 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10270 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10271 flag_split_wide_types.
10273 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10274 (mn10300_trampoline_init): Rewrite without a template, an immediate
10275 load and a direct branch.
10276 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10278 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10280 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10281 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10282 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10283 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10285 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10288 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10291 2011-01-12 Jan Hubicka <jh@suse.cz>
10294 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10295 (PLUGIN_COND_CLOSE): New macro.
10296 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10298 2011-01-12 Richard Guenther <rguenther@suse.de>
10301 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10302 register variables in a MEM_REF.
10304 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10306 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10307 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10308 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10309 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10310 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10311 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10312 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10313 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10314 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10315 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10316 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10317 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10318 * config/gnu-user.h: New. Copied from linux.h.
10319 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10320 GNU_USER_TARGET_STARTFILE_SPEC.
10321 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10322 GNU_USER_TARGET_ENDFILE_SPEC.
10323 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10324 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10325 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10326 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10327 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10328 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10329 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10330 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10331 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10332 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10333 * config/arm/linux-eabi.h (CC1_SPEC): Use
10334 GNU_USER_TARGET_CC1_SPEC.
10335 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10336 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10337 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10338 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10339 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10340 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10341 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10342 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10344 2011-01-12 Richard Guenther <rguenther@suse.de>
10347 * doc/invoke.texi (ffast-math): Document it is turned on
10350 2011-01-12 Jan Hubicka <jh@suse.cz>
10352 PR tree-optimization/47233
10353 * opts.c (common_handle_option): Disable ipa-reference with profile
10356 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10358 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10361 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10363 * c-parser.c (c_lex_one_token): Updated and reindented some
10364 comments. No changes in code.
10366 2011-01-11 Ian Lance Taylor <iant@google.com>
10368 * godump.c (go_output_var): Don't output the variable if there is
10369 already a type with the same name.
10371 2011-01-11 Ian Lance Taylor <iant@google.com>
10373 * godump.c (go_format_type): Don't generate float80.
10375 2011-01-11 Richard Henderson <rth@redhat.com>
10377 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10378 declaration. Rewrite for both speed and size.
10379 (mn10300_address_cost_1): Remove.
10380 (mn10300_register_move_cost): New.
10381 (mn10300_memory_move_cost): New.
10382 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10383 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10384 extensions, shifts, BSWAP, CLZ.
10385 (mn10300_wide_const_load_uses_clr): Remove.
10386 (TARGET_REGISTER_MOVE_COST): New.
10387 (TARGET_MEMORY_MOVE_COST): New.
10388 * config/mn10300/mn10300-protos.h: Update.
10389 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10391 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10392 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10393 * config/mn10300/mn10300-protos.h: Update.
10394 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10395 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10396 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10397 (*test_int_bitfield, *test_byte_bitfield): Remove.
10398 (*bit_test, *subreg_bit_test): Remove.
10399 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10401 * config/mn10300/constraints.md ("c"): Rename from "A".
10402 ("A", "D"): New constraint letters.
10403 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10404 (fmssf4, fnmasf4, fnmssf4): Likewise.
10406 * config/mn10300/mn10300.md (isa): New attribute.
10407 (enabled): New attribute.
10409 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10410 (abssf2, negsf2): Define only for hardware fp.
10411 (sqrtsf2): Reformat.
10412 (addsf3, subsf3, mulsf3): Merge expander and insn.
10414 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10415 (DEBUGGER_AUTO_OFFSET): Remove.
10416 (DEBUGGER_ARG_OFFSET): Remove.
10418 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10419 Emit register stores with the same offsets as the hardware.
10420 (mn10300_store_multiple_operation): Don't check that the register
10421 save offsets are monotonic.
10422 * config/mn10300/mn10300-protos.h: Update.
10424 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10426 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10427 in terms of the value on the stack, not the MDR register.
10429 2011-01-11 Jan Hubicka <jh@suse.cz>
10433 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10434 (symbol_alias_set_destroy, symbol_alias_set_contains,
10435 propagate_aliases_backward): Declare.
10436 * lto-streamer-out.c (struct sets): New sturcture.
10437 (trivally_defined_alias): New function.
10438 (output_alias_pair_p): Rewrite.
10439 (output_unreferenced_globals): Fix output of alias pairs.
10440 (produce_symtab): Likewise.
10441 * ipa.c (function_and_variable_visibility): Set weak alias destination
10443 * varasm.c (symbol_alias_set_t): Remove.
10444 (symbol_alias_set_destroy): Export.
10445 (propagate_aliases_forward, propagate_aliases_backward): New functions
10447 (compute_visible_aliases): ... this one; remove.
10448 (trivially_visible_alias): New
10449 (trivially_defined_alias): New.
10450 (remove_unreachable_alias_pairs): Rewrite.
10451 (finish_aliases_1): Reorganize code checking if alias is defined.
10452 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10455 2011-01-11 Richard Guenther <rguenther@suse.de>
10457 PR tree-optimization/46076
10458 * tree-ssa.c (useless_type_conversion_p): Conversions from
10459 unprototyped to empty argument list function types are useless.
10461 2011-01-11 Richard Guenther <rguenther@suse.de>
10463 PR middle-end/45235
10464 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10465 volatile MEMs as MEM_READONLY_P.
10467 2011-01-11 Richard Guenther <rguenther@suse.de>
10469 PR tree-optimization/47239
10470 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10472 2011-01-11 Jeff Law <law@redhat.com>
10474 PR tree-optimization/47086
10475 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10476 IVs from statements that might throw.
10478 2011-01-10 Jan Hubicka <jh@suse.cz>
10481 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10483 2011-01-10 Jan Hubicka <jh@suse.cz>
10486 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10487 when correcting profile.
10489 2011-01-10 Jan Hubicka <jh@suse.cz>
10492 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10493 DECL_FINI_PRIORITY.
10494 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10495 Restore DECL_FINI_PRIORITY.
10497 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10499 * doc/gimple.texi: Fix quoting of multi-word return values in
10500 @deftypefn statements. Ensure presence of return value. Wrap
10501 overlong @deftypefn lines.
10502 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10503 descriptions of removed functions.
10504 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10505 of multi-word return value in @deftypefn statement.
10507 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10509 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10510 (Conditional Expressions, Logical Operators)
10511 (Statement and operand traversals): Do not indent smallexample
10512 code. Fix duplicate function argument in example.
10514 2011-01-10 Jeff Law <law@redhat.com>
10516 PR tree-optimization/47141
10517 * ipa-split.c (split_function): Handle case where we are
10518 returning a value and the return block has a virtual operand phi.
10520 2011-01-10 Jan Hubicka <jh@suse.cz>
10522 PR tree-optimization/47234
10523 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10524 (pass_feedback_split_functions): Declare.
10525 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10527 * ipa-split.c (gate_split_functions): Update comments; disable
10528 split-functions for profile_arc_flag and branch_probabilities.
10529 (gate_feedback_split_functions): New function.
10530 (execute_feedback_split_functions): New function.
10531 (pass_feedback_split_functions): New global var.
10533 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10536 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10537 calling gimple_call_set_cannot_inline.
10539 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10541 * config/darwin-sections.def: Remove unused section.
10543 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10546 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10548 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10551 * c-parser.c (c_parser_declaration_or_fndef): Improved
10554 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10556 * config/i386/winnt.c (i386_pe_start_function): Make sure
10557 to switch back to function's section.
10559 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10563 * plugin.c: Move include of dlfcn.h from here...
10564 * system.h: ... to here.
10566 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10568 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10570 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10571 two extra empty pages in PDF output.
10573 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10576 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10577 for error recovery purposes behave as if it was not specified so
10578 that the default type is usd.
10580 2011-01-07 Jan Hubicka <jh@suse.cz>
10582 PR tree-optmization/46469
10583 * ipa.c (function_and_variable_visibility): Clear needed flags on
10584 nodes with external decls; handle weakrefs merging correctly.
10586 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10588 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10591 2011-01-07 Jan Hubicka <jh@suse.cz>
10593 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10594 and no longer claim that gold is required for linker plugin.
10595 * configure: Regenerate.
10596 * gcc.c (PLUGIN_COND): New macro.
10597 (LINK_COMMAND_SPEC): Use it.
10598 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10599 * config.in (HAVE_LTO_PLUGIN): New.
10600 * configure.ac (--with-lto-plugin): New parameter; autodetect
10603 2011-01-07 Jan Hubicka <jh@suse.cz>
10605 PR tree-optimization/46367
10606 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10607 when we can update original.
10608 (cgraph_mark_inline_edge): Sanity check.
10609 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10611 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10613 * config/spu/spu.h (ASM_COMMENT_START): Define.
10615 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10618 * gcc.c (%>S): New.
10619 (SWITCH_KEEP_FOR_GCC): Likewise.
10620 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10621 (do_spec_1): Handle "%>".
10623 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10625 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10628 * config/i386/i386.c (ix86_delegitimize_address): If
10629 simplify_gen_subreg fails, return orig_x.
10632 * value-prof.c (gimple_stringop_fixed_value): Handle
10633 lhs of the call properly.
10635 2011-01-07 Jan Hubicka <jh@suse.cz>
10638 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10640 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10642 * target.def (function_switched_text_sections): New hook.
10643 * doc/tm.texi: Regenerated.
10644 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10645 * final.c (default_function_switched_text_sections): New.
10646 (final_scan_insn): Call function_switched_text_sections when a
10647 mid-function section change occurs.
10648 * output.h (default_function_switched_text_sections): Declare.
10649 * config/darwin-protos.h (darwin_function_switched_text_sections):
10651 * config/darwin.c (darwin_function_switched_text_sections): New.
10652 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10654 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10656 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10657 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10658 the secondary code fragment when outputting for DWARF == 2.
10660 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10662 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10663 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10665 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10666 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10668 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10671 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10672 when it is not empty.
10674 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10677 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10678 (case ${target}): Add btver1.
10679 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10680 -march=native recognize btver1 processors.
10681 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10682 btver1 def_and_undef
10683 * config/i386/i386.c (struct processor_costs btver1_cost): New
10685 (m_BTVER1): New definition.
10686 (m_AMD_MULTIPLE): Includes m_BTVER1.
10687 (initial_ix86_tune_features): Add btver1 tune.
10688 (processor_target_table): Add btver1 entry.
10689 (static const char *const cpu_names): Add btver1 entry.
10690 (software_prefetching_beneficial_p): Add btver1.
10691 (ix86_option_override_internal): Add btver1 instruction sets.
10692 (ix86_issue_rate): Add btver1.
10693 (ix86_adjust_cost): Add btver1.
10694 * config/i386/i386.h (TARGET_BTVER1): New definition.
10695 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10696 (enum processor_type): Add PROCESSOR_BTVER1.
10697 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10699 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10702 * config/i386/i386.c (legitimize_tls_address)
10703 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10704 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10705 (tls_initial_exec_64_sun): New pattern.
10707 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10709 * doc/invoke.texi (Overall Options): Improve wording and markup
10710 of the description of -wrapper.
10712 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10714 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10715 rdynamic, threads): New Driver options.
10717 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10720 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10721 if coming from .tdata.
10722 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10724 2011-01-06 Jan Hubicka <jh@suse.cz>
10727 * collect2.c (main): Do not enable LTOmode when plugin is active.
10729 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10732 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10733 --version output if supported.
10734 * configure: Regenerate.
10736 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10738 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10741 2011-01-06 Jakub Jelinek <jakub@redhat.com>
10744 * c-convert.c (convert): When converting a complex expression
10745 other than COMPLEX_EXPR to a different complex type, ensure
10746 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10747 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10748 when converting COMPLEX_TYPE.
10750 2011-01-06 Ira Rosen <irar@il.ibm.com>
10752 PR tree-optimization/47139
10753 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10754 only the last reduction value is used outside the loop. Update
10757 2011-01-05 Joseph Myers <joseph@codesourcery.com>
10759 * config/rtems.opt: New.
10760 * config.gcc (*-*-rtems*): Use rtems.opt.
10762 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10764 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10765 processors do not support 3DNow instructions.
10767 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10769 * config/spu/spu.c (spu_option_override): Set parameter
10770 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10772 2011-01-05 Jan Hubicka <jh@suse.cz>
10774 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10775 at the command line.
10777 2011-01-05 Martin Jambor <mjambor@suse.cz>
10780 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10781 deltas on streamed outgoing edges.
10782 (output_node_opt_summary): Output info for outgoing edges only when
10783 the node is in new parameter set.
10784 (output_cgraph_opt_summary): New parameter set, passed to the two
10785 aforementioned functions. Update its forward declaration and its
10788 2011-01-05 Tom Tromey <tromey@redhat.com>
10790 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10791 operator to c_finish_omp_atomic.
10792 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10793 (build_unary_op): Update.
10794 (build_modify_expr): Update.
10795 (build_asm_expr): Update.
10797 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10799 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10800 newly inserted insns.
10801 (pad_bb): Likewise.
10802 (spu_emit_branch_hint): Likewise.
10803 (insert_hbrp_for_ilb_runout): Likewise.
10804 (spu_machine_dependent_reorg): Call df_finish_pass after
10805 schedule_insns returns.
10807 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10809 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10811 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10813 PR tree-optimization/47005
10814 * tree-sra.c (struct access): Add 'non_addressable' bit.
10815 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10816 (decide_one_param_reduction): Return 0 if the parameter is passed by
10817 reference and one of the accesses in the group is non_addressable.
10819 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10821 PR tree-optimization/47056
10822 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10823 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10824 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10826 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10828 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10829 initializer. Skip view conversions from aggregate types.
10831 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10834 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10836 2011-01-04 Philipp Thomas <pth@suse.de>
10838 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10841 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10843 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10844 on empty epilogue sequences.
10846 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10848 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10849 non-static): New Driver options.
10851 2011-01-04 Jie Zhang <jie@codesourcery.com>
10854 * gcc.c (default_compilers[]): Set combinable field to 0
10855 for all assembly languages.
10857 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10859 * config/mips/loongson3a.md: New file.
10860 * config/mips/mips.md: Include loongson3a.md.
10861 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10864 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10866 PR middle-end/47017
10867 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10868 instead of convert_memory_address_addr_space on the base expression.
10870 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10872 * config/spu/spu.c (spu_option_override): Update error text
10873 for bad -march= / -mtune= values.
10875 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10877 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10878 if branch-hint optimization will be performed.
10880 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10882 PR tree-optimization/47148
10883 * ipa-split.c (split_function): Convert arguments to
10884 DECL_ARG_TYPE if possible.
10886 PR tree-optimization/47155
10887 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10888 when computing uns.
10890 PR rtl-optimization/47157
10891 * combine.c (try_combine): If undobuf.other_insn becomes
10892 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10893 and set *new_direct_jump_p too.
10895 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10897 PR tree-optimization/47021
10898 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10900 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10902 * gcc.c (process_command): Update copyright notice dates.
10903 * gcov.c (print_version): Likewise.
10904 * gcov-dump.c (print_version): Likewise.
10905 * mips-tfile.c (main): Likewise.
10906 * mips-tdump.c (main): Likewise.
10908 2011-01-03 Martin Jambor <mjambor@suse.cz>
10910 PR tree-optimization/46801
10911 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10912 aggregate fields start at byte boundary instead of the bit-field flag.
10914 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10917 * gcc.c (main): Revert revision 168407.
10919 2011-01-03 Martin Jambor <mjambor@suse.cz>
10921 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10923 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10925 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10926 vector optab to expand vector/scalar shift, update gimple to vector.
10928 2011-01-03 Martin Jambor <mjambor@suse.cz>
10930 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10933 2011-01-03 Martin Jambor <mjambor@suse.cz>
10935 PR tree-optimization/46984
10936 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10938 (cgraph_create_indirect_edge): Fixed line length.
10939 (cgraph_indirect_call_info): Declare.
10940 (cgraph_make_edge_direct) Update declaration.
10941 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10942 (cgraph_create_indirect_edge): Use it.
10943 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10945 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10946 the new thunk_delta representation.
10947 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10949 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10950 (ipa_read_indirect_edge_info): Likewise.
10951 * lto-cgraph.c (output_edge_opt_summary): New function.
10952 (output_node_opt_summary): Call it on all outgoing edges.
10953 (input_edge_opt_summary): New function.
10954 (input_node_opt_summary): Call it on all outgoing edges.
10956 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10959 * gcc.c (main): Don't check have_o when settting combine_inputs.
10961 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10963 * regrename.c: Add general comment describing the pass.
10964 (struct du_head): Remove 'length' field.
10965 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10966 (regrename_optimize): Do not sort chains. Rework comments, add others.
10967 Force renaming to the preferred class (if any) in the first pass and do
10968 not consider registers that belong to it in the second pass.
10969 (create_new_chain): Do not set 'length' field.
10970 (scan_rtx_reg): Likewise.
10972 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10974 PR tree-optimization/47140
10975 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10976 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10977 to bit_value_binop.
10979 PR rtl-optimization/47028
10980 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10981 parm_birth_insn instead of at the beginning of first bb.
10983 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10985 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10986 Remove the word "see" before "@pxref".
10987 * doc/rtl.texi: Remove the word "see" before "@pxref".
10989 2011-01-01 Jan Hubicka <jh@suse.cz>
10991 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10994 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10997 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11000 Copyright (C) 2011 Free Software Foundation, Inc.
11002 Copying and distribution of this file, with or without modification,
11003 are permitted in any medium without royalty provided the copyright
11004 notice and this notice are preserved.