1 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5 the types if they have different enumeration identifiers.
7 2011-04-19 Jan Hubicka <jh@suse.cz>
9 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11 * predict.c (cgraph_optimize_for_size_p): Break out from ...
12 (optimize_function_for_size_p) ... here.
14 2011-04-19 Richard Guenther <rguenther@suse.de>
17 * tree.c (free_lang_data): Do not reset the decl-assembler-name
20 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
23 if DECL_NO_INLINE_WARNING_P is set on the function.
25 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
28 * reload1.c (inc_for_reload): Return void. All callers changed.
29 (emit_input_reload_insns): Don't try to delete previous output
30 reloads to a register, or record spill_reg_store for autoincs.
32 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
34 * gengtype.h: Updated copyright year.
35 (struct input_file_st): Add inpisplugin field.
36 (type_fileloc): New function.
38 (write_typed_struct_alloc_def): Add gcc_assert.
39 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
40 (write_typed_alloc_defns): Don't output for plugin files.
41 (input_file_by_name): Clear inpisplugin field.
42 (main): Set inpisplugin field for plugin files.
44 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
46 * gengtype-state.c (string_eq): New.
47 (read_state): Use string_eq instead of strcmp when creating the
50 2011-04-19 Wei Guozhi <carrot@google.com>
53 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
54 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
56 * config/arm/constraints.md (Uu): New constraint.
57 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
59 2011-04-19 Tristan Gingold <gingold@adacore.com>
61 * config.gcc (-*-*-*vms): Added.
62 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
64 * config/vms/vms-ld.c: New file.
65 * config/vms/vms-ar.c: New file.
66 * config/vms/t-vmsnative: New file.
68 2011-04-18 Xinliang David Li <davidxl@google.com>
70 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
72 2011-04-18 Jakub Jelinek <jakub@redhat.com>
75 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
76 if TREE_TYPE (v) is non-NULL.
78 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
79 gimple_get_virt_mehtod_for_binfo.
80 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
81 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
83 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
85 2011-04-18 Michael Matz <matz@suse.de>
86 Steve Ellcey <sje@cup.hp.com>
88 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
89 use its mode as source mode if it isn't VOIDmode.
91 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
93 * doc/passes.texi: Fill crossref nodes.
95 2011-04-18 Jim Meyering <meyering@redhat.com>
97 Fix doubled-word typos in comments and strings
98 * config/alpha/vms-unwind.h: s/for for/for/
99 * config/arm/unwind-arm.h: Likewise.
100 * config/microblaze/microblaze.c: Likewise.
101 * config/sh/constraints.md: s/in in/in/
102 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
104 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
106 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
107 (AVX_FLOAT_MODE_P): Ditto.
108 (AVX128_VEC_FLOAT_MODE_P): Ditto.
109 (AVX256_VEC_FLOAT_MODE_P): Ditto.
110 (AVX_VEC_FLOAT_MODE_P): Ditto.
111 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
112 (UNSPEC_MASKSTORE): Ditto.
113 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
114 Merge from <sse>_movmsk<ssemodesuffix> and
115 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
116 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
118 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
119 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
120 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
122 2011-04-18 Jan Hubicka <jh@suse.cz>
124 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
126 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
127 (want_inline_function_called_once_p): Break out the logic from
129 (edge_badness): Ensure that profile is not misupdated.
130 (lookup_recursive_calls): Prioritize by call frequencies.
131 (inline_small_functions): Move program size estimates here;
132 actually process whole queue even when unit growth has been
133 met. (to properly compute inline_failed reasons and for the
134 case unit size decrease.) Revisit comments on recursive inlining.
135 (ipa_inline): Remove unit summary code; first inline hot calls
136 of functions called once, cold calls next.
137 (order, nnodes): Remove unused variables.
138 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
139 (GTFILES): Remove ipa-inline.c
140 * sel-sched.c (fill_insns): Silence uninitialized var warning.
142 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
144 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
146 2011-04-18 Jie Zhang <jie@codesourcery.com>
147 Richard Earnshaw <rearnsha@arm.com>
149 * arm.c (neon_builtin_type_bits): Remove.
150 (typedef enum neon_builtin_mode): New.
151 (T_MAX): Don't define.
152 (typedef enum neon_builtin_datum): Remove bits, codes[],
153 num_vars and base_fcode. Add mode, code and fcode.
154 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
155 VAR10): Change accordingly.
156 (neon_builtin_data[]): Change accordingly
157 (arm_init_neon_builtins): Change accordingly.
158 (neon_builtin_compare): Remove.
159 (locate_neon_builtin_icode): Remove.
160 (arm_expand_neon_builtin): Change accordingly.
162 * arm.h (enum arm_builtins): Move to ...
163 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
165 * arm.c (arm_builtin_decl): Declare.
166 (TARGET_BUILTIN_DECL): Define.
167 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
168 (arm_builtin_decls[]): New.
169 (arm_init_neon_builtins): Store builtin declarations in
171 (arm_init_tls_builtins): Likewise.
172 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
173 (arm_builtin_decl): New.
175 2011-04-18 Richard Guenther <rguenther@suse.de>
177 * tree.c (upper_bound_in_type): Build properly canonicalized
179 (lower_bound_in_type): Likewise.
181 2011-04-18 Richard Guenther <rguenther@suse.de>
183 * gimple.h (gimple_call_addr_fndecl): New function.
184 (gimple_call_fndecl): Use it.
185 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
187 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
188 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
190 2011-04-18 Richard Guenther <rguenther@suse.de>
193 * tree.c (build_string): STRING_CST is now derived from tree_typed.
195 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
198 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
199 DECL_IN_CONSTANT_POOL without RTL.
201 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
202 Ira Rosen <ira.rosen@linaro.org>
205 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
206 to match neon_vzip/vuzp/vtrn_internal.
207 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
208 outputs explicitly dependent on both inputs.
209 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
211 2011-04-18 Jakub Jelinek <jakub@redhat.com>
213 PR tree-optimization/48616
214 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
215 whether the shift is by scalar or vector based on whether all SLP
216 scalar stmts have the same rhs.
218 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
220 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
223 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
225 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
228 2011-04-17 Jan Hubicka <jh@suse.cz>
230 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
231 * cgrpahunit.c (cgraph_finalize_function): Do not set
232 finalized_by_frontend.
233 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
234 finalized_by_frontend.
236 2011-04-17 Jan Hubicka <jh@suse.cz>
238 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
239 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
240 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
241 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
243 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
245 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
247 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
250 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
251 is non-null before accessing it.
252 (input_cgraph): Remove trailing spaces.
254 2011-04-17 Revital Eres <revital.eres@linaro.org>
256 * params.def (sms-min-sc): New param flag.
257 * modulo-sched.c (sms_schedule): Use it.
258 * doc/invoke.texi (sms-min-sc): Document it.
260 2011-04-17 Jan Hubicka <jh@suse.cz>
262 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
263 present, also set gimple_call_set_cannot_inline.
264 * ipa-inline.c: Update toplevel comment.
266 (cgraph_clone_inlined_nodes): Fix linebreaks.
267 (cgraph_check_inline_limits): Restructure to ...
268 (caller_growth_limits): ... this one; be more tolerant
269 on growth in nested inline chains; add explanatory comment;
270 fix stack accounting thinko introduced by previous patch.
271 (cgraph_default_inline_p): Remove.
272 (report_inline_failed_reason): New function.
273 (can_inline_edge_p): New function.
274 (can_early_inline_edge_p): New function.
275 (leaf_node_p): Move upwards in file.
276 (want_early_inline_function_p): New function.
277 (want_inline_small_function_p): New function.
278 (want_inline_self_recursive_call_p): New function.
279 (cgraph_edge_badness): Rename to ...
280 (edge_badness) ... this one; fix linebreaks.
281 (update_edge_key): Update call of edge_baddness; add
282 detailed dump about queue updates.
283 (update_caller_keys): Use can_inline_edge_p and
284 want_inline_small_function_p.
285 (cgraph_decide_recursive_inlining): Rename to...
286 (recursive_inlining): Use can_inline_edge_p and
287 want_inline_self_recursive_call_p; simplify and remove no longer
289 (cgraph_set_inline_failed): Remove.
290 (add_new_edges_to_heap): Use can_inline_edge_p and
291 want_inline_small_function_p.
292 (cgraph_decide_inlining_of_small_functions): Rename to ...
293 (inline_small_functions): ... this one; cleanup; use
294 can/want predicates; cleanup debug ouput; work edges till fibheap
295 is exhausted and do not stop once unit growth is reached; remove
296 later loop processing remaining edges.
297 (cgraph_flatten): Rename to ...
298 (flatten_function): ... this one; use can_inline_edge_p
299 and can_early_inline_edge_p predicates.
300 (cgraph_decide_inlining): Rename to ...
301 (ipa_inline): ... this one; remove unreachable nodes before
302 inlining functions called once; simplify the pass.
303 (cgraph_perform_always_inlining): Rename to ...
304 (inline_always_inline_functions): ... this one; use
305 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
306 (cgraph_decide_inlining_incrementally): Rename to ...
307 (early_inline_small_functions): ... this one; simplify
308 using new predicates; cleanup; make dumps prettier.
309 (cgraph_early_inlining): Rename to ...
310 (early_inliner): newer inline regular functions into always-inlines;
311 fix updating of call stmt summaries.
312 (pass_early_inline): Update for new names.
313 (inline_transform): Fix formating.
314 (gate_cgraph_decide_inlining): Rename to ...
315 (pass_ipa_inline): ... this one.
316 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
317 * ipa-inline-analysis.c (dump_inline_summary): Update.
318 (compute_inline_parameters): Do not compute disregard_inline_limits;
319 look for mismatching arguments.
320 (estimate_growth): Fix handlig of non-trivial self recursion.
321 (inline_read_summary): Do not read info->disregard_inline_limits.
322 (inline_write_summary): Do not write info->disregard_inline_limits.
323 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
324 and move all checks into can_inline_edge_p predicate; re-enable code
325 comparing optimization levels.
326 (expand_call_inline): Do not test inline_forbidden_into_p.
327 * Makefile.in (ipa-inline.o): Update arguments.
329 2011-04-17 Revital Eres <revital.eres@linaro.org>
331 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
333 2011-04-17 Revital Eres <revital.eres@linaro.org>
335 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
337 2011-04-17 Michael Matz <matz@suse.de>
339 PR tree-optimization/48622
341 * ipa-inline-analysis.c (inline_read_summary): Read size/time
342 in same order as they're written.
344 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
346 * config/i386/sse.md (sseunpackmode): New mode attribute.
347 (ssepackmode): Ditto.
348 (vec_pack_trunc_<mode>): Macroize expander from
349 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
350 (vec_unpacks_lo_<mode>): Macroize expander from
351 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
352 (vec_unpacks_hi_<mode>): Macroize expander from
353 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
354 (vec_unpacku_lo_<mode>): Macroize expander from
355 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
356 (vec_unpacku_hi_<mode>): Macroize expander from
357 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
358 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
359 ix86_expand_sse4_unpack.
360 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
362 2011-04-16 Jan Hubicka <jh@suse.cz>
364 * cgraphbuild.c: Include ipa-inline.h.
365 (reset_inline_failed): Use initialize_inline_failed.
366 * cgraph.c: Include ipa-inline.h.
367 (cgraph_create_node_1): Do not initialize estimated_growth.
368 (initialize_inline_failed): More to ipa-inline-analysis.c
369 (dump_cgraph_node): Do not dump inline flags.
370 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
371 and disregard_inline_limits flags.
372 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
373 time, size, estimated_growth.
374 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
376 * cgraphunit.c (cgraph_decide_is_function_needed): Use
377 DECL_DISREGARD_INLINE_LIMITS.
378 (cgraph_analyze_function): Do not initialize
379 node->local.disregard_inline_limits.
380 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
381 inlinable, versionable and disregard_inline_limits.
382 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
383 cgraph_check_inline_limits, cgraph_default_inline_p,
384 cgraph_edge_badness, update_caller_keys, update_callee_keys,
385 add_new_edges_to_heap): Update.
386 (cgraph_decide_inlining_of_small_function): Update; set
387 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
388 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
389 cgraph_decide_inlining_incrementally): Update.
390 * ipa-inline.h (inline_summary): Add inlinable, versionable,
391 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
392 time, size and estimated_growth parameters.
393 (estimate_edge_growth): Update.
394 (initialize_inline_failed): Declare.
395 * ipa-split.c: Include ipa-inline.h
396 (execute_split_functions): Update.
397 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
398 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
399 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
400 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
401 estimated_growth to INT_MIN.
402 (inline_node_duplication_hook): Likewise.
403 (dump_inline_summary): Dump new fields.
404 (compute_inline_parameters): Update.
405 (estimate_edge_time, estimate_time_after_inlining,
406 estimate_size_after_inlining, estimate_growth, inline_read_summary,
407 inline_write_summary):
408 (initialize_inline_failed): Move here from cgraph.c.
409 * tree-sra.c: Include ipa-inline.h.
410 (ipa_sra_preliminary_function_checks): Update.
411 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
414 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
416 * config/i386/sse.md (V16): New mode iterator.
418 (AVXMODEQI, AVXMODEDI): Remove.
419 (sse2, sse3): New mode attribute.
420 (mov<mode>): Use V16 mode iterator.
421 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
422 (push<mode>1): Use V16 mode iterator.
423 (movmisalign<mode>): Ditto.
424 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
425 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
426 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
427 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
428 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
429 avx_movdqu<avxmodesuffix>.
430 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
431 *avx_movdqu<avxmodesuffix>.
432 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
433 avx_lddqu<avxmodesuffix>.
434 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
435 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
436 avx_movnt<AVXMODEDI:mode>.
437 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
438 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
440 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
443 * haifa-sched.c (prune_ready_list, schedule_block): Use
444 sched_pressure_p rather than flag_sched_pressure.
446 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
448 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
449 cgraph_get_node instead of cgraph_get_create_node.
451 2011-04-15 Jakub Jelinek <jakub@redhat.com>
453 * cfgexpand.c (expand_debug_expr): Use
454 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
456 2011-04-15 Michael Matz <matz@suse.de>
458 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
459 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
460 * function.c (gimplify_parameters): Ditto.
461 * gimplify.c (gimplify_vla_decl): Ditto.
463 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
464 (gimple_call_set_alloca_for_var): New inline function.
465 (gimple_call_alloca_for_var_p): Ditto.
466 * gimple.c (gimple_build_call_from_tree): Remember
467 CALL_ALLOCA_FOR_VAR_P state.
468 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
470 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
471 calls if they were for VLA objects.
473 2011-04-15 Martin Jambor <mjambor@suse.cz>
475 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
478 2011-04-15 Martin Jambor <mjambor@suse.cz>
481 * tree-emutls.c (lower_emutls_function_body): Call
482 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
485 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
487 * c-decl.c (detect_field_duplicates): Call
488 objc_detect_field_duplicates instead of objc_get_interface_ivars.
490 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
492 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
493 * gimple.c (gimple_asm_clobbers_memory_p): Define.
494 * ipa-pure-const.c (check_stmt): Call it.
495 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
497 2011-04-15 Richard Guenther <rguenther@suse.de>
499 PR tree-optimization/48290
500 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
501 Properly decide inhibiting propagation based on the valueized
502 operand. Do loop-closed SSA form preserving here ...
503 (init_copy_prop): ... not here.
505 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
508 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
509 (*ieee_smax<mode>3): Likewise.
511 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
513 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
514 Replace match_operand with match_dup for the third operand in
517 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
519 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
520 to track processing of conditionals. Update all callers.
521 (try_combine, simplify_if_then_else): Update.
523 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
525 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
528 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
530 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
531 instead of match_operand for operand 3.
533 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
535 * recog.h (insn_operand_data): Add an "allows_mem" field.
536 * genoutput.c (output_operand_data): Initialize it.
537 * optabs.c (maybe_legitimize_operand_same_code): New function.
538 (maybe_legitimize_operand): Use it when matching the original
541 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
543 * gimplify.c: Fix issues in comments throughout.
544 (voidify_wrapper_expr): Fix long line.
545 (build_stack_save_restore): Likewise.
546 (gimplify_loop_expr): Likewise.
547 (gimplify_compound_lval): Likewise.
548 (gimplify_init_ctor_eval): Likewise.
549 (gimplify_modify_expr_rhs): Likewise.
550 (omp_notice_threadprivate_variable): Likewise.
552 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
554 * cfgexpand.c (expand_call_stmt): Convert the function type to the
555 original one if this is not a builtin function.
557 2011-04-14 Jakub Jelinek <jakub@redhat.com>
560 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
561 offset it as needed based on top 2 bits in operands[3], change
562 MEM mode to SFmode and mask those 2 bits away from operands[3].
564 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
566 * c-parser.c (c_parser_objc_protocol_definition): Updated for
567 change from objc_declare_protocols() to objc_declare_protocol().
569 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
571 * config/i386/sse.md (sse4_1): New mode attribute.
572 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
573 avx_blend<ssemodesuffix><avxmodesuffix> and
574 sse4_1_blend<ssemodesuffix> using VF mode iterator.
575 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
576 avx_blendv<ssemodesuffix><avxmodesuffix> and
577 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
578 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
579 avx_dp<ssemodesuffix><avxmodesuffix> and
580 sse4_1_dp<ssemodesuffix> using VF mode iterator.
581 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
582 (sse4_1_packusdw): Merge with *avx_packusdw.
583 (sse4_1_pblendvb): Merge with *avx_pblendvb.
584 (sse4_1_pblendw): Merge with *avx_pblendw.
585 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
586 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
587 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
589 (sse4_1_round<ssescalarmodesuffix>): Merge with
590 *avx_round<ssescalarmodesuffix>.
591 (aesenc): Merge with *avx_aesenc.
592 (aesenclast): Merge with *avx_aesenclast.
593 (aesdec): Merge with *avx_aesdec.
594 (aesdeclast): Merge with *avx_aesdeclast.
595 (pclmulqdq): Merge with *pclmulqdq.
596 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
598 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
600 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
603 * cfgexpand.c (get_decl_align_unit): Renamed to ...
604 (align_local_variable): This. Update DECL_ALIGN.
605 (add_stack_var): Updated.
606 (expand_one_stack_var): Likewise.
608 2011-04-14 Richard Guenther <rguenther@suse.de>
610 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
612 (dse_initialize_block_local_data, dse_leave_block,
613 record_voperand_set, get_stmt_uid): Likewise.
614 (dse_possible_dead_store_p): Allow any kind of killing stmt.
615 (dse_optimize_stmt): Remove voperand set handling code.
616 Simplify and improve to handle any kind of killing stmt.
617 (dse_record_phi): Remove.
618 (dse_enter_block): Simplify.
619 (tree_ssa_dse): Likewise.
620 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
622 2011-04-14 Jan Hubicka <jh@suse.cz>
624 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
625 * cgraph.h (struct inline_summary): Move to ipa-inline.h
626 (cgraph_local_info): Remove inline_summary.
627 * ipa-cp.c: Include ipa-inline.h.
628 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
629 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
631 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
632 (input_overwrite_node): Do not set inline summary.
633 (input_node): Do not stream inline summary.
634 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
635 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
636 growth; we do not have inline parameters computed for that anyway.
637 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
638 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
639 (inline_summary_t): New type and VECtor.
640 (debug_inline_summary, dump_inline_summaries): Declare.
641 (inline_summary): Use VOCtor.
642 (estimate_edge_growth): Kill hack computing call stmt size directly.
643 * lto-section-in.c (lto_section_name): Add inline section.
644 * ipa-inline-analysis.c: Include lto-streamer.h
645 (node_removal_hook_holder, node_duplication_hook_holder): New holders
646 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
647 (inline_summary_vec): Define.
648 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
649 dump_inline_summaries): New functions.
650 (estimate_function_body_sizes): Properly compute size/time of outgoing
652 (compute_inline_parameters): Alloc inline_summary; do not compute
653 size/time of incomming calls.
654 (estimate_edge_time): Avoid missing time summary hack.
655 (inline_read_summary): Read inline summary info.
656 (inline_write_summary): Write inline summary info.
657 (inline_free_summary): Free all hooks and inline summary vector.
658 * lto-streamer.h: Add LTO_section_inline_summary section.
659 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
660 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
662 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
664 * tree-vectorizer.h (vect_strided_store_supported): Add a
665 HOST_WIDE_INT argument.
666 (vect_strided_load_supported): Likewise.
667 (vect_permute_store_chain): Return void.
668 (vect_transform_strided_load): Likewise.
669 (vect_permute_load_chain): Delete.
670 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
671 count argument. Check that the count is a power of two.
672 (vect_strided_load_supported): Likewise.
673 (vect_permute_store_chain): Return void. Update after above changes.
674 Assert that the access is supported.
675 (vect_permute_load_chain): Likewise.
676 (vect_transform_strided_load): Return void.
677 * tree-vect-stmts.c (vectorizable_store): Update calls after
678 above interface changes.
679 (vectorizable_load): Likewise.
680 (vect_analyze_stmt): Don't check for strided powers of two here.
682 2011-04-14 Richard Guenther <rguenther@suse.de>
684 PR tree-optimization/48590
685 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
686 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
687 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
689 * tree-ssa-dce.c (propagate_necessity): Handle
690 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
692 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
694 * c-parser.c (c_parser_objc_class_declaration): Updated call to
697 2011-04-14 Richard Guenther <rguenther@suse.de>
699 * tree.h (get_object_alignment_1): Declare.
700 * builtins.c (get_object_alignment_1): Split out worker from ...
701 (get_object_alignment): ... here.
702 * fold-const.c (get_pointer_modulus_and_residue): Use
703 get_object_alignment_1.
705 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
707 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
709 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
710 parameter. Generalise code to handle arrays as well as vectors.
711 (vect_setup_realignment): Update accordingly.
712 * tree-vect-stmts.c (vectorizable_store): Likewise.
713 (vectorizable_load): Likewise.
715 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
717 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
718 within the per-copy loop.
720 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
722 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
725 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
727 * doc/options.texi (Negative): Explicitly mention that the
728 Negative chain must be circular.
730 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
732 * function.h (block_chainon): Declare.
733 * function.c (block_chainon): Define.
735 2011-04-14 Anatoly Sokolov <aesok@post.ru>
736 Eric Weddington <eric.weddington@atmel.com>
737 Georg-Johann Lay <avr@gjlay.de>
739 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
741 (avr_init_builtins, avr_expand_builtin,
742 avr_expand_delay_cycles, avr_expand_unop_builtin,
743 avr_expand_binop_builtin ): New functions.
744 (avr_builtin_id): New enum
745 (struct avr_builtin_description): New struct
746 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
747 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
749 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
750 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
751 UNSPECV_DELAY_CYCLES): new enumeration values
752 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
753 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
754 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
755 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
756 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
757 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
760 * config/avr/avr-c.c: fix line endings
761 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
762 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
763 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
764 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
765 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
767 * doc/extend.texi (AVR Built-in Functions): New node
768 (Target Builtins): Add documentation of AVR
771 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
774 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
775 alone. Error if non-const data has attribute progmem.
777 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
779 * tree.h (struct tree_constructor): Include tree_typed instead of
781 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
782 TS_TYPED instead of TS_COMMON.
784 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
786 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
787 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
788 (sse2_psadbw): Merge with *avx_psadbw.
789 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
790 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
791 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
792 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
793 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
794 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
795 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
796 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
797 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
798 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
799 (ssse3_palignrti): Merge with *avx_palignrti.
801 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
803 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
804 * tree-ssanames.c (fini_ssanames): VEC_free it.
805 (make_ssa_name_fn): Update for VECness of free_ssanames.
806 (release_ssa_name, release_dead_ssa_names): Likewise.
807 * tree.h (struct tree_ssa_name): Include tree_typed instead of
809 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
810 TS_TYPED instead of TS_COMMON.
812 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
814 * postreload-gcse.c (gcse_after_reload_main): Add calls to
815 statistics_counter_event.
816 * tree-ssa-copyrename.c (stats): Define.
817 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
818 statistics_counter_event.
819 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
820 (bswap_stats, widen_mul_stats): Define.
821 (insert_reciprocals): Increment rdivs_inserted.
822 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
823 rfuncs_inserted. Add calls to statistics_counter_event.
824 (execute_cse_sincos_1): Increment inserted.
825 (execute_cse_sincos): Zeroize sincos_stats. Add call to
826 statistics_counter_event.
827 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
828 of bswap_stats. Add calls to statistics_counter_event.
829 (convert_mult_to_widen): Increment widen_mults_inserted.
830 (convert_plusminus_to_widen): Increment maccs_inserted.
831 (convert_mult_to_fma): Increment fmas_inserted.
832 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
833 calls to statistics_counter_event.
835 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
837 PR rtl-optimization/48455
838 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
839 `temp_costs->mem_cost'.
841 2011-04-13 Jan Hubicka <jh@suse.cz>
843 * ipa-inline.h: New file.
844 * ipa-inline-analysis.c: New file. Broken out of ...
845 * ipa-inline.c: ... this file; update toplevel comment;
847 (inline_summary): Move to ipa-inline.h
848 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
849 ipa-inline-analysis.c.
850 (cgraph_estimate_time_after_inlining): Rename to
851 estiamte_time_after_inlining; move to ipa-inline-analysis.c
852 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
853 to estimate_edge_growth.
854 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
855 rename to estimate_size_after_inlining.
856 (cgraph_mark_inline_edge): Update for new naming convention.
857 (cgraph_check_inline_limits): Likewise.
858 (cgraph_edge_badness): Likewise.
859 (cgraph_decide_recursive_inlining): Likewise.
860 (cgraph_decide_inlining_of_small_functions): Likewise.
861 (cgraph_decide_inlining_incrementally): Likewise.
862 (cgraph_estimate_growth): Rename to estimate_growth; move to
863 ipa-inline-analysis.c.
864 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
865 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
866 (compute_inline_parameters): Likewise.
867 (compute_inline_parameters_for_current): Likewise.
868 (pass_inline_parameters): Likewise.
869 (inline_indirect_intraprocedural_analysis): Likewise.
870 (analyze_function): Rename to inline_analyze_function; likewise.
871 (add_new_function): Move to ipa-inline-analysis.c.
872 (inline_generate_summary): Likewise.
873 (inline_read_summary): Likewise.
874 (inline_write_summary): Likewise.
875 * Makefile.in (ipa-inline-analysis.c): New file.
877 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
880 * configure: Regenerate.
882 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
884 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
885 instead of tree_common.
886 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
888 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
889 TS_TYPED rather than TS_COMMON.
890 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
892 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
895 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
896 r20 around calls of __tablejump_elpm__
898 2011-04-13 Jakub Jelinek <jakub@redhat.com>
901 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
903 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
905 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
907 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
908 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
909 (cfi_vec): New typedef.
910 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
911 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
912 (cie_cfi_vec): New static variable.
913 (cie_cfi_head): Delete.
914 (add_cfi): Accept a cfi_vec * as first argument. All callers and
915 declaration changed. Use vector rather than list operations.
916 (new_cfi): Don't initialize the dw_cfi_next field.
917 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
918 rather than list operations.
919 (lookup_cfa): Use vector rather than list operations.
920 (output_cfis): New argument upto. Accept a cfi_vec rather than
921 a dw_cfi_ref list head as argument. All callers changed.
922 Iterate over the vector using upto as a maximum index.
923 (output_all_cfis): New static function.
924 (output_fde): Use vector rather than list operations. Use the
925 new upto argument for output_cfis rather than manipulating a
927 (dwarf2out_begin_prologue): Change initializations to match
929 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
930 from the vector length rather than searching for the end of a list.
932 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
934 2011-04-13 Nick Clifton <nickc@redhat.com>
936 * config/rx/rx.md (movmemsi): Do not use this pattern when
937 volatile pointers are involved.
939 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
941 * config/i386/sse.md (pinsrbits): Remove.
942 (sse2_packsswb): Merge with *avx_packsswb.
943 (sse2_packssdw): Merge with *avx_packssdw.
944 (sse2_packuswb): Merge with *avx_packuswb.
945 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
946 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
947 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
948 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
949 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
950 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
951 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
952 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
953 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
954 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
955 (sse2_loadld): Merge with *avx_loadld.
956 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
957 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
958 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
959 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
960 (vec_concatv2di): Merge with *vec_concatv2di_avx.
962 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
964 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
966 * print-tree.c (print_node): Likewise.
967 * tree-inline.c (copy_tree_r): Likewise.
968 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
969 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
970 instead of TS_COMMON.
971 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
972 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
973 (copy_node_stat): Zero TREE_CHAIN only if necessary.
974 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
975 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
977 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
979 (TREE_CHAIN): Check for a TS_COMMON structure.
980 (TREE_TYPE): Check for a TS_TYPED structure.
982 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
984 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
985 cgraph_get_create_node instead of cgraph_node.
987 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
989 * c-parser.c (c_parser_initelt): Updated call to
990 objc_build_message_expr.
991 (c_parser_postfix_expression): Likewise.
993 2011-04-12 Kai Tietz <ktietz@redhat.com>
995 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
996 MASK_MS_BITFIELD_LAYOUT bit.
998 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1000 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1001 assert it is always true.
1002 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1005 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1007 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1008 compiling Objective-C to be more efficient.
1010 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1012 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1015 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1017 * recog.h, genoutput.c, optabs.c: Revert last patch.
1019 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1022 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1024 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1026 * recog.h (insn_operand_data): Add an "allows_mem" field.
1027 * genoutput.c (output_operand_data): Initialize it.
1028 * optabs.c (maybe_legitimize_operand_same_code): New function.
1029 (maybe_legitimize_operand): Use it when matching the original
1032 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1034 * genpreds.c (process_define_predicate): Move most processing
1035 to gensupport.c. Continue to validate the expression.
1036 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1037 (process_define_predicate): Move processing to gensupport.c.
1038 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1039 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1040 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1042 (valid_predicate_name_p): New function, split out from old
1043 genpreds.c:process_define_predicate.
1044 (process_define_predicate): New function, combining code from
1045 old genpreds.c and genrecog.c functions.
1046 (process_rtx): Call it for DEFINE_PREDICATE and
1047 DEFINE_SPECIAL_PREDICATE.
1049 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1051 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1052 size of a '%A' memory reference.
1053 (T_DREG, T_QREG): New neon_builtin_type_bits.
1054 (arm_init_neon_builtins): Assert that the load and store operands
1055 are neon_struct_operands.
1056 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1057 (NEON_ARG_MEMORY): New builtin_arg.
1058 (neon_dereference_pointer): New function.
1059 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1060 Handle NEON_ARG_MEMORY.
1061 (arm_expand_neon_builtin): Update after above interface changes.
1062 Use NEON_ARG_MEMORY for loads and stores.
1063 * config/arm/predicates.md (neon_struct_operand): New predicate.
1064 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1065 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1066 (V_four_elem): Tweak formatting.
1067 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1068 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1069 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1070 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1071 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1072 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1073 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1074 Use %A in the output template.
1075 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1076 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1077 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1078 the width of the memory access. Remove post-increment.
1079 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1081 2011-04-12 Nick Clifton <nickc@redhat.com>
1083 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1084 instruction for interrupt handlers if the target is the basic V850
1086 (expand_epilogue): Likewise.
1088 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1090 PR rtl-optimization/48549
1091 * combine.c (propagate_for_debug): Also stop after BB_END of
1092 this_basic_block. Process LAST and just stop processing after it.
1093 (combine_instructions): If last_combined_insn has been deleted,
1094 set last_combined_insn to its PREV_INSN.
1096 2011-04-12 Richard Guenther <rguenther@suse.de>
1098 PR tree-optimization/46076
1099 * gimple.h (struct gimple_statement_call): Add fntype field.
1100 (gimple_call_fntype): Adjust.
1101 (gimple_call_set_fntype): New function.
1102 * gimple.c (gimple_build_call_1): Set the call function type.
1103 * gimplify.c (gimplify_call_expr): Preserve the function
1104 type the frontend used for the call.
1105 (gimplify_modify_expr): Likewise.
1106 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1108 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1110 * tree-ssa.c (useless_type_conversion_p): Function pointer
1111 conversions are useless.
1113 2011-04-12 Martin Jambor <mjambor@suse.cz>
1115 * cgraph.h (cgraph_node): Remove function declaration.
1116 (cgraph_create_node): Declare.
1117 (cgraph_get_create_node): Likewise.
1118 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1119 Updated all callers.
1120 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1121 the decl does not already exist. Call cgraph_get_create_node instead
1123 (cgraph_get_create_node): New function.
1124 (cgraph_same_body_alias): Update comment.
1125 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1126 assert it does not return NULL.
1127 (cgraph_update_edges_for_call_stmt): Likewise.
1128 (cgraph_clone_edge): Likewise.
1129 (cgraph_create_virtual_clone): Likewise.
1130 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1131 instead of cgraph_node.
1132 (cgraph_add_new_function): Call cgraph_create_node or
1133 cgraph_get_create_node instead of cgraph_node.
1134 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1135 instead of cgraph_node.
1136 (record_eh_tables): Likewise.
1137 (mark_address): Likewise.
1138 (mark_load): Likewise.
1139 (build_cgraph_edges): Call cgraph_get_create_node instead
1141 (rebuild_cgraph_edges): Likewise.
1142 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1143 instead of cgraph_node.
1144 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1146 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1147 cgraph_create_node instead of cgraph_node.
1148 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1150 * lto-cgraph.c (input_node): Likewise.
1151 * lto-streamer-in.c (input_function): Likewise.
1152 * varasm.c (mark_decl_referenced): Likewise.
1153 (assemble_alias): Likewise.
1155 2011-04-12 Martin Jambor <mjambor@suse.cz>
1157 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1158 instead of cgraph_node and assert it does not return NULL.
1159 * lto-streamer-in.c (lto_read_body): Likewise.
1160 * omp-low.c (new_omp_context): Likewise.
1161 (create_task_copyfn): Likewise.
1162 * tree-emutls.c (lower_emutls_function_body): Likewise.
1163 * matrix-reorg.c (transform_allocation_sites): Likewise.
1165 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1168 * c-typeck.c (build_asm_expr): Error out on attempts to use
1169 void type outputs or inputs for constraints that allow reg or
1172 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1173 Richard Earnshaw <rearnsha@arm.com>
1176 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1177 to use sign-magnitude offsets. Reject unsupported unaligned
1178 cases. Add detailed description in comments.
1179 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1180 condition from TARGET_32BIT to TARGET_ARM.
1182 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1184 * tree.h (struct typed_tree): New.
1185 (struct tree_common): Include it instead of tree_base.
1186 (TREE_TYPE): Update for new location of type field.
1187 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1188 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1189 (union tree_node): Add typed field.
1190 * treestruct.def (TS_TYPED): New.
1191 * lto-streamer.c (check_handled_ts_structures): Handle it.
1192 * tree.c (MARK_TS_TYPED): New macro.
1193 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1195 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1197 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1198 (force_nonfallthru): Do not alter the loop nest if no basic block
1201 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/sse.md (VI): New mode iterator.
1205 (AVX256MODEI): Ditto.
1206 (AVXMODEF4P): Ditto.
1207 (avxvecpsmode): Ditto.
1208 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1209 (sse2_andnot<mode>3): New expander.
1210 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1211 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1212 (<any_logic:code><mode>3): Use VI mode iterator.
1213 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1214 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1215 (*andnottf3): Handle AVX three-operand constraints.
1216 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1218 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1219 Robert Millan <rmh@gnu.org>
1221 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1222 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1223 GNU_USER_DYNAMIC_LINKER64): Define.
1224 (REG_NAME): Don't undefine.
1225 (MD_UNWIND_SUPPORT): Undefine.
1226 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1227 (REG_NAME): Don't undefine.
1228 (MD_UNWIND_SUPPORT): Undefine.
1229 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1231 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1233 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1234 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1236 2011-04-11 Xinliang David Li <davidxl@google.com>
1238 * value-profile.c (check_ic_target): New function.
1239 (gimple_ic_transform): Sanity check indirect call target.
1240 * gimple-low.c (gimple_check_call_args): Interface change.
1241 (gimple_check_call_matching_types): New function.
1242 * tree-inline.c (tree_can_inline_p): Call new function.
1244 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1246 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1247 tree-pretty-print.h & realmpfr.h.
1249 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1252 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1253 (setup_allocno_and_important_classes): Ditto.
1255 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1257 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1258 GNU_USER_DYNAMIC_LINKER.
1259 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1260 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1261 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1262 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1263 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1264 GNU_USER_TARGET_OS_CPP_BUILTINS.
1265 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1267 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1269 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1270 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1271 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1272 GNU_USER_TARGET_OS_CPP_BUILTINS.
1273 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1274 GNU_USER_DYNAMIC_LINKER.
1275 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1276 GNU_USER_TARGET_OS_CPP_BUILTINS.
1277 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1278 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1279 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1281 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1282 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1283 GNU_USER_DYNAMIC_LINKER64): Remove.
1284 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1285 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1286 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1287 GNU_USER_DYNAMIC_LINKER.
1288 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1289 GNU_USER_TARGET_OS_CPP_BUILTINS.
1290 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1291 GNU_USER_TARGET_OS_CPP_BUILTINS.
1292 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1293 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1294 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1295 GNU_USER_TARGET_OS_CPP_BUILTINS.
1296 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1297 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1298 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1299 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1300 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1301 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1302 GNU_USER_DYNAMIC_LINKER.
1303 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1304 GNU_USER_TARGET_OS_CPP_BUILTINS.
1305 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1306 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1307 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1308 GNU_USER_DYNAMIC_LINKER.
1309 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1310 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1311 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1312 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1313 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1314 GNU_USER_DYNAMIC_LINKER.
1315 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1316 GNU_USER_DYNAMIC_LINKERN32.
1317 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1318 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1319 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1320 GNU_USER_DYNAMIC_LINKER32.
1321 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1322 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1323 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1324 GNU_USER_DYNAMIC_LINKER.
1325 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1326 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1327 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1328 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1329 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1330 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1331 GNU_USER_DYNAMIC_LINKER32.
1332 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1333 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1334 GNU_USER_DYNAMIC_LINKER.
1335 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1336 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1337 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1338 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1339 GNU_USER_DYNAMIC_LINKER64.
1340 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1342 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1343 GNU_USER_DYNAMIC_LINKER.
1344 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1345 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1346 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1347 GNU_USER_DYNAMIC_LINKER.
1348 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1350 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1351 GNU_USER_DYNAMIC_LINKER32.
1352 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1353 GNU_USER_DYNAMIC_LINKER64.
1354 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1355 GNU_USER_DYNAMIC_LINKER64.
1356 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1358 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1362 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1364 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1365 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1366 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1367 GNU_USER_DYNAMIC_LINKER.
1368 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1369 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1370 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1371 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1372 GNU_USER_DYNAMIC_LINKER64.
1373 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1374 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1375 GNU_USER_LINK_EMULATION.
1376 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1377 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1378 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1379 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1380 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1381 CPP_SPEC, CC1_SPEC): Remove.
1382 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1383 (GNU_USER_DYNAMIC_LINKER): Define.
1384 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1385 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1386 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1387 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1388 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1389 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1390 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1391 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1392 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1393 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1394 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1395 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1396 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1397 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1398 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1399 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1400 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1401 GNU_USER_DYNAMIC_LINKER.
1402 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1403 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1404 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1405 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1406 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1407 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1408 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1409 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1410 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1411 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1413 2011-04-11 Kai Tietz <ktietz@redhat.com>
1417 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1418 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1420 (ix86_is_msabi_thiscall): Removed.
1421 (ix86_is_type_thiscall): Likewise.
1422 (ix86_get_callcvt): New function.
1423 (ix86_comp_type_attributes): Simplify check.
1424 (ix86_function_regparm): Use ix86_get_callcvt for calling
1425 convention attribute checks.
1426 (ix86_return_pops_args): Likewise.
1427 (ix86_static_chain): Likewise.
1428 (x86_this_parameter): Likewise.
1429 (x86_output_mi_thunk): Likewise.
1430 (ix86_function_type_abi): Optimize check for types without attributes.
1431 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1432 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1433 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1435 (IX86_BASE_CALLCVT): Helper macro.
1436 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1437 Use ix86_get_callcvt for calling convention attribute checks and avoid
1438 symbol-decoration for stdcall in TARGET_RTD case.
1439 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1441 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1444 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1446 * config/i386/sse.md (VI_128): New mode iterator.
1447 (VI12_128): Rename from SSEMODE12.
1448 (VI14_128): Rename from SSEMODE14.
1449 (VI124_128): New mode iterator.
1450 (VI24_128): Rename from SSEMODE248.
1451 (VI248_128): Rename from SSEMODE248.
1452 (SSEMODE124C8): Remove.
1453 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1454 (*sse2_<plusminus_insn><mode>3): Merge with
1455 *avx_<plusminus_insn><mode>3.
1456 (*mulv8hi3): Merge with *avx_mulv8hi3.
1457 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1458 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1459 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1460 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1461 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1462 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1463 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1464 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1465 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1466 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1467 (*<smaxmin:code>v8hi3): Ditto.
1468 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1469 (*<smaxmin:code>v16qi3): Ditto.
1470 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1471 (*sse2_eq<mode>3): Ditto.
1472 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1473 (*sse2_gt<mode>3): Ditto.
1474 (vcondv2di): Split out of vcond<mode>.
1475 (vconduv2di): Split out of vcondu<mode>.
1477 2011-04-11 Richard Guenther <rguenther@suse.de>
1479 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1480 before calling tree_low_cst.
1482 2011-04-11 Richard Guenther <rguenther@suse.de>
1484 * stor-layout.c (layout_type): Compute all array index size operations
1485 in the original type.
1486 (initialize_sizetypes): Add comment.
1487 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1489 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1491 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1493 2011-04-11 Martin Jambor <mjambor@suse.cz>
1495 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1496 of cgraph_node, handle NULL return value.
1497 (cgraph_global_info): Likewise.
1498 (cgraph_rtl_info): Likewise.
1499 * tree-inline.c (estimate_num_insns): Likewise.
1500 * gimplify.c (unshare_body): Likewise.
1501 (unvisit_body): Likewise.
1502 (gimplify_body): Likewise.
1503 * predict.c (optimize_function_for_size_p): Likewise.
1504 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1505 (call_may_clobber_ref_p_1): Likewise.
1506 * varasm.c (function_section_1): Likewise.
1507 (assemble_start_function): Likewise.
1509 2011-04-11 Martin Jambor <mjambor@suse.cz>
1511 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1513 * final.c (rest_of_clean_state): Likewise.
1514 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1515 * passes.c (pass_init_dump_file): Likewise.
1516 (execute_all_ipa_transforms): Likewise.
1517 (function_called_by_processed_nodes_p): Likewise.
1518 * predict.c (maybe_hot_frequency_p): Likewise.
1519 (probably_never_executed_bb_p): Likewise.
1520 (compute_function_frequency): Likewise.
1521 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1522 (unnest_nesting_tree_1): Likewise.
1523 (lower_nested_functions): Likewise.
1524 * tree-optimize.c (execute_fixup_cfg): Likewise.
1525 (tree_rest_of_compilation): Likewise.
1526 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1527 * tree-sra.c (ipa_early_sra): Likewise.
1528 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1529 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1530 * ipa.c (record_cdtor_fn): Likewise.
1531 * ipa-inline.c (cgraph_early_inlining): Likewise.
1532 (compute_inline_parameters_for_current): Likewise.
1533 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1534 * ipa-pure-const.c (local_pure_const): Likewise.
1535 * ipa-split.c (split_function): Likewise.
1536 (execute_split_functions): Likewise.
1537 * cgraphbuild.c (build_cgraph_edges): Likewise.
1538 (rebuild_cgraph_edges): Likewise.
1539 (cgraph_rebuild_references): Likewise.
1540 (remove_cgraph_callee_edges): Likewise.
1541 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1542 (verify_cgraph_node): Likewise.
1543 (cgraph_analyze_functions): Likewise.
1544 (cgraph_preserve_function_body_p): Likewise.
1545 (save_inline_function_body): Likewise.
1546 (save_inline_function_body): Likewise.
1547 * tree-inline.c (copy_bb): Likewise.
1548 (optimize_inline_calls): Likewise.
1550 2011-04-11 Martin Jambor <mjambor@suse.cz>
1552 PR tree-optimization/48195
1553 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1554 ipa_check_create_edge_args.
1555 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1556 ipa_check_create_edge_args.
1557 * ipa-inline.c (inline_generate_summary): Do not call
1558 ipa_check_create_node_params and ipa_check_create_edge_args.
1559 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1560 ipa_check_create_edge_args.
1562 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1564 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1566 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1567 * function.c (record_hard_reg_sets): Likewise.
1568 * ira.c (compute_regs_asm_clobbered): Likewise.
1569 * sched-deps.c (sched_analyze_1): Likewise.
1570 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1572 2011-04-09 Xinliang David Li <davidxl@google.com>
1574 PR tree-optimization/PR48484
1575 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1576 has_valid_pred lazily
1578 2011-04-09 Duncan Sands <baldrick@free.fr>
1580 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1582 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1584 * combine.c (combine_validate_cost): Adjust comments. Set registered
1585 cost of I0 to zero at the end, if any.
1587 2011-04-08 Xinliang David Li <davidxl@google.com>
1589 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1590 to insane profile data.
1592 2011-04-08 Xinliang David Li <davidxl@google.com>
1594 * final.c (dump_basic_block_info): New function.
1595 (final): Dump basic block.
1596 (final_scan_insn): Remove old dump.
1598 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1601 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1604 2011-04-08 Michael Matz <matz@suse.de>
1607 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1609 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1610 * rtl.h (rebuild_jump_labels_chain): Declare.
1611 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1612 insns inserted on edges.
1614 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1616 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1617 * config/arm/arm-arches.def: New.
1618 * config/arm/arm-opts.h: New.
1619 * config/arm/genopt.sh: New.
1620 * config/arm/arm-tables.opt: New (generated).
1621 * config/arm/arm.c (arm_handle_option, arm_target_help,
1622 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1623 (all_architectures): Get most table contents from arm-arches.def.
1624 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1625 arm_selected_tune here.
1626 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1627 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1628 (march=, mcpu=, mtune=): Use Enum and Var.
1629 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1630 (arm.o): Update dependencies.
1632 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1634 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1636 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1637 (write_typed_alloc_defns): Likewise.
1638 (main): Calls write_typed_alloc_defns with output_header.
1640 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1643 * ira-color.c (setup_profitable_hard_regs): Add comments.
1644 Don't take prohibited hard regs into account.
1645 (setup_conflict_profitable_regs): Rename to
1646 get_conflict_profitable_regs.
1647 (check_hard_reg_p): Check prohibited hard regs.
1649 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1651 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1652 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1653 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1655 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1658 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1659 move from floating point to shift amount register .
1660 (emit_move_sequence): Remove secondary reload support for floating
1661 point to shift amount amount register copies.
1662 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1663 amount register copies.
1664 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1665 register, return false if mode isn't a scalar integer mode.
1666 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1668 2011-04-08 Richard Guenther <rguenther@suse.de>
1670 * gimple.c (gimple_call_flags): Remove kludge.
1672 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1674 * sel-sched.c (sel_region_init): Move call to
1675 sel_setup_region_sched_flags after setup_current_loop_nest.
1677 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1679 PR rtl-optimization/48272
1680 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1681 init_insn_reg_pressure_info. Adjust a caller.
1682 * sched-int.h (init_insn_reg_pressure_info): Declare.
1683 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1684 when sched-pressure is enabled.
1686 2011-04-08 Richard Guenther <rguenther@suse.de>
1688 * gimple.c (gimple_set_modified): Do not queue calls to
1689 MODIFIED_NORETURN_CALLS here ...
1690 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1692 2011-04-08 Richard Guenther <rguenther@suse.de>
1695 * toplev.c (lang_dependent_init): Do not open asm_out_file
1696 in WPA mode, nor perform debug machinery initialization.
1697 (finalize): Do not unlink asm_out_file in WPA mode.
1699 2011-04-08 Richard Guenther <rguenther@suse.de>
1701 * gimple.h (gimple_call_fntype): New function.
1702 (gimple_call_return_type): Use it.
1703 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1704 * gimple-low.c (gimple_check_call_args): Likewise.
1705 * gimple.c (gimple_call_flags): Likewise.
1706 (gimple_call_arg_flags): Likewise.
1707 (gimple_call_return_flags): Likewise.
1708 * tree-cfg.c (verify_gimple_call): Likewise.
1709 (do_warn_unused_result): Likewise.
1710 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1711 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1713 2011-04-08 Dmitry Melnik <dm@ispras.ru>
1715 PR rtl-optimization/48235
1716 * sel-sched.c (code_motion_process_successors): Recompute the last
1717 insn in basic block if control flow changed.
1718 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1719 Update condition for ilist_remove.
1721 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1723 PR rtl-optimization/48302
1724 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1725 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1726 it to record added preheader blocks.
1727 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1728 on to sel_add_loop_preheaders.
1729 (sel_region_init): Move call to setup_current_loop_nest after
1732 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1735 * cfgloop.h (loop_has_exit_edges): New helper.
1736 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1738 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1739 that have no exit edges.
1741 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1743 PR rtl-optimization/48442
1744 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1745 all callers. Adjust assert.
1747 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1749 PR tree-optimization/48377
1750 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1751 is_packed to true even for types with smaller TYPE_ALIGN than
1754 2011-04-08 Richard Guenther <rguenther@suse.de>
1757 * doc/tm.texi: Re-generate.
1759 2011-04-08 Wei Guozhi <carrot@google.com>
1762 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1763 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1764 * config/arm/arm.md (*push_multi): Change the length computation to
1767 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1769 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1770 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1771 * doc/tm.texi: Regenerate.
1772 * system.h (ASM_OUTPUT_BSS): Poison.
1773 * varasm.c (asm_output_bss): Remove function.
1774 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1776 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1777 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1778 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1779 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1781 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1783 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1785 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1787 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1789 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1792 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1794 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1795 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1796 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1798 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1799 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1800 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1801 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1802 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1803 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1804 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1805 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1806 options. Don't map other m68k options manually. Don't handle
1807 old-style options as canonical.
1808 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1809 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1811 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1813 * basic-block.h (force_nonfallthru): Move to...
1814 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1815 (force_nonfallthru): ...here.
1816 * cfghooks.c (force_nonfallthru): New function.
1817 * cfgrtl.c (force_nonfallthru): Rename into...
1818 (rtl_force_nonfallthru): ...this.
1819 (commit_one_edge_insertion): Do not set AUX field.
1820 (commit_edge_insertions): Do not discover new basic blocks.
1821 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1822 (cfg_layout_rtl_cfg_hooks): Likewise.
1823 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1824 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1825 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1827 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1829 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1832 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1834 * config/i386/sse.md: Update copyright year.
1835 (avxcvtvecmode): Remove.
1836 (sse_movhlps): Merge with *avx_movhlps.
1837 (sse_movlhps): Merge with *avx_movlhps.
1838 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1839 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1840 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1841 (sse_loadhps): Merge with *avx_loadhps.
1842 (sse_storelps): Merge with *avx_storelps.
1843 (sse_loadlps): Merge with *avx_loadlps.
1844 (sse_movss): Merge with *avx_movss.
1845 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1846 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1847 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1848 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1849 (vec_set<mode>_0): Ditto.
1850 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1851 (sse4_1_insertps): Merge with *avx_insertps.
1852 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1853 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1854 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1855 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1856 (sse2_storehpd): Merge with *avx_storehpd.
1857 (sse2_loadhpd): Merge with *avx_loadhpd.
1858 (sse2_loadlpd): Merge with *avx_loadlpd.
1859 (sse2_movsd): Merge with *avx_movsd.
1860 (*vec_concatv2df): Merge with *vec_concatv2df.
1862 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1865 * combine.c (combine_instructions): Add last_combined_insn,
1866 update it if insn is after it, pass it to all try_combine calls.
1867 (try_combine): Add last_combined_insn parameter, pass it instead of
1868 i3 to propagate_for_debug.
1870 2011-04-07 Nick Clifton <nickc@redhat.com>
1872 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1873 to handle MDR <-> data register transfers.
1874 (movhi_internal): Likewise.
1876 2011-04-07 Alan Modra <amodra@gmail.com>
1878 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1879 previous stack info.
1881 2011-04-07 Tom de Vries <tom@codesourcery.com>
1884 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1885 flow_find_cross_jump. Swap variables to implement backward replacement.
1886 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1888 2011-04-07 Tom de Vries <tom@codesourcery.com>
1891 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1892 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1894 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1895 src1 or src2. Redirect edges to the last basic block. Update
1896 frequency and count on multiple basic blocks in case of fallthru.
1898 2011-04-07 Tom de Vries <tom@codesourcery.com>
1901 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1903 (old_insns_match_p): Change return type. Replace return false/true
1904 with return dir_none/dir_both. Use can_replace_by.
1905 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1906 direction from dir_p. Register replacement direction in dir, last_dir
1907 and afterlast_dir. Handle new return type of old_insns_match_p using
1908 merge_dir. Return replacement direction in dir_p.
1909 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1910 return type of old_insns_match_p.
1911 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1912 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1913 flow_find_cross_jump.
1914 * basic-block.h (enum replace_direction): New type.
1915 (flow_find_cross_jump): Add parameter to declaration.
1917 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1919 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1920 (AVXMODEDCVTPS2DQ): Ditto.
1921 (VEC_FLOAT_MODE): Ditto.
1922 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1923 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1924 (<any_logic:code><mode>3): Use VF mode iterator.
1925 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1926 Use VF mode iterator.
1927 (copysign<mode>3): Use VF mode iterator.
1928 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1929 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1930 (*<any_logic:code><MODEF:mode>3): Merge with
1931 *avx_<any_logic:code><MODEF:mode>3.
1932 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1933 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1934 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1935 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1936 (sse2_cvtdq2ps): Use %v modifier.
1937 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1938 (avx_cvtps2dq<avxmodesuffix>): Remove.
1939 (sse2_cvtps2dq): Use %v modifier.
1940 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1941 (avx_cvttps2dq<avxmodesuffix>): Remove.
1942 (sse2_cvttps2dq): Use %v modifier.
1943 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1944 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1945 (sse2_cvtsd2siq): Fix insn template.
1946 (sse2_cvtsd2siq_2): Ditto.
1947 (sse2_cvttsd2siq): Ditto.
1948 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1949 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1951 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1953 * gcov-io.c: Use GCC Runtime Library Exception.
1955 2011-04-06 Jakub Jelinek <jakub@redhat.com>
1958 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1959 as base_reg whatever register reg has been eliminated to, instead
1960 of hardcoding STACK_POINTER_REGNUM.
1962 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1964 * doc/tm.texi.in: Document C target hooks as separate from general
1966 * doc/tm.texi: Regenerate.
1967 * genhooks.c (struct hook_desc): Add docname field.
1968 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1970 (hook_array): Include c-target.def.
1971 (emit_documentation): Use docname field in output.
1972 (emit_init_macros): Take docname argument. Only emit definitions
1973 for hooks matching docname.
1974 (main): Expect additional arguments in all cases. Pass argument
1975 to emit_init_macros.
1976 * target.def: Move initial macro definitions and comments to
1977 target-hooks-macros.h.
1978 (gcc_targetcm): Move to c-family/c-target.def.
1979 * target.h (targetcm): Move declaration to c-family/c-target.h.
1980 * targhooks.c (default_handle_c_option): Move to
1982 * targhooks.h (default_handle_c_option): Move declaration to
1983 c-family/c-common.h.
1984 * target-hooks-macros.h: New file.
1985 * config.gcc (target_has_targetcm): Define and use to add to
1986 c_target_objs and cxx_target_objs.
1987 * config/default-c.c: New file.
1988 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1989 of target.h and target-def.h.
1990 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1991 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1992 darwin_check_cfstring_format_arg): Make static.
1993 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1994 TARGET_STRING_OBJECT_REF_TYPE_P,
1995 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1996 * config/darwin-protos.h (darwin_objc_construct_string,
1997 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1999 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2000 TARGET_STRING_OBJECT_REF_TYPE_P,
2001 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2002 * config/t-darwin (darwin-c.o): Update dependencies.
2003 * system.h (TARGET_HAS_TARGETCM): Poison.
2004 * Makefile.in (TARGET_H): Update.
2005 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2006 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2007 (default-c.o): New target.
2008 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2009 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2010 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2012 (build/genhooks.o): Update dependencies.
2014 2011-04-06 Richard Guenther <rguenther@suse.de>
2016 * ipa-inline.c (enum inlining_mode): Remove.
2017 (cgraph_flatten): Use some other token.
2018 (cgraph_edge_early_inlinable_p): New function, split out from ...
2019 (cgraph_perform_always_inlining): New function, split out from ...
2020 (cgraph_decide_inlining_incrementally): ... here.
2021 (cgraph_mark_inline_edge): Adjust.
2022 (cgraph_early_inlining): Re-structure.
2023 (pass_early_inline): Require SSA form.
2025 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2026 Julian Brown <julian@codesourcery.com>
2027 Mark Shinwell <shinwell@codesourcery.com>
2029 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2030 LO_REGS only for Thumb-1.
2031 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2032 be used in short instructions when optimising for size on Thumb-2.
2034 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2036 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2037 associated with user returns to be preserved.
2039 2011-04-06 Tristan Gingold <gingold@adacore.com>
2041 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2042 symbol_queue_size, DBXOUT_DECR_NESTING,
2043 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2044 if XCOFF_DEBUGGING_INFO.
2046 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2048 * config/i386/i386.md (attribute isa): New.
2049 (attribute enabled): New.
2050 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2051 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2052 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2053 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2054 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2055 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2056 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2057 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2059 * config/i386/sse.md (VF): New mode iterator.
2063 (SSEMODEF4): Remove.
2064 (attribute sse): Handle V8SF and V4DF modes.
2065 (<absneg:code><mode>2): Use VF mode iterator.
2066 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2068 (<plusminus_insn><mode>3): Use VF mode iterator.
2069 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2070 Use VF mode iterator.
2071 (<sse>_vm<plusminus_insn><mode>3): Merge with
2072 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2073 (mul<mode>3): Use VF mode iterator.
2074 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2075 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2077 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2078 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2079 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2080 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2082 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2083 Use VF1 mode iterator.
2084 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2085 (sqrt<VF2:mode>2): New expander.
2086 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2087 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2088 and sqrtv2df2. Use VF mode iterator.
2089 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2091 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2092 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2093 Use VF1 mode iterator.
2094 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2095 (<smaxmin:code><mode>3): Use VF mode iterator.
2096 (*<smaxmin:code><mode>3_finite): Merge with
2097 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2098 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2099 (<sse>_vm<smaxmin:code><mode>2): Merge with
2100 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2101 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2103 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2105 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2106 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2107 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2108 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2109 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2111 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2112 Use VF_128 mode iterator.
2113 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2115 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2116 VF_128 mode iterator.
2117 (vcond<mode>): Use VF mode iterator.
2118 * config/i386/predicates.md (sse_comparison_operator): Merge with
2119 avx_comparison_float_operator. Do not declare as special_predicate.
2120 * config/i386/i386.c (struct builtin_description): Update for renamed
2122 (ix86_expand_args_builtin): Ditto.
2123 (ix86_expand_sse_compare_mask): Ditto.
2125 2011-04-06 Richard Guenther <rguenther@suse.de>
2127 * tree-inline.c (estimate_num_insns): For calls simply account
2128 for all passed arguments and a used return value.
2130 2011-04-06 Richard Guenther <rguenther@suse.de>
2132 PR tree-optimization/47663
2133 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2134 call_stmt_time fields.
2135 (cgraph_edge_inlinable_p): Declare.
2136 (cgraph_edge_recursive_p): New inline function.
2137 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2138 (cgraph_clone_edge): Copy it.
2139 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2140 Account for call stmt time.
2141 (cgraph_estimate_time_after_inlining): Take edge argument.
2142 (cgraph_estimate_edge_growth): Account call stmt size.
2143 (cgraph_estimate_size_after_inlining): Take edge argument.
2144 (cgraph_mark_inline_edge): Adjust.
2145 (cgraph_check_inline_limits): Likewise.
2146 (cgraph_recursive_inlining_p): Remove.
2147 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2148 (cgraph_decide_recursive_inlining): Take edge argument and
2150 (cgraph_decide_inlining_of_small_functions): Do not avoid
2151 diags for recursive inlining here.
2152 (cgraph_flatten): Adjust.
2153 (cgraph_decide_inlining_incrementally): Likewise.
2154 (estimate_function_body_sizes): Remove call cost handling.
2155 (compute_inline_parameters): Initialize caller edge call costs.
2156 (cgraph_estimate_edge_growth): New function.
2157 (cgraph_estimate_growth): Use it.
2158 (cgraph_edge_badness): Likewise.
2159 (cgraph_check_inline_limits): Take an edge argument.
2160 (cgraph_decide_inlining_of_small_functions): Adjust.
2161 (cgraph_decide_inlining): Likewise.
2162 * tree-inline.c (estimate_num_insns): Only account for call
2163 return value if it is used.
2164 (expand_call_inline): Avoid diagnostics on recursive inline
2166 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2167 (input_edge): Input edge call costs.
2169 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2171 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2173 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2175 * doc/invoke.texi (Spec Files): Fix typo.
2177 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2179 * profile.c (branch_prob): Move declaration of local variable. Remove
2180 obsolete ??? comment. Expand the location explicitly instead of using
2181 the LOCATION_FILE and LOCATION_LINE macros.
2183 2011-04-06 Wei Guozhi <carrot@google.com>
2186 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2187 (arm_cond_branch): Likewise.
2188 (arm_cond_branch_reversed): Likewise.
2189 (arm_jump): Likewise.
2190 (push_multi): Likewise.
2191 * config/arm/constraints.md (Py): New constraint.
2193 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2196 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2198 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2199 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2200 #ifdef DBX_DEBUGGING_INFO.
2202 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2205 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2206 if old and new states differ.
2208 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2210 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2211 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2212 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2213 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2214 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2216 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2217 ColdFire options to -mcpu= options.
2219 2011-04-05 Jeff Law <law@redhat.com>
2221 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2222 check if BB is a successor of LOOP->header and return
2223 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2225 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2227 * cprop.c (struct reg_use): Remove.
2228 (reg_use_table): Make an array of RTX.
2229 (find_used_regs, constprop_register, local_cprop_pass,
2230 bypass_block): Simplify users of reg_use_table.
2231 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2232 on one of the uses found by find_used_regs.
2234 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2237 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2240 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2242 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2244 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2246 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2249 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2251 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2253 * combine.c: Include obstack.h.
2254 (struct insn_link): Define.
2255 (uid_log_links): Adjust type.
2256 (FOR_EACH_LOG_LINK): New macro.
2257 (insn_link_obstack): Declare.
2258 (alloc_insn_link): Define.
2259 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2260 type of link variables.
2261 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2262 (try_combine, record_promoted_values, distribute_notes): Likewise.
2263 (distribute_links): Likewise. Tweak prototype.
2264 (clear_log_links): Delete.
2265 (adjust_for_new_dest): Call alloc_insn_link.
2266 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2268 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2270 * gcse.c (modify_mem_list): Convert to an array of VECs.
2271 (canon_modify_mem_list, compute_transp): Tweak formatting.
2272 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2273 (load_killed_in_block_p): Likewise.
2274 (record_last_mem_set_info): Likewise.
2275 (clear_modify_mem_tables): Likewise.
2277 2011-04-05 Tom de Vries <tom@codesourcery.com>
2280 * function.c (emit_use_return_register_into_block): Only define if
2283 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2285 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2287 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2289 * config/rx/rx-opts.h: New.
2290 * config/rx/rx.c (rx_cpu_type): Remove.
2291 (rx_handle_option): Don't assert that global structures are in
2292 use. Access variables via opts pointer. Defer most handling of
2293 OPT_mint_register_. Use error_at.
2294 (rx_option_override): Handle deferred OPT_mint_register_ here.
2295 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2296 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2297 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2298 (rx_cpu_types): New Enum and EnumValue entries.
2299 (mint-register=): Use Defer and use Var accordingly.
2301 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2303 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2304 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2305 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2307 (debug_free_queue, debug_nesting, symbol_queue_index):
2309 * dbxout.c: ...to here. Make static.
2311 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2313 * gcse.c (modify_pair): Define. Define a VEC of it.
2314 (canon_modify_mem_list): Convert to an array of VECs.
2315 (free_insn_expr_list_list): Delete.
2316 (clear_modify_mem_tables): Call VEC_free instead.
2317 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2318 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2319 (canon_list_insert, compute_transp): Likewise.
2321 2011-04-05 Tom de Vries <tom@codesourcery.com>
2324 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2327 2011-04-05 Tom de Vries <tom@codesourcery.com>
2330 * function.c (emit_use_return_register_into_block): New function.
2331 (thread_prologue_and_epilogue_insns): Use
2332 emit_use_return_register_into_block.
2334 2011-04-05 Tom de Vries <tom@codesourcery.com>
2337 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2340 2011-04-05 Tom de Vries <tom@codesourcery.com>
2342 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2344 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2346 * config/arm/arm.md (define_constants for unspec): Replace with
2348 (define_constants for unspecv): Replace with define_c_enum.
2349 * config/arm/neon.md (define_constants for unspec): Replace with
2352 2011-04-04 Richard Henderson <rth@redhat.com>
2355 * dwarf2out.c (output_line_info): Always emit line info from
2356 at least one section.
2357 (dwarf2out_init): Create text_section_line_info here ...
2358 (set_cur_line_info_table): ... not here.
2360 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2363 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2366 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2368 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2370 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2371 (expr_equiv_p): Remove.
2372 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2373 (hash_scan_set): Update call to insert_set_in_table.
2374 (dump_hash_table): Dump <dest, src> pair.
2375 (lookup_set): Simplify. Lookup <dest, src> pair.
2376 (compute_transp): Remove, fold heavily simplified code into...
2377 (compute_local_properties): ...here. Expect COMP and TRANSP
2379 (find_avail_set): Take set directly from struct expr.
2380 (find_bypass-set): Likewise.
2381 (bypass_block): Likewise.
2382 (cprop_insn): Likewise. Remove redundant INSN_P test.
2384 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2385 checks on form of COND from find_implicit_sets to here.
2386 (find_implicit_sets): Cleanup control flow. Split critical edges
2387 if it exposes implicit sets. Allocate/resize implicit_sets as
2389 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2390 changed something. Run df_analyze after find_implicit_sets if any
2391 edges were split. Do not allocate implicit_sets here.
2393 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2394 (gcse_obstack): Renamed to cprop_obstack.
2395 (GNEW, GNEWVEC, GNEWVAR): Remove.
2397 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2398 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2399 (gcse_alloc): Likewise, and rename to cprop_alloc.
2400 (alloc_gcse_men, free_gcse_mem): Remove.
2401 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2402 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2403 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2405 * cprop.c (oprs_not_set_p): Remove.
2406 (mark_set, mark_clobber): Remove.
2407 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2408 (reg_not_set_p): New function.
2409 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2410 (cprop_insn): Likewise.
2411 (cprop_jump): Use FOR_EACH_EDGE.
2413 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2416 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2417 (rank_for_schedule): Use scheduled_insns vector instead of
2418 last_scheduled_insn.
2419 (ok_for_early_queue_removal): Likewise.
2420 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2422 (choose_ready): Likewise.
2423 (commit_schedule): Use VEC_iterate.
2424 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2425 a dbg_cnt, use it and ensure the first insn is in the ready list.
2426 (haifa_sched_init): Allocate scheduled_insns.
2427 (sched_extend_ready_list): Don't allocate it; reserve space.
2428 (haifa_sched_finish): Free it.
2430 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2432 * optc-gen.awk: Always remove type from Variable entry before
2433 recording in var_seen.
2435 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2437 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2438 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2439 call to tidy_fallthru_edges.
2441 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2443 * doc/options.texi (ToLower): Document.
2444 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2445 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2446 * opts.h (cl_option): Add cl_tolower field.
2447 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2448 arguments with lowercase strings.
2449 * config/rx/rx.opt (mcpu=): Add ToLower.
2450 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2453 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2455 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2457 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2459 * config/vax/vax.c: Include reload.h.
2461 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2463 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2464 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2465 (sparc_preferred_reload_class): New function.
2467 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2470 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2471 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2473 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2475 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2476 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2478 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2480 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2481 (ASM_OUTPUT_ALIGNED_BSS): Define.
2483 2011-04-03 Michael Matz <matz@suse.de>
2485 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2486 and next_slot members.
2487 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2488 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2489 (lto_streamer_cache_append): Declare.
2490 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2491 unsigned index, remove offset parameter, ensure that we append
2492 or update existing entries.
2493 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2494 parameter, update next_slot for append.
2495 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2497 (lto_streamer_cache_insert_at): Likewise.
2498 (lto_streamer_cache_append): New function.
2499 (lto_streamer_cache_lookup): Use unsigned index.
2500 (lto_streamer_cache_get): Likewise.
2501 (lto_record_common_node): Don't test tree_node_can_be_shared.
2502 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2503 (lto_streamer_cache_delete): Don't free offsets member.
2504 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2505 (lto_output_string_with_length): Use lto_output_data_stream.
2506 (lto_output_tree_header): Remove ix parameter, don't write it.
2507 (lto_output_builtin_tree): Likewise.
2508 (lto_write_tree): Adjust callers to above, don't track and write
2509 offset, write unsigned index.
2510 (output_unreferenced_globals): Don't emit all global vars.
2511 (write_global_references): Use unsigned indices.
2512 (lto_output_decl_state_refs): Likewise.
2513 (write_symbol): Likewise.
2514 * lto-streamer-in.c (lto_input_chain): Move earlier.
2515 (input_function): Use unsigned index.
2516 (input_alias_pairs): Don't read and then ignore all global vars.
2517 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2518 don't pass it back, use lto_streamer_cache_append.
2519 (lto_register_var_decl_in_symtab): Use unsigned index.
2520 (lto_register_function_decl_in_symtab): Likewise.
2521 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2523 (lto_get_builtin_tree): Don't read index, use
2524 lto_streamer_cache_append.
2525 (lto_read_tree): Adjust call to lto_materialize_tree.
2527 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2528 don't use function calls in arguments to MIN.
2530 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2533 * gimple.c (gimple_type_leader_entry): Mark deletable.
2535 2011-04-03 Alan Modra <amodra@gmail.com>
2537 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2539 2011-04-03 Michael Matz <matz@suse.de>
2541 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2543 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2545 2011-04-03 Michael Matz <matz@suse.de>
2547 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2548 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2549 without function context.
2550 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2551 current_function_decl and cfun.
2553 2011-04-03 Michael Matz <matz@suse.de>
2555 * tree.c (decl_init_priority_insert): Don't create entry for
2557 (decl_fini_priority_insert): Ditto.
2558 (fields_compatible_p, find_compatible_field): Remove.
2559 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2560 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2562 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2564 * combine.c (try_combine): Remove useless local variable.
2566 2011-04-03 Richard Guenther <rguenther@suse.de>
2567 Ira Rosen <ira.rosen@linaro.org>
2569 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2570 non-variable offsets and compare the remaining bases of the two
2571 accesses instead of looking for exact same data-ref.
2573 2011-04-02 Kai Tietz <ktietz@redhat.com>
2576 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2578 * i386.c (ix86_is_msabi_thiscall): New helper function.
2579 (ix86_is_type_thiscall): New helper function.
2580 (ix86_comp_type_attributes): Handle thiscall for method-functions
2582 (init_cumulative_args): Likewise.
2583 (find_drap_reg): Likewise.
2584 (ix86_static_chain): Likewise.
2585 (x86_this_parameter): Likewise.
2586 (x86_output_mi_thunk): Likewise.
2588 2011-04-01 Olivier Hainque <hainque@adacore.com>
2589 Nicolas Setton <setton@adacore.com>
2590 Eric Botcazou <ebotcazou@adacore.com>
2592 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2593 (add_gnat_descriptive_type_attribute): New function.
2594 (gen_array_type_die): Call it.
2595 (gen_enumeration_type_die): Likewise.
2596 (gen_struct_or_union_type_die): Likewise.
2597 (modified_type_die): Likewise.
2598 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2599 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2600 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2602 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2605 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2606 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2609 2011-03-17 Richard Guenther <rguenther@suse.de>
2612 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2613 origin for decls in other ltrans units.
2614 (input_varpool_node): Likewise.
2616 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2619 * expr.c (expand_assignment): Handle all possibilities
2620 if TO_RTX is CONCAT.
2621 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2622 (store_split_bit_field): If SUBREG_REG (op0) or
2623 op0 itself has smaller mode than word, return it
2624 for offset 0 and const0_rtx for out-of-bounds stores.
2625 If word is const0_rtx, skip it.
2627 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2629 * config/h8300/h8300.c (print_operand_address): Rename to...
2630 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2631 Call h8300_print_operand and h8300_print_operand_address instead of
2632 print_operand and print_operand_address. Declare.
2633 (print_operand): Renake to...
2634 (h8300_print_operand): ...this. Make static. Adjust comments.
2635 Call h8300_print_operand instead of print_operand. Declare.
2636 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2637 (h8300_register_move_cost): Likewise.
2638 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2639 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2640 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2641 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2642 * config/h8300/h8300-protos.h (print_operand): Delete.
2643 (print_operand_address): Delete.
2645 2011-04-01 Richard Henderson <rth@redhat.com>
2648 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2649 in strict mode before dwarf4. Re-order tests to early out
2650 before switching sections.
2652 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2654 * config/h8300/constraints.md: New file.
2655 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2656 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2657 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2658 * config/h8300/predicates.md (bit_operand): Likewise.
2659 (incdec_operand): Use satisfies_constraint_M and
2660 satisfies_constraint_O. Don't use C code block.
2661 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2662 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2663 (compute_mov_length): Use satisfies_constraint_G.
2664 (fix_bit_operand): Use satisfies_constraint_U.
2665 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2666 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2667 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2668 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2669 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2670 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2671 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2672 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2673 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2674 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2675 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2676 (EXTRA_MEMORY_CONSTRAINT): Delete.
2678 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2679 Michael Meissner <meissner@linux.vnet.ibm.com>
2682 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2683 operands, as per the specifications.
2685 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2686 (vec_extract_evenv4sf): Ditto.
2687 (vec_extract_evenv8hi): Ditto.
2688 (vec_extract_evenv16qi): Ditto.
2689 (vec_extract_oddv4si): Ditto.
2691 2011-03-31 Mark Wielaard <mjw@redhat.com>
2693 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2694 high_pc attribute if the CU has no associated code. Only output
2695 DW_AT_entry_pc for CU if not generating strict dwarf and
2698 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2700 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2701 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2703 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2704 * final.c (final_start_function): Call the new function rather
2705 than using a NULL argument for dwarf2out_frame_debug.
2707 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2708 that contains the prologue.
2710 * haifa-sched.c (queue_insn): New arg REASON. All callers
2711 changed. Print it in debugging output.
2713 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2715 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2716 Split most of the code into...
2717 (begin_move_insn): ... here. New function.
2718 (ebb_sched_info): Add a pointer to it.
2719 * haifa-sched.c (scheduled_insns): New static variable.
2720 (sched_extend_ready_list): Allocate it.
2721 (schedule_block): Use it to record the order of scheduled insns.
2722 Perform RTL changes to move insns only after all scheduling
2723 decisions have been made.
2724 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2725 begin_move_insn field.
2726 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2727 * sched-int.h (struct haifa_sched_info): Remove second argument
2728 from begin_schedule_ready hook. Add new member begin_move_insn.
2729 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2730 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2732 * haifa-sched.c (prune_ready_list): New function, broken out of
2734 (schedule_block): Use it.
2736 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2738 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2740 2011-04-01 Kai Tietz <ktietz@redhat.com>
2742 * config.gcc (*-*-mingw*): Allow as option the
2743 posix threading model.
2744 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2745 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2747 (CPP_SPEC): Add pthread/no-pthread handling.
2748 (LIB_SPEC): Likewise.
2749 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2750 (LIB_SPEC): Likewise.
2751 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2752 flag to pass -pthread option for shared libgcc build.
2753 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2754 for shared libgcc build.
2755 * config/i386/t-mingw-pthread: New file.
2756 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2757 New define to enable use of library pthread by default.
2758 * config/i386/mingw.opt (pthread): New driver option.
2759 (no-pthread): New driver option.
2760 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2761 * config/i386/mingw-w64.opt: Likewise.
2763 2011-04-01 Gary Funck <gary@intrepid.com>
2765 * c-decl.c (grokdeclarator): Fix formatting.
2767 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2769 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2770 instead of n_operands.
2771 (set_storage_via_setmem): Likewise.
2772 * optabs.c (maybe_gen_insn): Likewise.
2773 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2774 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2775 (mips_expand_builtin_direct): Likewise.
2776 * config/spu/spu.c (expand_builtin_args): Likewise.
2778 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2780 * recog.h (insn_data_d): Add n_generator_args.
2781 * genoutput.c (data): Likewise.
2782 (output_insn_data): Print it.
2783 (max_opno, num_dups): Delete.
2784 (scan_operands): Just fill in "d->operand[...]".
2785 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2787 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2789 * gensupport.h (pattern_stats): New structure.
2790 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2791 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2792 (max_operand_1, max_operand_vec): Delete.
2793 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2795 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2797 * emit-rtl.c (emit_pattern_after_setloc): New function.
2798 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2799 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2800 (emit_pattern_after): New function.
2801 (emit_insn_after, emit_jump_insn_after): Call it.
2802 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2803 (emit_pattern_before_setloc): New function.
2804 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2805 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2807 (emit_pattern_before): New function.
2808 (emit_insn_before, emit_jump_insn_before): Call it.
2809 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2811 2011-03-31 Richard Henderson <rth@redhat.com>
2813 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2814 (dw_separate_line_info_entry): Remove.
2815 (enum dw_line_info_opcode): New.
2816 (dw_line_info_entry): Use it.
2817 (dw_line_info_table, dw_line_info_table_p): New.
2818 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2819 (line_info_table, line_info_label_num): Remove.
2820 (line_info_table_in_use): Remove.
2821 (separate_line_info_table): Remove.
2822 (separate_line_info_table_allocated): Remove.
2823 (separate_line_info_table_in_use): Remove.
2824 (LINE_INFO_TABLE_INCREMENT): Remove.
2825 (line_info_label_num): New.
2826 (cur_line_info_table): New.
2827 (text_section_line_info, cold_text_section_line_info): New.
2828 (separate_line_info): New.
2829 (SEPARATE_LINE_CODE_LABEL): Remove.
2830 (print_dwarf_line_table): Remove.
2831 (debug_dwarf): Don't dump it.
2832 (output_one_line_info_table): New.
2833 (output_line_info): Use it.
2834 (new_line_info_table): New.
2835 (set_cur_line_info_table): New.
2836 (dwarf2out_switch_text_section): Use it.
2837 (dwarf2out_begin_function): Likewise.
2838 (push_dw_line_info_entry): New.
2839 (dwarf2out_source_line): Rewrite for new line info tables.
2840 (dwarf2out_init): Remove dead initailizations.
2842 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2844 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2846 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2847 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2848 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2849 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2850 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2851 * opt-functions.awk (flag_init, switch_bit_fields): New.
2852 (switch_flags): Don't handle flags moved to bit-fields. Don't
2853 generate CL_MISSING_OK or CL_SAVE.
2854 * optc-gen.awk: Update to generate bit-field output as well as
2856 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2857 bit-field instead of CL_REJECT_DRIVER flag.
2858 * opts-common.c (generate_canonical_option,
2859 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2860 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2861 instead of CL_REJECT_NEGATIVE flag.
2862 * toplev.c (print_switch_values): Use cl_report bit-field instead
2865 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2867 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2868 a zero minimum index only if it is redundant.
2870 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2872 PR rtl-optimization/48381
2873 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2874 instead of ira_class_hard_reg_index for calculating conflicting
2877 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2879 * cprop.c: Clean up hash table building.
2880 (reg_avail_info): Remove.
2881 (oprs_available_p): Remove.
2882 (record_last_reg_set_info): Remove.
2883 (record_last_set_info): Remove.
2884 (reg_available_p): New function.
2885 (gcse_constant_p): Do not treat unfolded conditions as constants.
2886 (make_set_regs_unavailable): New function.
2887 (hash_scan_set): Simplify with new reg_available_p.
2888 (compute_hash_table_work): Traverse insns stream only once.
2889 Do not compute reg_avail_info. Traverse insns in reverse order.
2890 Record implicit sets after recording explicit sets from the block.
2892 2011-03-31 Michael Matz <matz@suse.de>
2894 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2896 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2898 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2899 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2900 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2901 (h8300_mode_dependent_address_p): New function.
2902 (h8300_get_index): Make static.
2904 2011-03-31 Jeff Law <law@redhat.com>
2906 * reload1.c (elimination_effects): Fix typo in recent change.
2908 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2909 typo potentially leading to null pointer dereference.
2911 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2912 (setup_save_areas): Corresponding changes to avoid useless
2915 * jump.c (reversed_comparison_code_parts): Avoid successive return
2916 statements when REVERSE_CONDITION is defined.
2918 * expr.c (expand_assignment): Avoid useless assignments.
2919 (expand_expr_real_1): Likewise.
2920 (expand_expr_real_2): Avoid useless statements.
2922 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2924 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2926 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2929 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2931 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2934 * doc/tm.texi.in (TARGET_VERSION): Remove.
2935 * doc/tm.texi: Regenerate.
2936 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2937 * collect2.c (main): Don't use TARGET_VERSION.
2938 * mips-tdump.c (main): Don't use TARGET_VERSION.
2939 * mips-tfile.c (main): Don't use TARGET_VERSION.
2940 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2941 * config/rs6000/vxworksae.h: Remove.
2942 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2943 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2944 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2945 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2946 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2947 * config/arm/arm.h (TARGET_VERSION): Remove.
2948 * config/arm/coff.h (TARGET_VERSION): Remove.
2949 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2950 * config/arm/elf.h (TARGET_VERSION): Remove.
2951 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2952 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2953 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2954 * config/arm/pe.h (TARGET_VERSION): Remove.
2955 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2956 * config/arm/semi.h (TARGET_VERSION): Remove.
2957 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2958 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2959 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2960 * config/avr/avr.h (TARGET_VERSION): Remove.
2961 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2962 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2963 * config/frv/frv.h (TARGET_VERSION): Remove.
2964 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2965 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2966 * config/i386/darwin.h (TARGET_VERSION): Remove.
2967 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2968 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2969 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2970 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2971 * config/i386/gnu.h (TARGET_VERSION): Remove.
2972 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2973 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2974 * config/i386/linux.h (TARGET_VERSION): Remove.
2975 * config/i386/linux64.h (TARGET_VERSION): Remove.
2976 * config/i386/lynx.h (TARGET_VERSION): Remove.
2977 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2978 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2979 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2980 * config/i386/netware.h (TARGET_VERSION): Remove.
2981 * config/i386/nto.h (TARGET_VERSION): Remove.
2982 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2983 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2984 * config/ia64/elf.h (TARGET_VERSION): Remove.
2985 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2986 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2987 * config/ia64/linux.h (TARGET_VERSION): Remove.
2988 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2989 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2990 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2991 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2992 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2993 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2994 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2995 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2996 * config/m68k/linux.h (TARGET_VERSION): Remove.
2997 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2998 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2999 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3000 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3001 * config/mep/mep.h (TARGET_VERSION): Remove.
3002 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3003 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3004 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3005 * config/mips/linux.h (TARGET_VERSION): Remove.
3006 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3007 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3008 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3009 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3010 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3011 * config/pa/pa.h (TARGET_VERSION): Remove.
3012 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3013 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3014 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3015 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3016 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3017 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3018 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3019 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3020 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3021 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3022 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3023 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3024 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3025 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3026 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3027 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3028 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3029 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3030 * config/s390/linux.h (TARGET_VERSION): Remove.
3031 * config/s390/s390.h (TARGET_VERSION): Remove.
3032 * config/s390/tpf.h (TARGET_VERSION): Remove.
3033 * config/score/score.h (TARGET_VERSION): Remove.
3034 * config/sh/linux.h (TARGET_VERSION): Remove.
3035 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3036 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3037 * config/sh/sh.h (TARGET_VERSION): Remove.
3038 * config/sh/sh64.h (TARGET_VERSION): Remove.
3039 * config/sh/superh.h (TARGET_VERSION): Remove.
3040 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3041 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3042 * config/sparc/linux.h (TARGET_VERSION): Remove.
3043 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3044 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3045 TARGET_NAME32, TARGET_NAME): Remove.
3046 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3047 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3048 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3049 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3050 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3051 * config/spu/spu.h (TARGET_VERSION): Remove.
3052 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3053 * config/v850/v850.h (TARGET_VERSION): Remove.
3054 * config/vax/linux.h (TARGET_VERSION): Remove.
3055 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3056 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3057 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3059 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3062 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3063 frame-related from frame-unrelated adjustments to the stack pointer.
3065 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3067 * common.opt (fdebug-types-section): Move earlier.
3068 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3070 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3072 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3075 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3077 * tree.h (CASE_CHAIN): Define.
3078 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3079 (gimple_redirect_edge_and_branch): Likewise.
3081 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3084 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3087 2011-03-30 Jeff Law <law@redhat.com>
3089 * PR bootstrap/48371
3090 * reload1.c (reload): Fix botch in last change.
3092 * reload.h (struct reload): Fix typo introduced in last change.
3094 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3096 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3097 Undocumented. Remove help text.
3098 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3101 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3103 * doc/options.texi (NegativeAlias): Document.
3104 (Alias): Mention NegativeAlias.
3105 * opt-functions.awk: Handle NegativeAlias.
3106 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3107 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3108 * opts.h (CL_NEGATIVE_ALIAS): Define.
3109 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3110 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3112 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3114 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3115 mno-spe and mno-isel instead of mspe=no and -misel=no.
3117 2011-03-29 Mark Wielaard <mjw@redhat.com>
3119 * common.opt (fdebug-types-section): New flag.
3120 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3121 * dwarf2out.c (use_debug_types): New define.
3122 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3123 (print_die): Guard output of type unit signatures using
3125 (build_abbrev_table): Replace assert of dwarf_version >= 4
3126 with assert on use_debug_types.
3127 (size_of_die): Likewise.
3128 (unmark_dies): Likewise.
3129 (value_format): Decide AT_ref_external form on use_debug_types.
3130 (output_die): Replace dwarf_version version check guard with
3131 use_debug_types where appropriate.
3132 (modified_type_die): Likewise.
3133 (gen_reference_type_die): Likewise.
3134 (dwarf2out_start_source_file): Likewise.
3135 (dwarf2out_end_source_file): Likewise.
3136 (prune_unused_types_walk_attribs): Likewise.
3137 (dwarf2out_finish): Likewise.
3139 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3141 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3143 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3145 PR rtl-optimization/48332
3146 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3147 mode of input operand N and modeN to its actual mode.
3149 2011-03-30 Jeff Law <law@redhat.com>
3151 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3152 define accessor macro.
3153 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3154 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3155 (reg_equiv_init): Likewise.
3156 (reg_equivs_size): New variable.
3157 (reg_equiv_init_size): Remove.
3158 (allocate_initial_values): Move prototype to here from....
3159 * integrate.h (allocate_initial_values): Remove prototype.
3160 * integrate.c: Include reload.h.
3161 (allocate_initial_values): Corresponding changes.
3162 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3163 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3164 (update_equiv_regs): Corresponding changes.
3165 (ira): Corresponding changes.
3166 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3167 (push_secondary_reload): Corresponding changes.
3168 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3169 (make_memloc, find_reloads_address): Corresponding changes.
3170 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3171 (find_reloads_address_1): Corresponding changes.
3172 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3173 (refers_to_regno_for_reload_p): Corresponding changes.
3174 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3175 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3176 * reload1.c: Include ggc.h.
3177 (grow_reg_equivs): New function.
3178 (replace_pseudos_in, reload): Corresponding changes.
3179 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3180 (eliminate_regs_1, elimination_effects): Corresponding changes.
3181 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3182 (delete_output_reload): Likewise.
3183 * caller-save.c (mark_referenced_regs): Corresponding changes.
3184 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3185 * frv/predicates.md (frv_load_operand): Corresponding changes.
3186 * microblaze/microblaze.c (double_memory_operand): Corresponding
3188 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3189 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3190 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3191 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3192 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3194 * pa/pa.c (emit_move_sequence): Corresponding changes.
3195 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3197 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3200 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3201 structure modes. Don't check neon_vector_mem_operand for
3202 vector or structure modes.
3204 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3205 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3208 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3209 operand 1 and reshuffle the operands to match.
3210 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3212 2011-03-30 Christian Schüler <cschueler@gmx.de>
3215 * config/c.opt (F): Added 'Driver' to -F option.
3218 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3220 * config/darwin.opt: Added '-arch' option.
3222 2011-03-30 Nick Clifton <nickc@redhat.com>
3224 * config/rx/rx.md: Add peepholes and patterns to combine
3225 extending loads and simple arithmetic instructions.
3226 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3227 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3228 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3229 modes to use pre-decrement and post-increment addressing.
3230 (rx_is_restricted_memory_address): Add range checking of REG+INT
3232 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3233 (rx_memory_move_cost): Adjust cost of stores.
3234 (rx_adjust_insn_length): New function.
3236 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3239 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3240 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3241 matching arg00/arg01 types.
3243 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3245 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3246 last_location to UNKNOWN_LOCATION.
3248 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3251 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3254 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3255 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3258 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3260 (sparc_cpu): Likewise.
3261 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3264 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3268 PR rtl-optimization/48345
3269 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3270 hard regs for given mode from profitable regs when doing secondary
3273 2011-03-29 Jeff Law <law@redhat.com>
3276 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3277 do_not_duplicate field.
3278 (lookup_redirection_data): Corresponding changes.
3279 (create_duplicates): Always create a template block.
3280 (redirect_edges): Remove code which reused the original block
3281 when it was going to become unreachable code.
3282 (thread_block): Don't set do_not_duplicate field.
3284 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3286 * lto-opts.c (register_user_option_p, lto_register_user_option):
3287 Make type argument unsigned.
3288 * lto-streamer.h (lto_register_user_option): Make type argument
3290 * opth-gen.awk: Make CL_* macros unsigned.
3291 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3292 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3293 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3294 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3295 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3296 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3297 (find_opt): Make lang_mask argument unsigned.
3299 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3301 PR rtl-optimization/48331
3302 PR rtl-optimization/48334
3303 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3304 for any used algorithm.
3306 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3308 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3311 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3313 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3314 (alpha_option_override): Don't set alpha_sr_alias_set.
3315 (emit_frame_store_1): Use gen_frame_mem rather than calling
3317 (alpha_expand_epilogue): Ditto.
3319 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3321 PR tree-optimization/48290
3322 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3323 vectorization, check that relevant phis in the basic block after
3324 the inner loop are really inner loop's exit phis.
3326 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3329 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3330 (cached_dw_loc_list_def): New structure.
3331 (cached_dw_loc_list): New typedef.
3332 (cached_dw_loc_list_table): New variable.
3333 (cached_dw_loc_list_table_hash): New function.
3334 (cached_dw_loc_list_table_eq): Likewise.
3335 (add_location_or_const_value_attribute): Take a bool cache_p.
3336 Cache the list when the parameter is true.
3337 (gen_formal_parameter_die): Update caller.
3338 (gen_variable_die): Likewise.
3339 (dwarf2out_finish): Likewise.
3340 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3341 while generating debug info for the decl.
3342 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3343 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3344 (resolve_addr): Cache the result of resolving a chain of
3347 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3349 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3350 conflict object hard regset nodes have intersecting hard reg sets.
3352 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3353 after regstat_init_n_sets_and_refs.
3355 * ira.c: Add more comments at the top.
3356 (setup_stack_reg_pressure_class, setup_pressure_classes):
3357 Add comments how we compute the register pressure classes.
3358 (setup_allocno_and_important_classes): Add more comments.
3359 (setup_class_translate_array, reorder_important_classes)
3360 (setup_reg_class_relations): Add comments.
3362 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3365 * ira-color.c: Add 2011 to the Copyright line.
3366 (assign_hard_reg): Add more comments.
3367 (improve_allocation): Ditto.
3369 * ira-costs.c: Add 2011 to the Copyright line.
3370 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3372 (setup_regno_cost_classes_by_mode): Ditto.
3374 Initial patches from ira-improv branch:
3376 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3378 * ira-build.c (ira_create_object): Remove initialization of
3379 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3380 (ira_create_allocno): Remove initialization of
3381 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3382 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3383 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3384 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3385 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3386 Initialize ALLOCNO_ADD_DATA.
3387 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3388 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3390 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3391 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3393 * ira.c (ira_reallocate): Remove.
3394 (setup_pressure_classes): Call
3395 ira_init_register_move_cost_if_necessary. Use
3396 ira_register_move_cost instead of ira_get_register_move_cost.
3397 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3398 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3400 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3401 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3402 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3403 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3404 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3405 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3407 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3408 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3409 (struct allocno_color_data): New.
3410 (allocno_color_data_t): New typedef.
3411 (allocno_color_data): New definition.
3412 (ALLOCNO_COLOR_DATA): New macro.
3413 (struct object_color_data): New.
3414 (object_color_data_t): New typedef.
3415 (object_color_data): New definition.
3416 (OBJECT_COLOR_DATA): New macro.
3417 (update_copy_costs, calculate_allocno_spill_cost): Call
3418 ira_init_register_move_cost_if_necessary. Use
3419 ira_register_move_cost instead of ira_get_register_move_cost.
3420 (move_spill_restore, update_curr_costs): Ditto.
3421 (allocno_spill_priority): Make it inline.
3422 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3423 (struct coalesce_data, coalesce_data_t): New.
3424 (allocno_coalesce_data): New definition.
3425 (ALLOCNO_COALESCE_DATA): New macro.
3426 (merge_allocnos, coalesced_allocno_conflict_p): Use
3427 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3428 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3429 (coalesce_allocnos): Ditto.
3430 (setup_coalesced_allocno_costs_and_nums): Ditto.
3431 (collect_spilled_coalesced_allocnos): Ditto.
3432 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3433 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3434 (coalesce_spill_slots): Ditto.
3435 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3436 free allocno_coalesce_data.
3438 * ira-conflicts.c: Fix formatting.
3439 (process_regs_for_copy): Call
3440 ira_init_register_move_cost_if_necessary. Use
3441 ira_register_move_cost instead of ira_get_register_move_cost.
3442 (build_object_conflicts): Optimize.
3444 * ira-costs.c (record_reg_classes): Optimize. Call
3445 ira_init_register_move_cost_if_necessary. Use
3446 ira_register_move_cost, ira_may_move_in_cost, and
3447 ira_may_move_out_cost instead of ira_get_register_move_cost and
3448 ira_get_may_move_cost.
3449 (record_address_regs): Ditto.
3450 (scan_one_insn): Optimize.
3451 (find_costs_and_classes): Optimize.
3452 (process_bb_node_for_hard_reg_moves): Call
3453 ira_init_register_move_cost_if_necessary. Use
3454 ira_register_move_cost instead of ira_get_register_move_cost.
3456 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3457 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3458 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3459 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3461 (ira_initiate_emit_data, ira_finish_emit_data)
3462 (create_new_allocno): New functions.
3463 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3464 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3465 Use ira_register_move_cost instead of ira_get_register_move_cost.
3467 * ira-int.h: Fix some comments.
3468 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3469 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3470 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3471 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3473 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3474 bitfield after mode. Make hard_regno a short int. Make
3475 hard_regno short. Remove first_coalesced_allocno and
3476 next_coalesced_allocno. Move mem_optimized_dest_p,
3477 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3478 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3479 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3480 temp, colorable_p. Add new member add_data.
3481 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3482 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3483 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3484 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3485 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3486 (ALLOCNO_ADD_DATA): New macro.
3487 (ira_emit_data_t): New typedef.
3488 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3489 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3490 from struct ira_allocno.
3491 (ALLOCNO_EMIT_DATA): New macro.
3492 (ira_allocno_emit_data, allocno_emit_reg): New.
3493 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3494 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3495 (OBJECT_ADD_DATA): New macro.
3496 (ira_reallocate): Remove.
3497 (ira_initiate_emit_data, ira_finish_emit_data): New.
3498 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3499 (ira_init_register_move_cost_if_necessary): New.
3500 (ira_object_conflict_iter_next): Merge into
3501 ira_object_conflict_iter_cond.
3502 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3504 * ira-live.c (process_single_reg_class_operands): Call
3505 ira_init_register_move_cost_if_necessary. Use
3506 ira_register_move_cost instead of ira_get_register_move_cost.
3508 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3510 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3512 * ira-costs.c: Fix formatting.
3513 (cost_classes, cost_classes_num): Remove.
3514 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3515 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3516 (cost_classes_del, cost_classes_htab): New.
3517 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3518 (initiate_regno_cost_classes, setup_cost_classes): New.
3519 (setup_regno_cost_classes_by_aclass): New.
3520 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3521 (record_reg_classes): Use regno_cost_classes instead of
3522 cost_classes. Move checking opposite operand up.
3523 (record_address_regs): Use regno_cost_classes
3524 instead of cost_classes.
3525 (scan_one_insn): Ditto. Use always general register.
3526 (print_allocno_costs): Use regno_cost_classes instead of
3528 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3529 (find_costs_and_classes): Set up cost classes for each registers.
3530 Use also their mode for this. Use regno_cost_classes instead of
3532 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3534 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3535 (ira_costs, ira_set_pseudo_classes): Call
3536 initiate_regno_cost_classes and finish_regno_cost_classes.
3538 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3540 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3542 * target.def (ira_cover_classes): Remove.
3544 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3546 * doc/tm.texi.in: Ditto.
3548 * ira-conflicts.c: Remove mentioning cover classes from the file.
3549 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3550 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3552 * targhooks.c (default_ira_cover_classes): Remove.
3554 * targhooks.h (default_ira_cover_classes): Ditto.
3556 * haifa-sched.c: Remove mentioning cover classes from the file.
3557 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3558 ira_pressure_classes and ira_pressure_classes_num instead of
3559 ira_reg_class_cover_size and ira_reg_class_cover. Use
3560 sched_regno_pressure_class instead of sched_regno_cover_class.
3561 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3562 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3564 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3565 classes from the file.
3566 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3567 (struct object_hard_regs, struct object_hard_regs_node): New.
3568 (struct ira_object): New members profitable_hard_regs,
3569 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3570 (struct ira_allocno): Rename cover_class to aclass. Rename
3571 cover_class_cost and updated_cover_class_cost to class_cost and
3572 updated_class_cost. Remove splay_removed_p and
3573 left_conflict_size. Add new members colorable_p.
3574 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3575 (ALLOCNO_COLORABLE_P): New macro.
3576 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3577 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3578 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3579 (OBJECT_...): Rename parameter C to O.
3580 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3581 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3582 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3583 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3584 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3585 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3586 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3587 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3588 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3589 x_ira_reg_class_subunion.
3590 (ira_max_memory_move_cost, ira_max_register_move_cost)
3591 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3592 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3593 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3594 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3595 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3596 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3597 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3598 (ira_tune_allocno_costs_and_cover_classes): Rename to
3599 ira_tune_allocno_costs.
3600 (ira_debug_hard_regs_forest): New.
3601 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3602 (ira_object_conflict_iter_next): Fix comments.
3603 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3604 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3605 cover_class to aclass.
3606 (ira_allocate_and_accumulate_costs): Ditto.
3607 (ira_allocate_and_set_or_copy_costs): Ditto.
3609 * opts.c (decode_options): Remove ira_cover_class check.
3611 * ira-color.c: Remove mentioning cover classes from the file. Use
3612 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3613 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3614 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3615 (splay-tree.h): Remove include.
3616 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3617 before copy_freq_compare_func.
3618 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3619 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3621 (hard_regs_roots, hard_regs_node_vec): Ditto.
3622 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3623 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3624 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3625 (create_new_object_hard_regs_node): Ditto.
3626 (add_new_object_hard_regs_node_to_forest): Ditto.
3627 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3628 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3630 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3631 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3632 (remove_unused_object_hard_regs_nodes): Ditto.
3633 (enumerate_object_hard_regs_nodes): Ditto.
3634 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3635 (object_hard_regs_subnode_t): Ditto.
3636 (struct object_hard_regs_subnode): Ditto.
3637 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3638 (setup_object_hard_regs_subnode_index): Ditto.
3639 (get_object_hard_regs_subnodes_num): Ditto.
3640 (form_object_hard_regs_nodes_forest): Ditto.
3641 (finish_object_hard_regs_nodes_tree): Ditto.
3642 (finish_object_hard_regs_nodes_forest): Ditto.
3643 (allocnos_have_intersected_live_ranges_p): Rename to
3644 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3645 (pseudos_have_intersected_live_ranges_p): Rename to
3646 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3647 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3648 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3649 (update_copy_costs): Remove assert. Skip cost update if the hard
3650 reg does not belong the class.
3651 (assign_hard_reg): Process only profitable hard regs.
3652 (uncolorable_allocnos_num): Make it scalar.
3653 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3654 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3655 and ira_reg_class_max_nregs.
3656 (bucket_allocno_compare_func): Check frequency first.
3657 (sort_bucket): Add compare function as a parameter.
3658 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3659 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3660 (push_allocno_to_stack): Rewrite for checking new allocno
3662 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3663 (push_only_colorable): Pass new parameter to sort_bucket.
3664 (push_allocno_to_spill): Remove.
3665 (allocno_spill_priority_compare): Make it inline and rewrite.
3666 (splay_tree_allocate, splay_tree_free): Remove.
3667 (allocno_spill_sort_compare): New function.
3668 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3669 build and use splay tree. Choose first allocno in uncolorable
3670 allocno bucket to spill. Remove setting spill cost.
3671 (all_conflicting_hard_regs): Remove.
3672 (setup_allocno_available_regs_num): Check only profitable hard
3673 regs. Print info about hard regs nodes.
3674 (setup_allocno_left_conflicts_size): Remove.
3675 (put_allocno_into_bucket): Don't call
3676 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3677 (improve_allocation): New.
3678 (color_allocnos): Call setup_profitable_hard_regs,
3679 form_object_hard_regs_nodes_forest, improve_allocation,
3680 finish_object_hard_regs_nodes_forest. Setup spill cost.
3681 (print_loop_title): Use pressure classes.
3682 (color_allocnso): Ditto.
3683 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3684 and allocnos_for_spilling.
3685 (ira_sort_regnos_for_alter_reg): Don't setup members
3686 {first,next}_coalesced_allocno.
3687 (color): Remove allocating and freeing removed_splay_allocno_vec.
3688 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3689 prohibited_class_mode_regs.
3691 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3693 (update_allocno_pressure_excess_length): Use pressure classes.
3694 (inc_register_pressure, dec_register_pressure): Check for pressure
3696 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3697 pressure class. Use ira_reg_class_nregs instead of
3698 ira_reg_class_max_nregs.
3699 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3700 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3701 (single_reg_class): Use ira_reg_class_nregs instead of
3702 ira_reg_class_max_nregs.
3703 (process_bb_node_lives): Use pressure classes.
3705 * ira-emit.c: Remove mentioning cover classes from the file. Use
3706 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3707 (change_loop): Use pressure classes.
3708 (modify_move_list): Call ira_set_allocno_class instead of
3709 ira_set_allocno_cover_class.
3711 * ira-build.c: Remove mentioning cover classes from the file. Use
3712 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3713 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3714 ALLOCNO_UPDATED_CLASS_COST instead of
3715 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3716 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3717 (ira_create_allocno): Remove initialization of
3718 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3719 ALLOCNO_COLORABLE_P.
3720 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3721 Update conflict regs for the objects.
3722 (create_cap_allocno): Remove assert. Don't propagate
3723 ALLOCNO_AVAILABLE_REGS_NUM.
3724 (ira_free_allocno_costs): New function.
3725 (finish_allocno): Change a part of code into call of
3726 ira_free_allocno_costs.
3727 (low_pressure_loop_node_p): Use pressure classes.
3728 (object_range_compare_func): Don't compare classes.
3729 (setup_min_max_conflict_allocno_ids): Ditto.
3731 * loop-invariant.c: Remove mentioning cover classes from the file.
3732 Use ira_pressure_classes and ira_pressure_classes_num instead of
3733 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3734 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3735 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3736 Use reg_allocno_class instead of reg_cover_class.
3737 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3738 STACK_REG_COVER_CLASS.
3739 (get_regno_cover_class): Rename to get_regno_pressure_class.
3740 (move_loop_invariants): Initialize and finalize regstat.
3742 * ira.c: Remove mentioning cover classes from the file. Add
3743 comments about coloring without cover classes. Use ALLOCNO_CLASS
3744 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3745 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3746 setup_class_subset_and_memory_move_costs.
3747 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3748 (setup_cover_and_important_classes): Rename to
3749 setup_allocno_and_important_classes.
3750 (setup_class_translate_array): New.
3751 (setup_class_translate): Call it for allocno and pressure classes.
3752 (cover_class_order): Rename to allocno_class_order.
3753 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3754 of ira_class_translate.
3755 (reorder_important_classes): Set up ira_important_class_nums.
3756 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3757 (print_class_cover): Rename to print_classes. Add parameter.
3758 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3759 Print pressure classes too.
3760 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3761 setup_reg_subclasses.
3762 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3763 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3764 (setup_prohibited_class_mode_regs): Use
3765 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3766 (clarify_prohibited_class_mode_regs): New function.
3767 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3768 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3769 (ira_init_once): Initialize them.
3770 (free_register_move_costs): Process them.
3771 (ira_init): Move calls of find_reg_classes and
3772 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3773 Call clarify_prohibited_class_mode_regs.
3774 (ira_no_alloc_reg): Remove.
3775 (too_high_register_pressure_p): Use pressure classes.
3777 * sched-deps.c: Remove mentioning cover classes from the file.
3778 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3779 ira_pressure_classes and ira_pressure_classes_num instead of
3780 ira_reg_class_cover_size and ira_reg_class_cover.
3781 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3782 sched_regno_pressure_class instead of sched_regno_cover_class.
3783 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3784 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3786 * ira.h: Add 2010 to Copyright.
3787 (ira_no_alloc_reg): Remove external.
3788 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3789 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3790 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3791 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3792 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3793 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3794 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3795 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3796 x_ira_no_alloc_regs.
3797 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3798 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3799 ira_allocno_classes_num and ira_allocno_classes.
3800 (ira_class_translate): Rename to ira_allocno_class_translate.
3801 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3802 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3803 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3804 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3805 (ira_no_alloc_regs): New.
3807 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3808 classes from the file. Use ALLOCNO_CLASS instead of
3809 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3810 ALLOCNO_COVER_CLASS_COST.
3811 (regno_cover_class): Rename to regno_aclass.
3812 (record_reg_classes): Use ira_reg_class_subunion instead of
3813 ira_reg_class_union.
3814 (record_address_regs): Check overflow.
3815 (scan_one_insn): Ditto.
3816 (print_allocno_costs): Print total mem cost fore regional allocation.
3817 (print_pseudo_costs): Use REG_N_REFS.
3818 (find_costs_and_classes): Use classes intersected with them on the
3819 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3820 ira_reg_class_union. Use ira_allocno_class_translate and
3821 regno_aclass instead of ira_class_translate and regno_cover_class.
3822 Modify code for finding regno_aclass. Setup preferred classes for
3824 (setup_allocno_cover_class_and_costs): Rename to
3825 setup_allocno_class_and_costs. Use regno_aclass instead of
3826 regno_cover_class. Use ira_set_allocno_class instead of
3827 ira_set_allocno_cover_class.
3828 (init_costs, finish_costs): Use regno_aclass instead of
3830 (ira_costs): Use setup_allocno_class_and_costs instead of
3831 setup_allocno_cover_class_and_costs.
3832 (ira_tune_allocno_costs_and_cover_classes): Rename to
3833 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3834 by processing objects. Use ira_reg_class_max_nregs instead of
3835 ira_reg_class_nregs.
3837 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3839 * sched-int.h: Remove mentioning cover classes from the file.
3840 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3842 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3843 classes from the file.
3844 (struct reg_pref): Rename coverclass into allocnoclass.
3845 (reg_cover_class): Rename to reg_allocno_class.
3847 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3849 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3851 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3853 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3855 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3857 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3859 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3861 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3863 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3865 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3867 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3868 (i386_ira_cover_classes): Ditto.
3870 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3872 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3874 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3876 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3878 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3880 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3882 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3883 (mips_ira_cover_classes): Ditto.
3885 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3887 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3889 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3891 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3893 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3895 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3896 (IRA_COVER_CLASSES_VSX): Ditto.
3898 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3899 (rs6000_ira_cover_classes): Ditto.
3901 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3903 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3905 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3907 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3909 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3911 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3913 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3915 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3917 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3919 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3921 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3924 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3925 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3926 dw_fde_unlikely_section_end_label, cold_in_std_section,
3927 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3928 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3930 (output_fde): Use dw_fde_second_{begin,end} if second is
3931 true, otherwise dw_fde_{begin,end}.
3932 (output_call_frame_info): Test dw_fde_second_begin != NULL
3933 instead of dw_fde_switched_sections.
3934 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3935 fields, initialize new fields. Initialize in_std_section
3936 unconditionally from the first partition.
3937 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3938 dw_fde_second_begin is non-NULL.
3939 (dwarf2out_switch_text_section): Stop initializing removed
3940 dw_fde_struct fields, initialize new fields, initialize
3941 also dw_fde_end here. Set dw_fde_switch_cfi even when
3942 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3943 (struct var_loc_list_def): Add last_before_switch field.
3944 (arange_table, arange_table_allocated, arange_table_in_use,
3945 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3946 (size_of_aranges): Count !in_std_section and !second_in_std_section
3947 hunks in fdes, instead of looking at arange_table_in_use.
3948 (output_aranges): Add aranges_length argument, don't call
3949 size_of_aranges here. Instead of using aranges_table*
3950 emit ranges for fdes when !in_std_section resp.
3951 !second_in_std_section.
3952 (dw_loc_list): Break ranges crossing section switch.
3953 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
3954 use dw_fde_second_end instead of dw_fde_end as end of last range.
3955 (gen_subprogram_die): Don't call add_arange. Use
3956 dw_fde_{begin,end} for first partition and if switched
3957 section dw_fde_second_{begin,end} for the second.
3958 (var_location_switch_text_section_1,
3959 var_location_switch_text_section): New functions.
3960 (dwarf2out_begin_function): Initialize cold_text_section even
3961 when function_section () isn't text_section.
3962 (prune_unused_types): Don't walk arange_table.
3963 (dwarf2out_finish): Don't needlessly test
3964 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3965 If info_section_emitted, call size_of_aranges and if it indicates
3966 non-empty .debug_aranges, call output_aranges with the computed
3967 size. Stop using removed dw_fde_struct fields, use
3968 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3972 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3973 create ENTRY_VALUE if incoming or address of incoming's MEM
3975 * dwarf2out.c (mem_loc_descriptor): Don't emit
3976 DW_OP_GNU_entry_value of DW_OP_fbreg.
3977 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3978 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3979 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3980 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3982 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3983 is a REG_P or MEM_P with REG_P address, compute hash directly
3984 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3985 (preserve_only_constants): Don't clear VALUES forwaring
3986 ENTRY_VALUE to some other VALUE.
3988 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3990 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3993 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3995 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3996 block before expanding the statement.
3997 (expand_gimple_stmt_1): Likewise. Set them here...
3998 (expand_gimple_stmt): ...and not here. Tidy.
3999 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4002 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4004 * Makefile.in: New rule for cprop.o.
4005 * gcse.c: Move constant/copy propagation to cprop.c.
4006 (compute_local_properties): Only handle expression tables.
4007 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4008 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4009 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4010 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4011 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4012 compute_cprop_data, find_used_regs, try_replace_reg,
4013 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4014 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4015 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4016 find_bypass_set, reg_killed_on_edge, bypass_block,
4017 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4018 execute_rtl_cprop, pass_rtl_cprop): Move to...
4019 * cprop.c: ...here. New file, constant/copy propagation for RTL
4020 moved from gcse.c to here with minor cleanups in duplicated code.
4022 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4024 * config/i386/i386.c (flag_opts): Fix a typo in
4025 -mavx256-split-unaligned-store.
4027 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4029 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4030 LIBCALL_VALUE): Remove macros.
4031 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4032 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4033 (h8300_function_value, h8300_libcall_value,
4034 h8300_function_value_regno_p): New functions.
4036 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4038 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4040 2011-03-28 Jeff Law <law@redhat.com>
4042 * tree-ssa-threadupdate.c (redirect_edges): Call
4043 create_edge_and_update_destination_phis as needed.
4044 (create_edge_and_update_destination_phis): Accept new BB argument.
4045 All callers updated.
4046 (thread_block): Do not update the profile when threading around
4047 intermediate blocks.
4048 (thread_single_edge): Likewise.
4049 (determine_bb_domination_status): If BB is not a successor of the
4050 loop header, return NONDOMINATING.
4051 (register_jump_thread): Note when we register a jump thread around
4052 an intermediate block.
4053 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4054 (thread_across_edge): Use it.
4056 2011-03-28 Tristan Gingold <gingold@adacore.com>
4058 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4059 when for_return is 2.
4061 2011-03-28 Jeff Law <law@redhat.com>
4063 * var-tracking.c (canonicalize_values_mark): Delete unused
4065 (canonicalize_values_star, set_variable_part): Likewise.
4066 (clobber_variable_part, delete_variable_part): Likewise.
4068 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4070 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4072 2011-03-28 Martin Jambor <mjambor@suse.cz>
4074 * tree-inline.c (expand_call_inline): Do not check that destination
4076 (optimize_inline_calls): Assert that destination node is analyzed.
4077 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4078 not call tree_lowering_passes.
4079 * cgraph.h (cgraph_analyze_function): Declare.
4080 * cgraphunit.c (cgraph_analyze_function): Make public.
4082 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4084 * config/sparc/sparc-opts.h: New.
4085 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4086 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4087 (sparc_option_override): Store processor_type enumeration rather
4088 than string in cpu_default. Remove name and enumeration from
4089 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4090 without using sparc_select. Use target_flags_explicit instead of
4092 * config/sparc/sparc.h (enum processor_type): Move to
4094 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4095 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4096 HeaderInclude entry.
4097 (mcpu=, mtune=): Use Var and Enum.
4098 (sparc_processor_type): New Enum and EnumValue entries.
4100 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4101 Iain Sandoe <iains@gcc.gnu.org>
4104 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4106 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4108 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4109 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4110 Insert new statements at it in lieu of STMT.
4111 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4112 * tree-vect-stmts.c (vectorizable_store): Likewise.
4113 (vectorizable_load): Likewise.
4115 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4117 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4122 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4124 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4125 unaligned 256bit load/store.
4126 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4127 (*avx_movdqu<avxmodesuffix>): Likewise.
4129 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4132 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4133 * config/pa/pa.md (iordi3): Use new predicate in expander.
4136 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4138 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4139 FUNCTION_VALUE_REGNO_P): Remove macros.
4140 * config/mips/mips-protos.h (mips_function_value): Remove.
4141 * config/mips/mips.c (mips_function_value): Rename to...
4142 (mips_function_value_1): ... this. Make static. Handle receiving
4143 the function type in 'fn_decl_or_type' argument.
4144 (mips_function_value, mips_libcall_value,
4145 mips_function_value_regno_p): New function.
4146 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4147 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4149 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4151 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4152 and -mavx256-split-unaligned-store.
4153 (ix86_option_override_internal): Split 32-byte AVX unaligned
4154 load/store by default.
4155 (ix86_avx256_split_vector_move_misalign): New.
4156 (ix86_expand_vector_move_misalign): Use it.
4158 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4159 -mavx256-split-unaligned-store.
4161 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4162 256bit load/store. Generate unaligned store on misaligned memory
4164 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4166 (*avx_movdqu<avxmodesuffix>): Likewise.
4168 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4169 -mavx256-split-unaligned-store.
4171 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4174 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4177 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4179 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4180 opno arguments with an expand_operand. Use create_input_operand.
4181 (mips_prepare_builtin_target): Delete.
4182 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4184 (mips_expand_builtin_direct): Use create_output_operand and
4185 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4186 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4187 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4189 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4191 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4193 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4195 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4197 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4198 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4199 basic blocks and call commit_edge_insertions directly.
4200 (fixup_abnormal_edges): Move from here to...
4201 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4202 on the edges and return whether some have actually been inserted.
4203 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4206 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4208 PR rtl-optimization/48144
4209 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4210 (merge_expr_data): ... here.
4211 (av_set_intersect): Rename to av_set_code_motion_filter.
4212 Update all callers. Call merge_history_vect when an expression
4213 is found in both sets.
4214 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4216 2011-03-26 Alan Modra <amodra@gmail.com>
4218 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4219 cmodel medium addresses.
4220 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4221 64-bit gpr loads and stores.
4222 (rs6000_secondary_reload_ppc64): New function.
4223 * config/rs6000/rs6000-protos.h: Declare it.
4224 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4226 2011-03-26 Alan Modra <amodra@gmail.com>
4229 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4230 GNU Go in traceback table.
4232 2011-03-25 Richard Henderson <rth@redhat.com>
4234 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4235 if there are exactly 6 operands.
4236 (set_storage_via_setmem): Similarly.
4238 2011-03-25 Kai Tietz <ktietz@redhat.com>
4240 * collect2.c (write_c_file_stat): Handle backslash
4241 as right-hand directory separator.
4242 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4243 checking just for slash.
4244 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4245 instead of checking for trailing slash.
4246 * gcc.c (record_temp_file): Use filename_cmp instead
4248 (do_spec_1): Likewise.
4249 (replace_outfile_spec_function): Likewise.
4250 (is_directory): Use filename_ncmp instead of strncmp.
4251 (print_multilib_info): Likewise.
4252 * gcov.c (find_source): Use filename_cmp instead
4254 (make_gcov_file_name): Fix order of slash/backslash
4256 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4257 (add_standard_paths): Likewise.
4258 * mips-tfile.c (saber_stop): Handle backslash.
4259 * prefix.c (update_path): Use filename_ncmp instead of
4261 * profile.c (output_location): Use filename_cmp instead
4263 * read-md.c (handle_toplevel_file): Handle backslash.
4264 * tlink.c (frob_extension): Likewise.
4265 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4267 * tree-dump.c (dequeue_and_dump): Handle backslash.
4268 * tree.c (get_file_function_name): Likewise.
4269 * gengtype.c (read_input_list): Likewise.
4270 (get_file_realbasename): Likewise.
4271 (get_output_file_with_visibility): Use filename_cmp
4274 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4276 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4279 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4281 * fold-const.c (expr_location_or): New function.
4282 (fold_truth_not_expr): Call it.
4284 2011-03-25 Jeff Law <law@redhat.com>
4286 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4288 * c-family/c-common.c (def_fn_type): Likewise.
4289 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4290 * emit-rtl.c (gen_rtvec): Likewise.
4291 * lto/lto-lang.c (def_fn_type): Likewise.
4293 2011-03-25 Richard Guenther <rguenther@suse.de>
4295 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4296 also generate copies.
4297 (fini_copy_prop): Handle constant values properly.
4299 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4301 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4302 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4303 (hash_loc_operands, compare_loc_operands): Handle
4304 DW_OP_GNU_entry_value.
4306 2011-03-25 Kai Tietz <ktietz@redhat.com>
4308 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4309 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4310 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4311 comment and use macro TARGET_64BIT_MS_ABI instead.
4312 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4313 and change default behavior for 32-bit MS_ABI.
4314 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4315 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4317 (ix86_cfun_abi): Likewise.
4318 (ix86_maybe_switch_abi): Adjust comment.
4319 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4320 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4321 instead of checking for SYSV_ABI.
4322 (ix86_nsaved_sseregs): Likewise.
4323 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4325 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4326 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4327 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4328 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4329 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4331 2011-03-25 Richard Guenther <rguenther@suse.de>
4333 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4334 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4335 (verify_gimple): Remove.
4336 * tree-cfg.c (verify_gimple_call): Merge verification
4338 (verify_gimple_phi): Merge verification from verify_stmts.
4339 (verify_gimple_label): New function.
4340 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4341 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4342 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4343 (verify_stmts): Rename to verify_gimple_in_cfg.
4344 (verify_gimple_in_cfg): New function.
4345 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4346 * tree-ssa.c (verify_ssa): Likewise.
4347 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4349 2011-03-25 Richard Guenther <rguenther@suse.de>
4351 * passes.c (init_optimization_passes): Add FRE pass after
4354 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4355 Andrew Stubbs <ams@codesourcery.com>
4357 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4359 (arm_movdi_vfp_cortexa8): New pattern.
4360 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4361 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4362 instructions when tuning for Cortex-A8. Set attribute "arch".
4363 * config/arm/arm.md: Move include arm-tune.md up a bit.
4364 (define_attr "arch"): Add "onlya8" and "nota8" values.
4365 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4367 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4371 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4373 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4374 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4375 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4376 * passes.c (init_optimization_passes): Move
4377 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4379 2011-03-25 Kai Tietz <ktietz@redhat.com>
4381 * c-typeck.c (comptypes_internal): Replace target
4382 hook call of comp_type_attributes by version in tree.c file.
4383 * gimple.c (gimple_types_compatible_p_1): Likewise.
4384 * tree-ssa.c (useless_type_conversion_p): Likewise.
4385 * tree.c (build_type_attribute_qual_variant): Likewise.
4386 (attribute_value_equal): New static helper function.
4387 (comp_type_attributes): New function.
4388 (merge_attributes): Use attribute_value_equal for comparison.
4389 (attribute_list_contained): Likewise.
4390 * tree.h (comp_type_attributes): New prototype.
4392 2011-03-25 Richard Guenther <rguenther@suse.de>
4394 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4395 of complex types at -O0.
4396 (verify_gimple_assign_binary): Likewise.
4397 (verify_gimple_assign_ternary): Likewise.
4399 2011-03-24 Mark Wielaard <mjw@redhat.com>
4401 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4402 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4404 2011-03-24 Mark Wielaard <mjw@redhat.com>
4407 * dwarf2out.c (output_abbrev_section): Only write table when
4408 abbrev_die_table_in_use > 1.
4410 2011-02-24 Richard Henderson <rth@redhat.com>
4412 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4413 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4414 (alpha_expand_unaligned_load_words): Use extql.
4415 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4416 (emit_insxl): Handle all modes for consistency.
4418 2011-02-24 Richard Henderson <rth@redhat.com>
4420 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4421 (alpha_expand_unaligned_load): Likewise.
4422 (alpha_expand_unaligned_store): Likewise.
4423 (alpha_expand_unaligned_load_words): Likewise.
4424 (alpha_expand_unaligned_store_words): Likewise.
4425 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4426 (alpha_split_lock_test_and_set_12): Likewise.
4427 (print_operand, alpha_fold_builtin_extxx): Likewise.
4428 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4429 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4430 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4431 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4432 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4433 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4434 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4435 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4436 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4437 (extwl, extll, extql): Similarly.
4438 (inswh, inslh, insqh): Similarly.
4439 (mskbl, mskwl, mskll, mskql): Similarly.
4440 (mskwh, msklh, mskqh): Similarly.
4442 2011-02-24 Richard Henderson <rth@redhat.com>
4444 * config/alpha/alpha.md (attribute isa): Add er, ner.
4445 (attribute enabled): Handle them.
4446 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4448 2011-02-24 Richard Henderson <rth@redhat.com>
4450 * config/alpha/alpha.md (attribute isa): Add vms.
4451 (attribute enabled): Handle it.
4452 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4453 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4454 (*movtf): Rename from *movtf_internal for consistency.
4455 (*movsi): Merge with *movsi_nt_vms.
4456 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4457 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4458 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4459 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4461 2011-02-24 Richard Henderson <rth@redhat.com>
4463 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4464 (extendqisi2, extendhisi2): Likewise.
4465 (extendqidi2): Simplify BWX/non-BWX expansions.
4466 (extendhidi2): Similarly.
4468 2011-02-24 Richard Henderson <rth@redhat.com>
4470 * config/alpha/alpha.md (attribute isa): New.
4471 (attribute enabled): New.
4472 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4473 (zero_extendqisi2, zero_extendqidi2): Similarly.
4474 (zero_extendhisi2, zero_extendhidi2): Similarly.
4475 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4477 2011-02-24 Richard Henderson <rth@redhat.com>
4479 * config/alpha/predicates.md (input_operand): Revert last change;
4480 update comment to mention 32-bit VMS rather than Windows.
4482 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4484 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4485 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4486 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4487 * passes.c (init_optimization_passes): Move
4488 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4490 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4492 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4494 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4496 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4499 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4502 * simplify-rtx.c (simplify_const_unary_operation): Call
4503 real_convert when changing mode class with FLOAT_EXTEND.
4505 2011-03-24 Nick Clifton <nickc@redhat.com>
4507 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4508 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4509 * config/rx/rx.c (rx_option_override): Set align_jumps,
4510 align_loops and align_labels if not set by the user.
4511 (rx_align_for_label): New function.
4512 (rx_max_skip_for_label): New function.
4513 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4514 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4515 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4516 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4517 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4519 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4521 PR rtl-optimization/48263
4522 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4523 and original commutative_p handling. Use maybe_gen_insn.
4525 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4527 * reload.c (find_reloads_subreg_address): Add address_reloaded
4528 parameter and return true there if the full address has been
4530 (find_reloads_toplev): Pass address_reloaded flag.
4531 (find_reloads_address_1): Don't use address_reloaded parameter.
4533 2011-03-24 Jeff Law <law@redhat.com>
4535 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4536 unused variable "ann".
4537 (remove_unused_locals): Likewise.
4539 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4542 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4545 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4547 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4548 for invalid symbolic addresses.
4549 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4552 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4554 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4555 the argument in calls to fold_truth_not_expr.
4557 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4559 * tree.c (record_node_allocation_statistics): New function.
4560 (make_node_stat, copy_node_stat, build_string): Call it.
4561 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4562 (build1_stat, build_omp_clause): Likewise.
4564 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4566 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4569 2011-03-24 Richard Guenther <rguenther@suse.de>
4571 PR tree-optimization/48271
4572 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4573 blocks that still exist.
4575 2011-03-24 Richard Guenther <rguenther@suse.de>
4577 PR tree-optimization/48270
4578 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4579 not free datarefs before ddrs.
4581 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4583 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4584 from the address built for a reference with variable offset.
4586 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4589 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4590 alternatives that can be handled with movq or movabsq insn.
4591 (*movdf_internal): Disable for !TARGET_64BIT.
4592 (*movdf_internal_nointeger): Ditto.
4593 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4595 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4597 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4598 (FUNCTION_ARG_ADVANCE): Likewise.
4599 * tm.texi.in: Change references to them to hook references.
4600 * tm.texi: Regenerate.
4601 * targhooks.c (default_function_arg): Eliminate check for target macro.
4602 (default_function_incoming_arg): Likewise.
4603 (default_function_arg_advance): Likewise.
4604 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4605 (function_arg_advance): Likewise.
4606 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4608 2011-03-24 Richard Guenther <rguenther@suse.de>
4611 * tree-object-size.c (addr_object_size): Do not double-account
4612 for MEM_REF offsets.
4614 2011-03-24 Diego Novillo <dnovillo@google.com>
4616 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4617 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4618 (lto_input_data_block): Move from lto-opts.c. Make extern.
4620 (lto_input_string): Rename from input_string. Make extern.
4622 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4623 output_string_with_length.
4624 Output 0 to indicate a non-NULL string. Update all callers to
4626 (lto_output_string): Rename from output_string. Make extern.
4628 (lto_output_decl_state_streams): Make extern.
4629 (lto_output_decl_state_refs): Make extern.
4630 * lto-streamer.h (lto_input_string): Declare.
4631 (lto_input_data_block): Declare.
4632 (lto_output_string): Declare.
4633 (lto_output_string_with_length): Declare.
4634 (lto_output_decl_state_streams): Declare.
4635 (lto_output_decl_state_refs): Declare.
4637 2011-03-24 Richard Guenther <rguenther@suse.de>
4639 PR tree-optimization/46562
4640 * tree.c (build_invariant_address): New function.
4641 * tree.h (build_invariant_address): Declare.
4642 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4643 a renamed function moved ...
4644 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4645 Take valueization callback parameter.
4646 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4647 * gimple-fold.h: New file.
4648 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4649 (ccp_fold, fold_const_aggregate_ref,
4650 fold_ctor_reference, fold_nonarray_ctor_reference,
4651 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4652 get_base_constructor): Move ...
4653 * gimple-fold.c: ... here.
4654 (gimple_fold_stmt_to_constant_1): New function
4655 split out from ccp_fold. Take a valueization callback parameter.
4656 Valueize all operands.
4657 (gimple_fold_stmt_to_constant): New wrapper function.
4658 (fold_const_aggregate_ref_1): New function split out from
4659 fold_const_aggregate_ref. Take a valueization callback parameter.
4660 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4661 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4662 invariant POINTER_PLUS_EXPRs to invariant form.
4663 (vn_valueize): New function.
4664 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4665 * tree-vrp.c (vrp_valueize): New function.
4666 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4667 to fold statements to constants.
4668 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4669 function declarations.
4670 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4671 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4673 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4675 * config/h8300/predicates.md (jump_address_operand): Fix register
4678 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4680 * doc/invoke.texi (max-stores-to-sink): Document.
4681 * params.h (MAX_STORES_TO_SINK): Define.
4682 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4683 if either vectorization or if-conversion is disabled.
4684 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4685 tree-vect-data-refs.c vect_equal_offsets.
4686 (dr_equal_offsets_p): New function.
4687 (find_data_references_in_bb): Remove static.
4688 * tree-data-ref.h (find_data_references_in_bb): Declare.
4689 (dr_equal_offsets_p): Likewise.
4690 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4691 (vect_drs_dependent_in_basic_block): Update calls to
4693 (vect_check_interleaving): Likewise.
4694 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4695 (cond_if_else_store_replacement): Rename to...
4696 (cond_if_else_store_replacement_1): ... this. Change arguments and
4698 (cond_if_else_store_replacement): New function.
4699 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4700 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4702 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4705 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4706 to subtract lower bound instead of GEN_INT().
4708 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4713 * doc/extend.texi (Alignment): Move section to match order in TOC.
4714 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4715 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4717 2011-03-23 Jeff Law <law@redhat.com>
4719 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4720 before removing the edge.
4722 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4723 it may have been freed by redirect_branch_edge or
4724 redirect_edge_succ_nodup.
4726 2011-03-23 Richard Guenther <rguenther@suse.de>
4728 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4729 (check_va_list_escapes): Likewise.
4730 (check_all_va_list_escapes): Likewise.
4732 2011-03-23 Richard Guenther <rguenther@suse.de>
4734 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4735 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4736 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4737 (alias.o): Likewise.
4738 (ipa-type-escape.o): Remove.
4739 (ipa-struct-reorg.o): Likewise.
4740 (GTFILES): Remove ipa-struct-reorg.c.
4741 * alias.c: Do not include ipa-type-escape.h.
4742 * tree-ssa-alias.c: Likewise.
4743 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4744 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4745 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4746 and ipa-type-escape passes.
4747 * tree-pass.h (pass_ipa_type_escape): Remove.
4748 (pass_ipa_struct_reorg): Likewise.
4749 * ipa-struct-reorg.h: Remove.
4750 * ipa-struct-reorg.c: Likewise.
4751 * ipa-type-escape.h: Likewise.
4752 * ipa-type-escape.c: Likewise.
4753 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4754 (--param struct-reorg-cold-struct-ratio): Likewise.
4755 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4756 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4757 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4759 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4761 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4762 cpu attribute value.
4763 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4764 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4765 * config/s390/s390.c (processor_flags_table): New constant array.
4766 (s390_handle_arch_option): Remove.
4767 (s390_handle_option): Remove s390_handle_arch_option invocations
4768 and OPT_mwarn_framesize_ handling.
4769 (s390_option_override): Remove s390_handle_arch_option invocation.
4770 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4772 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4773 * config/s390/s390.opt (s390_tune, s390_arch)
4774 (march=): Replace s390_arch_option enum and values with
4775 processor_type. Set variable name to s390_arch. Set
4776 initialization value.
4777 (mtune=): Replace s390_arch_option with processor_type. Set
4778 variable name to s390_tune. Set initialization value.
4780 2011-03-23 Julian Brown <julian@codesourcery.com>
4782 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4783 accesses which are not naturally aligned.
4785 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4788 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4790 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4792 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4793 parameter from "int" to "enum insn_code".
4794 (expand_operand_type): New enum.
4795 (expand_operand): New structure.
4796 (create_expand_operand): New function.
4797 (create_fixed_operand, create_output_operand): Likewise
4798 (create_input_operand, create_convert_operand_to): Likewise.
4799 (create_convert_operand_from, create_address_operand): Likewise.
4800 (create_integer_operand): Likewise.
4801 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4802 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4803 (expand_insn, expand_jump_insn): Likewise.
4804 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4805 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4806 (expand_movstr, expand_builtin___clear_cache): Likewise.
4807 (expand_builtin_lock_release): Likewise.
4808 * explow.c (allocate_dynamic_stack_space): Likewise.
4809 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4810 and use the default handling in that case.
4811 * expmed.c (check_predicate_volatile_ok): Delete.
4812 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4813 (emit_cstore): Likewise.
4814 * expr.c (emit_block_move_via_movmem): Likewise.
4815 (set_storage_via_setmem, expand_assignment): Likewise.
4816 (emit_storent_insn, try_casesi): Likewise.
4817 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4818 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4819 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4820 (expand_twoval_unop, expand_twoval_binop): Likewise.
4821 (expand_unop_direct, emit_indirect_jump): Likewise.
4822 (emit_conditional_move, vector_compare_rtx): Likewise.
4823 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4824 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4825 (expand_sync_lock_test_and_set): Likewise.
4826 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4827 (emit_unop_insn): Likewise.
4828 (expand_copysign_absneg): Change icode to an insn_code.
4829 (create_convert_operand_from_type): New function.
4830 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4831 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4832 (expand_insn, expand_jump_insn): Likewise.
4833 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4834 than const_int_operand for operand 2.
4836 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4838 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4841 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4843 * emit-rtl.c (emit_pattern_before_noloc): New function.
4844 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4845 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4846 (emit_pattern_after_noloc): New function.
4847 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4848 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4850 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4852 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4853 (__ffsDI2): Likewise.
4855 2011-03-22 Richard Henderson <rth@redhat.com>
4857 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4858 of !TARGET_ABI_OPEN_VMS.
4859 (alpha_trampoline_init, alpha_start_function): Likewise.
4860 (alpha_expand_epilogue, alpha_file_start): Likewise.
4861 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4862 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4863 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4864 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4865 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4867 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4869 * config/s390/s390-opts.h: New.
4870 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4871 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4872 s390_stack_guard): Remove.
4873 (s390_handle_arch_option): Return void. Take enum
4874 s390_arch_option value instead of string and searching array.
4875 (s390_handle_option): Don't assert that global structures are in
4876 use. Access variables via opts pointer. Use error_at. Don't use
4877 sscanf for -mstack-guard= or -mstack-size=. Update call to
4878 s390_handle_arch_option.
4879 (s390_option_override): Update call to s390_handle_arch_option.
4880 (s390_emit_prologue): Use %d format for s390_stack_size in
4881 diagnostic. Use %wd for HOST_WIDE_INT.
4882 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4883 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4884 * config/s390/s390.opt (config/s390/s390-opts.h): New
4885 HeaderInclude entry.
4886 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4887 s390_arch_flags, s390_warn_framesize): New Variable entries.
4888 (s390_arch_option): New Enum and EnumValue entries.
4889 (march=): Use Enum instead of Var.
4890 (mstack-guard=, mstack-size=): Use UInteger and Var.
4893 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4895 * config/score/score.c (score_handle_option): Don't assert that
4896 global structures are in use. Access target_flags via opts
4897 pointer. Use value of -march= option to determine target_flags
4899 * config/score/score.opt (march=): Use Enum.
4900 (score_arch): New Enum and EnumValue entries.
4902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4904 * config/mep/mep.c (option_mtiny_specified): Remove.
4905 (mep_option_override): Move register handling for -mivc2 from
4906 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4907 instead of option_mtiny_specified.
4908 (mep_handle_option): Access target_flags via opts pointer. Don't
4909 assert that global structures are in use. Defer part of -mivc2
4910 handling and move it to mep_option_override.
4911 * config/mep/mep.opt (IVC2): New Mask entry.
4912 (mivc2): Use Var and Defer instead of Mask.
4914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4916 * config/v850/v850-opts.h: New.
4917 * config/v850/v850.c (small_memory): Replace with
4918 small_memory_physical_max array. Make that array static const.
4919 (v850_handle_memory_option): Take integer value of argument. Take
4920 gcc_options pointer, option text and location. Return void.
4921 Update for changes to small memory structures.
4922 (v850_handle_option): Access target_flags via opts pointer. Don't
4923 assert that global structures are in use. Update calls to
4924 v850_handle_memory_option.
4925 (v850_encode_data_area): Update references to small memory settings.
4926 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4927 (enum small_memory_type): Move to v850-opts.h.
4928 * config/v850/v850.opt (config/v850/v850-opts.h): New
4929 HeaderInclude entry.
4930 (small_memory_max): New Variable entry.
4931 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4932 (mtda, mzda): Likewise.
4934 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4936 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4937 pointer. Don't assert that global structures are in use.
4939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4941 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4942 via opts pointer. Don't assert that global structures are in use.
4944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4946 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4947 (munix=93): Use Var.
4948 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4949 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4950 * config/pa/pa-opts.h: New.
4951 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4952 (pa_handle_option): Don't assert that global structures are in
4953 use. Access target_flags via opts pointer. Don't handle
4954 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4956 (pa_option_override): Handle deferred OPT_mfixed_range_.
4958 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4960 * config/mn10300/mn10300-opts.h: New.
4961 * config/mn10300/mn10300.c (mn10300_processor,
4962 mn10300_tune_string): Remove.
4963 (mn10300_handle_option): Don't assert that global structures are
4964 in use. Access mn10300_processor via opts pointer. Don't handle
4966 * config/mn10300/mn10300.h (enum processor_type): Move to
4968 (mn10300_processor): Remove.
4969 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4970 HeaderInclude entry.
4971 (mn10300_processor): New Variable entry.
4974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4976 * config/microblaze/microblaze.c: Don't include opts.h.
4977 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4978 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4979 (mno-clearbss): Use Var and Warn.
4981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4983 * config/m32r/m32r-opts.h: New.
4984 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4985 (m32r_handle_option): Don't assert that global structures are in
4986 use. Access target_flags and m32r_cache_flush_func via opts
4987 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4988 OPT_mno_flush_trap here.
4989 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4990 include of m32r-opts.h.
4991 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4992 HeaderInclude entry.
4993 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4994 (mmodel=): Use Enum and Var.
4995 (m32r_model): New Enum and EnumValue entries.
4996 (mno-flush-trap): Use Var.
4997 (msdata=): Use Enum and Var.
4998 (m32r_sdata): New Enum and EnumValue entries.
5000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5002 * config/m32c/m32c.c: Don't include opts.h.
5003 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5004 m32c_handle_option): Remove.
5005 (m32c_option_override): Check global_options_set.x_target_memregs
5006 instead of target_memregs_set.
5007 * config/m32c/m32c.h (target_memregs): Remove.
5008 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5011 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5013 * config/iq2000/iq2000-opts.h: New.
5014 * config/iq2000/iq2000.c: Don't include opts.h.
5015 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5016 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5017 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5018 HeaderInclude entry.
5019 (iq2000_tune): New Variable entry.
5020 (march=): Add comment. Use Enum.
5021 (iq2000_arch): New Enum and EnumValue entries.
5022 (mcpu=): Use Enum and Var.
5023 (iq2000_tune): New Enum and EnumValue entries.
5025 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5027 * config/ia64/ia64-opts.h: New.
5028 * config/ia64/ia64.c (ia64_tune): Remove.
5029 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5031 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5032 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5033 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5034 HeaderInclude entry.
5035 (ia64_tune): New Variable entry.
5036 (mfixed-range=): Use Defer and Var.
5037 (mtune=): Use Enum and Var.
5038 (ia64_tune): New Enum and EnumValue entries.
5040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5042 * config/frv/frv-opts.h: New.
5043 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5045 (frv_cpu_type): Remove.
5046 * config/frv/frv.c: Don't include opts.h.
5047 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5048 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5049 (frv_cpu_type): New Variable entry.
5050 (frv_cpu): New Enum and EnumValue entries.
5052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5054 * config/cris/cris.c (cris_handle_option): Access target_flags via
5055 opts pointer. Don't assert that global structures are in use.
5056 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5057 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5061 * config/bfin/bfin-opts.h: New.
5062 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5063 bfin_si_revision, bfin_workarounds): Remove.
5064 (bfin_cpus): Make static const.
5065 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5066 not bfin_lib_id_given.
5067 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5068 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5069 pointer. Use error_at. Don't assert that global structures are in use.
5070 * config/bfin/bfin.h: Include bfin-opts.h.
5071 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5072 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5073 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5074 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5079 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5080 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5081 or -msoft-float here.
5082 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5083 -msoft-float and -mhard-float.
5084 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5085 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5087 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5089 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5090 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5092 (LIBGCC_SPEC): Don't handle -msoft-float.
5093 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5095 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5097 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5098 -mfloat-abi=*, not -msoft-float and -mhard-float.
5099 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5101 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5102 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5103 mhard-float and msoft-float.
5104 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5105 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5106 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5107 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5109 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5110 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5112 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5114 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5117 2011-03-22 Richard Henderson <rth@redhat.com>
5119 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5120 TARGET_ABI_WINDOWS_NT.
5121 (alpha_output_function_end_prologue): Likewise.
5122 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5123 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5124 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5125 (trap, *movsi_nt_vms): Likewise.
5126 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5127 (*tablejump_osf_nt_internal): Remove.
5128 * config/alpha/predicates.md (input_operand): Only test Pmode.
5130 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5132 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5133 via opts pointer. Use error_at. Don't assert that global
5134 structures are in use.
5136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5138 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5139 (ix86_handle_option): Access ix86_isa_flags and
5140 ix86_isa_flags_explicit via opts pointer. Don't assert that
5141 global structures are in use.
5142 (ix86_function_specific_save, ix86_function_specific_restore):
5143 Update ix86_isa_flags_explicit field name.
5144 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5145 (ix86_isa_flags_explicit): Rename TargetSave entry to
5146 x_ix86_isa_flags_explicit.
5148 2011-03-22 Richard Henderson <rth@redhat.com>
5150 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5151 (alpha_option_override, direct_return): Likewise.
5152 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5153 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5154 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5155 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5156 (alpha_expand_epilogue, alpha_end_function): Likewise.
5157 (alpha_init_libfuncs): Likewise.
5158 (struct machine_function): Remove unicosmk members.
5159 (print_operand) ['t']: Remove.
5160 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5161 unicosmk_output_module_name, unicosmk_output_common,
5162 current_section_align, unicosmk_output_text_section_asm_op,
5163 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5164 unicosmk_section_type_flags, unicosmk_unique_section,
5165 unicosmk_asm_named_section, unicosmk_insert_attributes,
5166 unicosmk_output_align, unicosmk_defer_case_vector,
5167 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5168 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5169 unicosmk_output_ssib, unicosmk_add_call_info_word,
5170 unicosmk_extern_head, unicosmk_output_default_externs,
5171 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5172 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5173 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5174 * config/alpha/alpha-protos.h: Update.
5175 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5176 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5177 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5178 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5179 (*mulsi_se, mulvsi3): Likewise.
5180 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5181 (*divmodsi_internal, call, call_value, realign): Likewise.
5182 (moddi3, umoddi3): Likewise; remove duplicate expander.
5183 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5184 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5185 (*movdi_nofix): Remove r/U alternative.
5186 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5187 * config/alpha/constraints.md ("U"): Remove.
5188 * config/alpha/predicates.md (call_operand"): Don't test
5189 TARGET_ABI_UNICOSMK.
5191 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5193 * target.def (handle_option): Take gcc_options and
5194 cl_decoded_option pointers and location_t.
5195 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5196 * doc/tm.texi: Regenerate.
5197 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5198 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5199 * lto-opts.c (lto_reissue_options): Generate option structure for
5200 targetm.handle_option call.
5201 * opts.c (target_handle_option): Update call to
5202 targetm.handle_option. Remove assertions about values now passed
5204 * targhooks.c (default_target_handle_option): New.
5205 * targhooks.h (default_target_handle_option): Declare.
5206 * config/alpha/alpha.c: Include opts.h.
5207 (alpha_handle_option): Update to new hook interface.
5208 * config/arm/arm.c: Include opts.h.
5209 (arm_handle_option): Update to new hook interface.
5210 * config/arm/t-arm (arm.o): Update dependencies.
5211 * config/bfin/bfin.c: Include opts.h.
5212 (bfin_handle_option): Update to new hook interface.
5213 * config/cris/cris.c: Include opts.h.
5214 (cris_handle_option): Update to new hook interface.
5215 * config/frv/frv.c: Include opts.h.
5216 (frv_handle_option): Update to new hook interface.
5217 * config/i386/i386.c: Include opts.h.
5218 (ix86_handle_option): Update to new hook interface.
5219 (ix86_valid_target_attribute_inner_p): Generate option structure
5220 for call to ix86_handle_option.
5221 * config/i386/t-i386 (i386.o): Update dependencies.
5222 * config/ia64/ia64.c: Include opts.h.
5223 (ia64_handle_option): Update to new hook interface.
5224 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5225 * config/iq2000/iq2000.c: Include opts.h.
5226 (iq2000_handle_option): Update to new hook interface.
5227 * config/m32c/m32c.c: Include opts.h.
5228 (m32c_handle_option): Update to new hook interface.
5229 * config/m32r/m32r.c: Include opts.h.
5230 (m32r_handle_option): Update to new hook interface.
5231 * config/m68k/m68k.c: Include opts.h.
5232 (m68k_handle_option): Update to new hook interface.
5233 * config/mep/mep.c: Include opts.h.
5234 (mep_handle_option): Update to new hook interface.
5235 * config/microblaze/microblaze.c: Include opts.h.
5236 (microblaze_handle_option): Update to new hook interface.
5237 * config/mips/mips.c: Include opts.h.
5238 (mips_handle_option): Update to new hook interface.
5239 * config/mn10300/mn10300.c: Include opts.h.
5240 (mn10300_handle_option): Update to new hook interface.
5241 * config/pa/pa.c: Include opts.h.
5242 (pa_handle_option): Update to new hook interface.
5243 * config/pdp11/pdp11.c: Include opts.h.
5244 (pdp11_handle_option): Update to new hook interface.
5245 * config/rs6000/rs6000.c: Include opts.h.
5246 (rs6000_handle_option): Update to new hook interface.
5247 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5248 * config/rx/rx.c: Include opts.h.
5249 (rx_handle_option): Update to new hook interface.
5250 * config/s390/s390.c: Include opts.h.
5251 (s390_handle_option): Update to new hook interface.
5252 * config/score/score.c: Include opts.h.
5253 (score_handle_option): Update to new hook interface.
5254 * config/sh/sh.c: Include opts.h.
5255 (sh_handle_option): Update to new hook interface.
5256 * config/sparc/sparc.c: Include opts.h.
5257 (sparc_handle_option): Update to new hook interface.
5258 * config/v850/v850.c: Include opts.h.
5259 (v850_handle_option): Update to new hook interface.
5261 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5263 * gcc.c (driver_unknown_option_callback): Only permit and save
5264 unknown -Wno- options.
5265 (driver_wrong_lang_callback): Save options directly instead of via
5266 driver_unknown_option_callback.
5268 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5270 * combine.c (simplify_set): Try harder to find the best CC mode when
5271 simplifying a nested COMPARE on the RHS.
5273 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5275 * config/alpha/gnu.h: Remove.
5276 * config/arc: Remove directory.
5277 * config/arm/netbsd.h: Remove.
5278 * config/arm/t-pe: Remove.
5279 * config/crx: Remove directory.
5280 * config/i386/netbsd.h: Remove.
5281 * config/m68hc11: Remove directory.
5282 * config/m68k/uclinux-oldabi.h: Remove.
5283 * config/mcore/mcore-pe.h: Remove.
5284 * config/mcore/t-mcore-pe: Remove.
5285 * config/netbsd-aout.h: Remove.
5286 * config/rs6000/gnu.h: Remove.
5287 * config/sh/sh-symbian.h: Remove.
5288 * config/sh/symbian-base.c: Remove.
5289 * config/sh/symbian-c.c: Remove.
5290 * config/sh/symbian-cxx.c: Remove.
5291 * config/sh/symbian-post.h: Remove.
5292 * config/sh/symbian-pre.h: Remove.
5293 * config/sh/t-symbian: Remove.
5294 * config/svr3.h: Remove.
5295 * config/vax/netbsd.h: Remove.
5296 * config.build: Don't handle i[34567]86-*-pe.
5297 * config.gcc: Remove handling of deprecations for most deprecated
5299 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5300 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5301 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5302 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5303 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5304 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5306 * config.host: Don't handle i[34567]86-*-pe.
5307 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5308 (ASM_SPEC32): Don't handle -mcall-gnu.
5309 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5311 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5312 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5313 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5314 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5315 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5316 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5317 conditional on SYMBIAN.
5318 * configure.ac: Don't handle powerpc*-*-gnu*.
5319 * configure: Regenerate.
5320 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5321 * doc/install-old.texi (m6811, m6812): Don't mention.
5322 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5323 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5324 (m68k-uclinuxoldabi): Don't mention.
5325 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5327 (-mcall-gnu): Remove.
5328 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5329 families): Remove constraint documentation.
5331 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5333 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5334 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5335 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5337 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5339 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5340 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5341 * config/avr/avr.c (init_cumulative_args)
5342 (avr_function_arg_advance): Use it.
5343 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5345 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5346 (avr_function_ok_for_sibcall): ...this new function.
5347 (avr_lookup_function_attribute1): New static Function.
5348 (avr_naked_function_p, interrupt_function_p)
5349 (signal_function_p, avr_OS_task_function_p)
5350 (avr_OS_main_function_p): Use it.
5351 * config/avr/avr.md ("sibcall", "sibcall_value")
5352 ("sibcall_epilogue"): New expander.
5353 ("*call_insn", "*call_value_insn"): New insn.
5354 ("call_insn", "call_value_insn"): Remove
5355 ("call", "call_value", "epilogue"): Change expander to handle
5358 2011-03-21 Nick Clifton <nickc@redhat.com>
5360 * doc/invoke.texi (Overall Options): Move closing brace to end of
5362 (Optimization Options): Add missing @gol.
5363 (Directory Options): Likewise.
5364 (i386 and x86-64 Options): Likewise.
5365 (RS6000 and PowerPC Options): Likewise.
5366 (i386 and x86-64 Windows Options): Likewise.
5367 (V850 Options): Add text missing from descriptions.
5369 2011-03-22 Richard Henderson <rth@redhat.com>
5371 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5372 (avr_incoming_return_addr_rtx): New.
5373 (emit_push_byte): New.
5374 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5375 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5376 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5377 (emit_pop_byte): New.
5378 (expand_epilogue): Use it. Pop frame pointer by bytes.
5379 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5380 (INCOMING_RETURN_ADDR_RTX): New.
5381 (INCOMING_FRAME_SP_OFFSET): New.
5382 (ARG_POINTER_CFA_OFFSET): New.
5383 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5384 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5387 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5389 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5391 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5392 (FUNCTION_ARG_ADVANCE): Likewise.
5393 * tm.texi.in: Change references to them to hook references.
5394 * tm.texi: Regenerate.
5395 * targhooks.c (default_function_arg): Eliminate check for target
5397 (default_function_incoming_arg): Likewise.
5398 (default_function_arg_advance): Likewise.
5399 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5400 (function_arg_advance): Likewise.
5401 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5403 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5405 * tree.c (build_call_1): New function.
5406 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5408 2011-03-22 Richard Guenther <rguenther@suse.de>
5410 PR tree-optimization/48228
5411 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5412 for single-arg PHIs.
5414 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5416 PR rtl-optimization/48143
5417 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5418 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5419 sse2_cvtps2pd): Likewise.
5421 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5423 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5425 2011-03-22 Richard Guenther <rguenther@suse.de>
5427 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5428 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5429 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5430 and REALIGN_LOAD_EXPR.
5431 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5432 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5433 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5434 DOT_PROD_EXPR case ...
5435 (expand_expr_real_2): ... here.
5436 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5437 and REALIGN_LOAD_EXPR.
5438 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5439 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5440 (vect_create_epilog_for_reduction): Likewise.
5441 (vectorizable_reduction): Likewise.
5442 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5443 * tree-vect-stmts.c (vectorizable_load): Likewise.
5445 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5447 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5449 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5451 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5452 handling for PLTOFF/GOTOFF.
5454 2011-03-22 Nick Clifton <nickc@redhat.com>
5456 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5457 trailing backslash from the end of the macro definition.
5459 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5461 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5464 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5466 * expr.h (prepare_operand): Move to...
5467 * optabs.h (prepare_operand): ...here and change the insn code
5468 parameter from "int" to "enum insn_code".
5469 (insn_operand_matches): Declare.
5470 * expr.c (init_expr_target): Use insn_operand_matches.
5471 (compress_float_constant): Likewise.
5472 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5473 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5474 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5475 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5477 (gen_cond_trap): Likewise.
5478 (prepare_operand): Likewise. Change icode to an insn_code.
5479 (insn_operand_matches): New function.
5480 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5481 * reload1.c (gen_reload): Likewise.
5482 * targhooks.c (default_secondary_reload): Likewise.
5484 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5486 * config/alpha/alpha.md (unspec): New define_c_enum.
5489 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5492 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5493 between a call and its CALL_ARG_LOCATION note.
5495 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5497 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5499 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5503 * c-common.c (shorten_compare): If primopN is first sign-extended
5504 to opN and then zero-extended to result type, set primopN to opN.
5506 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5508 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5509 for barrier handlers.
5511 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5513 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5514 UNSPEC constants to be in the unspec enumeration, and redefine
5515 all UNSPECV constants to be in the unspecv enumeration, so that
5516 dumps print which unspec/unspec_volatile this is.
5517 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5518 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5519 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5520 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5521 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5523 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5524 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5525 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5526 * config/rs6000/sync.md (isync, lwsync): Ditto.
5528 2011-03-21 Richard Guenther <rguenther@suse.de>
5530 * params.def (lto-min-partition): Fix typo.
5532 2011-03-21 Richard Guenther <rguenther@suse.de>
5535 * c-decl.c (grokdeclarator): Drop to the main variant only
5536 for array types. Drop flag_gen_aux_info check.
5538 2011-03-21 Richard Guenther <rguenther@suse.de>
5540 PR translation/47911
5541 * params.def (lto-partitions): Fix typo.
5542 (lto-min-partition): Fix wording.
5544 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5546 * config/rs6000/t-freebsd: Remove duplication from file.
5548 2011-03-21 Richard Guenther <rguenther@suse.de>
5551 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5553 2011-03-21 Richard Guenther <rguenther@suse.de>
5556 * params.def (lto-partitions): Require at least 1 partition.
5558 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5560 * gthr-solaris.h: Remove.
5561 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5562 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5563 (LIB_SPEC): Likewise.
5564 * config/sol2.opt (threads): Remove.
5565 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5566 (sparc*-*-solaris2*): Likewise.
5567 * configure.ac (enable_threads): Enable solaris support.
5568 * configure: Regenerate.
5569 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5570 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5573 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5575 * config.gcc: Obsolete *-*-solaris2.8*.
5576 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5578 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5581 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5582 reference. Solaris 8 perl works.
5584 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5587 * doc/install.texi (Prerequisites): Move jar etc. up.
5588 Explain support library version requirements.
5590 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5593 * doc/install.texi (Prerequisites): Move Perl to build
5594 requirements. Always necessary on Solaris 2 with Sun ld.
5596 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5598 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5600 (Specific, i?86-*-solaris2.[89]): Likewise.
5601 (Specific, i?86-*-solaris2.10): Likewise.
5602 (Specific, mips-sgi-irix6): Likewise.
5603 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5604 Update for binutils 2.21.
5606 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5608 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5609 Allow -fuse-linker-plugin for non-default plugin linker.
5610 * configure: Regenerate.
5612 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5615 * gengtype.c (files_rules): Added rule for cp/parser.h.
5617 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5620 * config/s390/s390.c (s390_delegitimize_address): Don't call
5621 lowpart_subreg if orig_x has BLKmode.
5623 2011-03-21 Kai Tietz <ktietz@redhat.com>
5626 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5627 * tree.h (attribute_spec): Add new member affects_type_identity.
5628 * attribs.c (empty_attribute_table): Adjust attribute_spec
5630 * config/alpha/alpha.c: Likewise.
5631 * config/arc/arc.c: Likewise.
5632 * config/arm/arm.c: Likewise.
5633 * config/avr/avr.c: Likewise.
5634 * config/bfin/bfin.c: Likewise.
5635 * config/crx/crx.c: Likewise.
5636 * config/darwin.h: Likewise.
5637 * config/h8300/h8300.c: Likewise.
5638 * config/i386/cygming.h: Likewise.
5639 * config/i386/i386.c: Likewise.
5640 * config/ia64/ia64.c: Likewise.
5641 * config/m32c/m32c.c: Likewise.
5642 * config/m32r/m32r.c: Likewise.
5643 * config/m68hc11/m68hc11.c: Likewise.
5644 * config/m68k/m68k.c: Likewise.
5645 * config/mcore/mcore.c: Likewise.
5646 * config/mep/mep.c: Likewise.
5647 * config/microblaze/microblaze.c: Likewise.
5648 * config/mips/mips.c: Likewise.
5649 * config/rs6000/rs6000.c: Likewise.
5650 * config/rx/rx.c: Likewise.
5651 * config/sh/sh.c: Likewise.
5652 * config/sol2.h: Likewise.
5653 * config/sparc/sparc.c: Likewise.
5654 * config/spu/spu.c: Likewise.
5655 * config/stormy16/stormy16.c: Likewise.
5656 * config/v850/v850.c: Likewise.
5658 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5660 * simplify-rtx.c (simplify_binary_operation_1): Handle
5661 (xor (and A B) C) case when B and C are both constants.
5663 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5665 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5667 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5670 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5672 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5674 PR rtl-optimization/48156
5675 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5676 assume df and df_lr are not NULL.
5678 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5681 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5682 between a call and its CALL_ARG_LOCATION note.
5684 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5687 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5688 between a call and its corresponding CALL_ARG_LOCATION note.
5690 2011-03-19 Anatoly Sokolov <aesok@post.ru>
5692 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5693 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5694 * haifa-sched.c (setup_ref_regs): Ditto.
5695 * caller-save.c (add_used_regs_1): Ditto.
5696 * dse.c (look_for_hardregs): Ditto.
5697 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5698 * sched-rgn.c (check_live_1): Ditto.
5700 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5702 * c-decl.c (diagnose_mismatched_decls): Give an error for
5703 redefining a typedef with variably modified type.
5705 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5707 * c-decl.c (grokfield): Don't allow typedefs for structures or
5708 unions with no tag by default.
5709 * doc/extend.texi (Unnamed Fields): Update.
5711 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
5713 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5714 Rewrite using indirect functions.
5715 (lwp_slwpcb): Ditto.
5716 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5717 (avx_vinsertf128<mode>): Ditto.
5719 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5721 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5724 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5726 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5727 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5729 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5731 PR rtl-optimization/48170
5732 * gcse.c (hoist_code): Remove bogus asserts.
5734 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5736 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5737 computation for prologue/epilogue.
5739 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5741 * Makefile.in (check-consistency): Remove.
5743 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5746 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5747 arange_table_in_use is 0, but either text_section_used or
5748 cold_text_section_used is true. Don't call it if
5749 !info_section_emitted.
5751 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5753 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5754 FUNCTION_VALUE_REGNO_P): Remove.
5755 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5757 * config/avr/avr.c (avr_ret_register): Make static inline.
5758 (avr_function_value_regno_p): New function.
5759 (avr_libcall_value): Make static. Add 'func' argument.
5760 (avr_function_value): Make static. Rename 'func' argument to
5761 'fn_decl_or_type', forward it to avr_libcall_value. Call
5762 avr_ret_register function instead of RET_REGISTER macro.
5763 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5765 2011-03-18 Jason Merrill <jason@redhat.com>
5768 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5770 2011-03-18 Richard Guenther <rguenther@suse.de>
5772 * doc/install.texi (--enable-gold): Remove.
5773 (--with-plugin-ld): Document.
5774 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5776 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5779 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5780 again after expansion changes.
5782 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5784 * combine.c (try_combine): Do simplification only call of
5785 subst() on i2 even when i1 is present. Update comments.
5787 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5789 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5790 and UNSPEC_PCREL_SYMOFF.
5792 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5794 * config/s390/s390.md: Use define_c_enum for the unspec constant
5797 2011-03-18 Richard Henderson <rth@redhat.com>
5798 Jakub Jelinek <jakub@redhat.com>
5801 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5802 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5804 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5807 * combine.c (cant_combine_insn_p): Don't check zero/sign
5808 extended hard registers.
5810 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5813 * combine.c (cant_combine_insn_p): Check zero/sign extended
5816 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5818 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5819 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5820 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5821 Change return type to bool.
5822 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5824 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5827 * var-tracking.c (prepare_call_arguments): If CALL target
5828 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5829 pc instead of looking it up using cselib_lookup and use
5830 Pmode for it if x has VOIDmode.
5831 * dwarf2out.c (gen_subprogram_die): If also both first and
5832 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5835 * function.c (assign_parms): For data.passed_pointer parms
5836 use MEM of data.entry_parm instead of data.entry_parm itself
5837 as DECL_INCOMING_RTL.
5838 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5839 also when passed and declared mode is the same, DECL_RTL
5840 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5843 2011-03-16 Jeff Law <law@redhat.com>
5845 PR rtl-optimization/37273
5846 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5847 handle them like argument loads from stack slots. Do not double
5848 count memory for memory constants and argument loads from stack slots.
5850 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5853 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5855 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5858 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5860 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5863 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5865 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5866 Clear call_arg_locations and call_arg_loc_last always.
5869 * var-tracking.c (prepare_call_arguments): If argument needs to be
5870 passed by reference, adjust argtype and mode.
5872 2011-03-17 Richard Guenther <rguenther@suse.de>
5875 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5876 a value make sure to fold the statement.
5878 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5881 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5882 return condition with !cfun->calls_alloca.
5884 2011-03-17 Richard Guenther <rguenther@suse.de>
5887 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5888 origin for decls in other ltrans units.
5889 (input_varpool_node): Likewise.
5891 2011-03-17 Richard Guenther <rguenther@suse.de>
5894 * tree-object-size.c (compute_object_offset): Properly return
5895 the offset operand of MEM_REFs as sizetype.
5897 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5899 PR rtl-optimization/48141
5900 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5901 * dse.c: Include params.h.
5902 (active_local_stores_len): New variable.
5903 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5905 (record_store, check_mem_read_rtx): Decrease it when removing
5907 (scan_insn): Likewise. Increase it when adding to chain, if it
5908 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5909 set active_local_stores to NULL before the addition.
5910 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5912 PR rtl-optimization/48141
5913 * dse.c (record_store): If no positions are needed in an insn
5914 that cannot be deleted, at least unchain it from active_local_stores.
5916 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5919 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5920 (lookup_type_die_strip_naming_typedef): ... here.
5921 (get_context_die): Use it.
5922 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5923 the anonymous struct named by the naming typedef.
5925 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5928 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5929 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5931 2011-03-16 Jeff Law <law@redhat.com>
5933 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5934 check for operands of conditional. Allow type to be a pointer.
5936 2011-03-16 Richard Guenther <rguenther@suse.de>
5938 PR tree-optimization/48149
5939 * fold-const.c (fold_binary_loc): Fold
5940 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5942 2011-03-16 Richard Guenther <rguenther@suse.de>
5944 PR tree-optimization/26134
5945 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5946 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5947 (non_rewritable_mem_ref_base): Handle complex type component
5948 accesses, constrain offsets for vector and complex extracts
5951 2011-03-16 Richard Guenther <rguenther@suse.de>
5953 PR tree-optimization/48146
5954 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5955 operands avoiding the need for renaming.
5957 2011-03-16 Richard Guenther <rguenther@suse.de>
5959 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5960 constant folding. Move MEM_REF canonicalization first.
5961 Rely on fold_const_aggregate_ref for initializer folding.
5962 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5964 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5967 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5968 arg0/arg1 or their arguments are always fold converted to matching
5971 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5974 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5977 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5978 Handle in-tree gold.
5979 (ld_vers): Extract binutils version for gold.
5980 (gcc_cv_ld_hidden): Handle gold here.
5981 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5982 * configure: Regenerate.
5983 * config.in: Regenerate.
5984 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5985 -fuse-linker-plugin otherwise.
5986 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5987 (LINK_COMMAND_SPEC): Use it.
5988 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5990 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5992 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5993 * calls.c: Remove debug.h include.
5994 (emit_call_1): Don't call virtual_call_token debug hook.
5995 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5996 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5997 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5998 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5999 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6000 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6001 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6002 dwarf2out_virtual_call): Remove.
6003 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6004 copy_call_info and virtual_call hooks.
6005 (dwarf2out_init): Don't initialize vcall_insn_table,
6006 debug_dcall_section and debug_vcall_section.
6007 (prune_unused_types): Don't mark nodes from dcall_table.
6008 (dwarf2out_finish): Don't output dcall or vcall tables.
6009 * final.c (final_scan_insn): Don't call direct_call or
6010 virtual_call debug hooks.
6011 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6012 virtual_call_token, copy_call_info and virtual_call hooks.
6013 (debug_nothing_uid): Remove prototype.
6014 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6015 copy_call_info and virtual_call hooks.
6016 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6017 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6018 * debug.c (do_nothing_debug_hooks): Likewise.
6019 (debug_nothing_uid): Remove.
6020 * doc/invoke.texi (-fenable-icf-debug): Remove.
6021 * common.opt (-fenable-icf-debug): Likewise.
6023 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6024 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6025 call's MEM. Handle functions returning aggregate through a hidden
6026 first pointer. For virtual calls add clobbered pc to call arguments
6028 * dwarf2out.c (gen_subprogram_die): Emit
6029 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6033 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6034 * rtl.h (ENTRY_VALUE_EXP): Define.
6035 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6036 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6037 * print-rtl.c (print_rtx): Likewise.
6038 * gengtype.c (adjust_field_rtx_def): Likewise.
6039 * var-tracking.c (vt_add_function_parameter): Adjust
6040 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6041 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6042 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6043 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6044 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6046 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6047 Call var_location debug hook even on CALL_INSNs.
6048 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6049 * rtl.def (ENTRY_VALUE): New.
6050 * dwarf2out.c: Include cfglayout.h.
6051 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6052 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6053 (struct call_arg_loc_node): New type.
6054 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6055 tail_call_site_count): New variables.
6056 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6057 DW_TAG_GNU_call_site_parameter.
6058 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6059 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6060 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6061 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6062 and DW_AT_GNU_all_source_call_sites.
6063 (mem_loc_descriptor): Handle ENTRY_VALUE.
6064 (add_src_coords_attributes): Don't add enything if
6065 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6066 (dwarf2out_abstract_function): Save and clear call_arg_location,
6067 call_site_count and tail_call_site_count around dwarf2out_decl call.
6068 (gen_call_site_die): New function.
6069 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6070 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6071 (dwarf2out_function_decl): Clear call_arg_locations,
6072 call_arg_loc_last, set call_site_count and tail_call_site_count
6073 to -1 and free block_map.
6074 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6075 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6076 followed by any real instructions.
6077 (dwarf2out_begin_function): Set call_site_count and
6078 tail_call_site_count to 0.
6079 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6080 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6081 attempt to force a DIE for it and worst case remove the attribute.
6082 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6083 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6085 * var-tracking.c: Include tm_p.h.
6086 (vt_stack_adjustments): For calls call note_register_arguments.
6087 (argument_reg_set): New variable.
6088 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6089 ensure the VALUE is resolved.
6090 (call_arguments): New variable.
6091 (prepare_call_arguments): New function.
6092 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6093 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6094 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6095 always use the best expression.
6096 (vt_expand_loc): Add ignore_cur_loc argument.
6097 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6098 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6099 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6101 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6102 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6103 argument. Don't call cselib_preserve_only_values and
6105 (note_register_arguments): New function.
6106 (vt_initialize): Compute argument_reg_set. Call
6107 vt_add_function_parameters before processing basic blocks instead of
6108 afterwards. For calls call prepare_call_arguments before calling
6109 cselib_process_insn.
6110 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6111 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6112 (var-tracking.o): Depend on $(TM_P_H).
6113 * cfglayout.h (insn_scope): New prototype.
6114 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6115 * cfglayout.c (insn_scope): No longer static.
6116 * insn-notes.def (CALL_ARG_LOCATION): New.
6117 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6118 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6119 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6120 nothing for DECL_EXTERNAL BLOCK_VARS.
6122 2011-03-16 Alan Modra <amodra@gmail.com>
6125 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6126 create invalid offset address for vsx splat insn.
6127 * config/rs6000/predicates.md (splat_input_operand): New.
6128 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6130 2011-03-15 Xinliang David Li <davidxl@google.com>
6133 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6134 (normalize_preds): New function.
6135 (is_use_properly_guarded): Normalize def predicates.
6137 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6140 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6141 in the output template.
6143 2011-03-15 Richard Guenther <rguenther@suse.de>
6146 * tree-pretty-print.c (dump_function_declaration): Properly
6147 dump unprototyped and varargs function types.
6149 2011-03-15 Richard Guenther <rguenther@suse.de>
6151 PR tree-optimization/13954
6152 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6155 2011-03-15 Richard Guenther <rguenther@suse.de>
6157 PR tree-optimization/48037
6158 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6159 selects into BIT_FIELD_REFs.
6160 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6163 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6165 PR tree-optimization/48129
6166 * builtins.c (fold_builtin_snprintf): Convert to type of
6167 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6168 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6170 2011-03-15 Richard Guenther <rguenther@suse.de>
6172 PR tree-optimization/41490
6173 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6174 value but with VUSE.
6175 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6177 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6178 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6179 * tree-tailcall.c (find_tail_calls): Ignore returns.
6181 2011-03-15 Richard Guenther <rguenther@suse.de>
6184 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6185 or variable-indexed array accesses when in gimple form.
6187 2011-03-15 Richard Guenther <rguenther@suse.de>
6189 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6191 2011-03-15 Alan Modra <amodra@gmail.com>
6194 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6195 presume symbol_refs without a symbol_ref_decl are suitably
6196 aligned, nor other trees we may see here. Handle anchor symbols.
6197 (legitimate_constant_pool_address_p): Comment. Add mode param.
6198 Check cmodel=medium addresses. Adjust all calls.
6199 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6200 creating cmodel=medium optimized access to locals.
6201 * config/rs6000/constraints.md (R): Pass QImode to
6202 legitimate_constant_pool_address_p.
6203 * config/rs6000/predicates.md (input_operand): Pass mode to
6204 legitimate_constant_pool_address_p.
6205 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6208 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6211 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6212 64-bit constants being loaded into registers other than GPRs such
6213 as loading 0 into a VSX register.
6215 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6217 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6219 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6222 * builtins.c (fold_builtin_snprintf): New function.
6223 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6224 (fold_builtin_4): Likewise.
6227 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6228 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6229 and C - X == X also strip nops from +/-/p+ operand.
6230 When optimizing -X == C, fold C to arg0's type.
6233 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6234 emit it as add_AT_int instead of add_AT_unsigned.
6236 2011-03-14 Tom Tromey <tromey@redhat.com>
6238 * unwind-dw2.c: Include sys/sdt.h if it exists.
6239 (_Unwind_DebugHook): Use STAP_PROBE2.
6240 * config.in, configure: Rebuild.
6241 * configure.ac: Check for sys/sdt.h.
6243 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6245 * config/i386/i386.md (ROUND_FLOOR): New constant.
6246 (ROUND_CEIL): Ditto.
6247 (ROUND_TRUNC): Ditto.
6248 (ROUND_MXCSR): Ditto.
6249 (ROUND_NO_EXC): Ditto.
6250 (rint<mode>2): Use new defines instead of numerical constants.
6251 (floor<mode>2): Ditto.
6252 (ceil<mode>2): Ditto.
6253 (btrunc<mode>2): Ditto.
6254 * config/i386/i386-builtin-types.def: Define ROUND function type
6256 * config/i386/i386.c (enum ix86_builtins): Add
6257 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6258 (struct builtin_description): Add
6259 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6260 (ix86_expand_sse_round): New static function.
6261 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6263 (ix86_builtin_vectorized_function): Handle
6264 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6266 2011-03-14 Tom Tromey <tromey@redhat.com>
6268 * c-parser.c (c_parser_asm_string_literal): Clear
6269 warn_overlength_strings.
6271 2011-03-14 Tom Tromey <tromey@redhat.com>
6273 * c-parser.c (disable_extension_diagnostics): Save
6274 warn_overlength_strings.
6275 (restore_extension_diagnostics): Restore warn_overlength_strings.
6277 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6279 * BASE-VER: Change to 4.7.0.
6281 2011-03-14 Richard Guenther <rguenther@suse.de>
6284 * tree.c (build_vector_from_val): Adjust assert to requirements
6287 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6290 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6292 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6294 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6295 terms of target_flags_explicit. Adjust copyright year.
6297 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6298 * config/rs6000/t-freebsd: New file. Add override for
6301 2011-03-13 Chris Demetriou <cgd@google.com>
6303 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6304 (-fno-diagnostics-show-option): this, to reflect current default.
6305 (-Werror=): Update text about -fno-diagnostics-show-option.
6307 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6310 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6311 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6312 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6313 mode is not V2DImode or V2DFmode.
6314 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6315 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6316 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6318 (movdi_internal64): Likewise.
6320 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6322 PR tree-optimization/47127
6323 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6325 (set_cloog_options): Same.
6326 (scop_to_clast): Same.
6327 (print_clast_stmt): Do not call cloog_state_malloc and
6329 (print_generated_program): Same.
6331 * graphite-clast-to-gimple.h (cloog_state): Declared.
6332 (scop_to_clast): Adjust declaration.
6333 * graphite.c (cloog_state): Defined here.
6334 (graphite_initialize): Call cloog_state_malloc.
6335 (graphite_finalize): Call cloog_state_free.
6337 2011-03-11 Jason Merrill <jason@redhat.com>
6339 * attribs.c (lookup_attribute_spec): Take const_tree.
6342 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6344 * config/sparc/sparc.c (sparc_option_override): Use
6345 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6347 2011-03-11 Richard Guenther <rguenther@suse.de>
6349 PR tree-optimization/48067
6350 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6351 multiplication result will be only used once on the target
6354 2011-03-11 Richard Guenther <rguenther@suse.de>
6356 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6358 2011-03-11 Richard Guenther <rguenther@suse.de>
6361 * tree.c (find_decls_types_r): Do not walk types only reachable
6362 from IDENTIFIER_NODEs.
6364 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6367 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6368 all vnode->force_output nodes as needed.
6370 2011-03-11 Jason Merrill <jason@redhat.com>
6373 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6374 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6376 2011-03-11 Martin Jambor <mjambor@suse.cz>
6378 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6381 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6383 PR tree-optimization/48063
6384 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6385 inline functions called once if !tree_can_inline_p (node->callers).
6387 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6389 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6391 * config/score/score3.c: Delete.
6392 * config/score/score3.h: Delete.
6393 * config/score/mul-div.S: Delete.
6394 * config/score/sfp-machine.h: Add new file.
6395 * config/score/constraints.md: Add new file.
6396 * config/score/t-score-softfp: Add new file.
6397 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6398 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6399 (score7_extra_constraint): Delete.
6400 (score7_option_override): Remove unused code.
6401 * config/score/score.c: Remove score3 and score5 define and code.
6402 * config/score/score.h: Remove score3 and score5 define and code.
6403 * config/score/score.md: Remove score3 template and unusual insn.
6404 * config/score/score.opt: Remove score3 and score5 options.
6406 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6408 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6409 when _HPUX_SOURCE is defined.
6410 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6412 2011-03-10 Jason Merrill <jason@redhat.com>
6415 * stor-layout.c (layout_type): Don't set structural equality
6416 on arrays of incomplete type.
6417 * tree.c (type_hash_eq): Handle comparing them properly.
6419 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6422 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6423 result mode matches original rtl mode.
6425 2011-03-10 Nick Clifton <nickc@redhat.com>
6427 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6428 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6430 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6432 PR rtl-optimization/47866
6433 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6434 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6435 if target wasn't scalar.
6436 * function.c (assign_stack_temp_for_type): Assert that neither
6437 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6438 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6440 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6442 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6444 * config/s390/s390-protos.h (s390_label_align): New prototype.
6445 * config/s390/s390.c (s390_label_align): New function.
6446 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6448 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6451 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6452 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6453 (output_vec_const_move): Ditto.
6455 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6457 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6458 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6459 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6460 Change 'rclass' argument and result type to reg_class_t.
6461 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6463 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6465 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6466 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6467 (TARGET_MEMORY_MOVE_COST): Define.
6468 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6470 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6473 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6476 PR tree-optimization/48022
6477 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6480 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6483 * var-tracking.c (find_use_val): Return NULL for
6484 cui->sets && cui->store_p BLKmode MEMs.
6486 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6488 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6490 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6491 xstormy16_print_operand_address): Remove.
6492 * config/stormy16/stormy16.c (xstormy16_print_operand,
6493 xstormy16_print_operand_address): Make static.
6494 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6496 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6499 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6500 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6503 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6506 * cfgloopmanip.c (fix_bb_placements): Return immediately
6507 if FROM is BASE_LOOP's header.
6509 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6511 * gimplify.c (gimplify_function_tree): Fix building calls
6512 to __builtin_return_address.
6514 2011-03-07 Alan Modra <amodra@gmail.com>
6516 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6517 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6518 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6519 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6521 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6522 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6523 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6524 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6525 * config/rs6000/rs6000.c
6526 (rs6000_elf_end_indicate_exec_stack): Rename to..
6527 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6528 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6529 (rs6000_file_start): ..here.
6530 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6531 file scope variables.
6532 (call_ABI_of_interest): New function.
6533 (init_cumulative_args): Set above vars when function return value
6534 is a float, vector, or small struct.
6535 (rs6000_function_arg_advance_1): Likewise for function args.
6536 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6537 references float args.
6539 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6541 * doc/cfg.texi: Remove "See" before @ref.
6542 * doc/invoke.texi: Likewise.
6544 2011-03-05 Jason Merrill <jason@redhat.com>
6546 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6548 2011-03-05 Anthony Green <green@moxielogic.com>
6550 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6552 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6554 PR rtl-optimization/47899
6555 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6556 to flow_loop_nested_p when moving the loop upward.
6558 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6561 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6563 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6565 PR tree-optimization/47967
6566 * ipa-cp.c (build_const_val): Return NULL instead of creating
6567 VIEW_CONVERT_EXPR for mismatching sizes.
6568 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6569 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6570 give up on versioning.
6572 2011-03-05 Alan Modra <amodra@gmail.com>
6575 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6576 full cmodel medium/large lo_sum + high addresses.
6578 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6580 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6581 pool references in UNSPEC_LTREL_OFFSET.
6583 2011-03-04 Jan Hubicka <jh@suse.cz>
6586 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6587 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6588 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6590 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6591 cgraph_add_thunk): Add node pointers.
6592 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6593 associated to right node.
6594 (input_node): Update use of cgraph_same_body_alias
6595 and cgraph_add_thunk.
6597 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6599 * config/i386/i386.opt (mprefer-avx128): New flag.
6600 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6601 modes when the flag -mprefer-avx128 is on.
6603 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6605 * dwarf2out.c (compare_loc_operands): Fix address handling.
6607 2011-03-04 Alan Modra <amodra@gmail.com>
6609 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6611 2011-03-04 Richard Guenther <rguenther@suse.de>
6614 * expmed.c (extract_bit_field_1): Prefer vector modes that
6615 vec_extract patterns can handle.
6617 2011-03-04 Richard Guenther <rguenther@suse.de>
6620 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6622 2011-03-04 Richard Henderson <rth@redhat.com>
6624 * explow.c (emit_stack_save): Remove 'after' parameter.
6625 (emit_stack_restore): Likewise.
6626 * expr.h: Update to match.
6627 * builtins.c, calls.c, stmt.c: Likewise.
6628 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6629 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6630 * function.c (expand_function_end): Insert the emit_stack_save
6631 sequence before parm_birth_insn instead of after.
6633 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6635 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6636 (ssse3_pmaddubsw128): Ditto.
6637 (ssse3_pmaddubsw): Ditto.
6639 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6641 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6643 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6646 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6647 on TYPE_SIZE_UNIT if it is a DECL.
6650 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6651 first operand is not is_gimple_mem_ref_addr, try to fold it.
6652 If the operand still isn't is_gimple_mem_ref_addr, clear
6655 2011-03-03 Richard Guenther <rguenther@suse.de>
6658 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6660 (refs_may_alias_p_1): For release branches return true if
6661 we are confused by our input.
6663 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6665 * config/s390/s390.c (s390_function_value): Rename to ...
6666 (s390_function_and_libcall_value): ... this.
6667 (s390_function_value): New function.
6668 (s390_libcall_value): New function.
6669 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6670 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6671 target macro definitions.
6672 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6674 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6676 * config/i386/freebsd64.h (CC1_SPEC): Define.
6677 * config/i386/linux64.h (CC1_SPEC): Define.
6678 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6680 2011-03-02 Anatoly Sokolov <aesok@post.ru>
6682 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6684 * config/stormy16/stormy16.c: Include reload.h.
6685 (xstormy16_memory_move_cost): New function.
6686 (TARGET_MEMORY_MOVE_COST): Define.
6688 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6690 PR rtl-optimization/47925
6691 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6692 with side effects. Remove the more-specific check for volatile asms.
6694 2011-03-02 Alan Modra <amodra@gmail.com>
6697 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6698 toc relative addresses for valid offsets.
6700 2011-03-01 Richard Guenther <rguenther@suse.de>
6702 PR tree-optimization/47890
6703 * tree-vect-loop.c (get_initial_def_for_induction): Set
6704 related stmt properly.
6706 2011-03-01 Richard Guenther <rguenther@suse.de>
6709 * lto-streamer.c (lto_record_common_node): Also register
6712 2011-03-01 Richard Guenther <rguenther@suse.de>
6715 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6716 Do not stream DECL_ABSTRACT_ORIGIN.
6717 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6718 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6719 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6720 Do not stream DECL_ABSTRACT_ORIGIN.
6721 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6722 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6724 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6726 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6727 FUNCTION_VALUE_REGNO_P): Remove.
6728 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6729 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6730 Add 'outgoing' argument.
6731 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6733 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6734 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6736 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6739 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6740 (lookup_filename): Likewise.
6741 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6743 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6744 Jakub Jelinek <jakub@redhat.com>
6747 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6748 (assign_stack_local_1): Change last argument type to int.
6749 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6750 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6751 don't record padding space into frame_space_list nor use those areas.
6752 (assign_stack_local): Adjust caller.
6753 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6754 of assign_stack_local, pass 0 as last argument.
6755 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6758 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6761 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6762 Use target address_mode and pointer_mode hooks instead of hardcoded
6763 Pmode and ptr_mode. Handle some simple cases of extending if
6764 POINTERS_EXTEND_UNSIGNED < 0.
6765 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6766 Call convert_debug_memory_address.
6767 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6768 convert_debug_memory_address.
6771 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6772 * configure: Regenerated.
6773 * config.in: Regenerated.
6774 * varasm.c (default_function_section): Return NULL
6775 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6777 2011-02-28 Martin Jambor <mjambor@suse.cz>
6779 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6780 the description to match the printed values.
6782 2011-02-28 Richard Guenther <rguenther@suse.de>
6784 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6785 of the copied scope tree.
6787 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6789 * doc/extend.texi (Function Attributes): Avoid deeply (and
6790 wrongly) nested tables.
6792 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6795 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6796 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6797 r isn't op0 nor op1.
6799 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6801 * config/avr/avr.md: Remove magic comment for emacs.
6803 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6806 * config/avr/avr.c (avr_option_override): Use error on bad options.
6807 (avr_help): New function.
6808 (TARGET_HELP): Define.
6810 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6813 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6814 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6816 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6818 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6819 (ARM Options): Ditto.
6820 (i386 and x86-64 Options): Ditto.
6821 (RX Options): Ditto.
6822 (SPARC Options): Ditto.
6824 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6826 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6827 FreeBSD 6 and later. Generally use cpu generic.
6829 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6831 * doc/cpp.texi: Update copyright years.
6833 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6836 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6838 2011-02-25 Jon Beniston <jon@beniston.com>
6841 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6842 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6843 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6844 (lm32_block_move_inline): Add type cast to remove warning.
6845 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6846 (gen_int_relational): Move declarations to start of function.
6848 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6850 PR tree-optimization/45470
6851 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6852 can throw internally only.
6853 * tree-vect-stmts.c (vectorizable_call): Likewise.
6855 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6857 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6858 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6859 * config/stormy16/stormy16-protos.h
6860 (xstormy16_preferred_reload_class): Remove.
6861 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6862 static. Change 'rclass' argument and return type to reg_class_t.
6863 (TARGET_PREFERRED_RELOAD_CLASS,
6864 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6866 2011-02-24 Richard Guenther <rguenther@suse.de>
6868 * lto-streamer-in.c (input_bb): Do not find referenced vars
6869 in debug statements.
6871 2011-02-23 Jason Merrill <jason@redhat.com>
6873 * common.opt (fabi-version): Document v5 and v6.
6875 2011-02-23 Richard Guenther <rguenther@suse.de>
6877 PR tree-optimization/47849
6878 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6880 2011-02-23 Jie Zhang <jie@codesourcery.com>
6882 * opts-common.c (decode_cmdline_option): Print empty string
6883 argument as "" in decoded->orig_option_with_args_text.
6884 * gcc.c (execute): Print empty string argument as ""
6885 in the verbose output.
6886 (do_spec_1): Keep empty string argument.
6888 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6890 * config.gcc: Declare score-* and crx-* obsolete.
6892 2011-02-23 Jie Zhang <jie@codesourcery.com>
6894 PR rtl-optimization/47763
6895 * web.c (web_main): Ignore naked clobber when replacing register.
6897 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6899 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6902 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6905 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6907 2011-02-22 Mike Stump <mikestump@comcast.net>
6909 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6911 * configure: Regenerate.
6913 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6915 PR rtl-optimization/46002
6916 * ira-color.c (update_copy_costs): Change class intersection
6917 test to reg_class_contents[] test of 'hard_regno'.
6919 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6921 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6923 * config/hpux11.opt (mt): Likewise.
6924 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6925 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6926 * config/vax/elf.opt (mno-asm-pic): Likewise.
6927 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6929 2011-02-21 Mike Stump <mikestump@comcast.net>
6932 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6933 tree so we can get save the type.
6934 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6935 for CFString instead of trying to use past the end of the builtins.
6936 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6937 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6938 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6939 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6940 Rename to darwin_builtin_cfstring.
6941 (darwin_init_cfstring_builtins): Return the built type.
6943 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
6946 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6947 (_mm256_insert_epi64): Use _mm_insert_epi64.
6949 2011-02-21 Anatoly Sokolov <aesok@post.ru>
6951 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6952 * config/stormy16/stormy16-protos.h
6953 (xstormy16_mode_dependent_address_p): Remove.
6954 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6955 Make static. Change return type to bool. Change argument type to
6956 const_rtx. Remove dead code.
6957 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6959 2011-02-21 Richard Guenther <rguenther@suse.de>
6962 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6963 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6964 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6966 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6967 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6969 2011-02-20 Richard Guenther <rguenther@suse.de>
6972 * tree.c (free_lang_data_in_decl): Clean builtins from
6973 the TU decl BLOCK_VARS.
6975 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6979 * haifa-sched.c (fix_tick_ready): Skip tick computation
6982 2011-02-19 Richard Guenther <rguenther@suse.de>
6985 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6986 Remove lazy BLOCK_VARS streaming.
6987 (lto_input_ts_block_tree_pointers): Likewise.
6988 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6990 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6992 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6994 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6996 * config/i386/biarch32.h, config/i386/mach.h,
6997 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6999 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7002 * config/i386/i386.md (peephole2 for shift and plus): Use
7003 operands[1] original mode in the first insn.
7005 2011-02-18 Mike Stump <mikestump@comcast.net>
7007 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7009 2011-02-18 Jan Hubicka <jh@suse.cz>
7012 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7013 to zero when the function is not inlinable at all.
7015 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7017 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7018 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7019 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7020 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7021 * config/pa/t-pa64: Likewise.
7022 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7024 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7027 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7029 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7032 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7034 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7036 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7037 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7038 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7039 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7040 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7041 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7042 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7043 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7044 m32r_legitimate_address_p): New functions.
7045 * config/m32r/constraints.md (constraint "S"): Don't use
7046 STORE_PREINC_PREDEC_P.
7047 (constraint "U"): Don't use LOAD_POSTINC_P.
7049 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7051 PR rtl-optimization/46178
7052 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7053 compute ira_hard_regno_cover_class[].
7055 2011-02-18 Richard Guenther <rguenther@suse.de>
7058 * lto-streamer.h (lto_global_var_decls): Declare.
7059 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7060 statics for global var processing.
7062 2011-02-18 Richard Guenther <rguenther@suse.de>
7064 PR tree-optimization/47737
7065 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7066 edge dominance check.
7068 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7071 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7072 avoid invalid rtx sharing.
7074 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7076 * doc/cpp.texi (Obsolete Features): Add background on the
7077 origin of assertions.
7079 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7081 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7083 * config/darwin.c (output_objc_section_asm_op): Added support for
7085 (is_objc_metadata): New.
7086 (darwin_objc2_section): New.
7087 (darwin_objc1_section): New.
7088 (machopic_select_section): Added support for ABI v1 and v2.
7089 (darwin_emit_objc_zeroed): New.
7090 (darwin_output_aligned_bss): Detect objc metadata and treat it
7092 (darwin_asm_output_aligned_decl_common): Same.
7093 (darwin_asm_output_aligned_decl_local): Same.
7094 * config/darwin-sections.def: Updated for ABI v1 and v2.
7095 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7096 compiling Objective-C code for the NeXT runtime, default to using
7097 ABI version 0 for 32-bit, and version 2 for 64-bit.
7099 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7101 * common.opt (optimize_fast): New Variable.
7102 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7103 instead of local variable ofast.
7105 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7107 * doc/invoke.texi (fobjc-abi-version): Documented.
7108 (fobjc-nilcheck): Documented.
7109 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7112 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7115 * common.opt (export-dynamic): New Driver option.
7116 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7118 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7120 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7122 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7123 Jan Hubicka <jh@suse.cz>
7127 * cfgexpand.c (account_used_vars_for_block): Remove.
7128 (estimated_stack_frame_size): Use referenced vars.
7129 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7130 that were referenced in the original function. Test src_fn
7131 rather than cfun. Drop redundant get_var_ann.
7132 (setup_one_parameter): Drop redundant get_var_ann.
7133 (declare_return_variable): Likewise.
7134 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7135 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7136 * ipa-inline.c (compute_inline_parameters): Do not compute
7137 disregard_inline_limits here.
7138 (compute_inlinable_for_current, pass_inlinable): New.
7139 (pass_inline_parameters): Require PROP_referenced_vars.
7140 * cgraphunit.c (cgraph_process_new_functions): Don't run
7141 compute_inline_parameters explicitly unless function is in SSA form.
7142 (cgraph_analyze_function): Set .disregard_inline_limits.
7143 * tree-sra.c (convert_callers): Compute inliner parameters
7144 only for functions already in SSA form.
7146 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7148 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7149 -mlittle-endian-data.
7151 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7153 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7154 -mno-fpu, not -fpu and -no-fpu.
7155 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7156 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7158 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7161 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7162 input reload with PLUS RTX.
7164 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7166 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7167 of InverseVar(MDMX).
7169 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7171 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7174 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7176 * config/mn10300/mn10300.opt (mno-crt0): New.
7178 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7180 * config/m68k/uclinux.opt (static-libc): New Driver option.
7182 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7184 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7186 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7188 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7189 %{muser-extend-enabled}.
7191 2011-02-16 Richard Guenther <rguenther@suse.de>
7193 PR tree-optimization/47738
7194 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7195 the TODO from tree_predictive_commoning.
7197 2011-02-15 Jeff Law <law@redhat.com>
7200 2011-01-25 Jeff Law <law@redhat.com>
7202 PR rtl-optimization/37273
7203 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7204 handle them like argument loads from stack slots. Do not double
7205 count memory for memory constants and argument loads from stack slots.
7207 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7210 * combine.c (cant_combine_insn_p): Revert the last change.
7212 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7215 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7216 mode for vector constants. Remove code that checks for TImode.
7218 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7222 * cgraph.h (compute_inline_parameters): Return void.
7223 * ipa-inline.c (compute_inline_parameters): Adjust.
7225 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7229 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7231 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7232 * ipa-inline.c (compute_inline_parameters): Adjust.
7234 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7238 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7239 Adjust all users. Pass FN to...
7240 * tree-flow-inline.h (first_referenced_var): ... this. Add
7242 * ipa-struct-reorg.c: Adjust.
7243 * tree-dfa.c: Adjust.
7244 * tree-into-ssa.c: Adjust.
7245 * tree-sra.c: Adjust.
7246 * tree-ssa-alias.c: Adjust.
7247 * tree-ssa-live.c: Adjust.
7248 * tree-ssa.c: Adjust.
7249 * tree-ssanames.c: Adjust.
7250 * tree-tailcall.c: Adjust.
7252 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7256 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7258 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7259 * tree-flow-inline.h: Adjust.
7260 * gimple-pretty-print.c: Adjust.
7261 * tree-into-ssa.c: Adjust.
7262 * tree-ssa.c: Adjust.
7263 * cfgexpand.c: Adjust.
7265 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7267 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7268 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7269 (EXTRA_CONSTRAINT): Delete.
7270 * config/iq2000/constraints.md: New file.
7271 * config/iq2000/iq2000.md: Include it.
7272 (define_insn ""): Delete.
7273 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7274 unsupported constraint letters from patterns.
7275 (call_value, call_value_internal1): Likewise.
7276 (call_value_multiple_internal1): Likewise.
7278 2011-02-15 Nick Clifton <nickc@redhat.com>
7280 * config/mn10300/mn10300.c: Include tm-constrs.h.
7281 (struct liw_data): New data structure describing an LIW candidate
7283 (extract_bundle): Use struct liw_data. Allow small integer
7284 operands for some instructions.
7285 (check_liw_constraints): Use struct liw_data. Remove swapped
7286 parameter. Add comments describing the checks. Fix bug when
7287 assigning the source of liw1 to the source of liw2.
7288 (liw_candidate): Delete. Code moved into extract_bundle.
7289 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7291 * config/mn10300/predicates.md (liw_operand): New predicate.
7292 Allows registers and small integer constants.
7293 * config/mn10300/constraints.md (O): New constraint. Accetps
7294 integers in the range -8 to +7 inclusive.
7295 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7296 for moving a small integer into a register. Give this alternative
7298 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7299 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7300 using the J,K,L and M constraints,
7301 (liw): Remove SI mode on second operands to allow for HI and QI
7303 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7306 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7309 * combine.c (cant_combine_insn_p): Check zero/sign extended
7312 2011-02-15 Richard Guenther <rguenther@suse.de>
7314 PR tree-optimization/47743
7315 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7316 for a non-type-compatible VN lookup bail out.
7318 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7320 * config/fr30/constraints.md: New file.
7321 * config/fr30/fr30.md: Include it.
7322 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7323 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7324 (EXTRA_CONSTRAINT): Delete.
7326 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7328 * config/frv/constraints.md: New file.
7329 * config/frv/predicates.md: Include it.
7330 * config/frv/frv.c (reg_class_from_letter): Delete.
7331 (frv_option_override): Don't initialize it.
7332 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7333 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7334 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7335 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7336 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7337 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7338 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7339 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7340 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7341 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7342 (REG_CLASS_FROM_CONSTRAINT): Delete.
7344 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7347 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7348 if frame size is 0 in a leaf function.
7350 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7353 * config/alpha/host-osf.c: New file.
7354 * config/alpha/x-osf: New file.
7355 * config.host (alpha*-dec-osf*): Use it.
7357 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7359 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7360 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7361 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7362 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7364 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7366 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7368 * config/stormy16/constraints.md: New file.
7369 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7370 Use satisfies_constraint_Q and satisfies_constraint_R.
7371 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7373 (xstormy16_legitiamte_address_p): Declare.
7374 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7375 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7376 (EXTRA_CONSTRAINT): Delete.
7377 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7379 (xstormy16_extra_constraint_p): Delete.
7381 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7383 PR tree-optimization/46494
7384 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7385 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7386 (pass_rtl_loop_done): Add TODO_verify_flow.
7387 * fwprop.c (pass_rtl_fwprop): Likewise.
7388 * modulo-sched.c (pass_sms): Likewise.
7389 * tree-ssa-dom.c (pass_dominator): Likewise.
7390 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7391 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7392 (pass_tree_loop_done): Likewise.
7393 * tree-ssa-pre.c (execute_pre): Likewise.
7394 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7395 * tree-ssa-sink.c (pass_sink_code): Likewise.
7396 * tree-vrp.c (pass_vrp): Likewise.
7398 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7400 * config/v850/constraints.md: New file.
7401 * config/v850/v850.md: Include it.
7402 * config/v850/predicates.md (reg_or_0_operand): Use
7403 satisfies_constraint_G.
7404 (special_symbolref_operand): Use satisfies_constraint_K.
7405 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7406 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7407 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7408 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7409 (EXTRA_CONSTRAINT): Delete.
7410 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7411 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7412 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7414 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7417 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7420 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7422 * config/mcore/constraints.md: New file.
7423 * config/mcore/mcore.md: Include it.
7424 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7425 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7426 (REG_CLASS_FROM_LETTER): Delete.
7427 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7428 insn_const_int_ok_for_constraint.
7429 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7430 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7431 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7432 (EXTRA_CONSTRAINT): Delete.
7434 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7437 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7438 (IS_SIGHANDLER): Define.
7439 (sparc64_is_sighandler): New function, split off from
7440 sparc64_fallback_frame_state.
7441 (sparc_is_sighandler): New function, split off from
7442 sparc_fallback_frame_state.
7443 (sparc64_fallback_frame_state): Merge with ...
7444 (sparc_fallback_frame_state): ... this into ...
7445 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7446 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7447 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7448 stack instead of hardcoded offsets.
7450 2011-02-14 Andriy Gapon <avg@freebsd.org>
7453 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7455 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7457 * configure: Regenerate.
7459 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7462 * gcc.c (asm_options): Correct spec matching --target-help.
7464 2011-02-12 Martin Jambor <mjambor@suse.cz>
7466 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7467 to gimple call error.
7469 2011-02-12 Mike Stump <mikestump@comcast.net>
7471 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7472 comments in backslash regions.
7474 2011-02-12 Mike Stump <mikestump@comcast.net>
7475 Jakub Jelinek <jakub@redhat.com>
7476 Iain Sandoe <iains@gcc.gnu.org>
7479 * dwarf2out.c (output_cfa_loc): When required, apply the
7480 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7481 (output_loc_sequence): Likewise.
7482 (output_loc_operands_raw): Likewise.
7483 (output_loc_sequence_raw): Likewise.
7484 (output_cfa_loc): Likewise.
7485 (output_loc_list): Suppress register number adjustment when
7486 calling output_loc_sequence()
7487 (output_die): Likewise.
7489 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7491 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7493 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7494 xtensa_memory_move_cost): New functions.
7495 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7497 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7500 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7501 in the current directory.
7502 * configure: Rebuilt.
7504 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7506 * config/darwin.c (darwin_override_options): Add a hunk missed
7507 from the commit of r168571. Trim comment line lengths and
7508 correct indents of the preceding block.
7510 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7512 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7515 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7517 * common.opt (nostartfiles): New Driver option.
7519 2011-02-11 Xinliang David Li <davidxl@google.com>
7521 PR tree-optimization/47707
7522 * tree-chrec.c (convert_affine_scev): Keep type precision.
7524 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7526 PR tree-optimization/47420
7527 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7529 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7531 PR rtl-optimization/47614
7532 * rtl.h (check_for_inc_dec): Declare.
7533 * dse.c (check_for_inc_dec): Externalize...
7534 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7535 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7537 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7540 * gcc.c (main): Do not compile inputs if there were errors in
7542 * opts-common.c (read_cmdline_option): Check for wrong language
7543 after other error checks.
7545 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7547 * cgraph.c: Fix comment typos.
7548 * cgraph.h: Likewise.
7549 * cgraphunit.c: Likewise.
7550 * ipa-cp.c: Likewise.
7551 * ipa-inline.c: Likewise.
7552 * ipa-prop.c: Likewise.
7553 * ipa-pure-const.c: Likewise.
7554 * ipa-ref.c: Likewise.
7555 * ipa-reference.c: Likewise.
7557 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7560 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7562 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7565 * doc/sourcebuild.texi (Require Support): Document
7566 dg-require-ascii-locale.
7568 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7570 * doc/lto.texi (Write summary): Fix missing parentheses.
7572 2011-02-10 DJ Delorie <dj@redhat.com>
7574 * config/m32c/m32c.c (m32c_option_override): Disable
7575 -fcombine-stack-adjustments until flag value tracking and compare
7576 optimization can be rewritten.
7578 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7580 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7582 (PROCESSOR_DEFAULT64): Likewise.
7584 2011-02-10 Richard Henderson <rth@redhat.com>
7586 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7587 change from 2011-02-03.
7588 * config/rx/rx.c (flags_from_code): Likewise.
7589 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7590 is valid, n/pz otherwise.
7591 (rx_select_cc_mode): Return CCmode if Y is not zero.
7593 2011-02-10 Richard Guenther <rguenther@suse.de>
7595 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7597 2011-02-10 Richard Guenther <rguenther@suse.de>
7599 PR tree-optimization/47677
7600 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7602 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7605 * combine.c (make_compound_operation): Only change shifts into
7606 multiplication for SCALAR_INT_MODE_P.
7608 2011-02-10 Jie Zhang <jie@codesourcery.com>
7612 2011-02-05 Jie Zhang <jie@codesourcery.com>
7614 * web.c (entry_register): Don't clobber the number of the
7615 first uninitialized reference in used[].
7617 2011-02-09 Richard Guenther <rguenther@suse.de>
7619 PR tree-optimization/47664
7620 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7623 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7627 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7629 (PROCESSOR_DEFAULT64): Same.
7630 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7632 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7634 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7636 2011-02-09 Martin Jambor <mjambor@suse.cz>
7639 * tree-sra.c (struct access): New flags grp_scalar_read and
7640 grp_scalar_write. Changed description of assignment read and write
7642 (dump_access): Dump new flags, reorder all of them.
7643 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7644 to detect multiple scalar reads.
7645 (analyze_access_subtree): Use the new scalar read write flags instead
7646 of the old flags. Adjusted comments.
7648 2011-02-08 DJ Delorie <dj@redhat.com>
7651 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7654 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7656 * config/m68k/uclinux.opt: New.
7657 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7659 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7661 * config/cris/elf.opt (sim): New Driver option.
7663 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7665 * config/xtensa/elf.opt: New.
7666 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7668 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7670 * config/vax/elf.opt: New.
7671 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7673 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7675 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7677 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7679 * config/gnu-user.opt: New.
7680 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7681 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7682 *-*-uclinux*): Use gnu-user.opt.
7684 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
7686 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7687 * config/i386/gnu.h (CPP_SPEC): Likewise.
7689 2011-02-08 Ian Lance Taylor <iant@google.com>
7691 * common.opt (fcx-limited-range): Add SetByCombined flag.
7692 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7693 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7694 (fassociative-math, freciprocal-math): Likewise.
7695 (funsafe-math-optimizations): Likewise.
7696 * opth-gen.awk: Handle SetByCombined.
7697 * optc-gen.awk: Likewise.
7698 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7699 (set_unsafe_math_optimizations_flags): Likewise.
7700 * doc/options.texi (Option properties): Document SetByCombined.
7702 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7704 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7705 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7706 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7707 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7708 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7710 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7712 PR tree-optimization/46834
7713 PR tree-optimization/46994
7714 PR tree-optimization/46995
7715 * graphite-sese-to-poly.c (used_outside_reduction): New.
7716 (detect_commutative_reduction): Call used_outside_reduction.
7717 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7718 translate_scalar_reduction_to_array only when at least one
7719 loop-phi/close-phi tuple has been detected.
7721 2011-02-08 Richard Guenther <rguenther@suse.de>
7724 * tree-vect-generic.c (expand_vector_operations_1): Update
7726 (expand_vector_operations): ... not here. Cleanup EH info
7727 and the CFG if required.
7729 2011-02-08 Richard Guenther <rguenther@suse.de>
7731 PR tree-optimization/47641
7732 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7733 require type compatibility.
7735 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7737 * gimple-low.c (lower_function_body): Don't remove the location of
7738 the return statement here.
7739 (lower_gimple_return): Do it here instead but only if the return
7740 statement is actually used twice.
7742 2011-02-08 Richard Guenther <rguenther@suse.de>
7744 PR tree-optimization/47632
7745 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7746 unused up_to_stmt parameter, return whether cfg-cleanup is
7747 necessary, remove EH info properly.
7748 (forward_propagate_into_gimple_cond): Adjust caller.
7749 (forward_propagate_into_cond): Likewise.
7750 (forward_propagate_comparison): Likewise.
7751 (tree_ssa_forward_propagate_single_use_vars): Make
7752 forward_propagate_comparison case similar to the two others.
7754 2011-02-08 Nick Clifton <nickc@redhat.com>
7756 * config/mn10300/mn10300.opt (mliw): New command line option.
7757 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7758 (liw_bundling): New automaton.
7759 (liw): New attribute.
7760 (liw_op): New attribute.
7761 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7762 (movsi_internal): Add LIW attributes.
7766 (addsi3): Separate register and immediate alternatives.
7771 (lshrsi3): Likewise.
7772 (ashrsi3): Likewise.
7774 * config/mn10300/mn10300.c (liw_op_names): New
7775 (mn10300_print_operand): Handle 'W' operand descriptor.
7776 (extract_bundle): New function.
7777 (check_liw_constraints): New function.
7778 (liw_candidate): New function.
7779 (mn10300_bundle_liw): New function.
7780 (mn10300_reorg): New function.
7781 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7782 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7783 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7784 __LIW__ or __NO_LIW__.
7785 * doc/invoke.texi: Describe the -mliw command line option.
7787 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7789 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7790 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7791 pthread_mutex_unlock): Remove.
7792 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7793 * config/pa/t-pa64: Likewise.
7794 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7795 shared libc if not linking against libpthread.
7796 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7798 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7801 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7802 on 10.6 and later to ensure that we always use the unwinder from
7803 the system. Only add -no_compact_unwind when tarteting darwin
7806 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7809 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7810 (vec_interleave_lowv2sf): Ditto.
7811 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7812 (vec_extract_oddv2sf): Ditto.
7814 2011-02-07 Mike Stump <mikestump@comcast.net>
7817 Add __ieee_divdc3 entry point.
7818 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7820 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7821 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7822 * config/darwin.c (darwin_rename_builtins): Add.
7823 * config/darwin-protos.h (darwin_rename_builtins): Add.
7825 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7828 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7831 2011-02-07 Mike Stump <mikestump@comcast.net>
7833 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7835 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7838 * config/avr/libgcc.S (exit): Move .endfunc
7840 2011-02-07 Richard Guenther <rguenther@suse.de>
7842 PR tree-optimization/47615
7843 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7844 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7845 (run_scc_vn): Initialize it.
7846 (visit_reference_op_load): Use it.
7847 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7849 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7851 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7852 DImode trapping arithmetic libfuncs.
7854 2011-02-07 Richard Guenther <rguenther@suse.de>
7856 PR tree-optimization/47621
7857 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7859 (execute_update_addresses_taken): ... here. Make it more
7860 conservative in what we accept.
7862 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7864 * config/sparc/freebsd.h (ASM_SPEC): Define.
7865 * config/sparc/vxworks.h (ASM_SPEC): Define.
7867 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7869 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7871 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7873 * doc/invoke.texi: Remove reference to compiler internals from
7876 * reg-notes.def: Remove REG_VALUE_PROFILE.
7877 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7879 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7882 * varasm.c (default_section_type_flags): If decl is NULL,
7883 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7885 2011-02-05 Jie Zhang <jie@codesourcery.com>
7888 * web.c (entry_register): Don't clobber the number of the
7889 first uninitialized reference in used[].
7891 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7893 PR tree-optimization/46194
7894 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7895 (build_classic_dist_vector_1): Do not represent classic distance
7896 vectors when the access functions are variating in different loops.
7898 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7900 * config/mips/iris6.opt: New.
7901 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7903 2011-02-04 Richard Henderson <rth@redhat.com>
7904 Steve Ellcey <sje@cup.hp.com>
7907 * config/ia64/predicates.md (mux1_brcst_element): New.
7908 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7909 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7910 (ia64_unpack_sign): New.
7911 (ia64_expand_unpack): Rewrite using new routines.
7912 (ia64_expand_widen_sum): Ditto.
7913 (ia64_expand_dot_prod_v8qi): Ditto.
7914 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7915 routines, add endian check.
7916 (pmpy2_even): Rename from pmpy2_r, add endian check.
7917 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7918 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7919 (vec_widen_smult_hi_v4hi): Ditto.
7920 (vec_widen_umult_lo_v4hi): Ditto.
7921 (vec_widen_umult_hi_v4hi): Ditto.
7922 (mulv2si3): Change endian checks.
7923 (sdot_prodv4hi): Rewrite with new calls.
7924 (udot_prodv4hi): New.
7925 (vec_pack_ssat_v4hi): Add endian check.
7926 (vec_pack_usat_v4hi): Ditto.
7927 (vec_pack_ssat_v2si): Ditto.
7928 (max1_even): Rename from max1_r, add endian check.
7929 (max1_odd): Rename from max1_l, add endian check.
7930 (*mux1_rev): Format change.
7932 (*mux1_shuf): Ditto.
7934 (*mux1_brcst_v8qi): Use new predicate.
7935 (vec_extract_evenv8qi): Remove endian check.
7936 (vec_extract_oddv8qi): Ditto.
7937 (vec_interleave_lowv4hi): Format change.
7938 (vec_interleave_highv4hi): Ditto.
7939 (mix2_even): Rename from mix2_r, add endian check.
7940 (mix2_odd): Rename from mux2_l, add endian check.
7941 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7942 (vec_extract_evenodd_helper): Format change.
7943 (vec_extract_evenv4hi): Remove endian check.
7944 (vec_extract_oddv4hi): Remove endian check.
7945 (vec_interleave_lowv2si): Format change.
7946 (vec_interleave_highv2si): Format change.
7947 (vec_initv2si): Remove endian check.
7948 (vecinit_v2si): Add endian check.
7949 (reduc_splus_v2sf): Add endian check.
7950 (reduc_smax_v2sf): Ditto.
7951 (reduc_smin_v2sf): Ditto.
7952 (vec_initv2sf): Remove endian check.
7953 (fpack): Add endian check.
7954 (fswap): Add endian check.
7955 (vec_interleave_highv2sf): Add endian check.
7956 (vec_interleave_lowv2sf): Add endian check.
7957 (fmix_lr): Add endian check.
7958 (vec_setv2sf): Format change.
7959 (*vec_extractv2sf_0_be): Use shift to extract operand.
7960 (*vec_extractv2sf_1_be): New.
7961 (vec_pack_trunc_v4hi): Add endian check.
7962 (vec_pack_trunc_v2si): Format change.
7964 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7967 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7968 do bb, locus and block comparison and disallow loads if it is not set.
7969 (stmt_is_replaceable_p): New function.
7970 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7972 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7973 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7975 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7977 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7979 * config/rs6000/xilinx.opt: New.
7980 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7982 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7984 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7986 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7988 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7989 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7990 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7991 secondary_reload_info, xtensa_secondary_reload): Remove.
7992 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7993 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7994 (xtensa_preferred_reload_class): Make static. Change return and
7995 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7996 Use CONST_DOUBLE_P predicate.
7997 (xtensa_preferred_output_reload_class): New function.
7998 (xtensa_secondary_reload): Make static.
8000 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8002 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8003 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8004 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8006 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8009 * output.h (SECTION_RELRO): Define.
8010 (SECTION_MACH_DEP): Adjust.
8011 (get_variable_section): New prototype.
8012 * varpool.c (varpool_finalize_named_section_flags): New function.
8013 (varpool_assemble_pending_decls): Call it.
8014 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8015 * cgraphunit.c (cgraph_output_in_order): Call
8016 varpool_finalize_named_section_flags.
8017 * varasm.c (get_section): Allow section flags conflicts between
8018 relro and read-only sections if the section hasn't been declared yet.
8019 Set SECTION_OVERRIDE after diagnosing section type conflict.
8020 (get_variable_section): No longer static.
8021 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8022 readonly sections that need relocations.
8023 (decl_readonly_section_1): New function.
8024 (decl_readonly_section): Use it.
8027 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8028 Steve Ellcey <sje@cup.hp.com>
8031 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8032 if section attribute used.
8034 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8036 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8037 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8038 (darwin_init_sections): Remove assertion.
8040 2011-02-03 Nick Clifton <nickc@redhat.com>
8042 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8044 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8045 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8046 instead of "n" and "pz".
8047 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8050 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8053 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8054 fma, expand FMA_EXPR as fma{,f,l} call.
8057 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8058 copy them into a unsigned char variable and pass address of it to
8059 lto_output_data_stream.
8062 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8063 around backend_init_target and lang_dependent_init_target calls.
8064 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8065 (verify_cgraph_node): Don't call set_cfun here. Use
8066 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8067 Set error_found for incorrectly represented calls to thunks.
8069 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8072 PR rtl-optimization/43494
8073 * rtl.h (for_each_inc_dec_fn): New type.
8074 (for_each_inc_dec): Declare.
8075 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8076 (for_each_inc_dec_find_inc_dec): New fn.
8077 (for_each_inc_dec_find_mem): New fn.
8078 (for_each_inc_dec): New fn.
8079 * dse.c (struct insn_size): Remove.
8080 (replace_inc_dec, replace_inc_dec_mem): Remove.
8081 (emit_inc_dec_insn_before): New fn.
8082 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8083 (canon_address): Pass mem modes to cselib_lookup.
8084 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8085 (cselib_lookup_from_insn): Likewise.
8086 (cselib_subst_to_values): Likewise.
8087 * cselib.c (find_slot_memmode): New var.
8088 (cselib_find_slot): New fn. Use it instead of
8089 htab_find_slot_with_hash everywhere.
8090 (entry_and_rtx_equal_p): Use find_slot_memmode.
8091 (autoinc_split): New fn.
8092 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8093 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8094 Deal with autoinc. Special-case recursion into MEMs.
8095 (cselib_hash_rtx): Likewise.
8096 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8097 address and MEM modes.
8098 (cselib_subst_to_values): Add memmode, pass it on.
8100 (cselib_lookup): Add memmode argument, pass it on.
8101 (cselib_lookup_from_insn): Add memmode.
8102 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8103 (struct cselib_record_autoinc_data): New.
8104 (cselib_record_autoinc_cb): New fn.
8105 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8106 mode to cselib_lookup. Reset autoinced REGs here instead of...
8107 (cselib_process_insn): ... here.
8108 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8110 (add_uses): Likewise, also to cselib_subst_to_values.
8111 (add_stores): Likewise.
8112 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8113 cselib_subst_to_values.
8114 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8115 * gcse.c (do_local_cprop): Adjusted.
8116 * postreload.c (reload_cse_simplify_set): Adjusted.
8117 (reload_cse_simplify_operands): Adjusted.
8118 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8120 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8122 PR tree-optimization/45122
8123 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8124 unsafe assumptions when there's more than one loop exit.
8126 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8129 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8130 Document using vector double with the load/store builtins, and
8131 that the load/store builtins always use Altivec instructions.
8133 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8134 to use altivec memory instructions, even on VSX.
8135 (vector_altivec_store_<mode>): Ditto.
8137 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8140 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8141 V2DF, V2DI support to load/store overloaded builtins.
8143 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8144 altivec load/store builtins for V2DF/V2DI types.
8146 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8147 set avoid indexed addresses on power6 if -maltivec.
8148 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8149 vector_altivec_load/vector_altivec_store builtins.
8150 (altivec_expand_st_builtin): Ditto.
8151 (altivec_expand_builtin): Add VSX memory builtins.
8152 (rs6000_init_builtins): Add V2DI types to internal types.
8153 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8154 load/store builtins.
8155 (rs6000_address_for_altivec): Insure memory address is appropriate
8158 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8159 vec_vsx_ld and vec_vsx_st.
8160 (vsx_store_<mode>): Ditto.
8162 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8163 variables to hold long long types for VSX vector memory builtins.
8164 (RS6000_BTI_unsigned_long_long): Ditto.
8165 (long_long_integer_type_internal_node): Ditti.
8166 (long_long_unsigned_type_internal_node): Ditti.
8168 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8169 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8170 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8172 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8174 (vec_vsx_st): Ditto.
8176 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8178 * config/pa/pa-hpux10.opt: New.
8179 * config/hpux11.opt (pthread): New Driver option.
8180 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8181 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8183 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8185 * config/ia64/vms.opt: New.
8186 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8188 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8191 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8192 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8193 generator functions.
8194 (vsx_floatuns<VSi><mode>2): Ditto.
8195 (vsx_fix_trunc<mode><VSi>2): Ditto.
8196 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8198 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8200 * config/i386/djgpp.opt (posix): New Driver option.
8202 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8204 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8205 Move to the unsupported targets list.
8207 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8209 PR rtl-optimization/47525
8210 * df-scan.c: Update copyright years.
8211 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8212 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8214 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8216 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8217 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8218 (ASM_OUTPUT_ASCII): Remove.
8219 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8221 2011-02-02 Jeff Law <law@redhat.com>
8224 * reload.c (find_reloads_address): Handle reg+d address where both
8225 components are invalid by reloading the entire address.
8227 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8228 Richard Guenther <rguenther@suse.de>
8230 PR tree-optimization/40979
8232 * passes.c (init_optimization_passes): After LIM call copy_prop
8233 and DCE to clean up.
8234 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8236 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8238 PR tree-optimization/47576
8239 PR tree-optimization/47555
8240 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8241 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8242 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8243 * tree-scalar-evolution.c (follow_ssa_edge): Use
8244 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8246 2011-02-02 Richard Guenther <rguenther@suse.de>
8248 PR tree-optimization/47566
8249 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8251 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8255 * tree-inline.c (declare_return_variable): Remove unused caller
8260 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8261 * cfgexpand.c (account_used_vars_for_block): Use them.
8262 * tree-nrv.c (tree_nrv): Likewise.
8263 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8264 (dump_scope_block): Likewise.
8265 (remove_unused_locals): Likewise.
8269 * tree-inline.c (declare_return_variable): Add result decl to
8270 local decls only once.
8271 * gimple-low.c (record_vars_into): Mark newly-created variables
8274 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8280 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8282 (no_real_insns_p, schedule_block, set_priorities): Drop special
8283 treatment of boundary debug insns.
8284 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8285 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8286 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8287 (BOUNDARY_DEBUG_INSN_P): Likewise.
8288 (SCHEDULE_DEBUG_INSN_P): Likewise.
8289 * sched-rgn.c (init_ready_list): Drop special treatment of
8290 boundary debug insns.
8291 * final.c (rest_of_clean_state): Clear notes' BB.
8293 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8295 * config/openbsd.opt (assert=): New Driver option.
8297 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8299 * config/i386/nto.opt: New.
8300 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8302 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8304 * config/i386/netware.opt: New.
8305 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8307 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8309 * config/interix.opt (posix): New Driver option.
8311 2011-02-01 DJ Delorie <dj@redhat.com>
8313 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8315 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8318 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8320 PR tree-optimization/47561
8321 * toplev.c (process_options): Print the Graphite flags. Add
8322 flag_loop_flatten to the list of options requiring Graphite.
8324 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8326 * config/i386/cygming.opt (posix): New Driver option.
8328 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8330 * config/arm/vxworks.opt: New.
8331 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8333 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8335 * config/alpha/elf.opt: New.
8336 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8337 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8339 2011-02-01 Richard Guenther <rguenther@suse.de>
8341 PR tree-optimization/47559
8342 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8343 store-motion on references that can throw.
8345 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8347 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8348 * tree-pass.h (TDF_CSELIB): New macro.
8349 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8350 cselib_lookup): Check for it rather than for TDF_DETAILS.
8352 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8355 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8358 * opts.c (finish_options): Don't add x_aux_base_name if it is
8361 2011-02-01 Richard Guenther <rguenther@suse.de>
8363 PR tree-optimization/47555
8365 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8367 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8369 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8372 * config/lm32/t-lm32: Add multilib for all CPU options.
8374 2011-02-01 Richard Guenther <rguenther@suse.de>
8376 PR tree-optimization/47541
8377 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8378 sure to have a field at offset zero.
8380 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8382 * config/arc/arc.opt (EB, EL): New Driver options.
8384 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8386 * config/alpha/osf5.opt: New.
8387 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8389 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8391 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8393 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8395 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8397 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8398 is an alias of -floop-interchange and that it requires the
8399 Graphite infrastructure.
8400 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8401 flag_loop_interchange based on the value of flag_tree_loop_linear.
8403 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8404 Richard Guenther <rguenther@suse.de>
8406 PR tree-optimization/47538
8407 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8408 type instead of r1type, except for comparisons. For right
8409 shifts and comparisons punt if there are mismatches in
8410 sizetype vs. non-sizetype types.
8412 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8414 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8417 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8419 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8421 * configure: Regenerate.
8423 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8425 * configure.ac (gcc_cv_ld_static_option): Define.
8426 (gcc_cv_ld_dynamic_option): Define.
8427 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8429 (HAVE_LD_STATIC_DYNAMIC): Update message.
8430 (LD_STATIC_OPTION): Define.
8431 (LD_DYNAMIC_OPTION): Define.
8432 * configure: Regenerate.
8433 * config.in: Regenerate.
8434 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8435 HAVE_LD_STATIC_DYNAMIC]: Use them.
8437 2011-01-31 Nick Clifton <nickc@redhat.com>
8439 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8440 registers inside interrupt handlers if the handler is not a leaf
8443 2011-01-31 Nick Clifton <nickc@redhat.com>
8445 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8446 reg_renumber returning an INVALID_REGNUM.
8448 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8451 * doc/install.texi: Document host options discarded when cross
8452 configuring target libraries.
8454 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8457 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8460 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8462 (no_real_insns_p, schedule_block, set_priorities): Drop special
8463 treatment of boundary debug insns.
8464 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8465 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8466 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8467 (BOUNDARY_DEBUG_INSN_P): Likewise.
8468 (SCHEDULE_DEBUG_INSN_P): Likewise.
8469 * sched-rgn.c (init_ready_list): Drop special treatment of
8470 boundary debug insns.
8471 * final.c (rest_of_clean-state): Clear notes' BB.
8473 2011-01-31 Alan Modra <amodra@gmail.com>
8475 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8476 toc relative expressions as we do in print_operand_address.
8478 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8480 * doc/extend.texi: Follow spelling conventions.
8481 * doc/invoke.texi: Fix a typo.
8483 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8485 * config/hpux11.opt: New.
8486 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8487 ia64*-*-hpux*): Use hpux11.opt.
8489 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8491 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8494 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8496 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8499 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8501 * doc/install.texi (Binaries): Remove outdated reference for
8502 Motorola 68HC11/68HC12 downloads.
8504 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8506 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8509 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8512 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8515 2011-01-28 Ahmad Sharif <asharif@google.com>
8517 * value-prof.c (check_counter): Corrected error message.
8519 2011-01-29 Jie Zhang <jie@codesourcery.com>
8521 * config/arm/arm.c (arm_legitimize_reload_address): New.
8522 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8523 arm_legitimize_reload_address.
8524 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8526 2011-01-28 Ian Lance Taylor <iant@google.com>
8528 * godump.c (go_define): Ignore macros whose definitions include
8529 two adjacent operands.
8531 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8534 * varasm.c (force_const_mem): Store copy of x in desc->constant
8535 instead of x itself.
8536 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8537 itself into REG_EQUAL note.
8539 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8541 * config/freebsd.opt (posix, rdynamic): New Driver options.
8543 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8545 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8547 * configure: Regenerate.
8549 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8551 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8552 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8554 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8556 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8557 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8558 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8559 (s390_preferred_reload_class): Make static. Change return and
8560 'rclass' argument type to reg_class_t.
8562 2011-01-27 Jan Hubicka <jh@suse.cz>
8565 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8566 (process_function_and_variable_attributes): Check defined weakrefs.
8568 2011-01-27 Martin Jambor <mjambor@suse.cz>
8570 PR tree-optimization/47228
8571 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8572 build_ref_for_offset.
8574 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8576 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8578 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8580 PR rtl-optimization/46856
8581 * postreload.c (reload_combine_recognize_const_pattern): Do not
8582 separate cc0 setter and user on cc0 targets.
8584 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8587 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8588 passed a VOID_TYPE expression, immediately emit an error and
8589 return error_mark_node.
8591 2011-01-26 Jeff Law <law@redhat.com>
8593 PR rtl-optimization/47464
8594 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8595 rather than may_trap_p as needed.
8597 2011-01-26 DJ Delorie <dj@redhat.com>
8599 PR rtl-optimization/46878
8600 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8601 setter/user dependency as well.
8603 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8605 PR rtl-optimization/44469
8606 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8607 after removing trivially dead basic blocks.
8609 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8611 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8612 * config/frv/frv.h (LINK_SPEC): Likewise.
8613 * config/i386/netware.h (LINK_SPEC): Likewise.
8614 * config/m68k/linux.h (ASM_SPEC): Likewise.
8615 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8616 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8617 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8618 * config/sparc/linux.h (ASM_SPEC): Likewise.
8619 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8620 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8622 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8624 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8625 * config/frv/frv.h (ASM_SPEC): Likewise.
8626 * config/m68k/linux.h (ASM_SPEC): Likewise.
8627 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8628 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8629 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8630 * config/sparc/linux.h (ASM_SPEC): Likewise.
8631 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8632 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8634 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8636 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8637 * config/frv/frv.h (LINK_SPEC): Likewise.
8638 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8640 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8642 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8643 * config/frv/frv.h (ASM_SPEC): Likewise.
8644 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8645 * config/m68k/linux.h (ASM_SPEC): Likewise.
8646 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8647 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8648 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8649 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8650 * config/sparc/linux.h (ASM_SPEC): Likewise.
8651 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8652 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8653 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8655 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8658 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8660 (vec_extract_evenodd_help): Ditto.
8661 (vec_extract_evenv4hi): Ditto.
8662 (vec_extract_oddv4hi): Ditto.
8663 (vec_interleave_lowv2si): Ditto.
8664 (vec_interleave_highv2si): Ditto.
8665 (vec_extract_evenv2si): Ditto.
8666 (vec_extract_oddv2si: Ditto.
8667 (vec_pack_trunc_v2si): Ditto.
8669 2011-01-22 Jan Hubicka <jh@suse.cz>
8672 * cgraph.h (cgraph_local_info): New field can_change_signature.
8673 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8674 signature can change.
8675 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8677 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8678 (cgraph_function_versioning): We can not change signature of functions
8679 that don't allow that.
8680 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8681 (lto_input_node): Likewise.
8682 * ipa-inline.c (compute_inline_parameters): Compute
8683 local.can_change_signature.
8684 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8685 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8686 functions that can not change signature.
8687 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8688 init_cumulative_args): Do not use local calling conventions
8689 for functions that can not change signature.
8691 2011-01-22 Jan Hubicka <jh@suse.cz>
8693 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8695 2011-01-26 Richard Guenther <rguenther@suse.de>
8697 PR tree-optimization/47190
8698 * cgraphunit.c (process_common_attributes): New function.
8699 (process_function_and_variable_attributes): Use it.
8701 2011-01-26 Richard Guenther <rguenther@suse.de>
8704 * cgraphbuild.c (record_eh_tables): Record reference to personality
8707 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
8710 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8711 non-debug insns from moving up.
8713 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8716 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8717 t-dlldir{,-x} fragment for build and add it to tmake_file.
8718 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8719 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8720 * config/i386/t-dlldir: New file.
8721 (SHLIB_DLLDIR): Define.
8722 * config/i386/t-dlldir-x: New file.
8723 (SHLIB_DLLDIR): Define.
8724 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8725 (SHLIB_INSTALL): Use it.
8727 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8730 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8731 lower bound of the allowed Thumb-2 coprocessor load/store
8732 index range to -256. Add explaining comment.
8734 2011-01-25 Ian Lance Taylor <iant@google.com>
8736 * godump.c (go_define): Improve lexing of macro expansion to only
8737 accept expressions which match Go spec.
8739 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8742 * tree.c (handle_dll_attribute): Handle it.
8743 * doc/extend.texi (@item dllexport): Mention it.
8744 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8746 2011-01-25 Ian Lance Taylor <iant@google.com>
8748 PR tree-optimization/26854
8749 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8750 (decl_jump_unsafe): Move higher in file, with no other change.
8751 (bind): Set has_jump_unsafe_decl if appropriate.
8752 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8753 (check_earlier_gotos): Likewise.
8754 (c_check_switch_jump_warnings): Likewise.
8756 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8758 * doc/invoke.texi (Warning Options): Add missing hyphen.
8759 (-fprofile-dir): Minor grammatical fixes.
8760 (-fbranch-probabilities): Likewise.
8762 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8766 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8768 (no_real_insns_p, schedule_block, set_priorities): Drop special
8769 treatment of boundary debug insns.
8770 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8771 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8772 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8773 (BOUNDARY_DEBUG_INSN_P): Likewise.
8774 (SCHEDULE_DEBUG_INSN_P): Likewise.
8775 * sched-rgn.c (init_ready_list): Drop special treatment of
8776 boundary debug insns.
8777 * final.c (rest_of_clean-state): Clear notes' BB.
8779 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8781 * Makefile.in (LAMBDA_H): Removed.
8782 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8783 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8784 lambda-trans.o, and tree-loop-linear.o.
8785 (lto-symtab.o): Remove dependence on LAMBDA_H.
8786 (tree-loop-linear.o): Remove rule.
8787 (lambda-mat.o): Same.
8788 (lambda-trans.o): Same.
8789 (lambda-code.o): Same.
8790 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8791 (tree-vect-slp.o): Same.
8792 * hwint.h (gcd): Moved here.
8793 (least_common_multiple): Same.
8794 * lambda-code.c: Removed.
8795 * lambda-mat.c: Removed.
8796 * lambda-trans.c: Removed.
8797 * lambda.h: Removed.
8798 * tree-loop-linear.c: Removed.
8799 * lto-symtab.c: Do not include lambda.h.
8800 * omega.c (gcd): Removed.
8801 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8802 * tree-data-ref.c (print_lambda_vector): Moved here.
8803 (lambda_vector_copy): Same.
8804 (lambda_matrix_copy): Same.
8805 (lambda_matrix_id): Same.
8806 (lambda_vector_first_nz): Same.
8807 (lambda_matrix_row_add): Same.
8808 (lambda_matrix_row_exchange): Same.
8809 (lambda_vector_mult_const): Same.
8810 (lambda_vector_negate): Same.
8811 (lambda_matrix_row_negate): Same.
8812 (lambda_vector_equal): Same.
8813 (lambda_matrix_right_hermite): Same.
8814 * tree-data-ref.h: Do not include lambda.h.
8815 (lambda_vector): Moved here.
8816 (lambda_matrix): Same.
8817 (dependence_level): Same.
8818 (lambda_transform_legal_p): Removed declaration.
8819 (lambda_collect_parameters): Same.
8820 (lambda_compute_access_matrices): Same.
8821 (lambda_vector_gcd): Same.
8822 (lambda_vector_new): Same.
8823 (lambda_vector_clear): Same.
8824 (lambda_vector_lexico_pos): Same.
8825 (lambda_vector_zerop): Same.
8826 (lambda_matrix_new): Same.
8827 * tree-flow.h (least_common_multiple): Removed declaration.
8828 * tree-parloops.c (lambda_trans_matrix): Moved here.
8830 (LTM_ROWSIZE): Same.
8831 (LTM_COLSIZE): Same.
8832 (LTM_DENOMINATOR): Same.
8833 (lambda_trans_matrix_new): Same.
8834 (lambda_matrix_vector_mult): Same.
8835 (lambda_transform_legal_p): Same.
8836 * tree-pass.h (pass_linear_transform): Removed declaration.
8837 * tree-ssa-loop.c (tree_linear_transform): Removed.
8838 (gate_tree_linear_transform): Removed.
8839 (pass_linear_transform): Removed.
8840 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8841 flag_loop_interchange.
8843 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8845 PR tree-optimization/47265
8846 PR tree-optimization/47443
8847 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8848 if name still has some uses.
8850 2011-01-25 Martin Jambor <mjambor@suse.cz>
8852 PR tree-optimization/47382
8853 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8854 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8856 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8858 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8859 sjlj_except_unwind_info.
8861 2011-01-25 Richard Guenther <rguenther@suse.de>
8863 PR tree-optimization/47426
8864 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8865 visible functions results escape.
8867 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8870 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8871 (arm_get_frame_offsets): Use it.
8873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8874 Jakub Jelinek <jakub@redhat.com>
8876 PR tree-optimization/47271
8877 * tree-if-conv.c (bb_postdominates_preds): New.
8878 (if_convertible_bb_p): Call bb_postdominates_preds.
8879 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8880 (predicate_scalar_phi): Call bb_postdominates_preds.
8882 2011-01-25 Nick Clifton <nickc@redhat.com>
8884 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8885 * config/rx/rx.c (rx_function_value): Likewise.
8886 (rx_promote_function_mode): Likewise.
8887 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8888 in order to make it legitimate.
8889 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8890 make sure that the first operand is the same as the result register.
8891 (addsi3_unspec): Delete.
8892 (subdi3): Do not accept immediate operands.
8893 (subdi3_internal): Likewise.
8895 2011-01-25 Jeff Law <law@redhat.com>
8897 PR rtl-optimization/37273
8898 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8899 handle them like argument loads from stack slots. Do not double
8900 count memory for memory constants and argument loads from stack slots.
8902 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8904 PR tree-optimization/47427
8905 PR tree-optimization/47428
8906 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8907 coalesce if the new root var would be TREE_READONLY.
8909 2011-01-25 Richard Guenther <rguenther@suse.de>
8912 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8913 correct type for TBAA.
8915 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8917 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8918 (close_phi_written_to_memory): Call for_each_index with
8919 dr_indices_valid_in_loop.
8921 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8923 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8924 when it is initialized.
8926 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8928 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8929 call to graphite_find_data_references_in_stmt.
8930 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8931 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8932 call to graphite_find_data_references_in_stmt.
8933 (analyze_drs_in_stmts): Same.
8934 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8935 in which the scalar analysis of indices is performed.
8936 (create_data_ref): Same. Update call to dr_analyze_indices.
8937 (find_data_references_in_stmt): Update call to create_data_ref.
8938 (graphite_find_data_references_in_stmt): Same.
8939 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8941 (create_data_ref): Same.
8942 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8943 call to create_data_ref.
8945 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8947 * graphite-sese-to-poly.c (build_poly_scop): Move
8948 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8950 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8952 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8953 VAR_DECL, PARM_DECL, and RESULT_DECL.
8955 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8957 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8959 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8960 that have already been marked as PBB_IS_REDUCTION.
8962 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8964 * graphite-scop-detection.c (same_close_phi_node): New.
8965 (remove_duplicate_close_phi): New.
8966 (make_close_phi_nodes_unique): New.
8967 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8969 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8971 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8972 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8973 of both data references to be the same.
8975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8977 * graphite-dependences.c (build_lexicographical_constraint): Remove
8979 (build_lexicographical_constraint): Adjust call to
8980 ppl_powerset_is_empty.
8981 (dependence_polyhedron): Same.
8982 (graphite_legal_transform_dr): Same.
8983 (graphite_carried_dependence_level_k): Same.
8984 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8986 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8988 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8990 * graphite-sese-to-poly.c
8991 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8992 (close_phi_written_to_memory): New.
8993 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8996 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8998 * doc/install.texi: Update the expected version number of PPL to 0.11.
8999 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9000 #if PPL_VERSION_MINOR < 11.
9002 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9004 * graphite-dependences.c: Include graphite-cloog-util.h.
9005 (new_poly_ddr): Inlined into dependence_polyhedron.
9006 (free_poly_ddr): Moved close by new_poly_ddr.
9007 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9008 Early return NULL when ppl_powerset_is_empty returns true.
9009 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9010 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9011 (graphite_legal_transform_dr): Call new_poly_ddr.
9012 (graphite_carried_dependence_level_k): Same.
9013 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9014 (dot_transformed_deps_stmt_1): Removed.
9015 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9016 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9017 (dot_deps_1): Call dot_deps_2.
9018 * Makefile.in (graphite-dependences.o): Add missing dependence on
9019 graphite-cloog-util.h.
9021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9023 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9024 (build_lexicographical_constraint): Same.
9025 (dependence_polyhedron_1): Same.
9026 (graphite_legal_transform_dr): Same.
9027 (graphite_carried_dependence_level_k): Same.
9028 * graphite-ppl.c (ppl_powerset_is_empty): New.
9029 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9030 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9034 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9035 the "a followed by b" relation and document it.
9037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9039 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9040 iteration when the bag of constraints is empty.
9042 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9044 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9046 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9048 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9049 nest and two loop depths as parameters.
9050 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9051 lst_perfect_nestify.
9053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9055 * graphite-dependences.c (print_pddr): Call
9056 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9058 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9060 * graphite-ppl.c (debug_gmp_value): New.
9061 * graphite-ppl.h (debug_gmp_value): Declared.
9063 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9065 * doc/install.texi: Document availability of cloog-0.16.
9067 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9069 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9070 invalid postdominance info.
9072 2011-01-24 Jan Hubicka <jh@suse.cz>
9075 * doc/extend.texi (weak pragma): Drop claim that it must
9076 appear before definition.
9077 * varasm.c (merge_weak, declare_weak): Only sanity check
9078 that DECL is not output at a time it is declared weak.
9080 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9082 * machmode.def: Fixed comments.
9084 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9086 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9088 2011-01-24 Paul Koning <ni1d@arrl.net>
9090 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9093 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9096 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9097 (block_info): Add scanned and prev.
9098 (move_or_delete_vzeroupper_2): Return if the basic block
9099 has been scanned and the upper 128bit state is unchanged
9101 (move_or_delete_vzeroupper_1): Return true if the exit
9103 (move_or_delete_vzeroupper): Visit basic blocks using the
9104 work-list based algorithm based on vt_find_locations in
9107 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9109 2011-01-24 Nick Clifton <nickc@redhat.com>
9111 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9112 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9113 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9114 then define __v850e1__.
9115 * doc/invoke.texi: Document -mv850es.
9117 2011-01-24 Richard Henderson <rth@redhat.com>
9119 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9120 compound unordered comparisons.
9121 * config/rx/rx.c (rx_split_fp_compare): Remove.
9122 * config/rx/rx-protos.h: Update.
9123 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9124 (cbranchsf4): Don't call rx_split_fp_compare.
9125 (*cbranchsf4): Use rx_split_cbranch.
9126 (*cmpsf): Don't accept "i" constraint.
9127 (*conditional_branch): Only valid after reload.
9128 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9130 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9133 * config/rs6000/altivec.md (vector constant splitters): Add
9134 support for creating vector single precision constants if -mvsx is
9135 used and we would create the constant using Altivec primitives.
9137 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9138 Richard Sandiford <rdsandiford@googlemail.com>
9140 PR rtl-optimization/47166
9141 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9142 mechanism for PRE_MODIFY and POST_MODIFY.
9143 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9146 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9148 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9150 2011-01-22 Jan Hubicka <jh@suse.cz>
9153 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9155 2011-01-22 Jan Hubicka <jh@suse.cz>
9157 PR tree-optimization/43884
9159 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9160 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9162 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9164 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9165 * config/s390/s390.c (s390_register_move_cost,
9166 s390_memory_move_cost): New.
9167 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9169 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9172 * except.c (sjlj_assign_call_site_values): Move setting the
9173 crtl->uses_eh_lsda flag to ...
9174 (sjlj_mark_call_sites): ... here.
9175 (sjlj_emit_function_enter): Support NULL dispatch label.
9176 (sjlj_build_landing_pads): In a function with no landing pads
9177 that still has must-not-throw regions, generate code to register
9178 a personality function with empty LSDA.
9180 2011-01-21 Richard Henderson <rth@redhat.com>
9182 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9184 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9186 * compare-elim.c: New file.
9187 * Makefile.in (OBJS-common): Add it.
9188 (compare-elim.o): New.
9189 * common.opt (fcompare-elim): New.
9190 * opts.c (default_options_table): Add OPT_fcompare_elim.
9191 * tree-pass.h (pass_compare_elim_after_reload): New.
9192 * passes.c (init_optimization_passes): Add it.
9193 * recog.h: Protect against re-inclusion.
9194 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9195 * doc/invoke.texi (-fcompare-elim): Document it.
9196 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9197 * doc/tm.texi: Rebuild.
9199 2011-01-22 Nick Clifton <nickc@redhat.com>
9201 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9202 rx_split_fp_compare.
9204 2011-01-22 Nick Clifton <nickc@redhat.com>
9206 * config/rx/rx.md (UNSPEC_CONST): New.
9207 (deallocate_and_return): Wrap the amount popped off the stack in
9208 an UNSPEC_CONST in order to stop it being rejected by
9209 -mmax-constant-size.
9210 (pop_and_return): Add a "(return)" rtx.
9211 (call): Drop the immediate operand.
9212 (call_internal): Likewise.
9213 (call_value): Likewise.
9214 (call_value_internal): Likewise.
9215 (sibcall_internal): Likewise.
9216 (sibcall_value_internal): Likewise.
9217 (sibcall): Likewise. Generate an explicit call using
9219 (sibcall_value): Likewise.
9220 (mov<>): FAIL if a constant operand is not legitimate.
9221 (addsi3_unpsec): New pattern.
9223 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9224 (ok_for_max_constant): New function.
9225 (gen_safe_add): New function.
9226 (rx_expand_prologue): Use gen_safe_add.
9227 (rx_expand_epilogue): Likewise.
9228 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9231 2011-01-21 Jeff Law <law@redhat.com>
9233 PR tree-optimization/47053
9234 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9235 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9236 statements are deleted.
9237 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9238 is nonempty, then purge dead edges and cleanup the CFG.
9240 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9244 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9246 * tree-dfa.c (create_var_ann): Mark variable as used.
9248 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9251 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9252 notes from other section in hot/cold partitioning even if
9253 last_action is -3. Increment call_site_base.
9255 PR rtl-optimization/47366
9256 * fwprop.c (forward_propagate_into): Return bool. If
9257 any changes are made, -fnon-call-exceptions is used and
9258 REG_EH_REGION note is present, call purge_dead_edges
9259 and return true if it purged anything.
9260 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9261 any EH edges were purged.
9263 2011-01-21 Jeff Law <law@redhat.com>
9265 PR rtl-optimization/41619
9266 * caller-save.c (setup_save_areas): Break out code to determine
9267 which hard regs are live across calls by examining the reload chains
9268 so that it is always used.
9269 Eliminate code which checked REG_N_CALLS_CROSSED.
9271 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9273 PR tree-optimization/47355
9274 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9275 NOP has non-debug uses beyond PHIs in new_bb.
9277 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9280 * cfgexpand.c (account_used_vars_for_block): Only account vars
9281 that are annotated as used.
9282 (estimated_stack_frame_size): Don't set TREE_USED.
9283 * tree-dfa.c (create_var_ann): Mark variable as used.
9285 2011-01-21 Richard Guenther <rguenther@suse.de>
9288 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9290 2011-01-21 Richard Guenther <rguenther@suse.de>
9292 PR tree-optimization/47365
9293 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9294 (vn_reference_lookup_pieces): Adjust.
9295 (vn_reference_lookup): Likewise.
9296 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9297 (vn_reference_lookup_3): Only look through kills if in
9298 VN_WALKREWRITE mode.
9299 (vn_reference_lookup_pieces): Adjust.
9300 (vn_reference_lookup): Likewise.
9301 (visit_reference_op_load): Likewise.
9302 (visit_reference_op_store): Likewise.
9303 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9304 (compute_avail): Likewise.
9305 (eliminate): Likewise.
9307 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9309 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9310 DECL_IGNORED_P non-reg vars if they are used.
9312 PR tree-optimization/47391
9313 * varpool.c (const_value_known_p): Return false if
9316 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9319 * config/i386/i386.c (ix86_local_alignment): Handle
9320 case for va_list_type_node is nil.
9321 (ix86_canonical_va_list_type): Likewise.
9323 2011-01-21 Alan Modra <amodra@gmail.com>
9325 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9326 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9328 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9330 * config/arm/arm.md (define_attr type): Rename f_load
9331 and f_store to f_fpa_load and f_fpa_store. Update.
9332 (write_conflict): Deal with rename fallout.
9333 (*push_fp_multi): Likewise.
9334 * config/arm/fpa.md (f_load): Use f_fpa_load.
9335 (f_store): Use f_fpa_store.
9336 (*movsf_fpa): Likewise.
9337 (*movdf_fpa): Likewise.
9338 (*movxf_fpa): Likewise.
9339 (*thumb2_movsf_fpa): Likewise.
9340 (*thumb2_movdf_fpa): Likewise.
9341 (*thumb2_movxf_fpa): Likewise.
9342 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9343 f_loadd and f_stored.
9344 (*thumb2_movdi_vfp): Likewise.
9345 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9346 (*thumb2_movsi_vfp): Likewise.
9347 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9348 Use f_loads instead of f_load.
9349 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9351 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9353 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9354 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9355 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9356 (xtensa_mode_dependent_address_p): New function.
9357 (constantpool_address_p): Make static. Change return type to bool.
9358 Change argument type to const_rtx. Use CONST_INT_P predicate.
9360 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9363 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9365 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9368 * cfgexpand.c (expand_debug_expr): Instead of generating
9369 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9372 2011-01-20 Richard Guenther <rguenther@suse.de>
9375 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9376 the pointer operand of MEM_REFs.
9378 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9380 PR tree-optimization/46130
9381 * ipa-split.c (consider_split): If return_bb contains non-virtual
9382 PHIs other than for retval or if split_function would not adjust it,
9385 2011-01-20 Richard Guenther <rguenther@suse.de>
9387 PR tree-optimization/47167
9388 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9389 Revert previous change, only avoid enumeral type changes.
9391 2011-01-19 Mike Stump <mikestump@comcast.net>
9393 * doc/tm.texi.in (BRANCH_COST): Englishify.
9394 * doc/tm.texi (BRANCH_COST): Likewise.
9396 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9399 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9400 (gen_scheduled_generic_parms_dies): New functions.
9401 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9402 generation for the end of CU compilation.
9403 (dwarf2out_finish): Generate template parameters DIEs here.
9405 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9408 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9409 debug bind stmt on merge edges.
9411 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9415 * function.c (instantiate_expr): Instantiate incoming rtl of
9416 implicit arguments, and recurse on VALUE_EXPRs.
9417 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9418 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9420 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9422 * c-parser.c (c_parser_for_statement): Initialize
9423 collection_expression.
9425 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9427 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9429 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9431 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9432 (LINK_SHLIB_SPEC): Don't use %(link_path).
9433 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9435 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9437 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9438 (NO_SHARED_LIB_SUPPORT): Remove.
9439 (LINK_SHLIB_SPEC): Remove one conditional definition.
9441 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9443 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9445 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9446 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9447 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9448 %{call_shared} and conditionals on these options not being passed.
9449 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9452 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9454 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9457 * ipa-split.c: Spelling fixes.
9459 2011-01-19 Richard Henderson <rth@redhat.com>
9461 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9462 (*mulsi3): Likewise.
9464 * longlong.h [__mn10300__] (count_leading_zeros): New.
9465 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9466 [__mn10300__] (add_ssaaaa, subddmmss): New.
9467 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9468 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9470 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9472 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9474 2011-01-19 Richard Henderson <rth@redhat.com>
9476 * config/mn10300/mn10300.md (addsi3_flags): New.
9477 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9478 (subsi3_flags, subc_internal, subdi3): New.
9479 (subdi3_internal, *subdi3_degenerate): New.
9480 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9482 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9483 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9484 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9485 * config/mn10300/mn10300-protos.h: Update.
9486 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9487 (return_ret): Likewise. Rename from return_internal_regs.
9488 (return_internal): Remove.
9490 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9491 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9492 (mn10300_legitimate_constant_p): Likewise.
9493 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9494 (mn10300_frame_size): New.
9495 (mn10300_expand_prologue): Use it.
9496 (mn10300_expand_epilogue): Likewise.
9497 (mn10300_initial_offset): Likewise.
9498 * config/mn10300/mn10300-protos.h: Update.
9499 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9500 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9501 (prologue, epilogue, return_internal): Tidy output code.
9502 (mn10300_store_multiple_operation, return): Likewise.
9503 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9504 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9505 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9506 (load_pic, am33_load_pic): New.
9507 (mn10300_load_pic0, mn10300_load_pic1): New.
9509 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9510 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9511 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9512 (cc_flags_for_mode, cc_flags_for_code): New.
9513 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9514 overflow flag is not valid. Validate that the flags we need
9515 for the comparison are valid.
9516 (mn10300_output_cmp): Remove.
9517 (mn10300_output_add): New.
9518 (mn10300_select_cc_mode): Use cc_flags_for_code.
9519 (mn10300_split_cbranch): New.
9520 (mn10300_match_ccmode): New.
9521 (mn10300_split_and_operand_count): New.
9522 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9524 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9525 (addsi3): ... here. Use mn10300_output_add.
9526 (*addsi3_flags): New.
9527 (*am33_subsi3, *mn10300_subsi3): Merge...
9528 (subsi3): ... here. Use attribute isa.
9529 (*subsi3_flags): New.
9530 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9532 (*am33_andsi3, *mn10300_andsi3): Merge...
9534 (*andsi3_flags): New.
9535 (andsi3 splitters): New.
9536 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9538 (*iorsi3_flags): New.
9539 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9541 (*xorsi3_flags): New.
9542 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9543 (one_cmplsi2): ... here.
9544 (*one_cmplsi2_flags): New.
9545 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9546 instead of "dax" in constraints. Use mn10300_split_cbranch.
9547 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9548 use matching constraints to eliminate a self-comparison.
9549 (*integer_conditional_branch): Rename from integer_conditional_branch.
9550 Use int_mode_flags to match CC_REG.
9551 (*cbranchsi4_btst, *btstsi): New.
9552 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9553 mn10300_split_cbranch.
9554 (*am33_cmpsf): Rename from am33_cmpsf.
9555 (*float_conditional_branch): Rename from float_conditional_branch.
9556 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9557 (zero_extendqisi2): ... here.
9558 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9559 (zero_extendhisi2): ... here.
9560 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9561 (extendqisi2): ... here.
9562 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9563 (extendhisi2): ... here.
9564 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9565 (ashlsi3): ... here.
9566 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9567 (lshrsi3): ... here.
9568 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9569 (ashrsi3): ... here.
9570 (consecutive add peephole): Remove.
9571 * config/mn10300/predicates.md (label_ref_operand): New.
9572 (int_mode_flags): New.
9573 (CCZN_comparison_operator): New.
9575 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9576 (throughput_42_latency_43): New reservation.
9577 (mulsidi3, umulsidi3): New expanders.
9578 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9579 the MDR register to allocation; separately allocate the low and
9580 high parts of the DImode result.
9581 (umulsidi3_internal): Similarly.
9582 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9583 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9584 (udivsi3, umodsi3): Remove.
9585 (udivmodsi4, divmodsi4): New expanders.
9586 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9587 (*divmodsi4): Simiarly.
9588 (ext_internal): New.
9590 * config/mn10300/constraints.md ("z"): New constraint.
9591 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9592 (FIXED_REGISTERS): Don't fix MDR.
9593 (CALL_USED_REGSITERS): Reformat nicely.
9594 (REG_ALLOC_ORDER): Add MDR.
9595 (enum regclass): Add MDR_REGS.
9596 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9597 (IRA_COVER_CLASSES): Add MDR_REGS.
9598 (REGNO_REG_CLASS): Handle MDR_REG.
9599 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9600 (mn10300_register_move_cost): Likewise.
9601 * config/mn10300/mn10300.md (MDR_REG): New.
9602 (*movsi_internal): Handle moves to/from MDR_REGS.
9604 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9606 (mn10300_secondary_reload): Tidy combination reload classes.
9607 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9608 addresses for AM33. Allow symbolic offsets for reg+imm.
9609 (mn10300_regno_in_class_p): New.
9610 (mn10300_legitimize_reload_address): New.
9611 * config/mn10300/mn10300.h (enum reg_class): Remove
9612 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9613 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9615 (REG_CLASS_NAMES): Update to match.
9616 (REG_CLASS_CONTENTS): Likewise.
9617 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9618 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9619 (REGNO_IN_RANGE_P): Remove.
9620 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9621 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9622 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9623 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9624 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9625 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9626 (REGNO_GENERAL_P): New.
9627 (HAVE_POST_MODIFY_DISP): New.
9628 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9629 (LEGITIMIZE_RELOAD_ADDRESS): New.
9630 * config/mn10300/mn10300-protos.h: Update.
9632 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9633 DATA_REGS for AM33 stack-pointer destination.
9634 (mn10300_preferred_output_reload_class): Likewise.
9635 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9636 into a form appropriate for ...
9637 (TARGET_SECONDARY_RELOAD): New.
9638 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9639 * config/mn10300/mn10300-protos.h: Update.
9640 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9641 reload_insi; use the "A" constraint for the scratch; handle AM33
9642 moves of sp to non-address registers.
9644 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9645 (*movqi_internal): ... here.
9646 (*am33_movhi, *mn10300_movhi): Merge into...
9647 (*movhi_internal): ... here.
9648 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9649 as the source/destination of moves from/to SP.
9650 (movsf): Only allow for AM33-2.
9651 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9652 any integer constant constraint. Only allow for AM33-2. Tidy
9653 all of the alternative outputs.
9654 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9655 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9657 (udivsi3, umodsi3): New patterns for MN103 only.
9659 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9661 * doc/tm.texi.in: Spell out that a lack of register class unions
9663 * doc/tm.texi: Regenerate.
9665 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9667 PR rtl-optimization/47337
9668 * dce.c (check_argument_store): New function.
9669 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9671 PR tree-optimization/47290
9672 * tree-eh.c (infinite_empty_loop_p): New function.
9673 (cleanup_empty_eh): Use it.
9675 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9678 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9679 (a64_expand_widen_sum): Ditto.
9680 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9681 (vec_extract_evenodd_help): Ditto.
9682 (vec_extract_evenv4hi): Ditto.
9683 (vec_extract_oddv4hi): Ditto.
9684 (vec_extract_evenv2si): Ditto.
9685 (vec_extract_oddv2si): Ditto.
9686 (vec_extract_evenv2sf): Ditto.
9687 (vec_extract_oddv2sf): Ditto.
9688 (vec_pack_trunc_v4hi: Ditto.
9689 (vec_pack_trunc_v2si): Ditto.
9690 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9691 (vec_interleave_highv8qi): Ditto.
9693 (vec_extract_oddv8qi): Ditto.
9694 (vec_interleave_lowv4hi): Ditto.
9695 (vec_interleave_highv4hi): Ditto.
9696 (vec_interleave_lowv2si): Ditto.
9697 (vec_interleave_highv2si): Ditto.
9699 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9701 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9702 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9703 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9704 (pa_c_mode_for_suffix): New.
9705 (TARGET_EXPAND_BUILTIN): Define.
9706 (TARGET_C_MODE_FOR_SUFFIX): Define.
9707 (pa_builtins): Define.
9708 (pa_init_builtins): Register __float128 type and init new support
9710 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9711 * config/pa/quadlib.c (_U_Qfcopysign): New.
9713 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9716 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9717 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9720 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9722 PR tree-optimization/47179
9723 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9724 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9726 2011-01-18 Richard Guenther <rguenther@suse.de>
9728 PR rtl-optimization/47216
9729 * emit-rtl.c: Include tree-flow.h.
9730 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9731 of replicating it with different semantics.
9732 * Makefile.in (emit-rtl.o): Adjust.
9734 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9736 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9737 (cortex_a9_dp): Handle neon types correctly.
9739 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9741 PR rtl-optimization/47299
9742 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9743 subtarget. Use normal multiplication if both operands are constants.
9744 * expmed.c (expand_widening_mult): Don't try to optimize constant
9745 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9748 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9750 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9751 spacing after 'e.g.', typos, comma, hyphenation.
9753 2011-01-17 Richard Henderson <rth@redhat.com>
9755 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9756 (rx_restricted_mem_operand): New.
9757 (rx_shift_operand): Use register_operand.
9758 (rx_source_operand, rx_compare_operand): Likewise.
9759 * config/rx/rx.md (addsi3_flags): New expander.
9760 (adddi3): Rewrite as expander.
9761 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9762 (subsi3_flags): New expander.
9763 (subdi3): Rewrite as expander.
9764 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9766 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9767 (rx_init_builtins): Remove sat builtin.
9768 (rx_expand_builtin): Likewise.
9769 * config/rx/rx.md (ssaddsi3): New.
9770 (*sat): Rename from sat. Represent the CC_REG input.
9772 * config/rx/predicates.md (rshift_operator): New.
9773 * config/rx/rx.c (rx_expand_insv): Remove.
9774 * config/rx/rx-protos.h: Update.
9775 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9776 operand to the canonical position.
9777 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9778 (*bitclr, *bitclr_in_memory): Similarly.
9779 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9780 (insv): Retain the zero_extract in the expansion.
9782 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9783 (bswaphi2, bitinvert, revw): Likewise.
9785 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9786 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9787 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9788 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9789 (bitset, bitset_in_memory): Likewise.
9790 (bitinvert, bitinvert_in_memory): Likewise.
9791 (bitclr, bitclr_in_memory): Likewise.
9792 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9793 (rx_strend, rx_cmpstrn): Likewise.
9794 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9795 (bitop peep2 patterns): Remove.
9797 * config/rx/rx.c (rx_match_ccmode): New.
9798 * config/rx/rx-protos.h: Update.
9799 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9800 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9801 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9802 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9803 (fix_truncsfsi2, floatsisf2): Likewise.
9804 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9805 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9806 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9807 (*subsi3_flags, *xorsi3_flags): New.
9809 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9811 * config/rx/rx.c (rx_print_operand): Remove workaround for
9812 unsplit comparison operations.
9814 * config/rx/rx.md (movsicc): Split after reload.
9815 (*movsicc): Merge *movsieq and *movsine via match_operator.
9816 (*stcc): New pattern.
9818 * config/rx/rx.c (rx_float_compare_mode): Remove.
9819 * config/rx/rx.h (rx_float_compare_mode): Remove.
9820 * config/rx/rx.md (cstoresi4): Split after reload.
9821 (*sccc): New pattern.
9823 * config/rx/predicates.md (label_ref_operand): New.
9824 (rx_z_comparison_operator): New.
9825 (rx_zs_comparison_operator): New.
9826 (rx_fp_comparison_operator): New.
9827 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9828 Validate that the flags are set properly for the comparison.
9829 (rx_gen_cond_branch_template): Remove.
9830 (rx_cc_modes_compatible): Remove.
9831 (mode_from_flags): New.
9832 (flags_from_code): Rename from flags_needed_for_conditional.
9833 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9834 (rx_select_cc_mode): Likewise.
9835 (rx_split_fp_compare): New.
9836 (rx_split_cbranch): New.
9837 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9838 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9839 (*cbranchsf4): Similarly.
9840 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9841 match_operator and rx_split_cbranch.
9842 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9843 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9844 (*cmpsi): Rename from cmpsi.
9845 (*tstsi): Rename from tstsi.
9846 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9847 (*conditional_branch): Rename from conditional_branch.
9848 (*reveresed_conditional_branch): Remove.
9849 (b<code>): Remove expander.
9850 * config/rx/rx-protos.h: Update.
9852 * config/rx/rx.c (rx_compare_redundant): Remove.
9853 * config/rx/rx.md (cmpsi): Don't use it.
9854 * config/rx/rx-protos.h: Update.
9856 * config/rx/rx-modes.def (CC_F): New mode.
9857 * config/rx/rx.c (rx_select_cc_mode): New.
9858 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9859 * config/rx/rx-protos.h: Update.
9861 2011-01-17 Richard Henderson <rth@redhat.com>
9863 * except.c (dump_eh_tree): Fix stray ; after for statement.
9865 2011-01-17 Richard Guenther <rguenther@suse.de>
9867 PR tree-optimization/47313
9868 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9869 handling before copying the body. Properly deal with
9870 by-reference result in SSA form.
9872 2011-01-17 Ian Lance Taylor <iant@google.com>
9875 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9876 (struct_value_alias_set): Don't define.
9877 (sparc_option_override): Don't set sparc_sr_alias_set and
9878 struct_value_alias_set.
9879 (save_or_restore_regs): Use gen_frame_mem rather than calling
9881 (sparc_struct_value_rtx): Likewise.
9883 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9886 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9887 (_mm_maskstore_pd): Likewise.
9888 (_mm_maskload_ps): Likewise.
9889 (_mm_maskstore_ps): Likewise.
9890 (_mm256_maskload_pd): Change mask to __m256i.
9891 (_mm256_maskstore_pd): Likewise.
9892 (_mm256_maskload_ps): Likewise.
9893 (_mm256_maskstore_ps): Likewise.
9895 * config/i386/i386-builtin-types.def: Updated.
9896 (ix86_expand_special_args_builtin): Likewise.
9898 * config/i386/i386.c (bdesc_special_args): Update
9899 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9900 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9901 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9902 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9904 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9905 Use <avxpermvecmode> on mask register.
9906 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9908 2011-01-17 Olivier Hainque <hainque@adacore.com>
9909 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9910 Eric Botcazou <ebotcazou@adacore.com>
9913 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9914 if <= USHRT_MAX in 32-bit mode.
9916 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9918 * doc/install.texi (Configuration, Specific): Wrap long
9919 lines in examples. Allow line wrapping in long options
9920 and URLs where beneficial for PDF output.
9922 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9924 * config/mips/mips.c (mips_classify_symbol): Don't return
9925 SYMBOL_PC_RELATIVE for nonlocal labels.
9927 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9929 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9931 2011-01-15 Jan Hubicka <jh@suse.cz>
9933 PR tree-optimization/47276
9934 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9935 declarations as needed.
9937 2011-01-15 Martin Jambor <mjambor@suse.cz>
9939 * common.opt (fdevirtualize): New flag.
9940 * doc/invoke.texi (Option Summary): Document it.
9941 * opts.c (default_options_table): Add devirtualize flag.
9942 * ipa-prop.c (detect_type_change): Return immediately if
9943 devirtualize flag is not set.
9944 (detect_type_change_ssa): Likewise.
9945 (compute_known_type_jump_func): Likewise.
9946 (ipa_analyze_virtual_call_uses): Likewise.
9948 2011-01-14 Martin Jambor <mjambor@suse.cz>
9950 PR tree-optimization/45934
9951 PR tree-optimization/46302
9952 * ipa-prop.c (type_change_info): New type.
9953 (stmt_may_be_vtbl_ptr_store): New function.
9954 (check_stmt_for_type_change): Likewise.
9955 (detect_type_change): Likewise.
9956 (detect_type_change_ssa): Likewise.
9957 (compute_complex_assign_jump_func): Check for dynamic type change.
9958 (compute_complex_ancestor_jump_func): Likewise.
9959 (compute_known_type_jump_func): Likewise.
9960 (compute_scalar_jump_functions): Likewise.
9961 (ipa_analyze_virtual_call_uses): Likewise.
9962 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9966 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9967 * config/i386/i386.opt (msse5): New Alias.
9969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9971 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9972 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9973 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9974 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9976 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9978 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9980 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9981 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9982 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9983 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9985 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9987 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9989 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9991 2011-01-14 Mike Stump <mikestump@comcast.net>
9993 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9994 * config/fr30/fr30.md: Likweise
9995 (movsi_push): Likewise.
9996 (movsi_pop): Likewise.
9997 (enter_func): Likewise.
9998 * config/moxie/moxie.md (movsi_push): Likewise.
9999 (movsi_pop): Likewise.
10001 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10003 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10004 %{no_archive} %{exact_version}.
10005 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10006 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10007 %{no_archive} %{exact_version}.
10008 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10009 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10010 * config/mips/vxworks.h: Likewise.
10012 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10014 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10016 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10018 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10019 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10021 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10023 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10026 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10028 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10030 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10031 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10033 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10034 Don't handle -shlib.
10036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10038 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10039 (CC1_SPEC): Don't handle -profile.
10041 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10043 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10044 * config/mips/mips.h (CC1_SPEC): Likewise.
10046 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10048 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10049 * config/mips/mips.h (CC1_SPEC): Likewise.
10051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10053 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10054 * config/m32r/linux.h (LINK_SPEC): Likewise.
10055 * config/mips/linux.h (LINK_SPEC): Likewise.
10056 * config/mips/linux64.h (LINK_SPEC): Likewise.
10057 * config/sparc/linux.h (LINK_SPEC): Likewise.
10058 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10059 LINK_SPEC): Likewise.
10060 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10062 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10064 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10066 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10068 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10070 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10071 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10073 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10075 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10077 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10079 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10080 supports -Bstatic/-Bdynamic.
10081 * configure: Regenerate.
10083 2011-01-14 Jan Hubicka <jh@suse.cz>
10084 Jack Howarth <howarth@bromo.med.uc.edu>
10087 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10088 when checking debug_info_level. Test write_symbols instead of
10089 debug_hooks->var_location when setting flag_var_tracking_uninit.
10091 2011-01-14 Richard Guenther <rguenther@suse.de>
10093 PR tree-optimization/47179
10094 * target.def (ref_may_alias_errno): New target hook.
10095 * targhooks.h (default_ref_may_alias_errno): Declare.
10096 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10097 (default_ref_may_alias_errno): New function.
10098 * target.h (struct ao_ref_s): Declare.
10099 * tree-ssa-alias.c: Include target.h.
10100 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10101 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10102 (targhooks.o): Likewise.
10103 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10104 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10106 2011-01-14 Richard Guenther <rguenther@suse.de>
10108 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10110 2011-01-14 Richard Guenther <rguenther@suse.de>
10112 PR tree-optimization/47280
10113 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10114 return CFG changes.
10115 (tree_ssa_forward_propagate_single_use_vars): Deal with
10116 CFG changes from associate_plusminus.
10118 2011-01-14 Richard Guenther <rguenther@suse.de>
10120 PR middle-end/47281
10122 2011-01-11 Richard Guenther <rguenther@suse.de>
10124 PR tree-optimization/46076
10125 * tree-ssa.c (useless_type_conversion_p): Conversions from
10126 unprototyped to empty argument list function types are useless.
10128 2011-01-14 Richard Guenther <rguenther@suse.de>
10130 PR tree-optimization/47286
10131 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10133 2011-01-14 Martin Jambor <mjambor@suse.cz>
10135 PR middle-end/46823
10136 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10138 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10140 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10141 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10142 * config/xtensa/xtensa.c (xtensa_libcall_value,
10143 xtensa_function_value_regno_p): New functions.
10144 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10146 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10149 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10151 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10152 New function prototype.
10153 * config/i386/winnt.c (i386_pe_assemble_visibility):
10154 Warn only if attribute was specified by user.
10156 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10159 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10161 (floatunsdidf2_fcfidu): Ditto.
10163 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10165 * config/s390/s390.c (print_operand_address): Replace 'error' with
10166 'output_operand_lossage'.
10167 (print_operand): Likewise.
10169 2011-01-13 Jeff Law <law@redhat.com>
10171 PR rtl-optimization/39077
10172 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10173 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10174 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10175 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10176 * gcse.c (prune_insertions_deletions): New function.
10177 (compute_pre_data): Use it.
10179 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10182 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10184 (prune_unused_types_mark): Use it.
10186 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10188 PR rtl-optimization/45352
10189 * sel-sched.c: Update copyright years.
10190 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10191 in the advancing loop when we have issued issue_rate insns.
10193 2011-01-12 Richard Henderson <rth@redhat.com>
10195 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10196 (TARGET_MD_ASM_CLOBBERS): New.
10198 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10199 (TARGET_DELEGITIMIZE_ADDRESS): New.
10201 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10202 (clzsi2, *bsch): New patterns.
10204 * config/mn10300/mn10300.md (INT): New mode iterator.
10205 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10207 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10208 flag_split_wide_types.
10210 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10211 (mn10300_trampoline_init): Rewrite without a template, an immediate
10212 load and a direct branch.
10213 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10215 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10217 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10218 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10219 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10220 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10222 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10225 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10228 2011-01-12 Jan Hubicka <jh@suse.cz>
10231 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10232 (PLUGIN_COND_CLOSE): New macro.
10233 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10235 2011-01-12 Richard Guenther <rguenther@suse.de>
10238 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10239 register variables in a MEM_REF.
10241 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10243 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10244 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10245 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10246 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10247 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10248 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10249 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10250 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10251 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10252 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10253 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10254 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10255 * config/gnu-user.h: New. Copied from linux.h.
10256 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10257 GNU_USER_TARGET_STARTFILE_SPEC.
10258 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10259 GNU_USER_TARGET_ENDFILE_SPEC.
10260 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10261 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10262 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10263 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10264 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10265 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10266 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10267 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10268 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10269 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10270 * config/arm/linux-eabi.h (CC1_SPEC): Use
10271 GNU_USER_TARGET_CC1_SPEC.
10272 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10273 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10274 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10275 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10276 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10277 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10278 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10279 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10281 2011-01-12 Richard Guenther <rguenther@suse.de>
10284 * doc/invoke.texi (ffast-math): Document it is turned on
10287 2011-01-12 Jan Hubicka <jh@suse.cz>
10289 PR tree-optimization/47233
10290 * opts.c (common_handle_option): Disable ipa-reference with profile
10293 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10295 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10298 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10300 * c-parser.c (c_lex_one_token): Updated and reindented some
10301 comments. No changes in code.
10303 2011-01-11 Ian Lance Taylor <iant@google.com>
10305 * godump.c (go_output_var): Don't output the variable if there is
10306 already a type with the same name.
10308 2011-01-11 Ian Lance Taylor <iant@google.com>
10310 * godump.c (go_format_type): Don't generate float80.
10312 2011-01-11 Richard Henderson <rth@redhat.com>
10314 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10315 declaration. Rewrite for both speed and size.
10316 (mn10300_address_cost_1): Remove.
10317 (mn10300_register_move_cost): New.
10318 (mn10300_memory_move_cost): New.
10319 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10320 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10321 extensions, shifts, BSWAP, CLZ.
10322 (mn10300_wide_const_load_uses_clr): Remove.
10323 (TARGET_REGISTER_MOVE_COST): New.
10324 (TARGET_MEMORY_MOVE_COST): New.
10325 * config/mn10300/mn10300-protos.h: Update.
10326 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10328 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10329 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10330 * config/mn10300/mn10300-protos.h: Update.
10331 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10332 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10333 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10334 (*test_int_bitfield, *test_byte_bitfield): Remove.
10335 (*bit_test, *subreg_bit_test): Remove.
10336 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10338 * config/mn10300/constraints.md ("c"): Rename from "A".
10339 ("A", "D"): New constraint letters.
10340 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10341 (fmssf4, fnmasf4, fnmssf4): Likewise.
10343 * config/mn10300/mn10300.md (isa): New attribute.
10344 (enabled): New attribute.
10346 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10347 (abssf2, negsf2): Define only for hardware fp.
10348 (sqrtsf2): Reformat.
10349 (addsf3, subsf3, mulsf3): Merge expander and insn.
10351 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10352 (DEBUGGER_AUTO_OFFSET): Remove.
10353 (DEBUGGER_ARG_OFFSET): Remove.
10355 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10356 Emit register stores with the same offsets as the hardware.
10357 (mn10300_store_multiple_operation): Don't check that the register
10358 save offsets are monotonic.
10359 * config/mn10300/mn10300-protos.h: Update.
10361 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10363 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10364 in terms of the value on the stack, not the MDR register.
10366 2011-01-11 Jan Hubicka <jh@suse.cz>
10370 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10371 (symbol_alias_set_destroy, symbol_alias_set_contains,
10372 propagate_aliases_backward): Declare.
10373 * lto-streamer-out.c (struct sets): New sturcture.
10374 (trivally_defined_alias): New function.
10375 (output_alias_pair_p): Rewrite.
10376 (output_unreferenced_globals): Fix output of alias pairs.
10377 (produce_symtab): Likewise.
10378 * ipa.c (function_and_variable_visibility): Set weak alias destination
10380 * varasm.c (symbol_alias_set_t): Remove.
10381 (symbol_alias_set_destroy): Export.
10382 (propagate_aliases_forward, propagate_aliases_backward): New functions
10384 (compute_visible_aliases): ... this one; remove.
10385 (trivially_visible_alias): New
10386 (trivially_defined_alias): New.
10387 (remove_unreachable_alias_pairs): Rewrite.
10388 (finish_aliases_1): Reorganize code checking if alias is defined.
10389 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10392 2011-01-11 Richard Guenther <rguenther@suse.de>
10394 PR tree-optimization/46076
10395 * tree-ssa.c (useless_type_conversion_p): Conversions from
10396 unprototyped to empty argument list function types are useless.
10398 2011-01-11 Richard Guenther <rguenther@suse.de>
10400 PR middle-end/45235
10401 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10402 volatile MEMs as MEM_READONLY_P.
10404 2011-01-11 Richard Guenther <rguenther@suse.de>
10406 PR tree-optimization/47239
10407 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10409 2011-01-11 Jeff Law <law@redhat.com>
10411 PR tree-optimization/47086
10412 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10413 IVs from statements that might throw.
10415 2011-01-10 Jan Hubicka <jh@suse.cz>
10418 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10420 2011-01-10 Jan Hubicka <jh@suse.cz>
10423 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10424 when correcting profile.
10426 2011-01-10 Jan Hubicka <jh@suse.cz>
10429 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10430 DECL_FINI_PRIORITY.
10431 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10432 Restore DECL_FINI_PRIORITY.
10434 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10436 * doc/gimple.texi: Fix quoting of multi-word return values in
10437 @deftypefn statements. Ensure presence of return value. Wrap
10438 overlong @deftypefn lines.
10439 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10440 descriptions of removed functions.
10441 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10442 of multi-word return value in @deftypefn statement.
10444 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10446 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10447 (Conditional Expressions, Logical Operators)
10448 (Statement and operand traversals): Do not indent smallexample
10449 code. Fix duplicate function argument in example.
10451 2011-01-10 Jeff Law <law@redhat.com>
10453 PR tree-optimization/47141
10454 * ipa-split.c (split_function): Handle case where we are
10455 returning a value and the return block has a virtual operand phi.
10457 2011-01-10 Jan Hubicka <jh@suse.cz>
10459 PR tree-optimization/47234
10460 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10461 (pass_feedback_split_functions): Declare.
10462 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10464 * ipa-split.c (gate_split_functions): Update comments; disable
10465 split-functions for profile_arc_flag and branch_probabilities.
10466 (gate_feedback_split_functions): New function.
10467 (execute_feedback_split_functions): New function.
10468 (pass_feedback_split_functions): New global var.
10470 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10473 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10474 calling gimple_call_set_cannot_inline.
10476 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10478 * config/darwin-sections.def: Remove unused section.
10480 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10483 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10485 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10488 * c-parser.c (c_parser_declaration_or_fndef): Improved
10491 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10493 * config/i386/winnt.c (i386_pe_start_function): Make sure
10494 to switch back to function's section.
10496 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10500 * plugin.c: Move include of dlfcn.h from here...
10501 * system.h: ... to here.
10503 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10505 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10507 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10508 two extra empty pages in PDF output.
10510 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10513 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10514 for error recovery purposes behave as if it was not specified so
10515 that the default type is usd.
10517 2011-01-07 Jan Hubicka <jh@suse.cz>
10519 PR tree-optmization/46469
10520 * ipa.c (function_and_variable_visibility): Clear needed flags on
10521 nodes with external decls; handle weakrefs merging correctly.
10523 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10525 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10528 2011-01-07 Jan Hubicka <jh@suse.cz>
10530 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10531 and no longer claim that gold is required for linker plugin.
10532 * configure: Regenerate.
10533 * gcc.c (PLUGIN_COND): New macro.
10534 (LINK_COMMAND_SPEC): Use it.
10535 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10536 * config.in (HAVE_LTO_PLUGIN): New.
10537 * configure.ac (--with-lto-plugin): New parameter; autodetect
10540 2011-01-07 Jan Hubicka <jh@suse.cz>
10542 PR tree-optimization/46367
10543 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10544 when we can update original.
10545 (cgraph_mark_inline_edge): Sanity check.
10546 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10548 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10550 * config/spu/spu.h (ASM_COMMENT_START): Define.
10552 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10555 * gcc.c (%>S): New.
10556 (SWITCH_KEEP_FOR_GCC): Likewise.
10557 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10558 (do_spec_1): Handle "%>".
10560 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10562 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10565 * config/i386/i386.c (ix86_delegitimize_address): If
10566 simplify_gen_subreg fails, return orig_x.
10569 * value-prof.c (gimple_stringop_fixed_value): Handle
10570 lhs of the call properly.
10572 2011-01-07 Jan Hubicka <jh@suse.cz>
10575 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10577 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10579 * target.def (function_switched_text_sections): New hook.
10580 * doc/tm.texi: Regenerated.
10581 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10582 * final.c (default_function_switched_text_sections): New.
10583 (final_scan_insn): Call function_switched_text_sections when a
10584 mid-function section change occurs.
10585 * output.h (default_function_switched_text_sections): Declare.
10586 * config/darwin-protos.h (darwin_function_switched_text_sections):
10588 * config/darwin.c (darwin_function_switched_text_sections): New.
10589 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10591 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10593 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10594 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10595 the secondary code fragment when outputting for DWARF == 2.
10597 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10599 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10600 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10602 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10603 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10605 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10608 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10609 when it is not empty.
10611 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10614 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10615 (case ${target}): Add btver1.
10616 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10617 -march=native recognize btver1 processors.
10618 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10619 btver1 def_and_undef
10620 * config/i386/i386.c (struct processor_costs btver1_cost): New
10622 (m_BTVER1): New definition.
10623 (m_AMD_MULTIPLE): Includes m_BTVER1.
10624 (initial_ix86_tune_features): Add btver1 tune.
10625 (processor_target_table): Add btver1 entry.
10626 (static const char *const cpu_names): Add btver1 entry.
10627 (software_prefetching_beneficial_p): Add btver1.
10628 (ix86_option_override_internal): Add btver1 instruction sets.
10629 (ix86_issue_rate): Add btver1.
10630 (ix86_adjust_cost): Add btver1.
10631 * config/i386/i386.h (TARGET_BTVER1): New definition.
10632 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10633 (enum processor_type): Add PROCESSOR_BTVER1.
10634 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10636 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10639 * config/i386/i386.c (legitimize_tls_address)
10640 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10641 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10642 (tls_initial_exec_64_sun): New pattern.
10644 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10646 * doc/invoke.texi (Overall Options): Improve wording and markup
10647 of the description of -wrapper.
10649 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10651 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10652 rdynamic, threads): New Driver options.
10654 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10657 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10658 if coming from .tdata.
10659 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10661 2011-01-06 Jan Hubicka <jh@suse.cz>
10664 * collect2.c (main): Do not enable LTOmode when plugin is active.
10666 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10669 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10670 --version output if supported.
10671 * configure: Regenerate.
10673 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10675 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10678 2011-01-06 Jakub Jelinek <jakub@redhat.com>
10681 * c-convert.c (convert): When converting a complex expression
10682 other than COMPLEX_EXPR to a different complex type, ensure
10683 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10684 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10685 when converting COMPLEX_TYPE.
10687 2011-01-06 Ira Rosen <irar@il.ibm.com>
10689 PR tree-optimization/47139
10690 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10691 only the last reduction value is used outside the loop. Update
10694 2011-01-05 Joseph Myers <joseph@codesourcery.com>
10696 * config/rtems.opt: New.
10697 * config.gcc (*-*-rtems*): Use rtems.opt.
10699 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10701 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10702 processors do not support 3DNow instructions.
10704 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10706 * config/spu/spu.c (spu_option_override): Set parameter
10707 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10709 2011-01-05 Jan Hubicka <jh@suse.cz>
10711 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10712 at the command line.
10714 2011-01-05 Martin Jambor <mjambor@suse.cz>
10717 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10718 deltas on streamed outgoing edges.
10719 (output_node_opt_summary): Output info for outgoing edges only when
10720 the node is in new parameter set.
10721 (output_cgraph_opt_summary): New parameter set, passed to the two
10722 aforementioned functions. Update its forward declaration and its
10725 2011-01-05 Tom Tromey <tromey@redhat.com>
10727 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10728 operator to c_finish_omp_atomic.
10729 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10730 (build_unary_op): Update.
10731 (build_modify_expr): Update.
10732 (build_asm_expr): Update.
10734 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10736 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10737 newly inserted insns.
10738 (pad_bb): Likewise.
10739 (spu_emit_branch_hint): Likewise.
10740 (insert_hbrp_for_ilb_runout): Likewise.
10741 (spu_machine_dependent_reorg): Call df_finish_pass after
10742 schedule_insns returns.
10744 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10746 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10748 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10750 PR tree-optimization/47005
10751 * tree-sra.c (struct access): Add 'non_addressable' bit.
10752 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10753 (decide_one_param_reduction): Return 0 if the parameter is passed by
10754 reference and one of the accesses in the group is non_addressable.
10756 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10758 PR tree-optimization/47056
10759 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10760 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10761 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10763 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10765 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10766 initializer. Skip view conversions from aggregate types.
10768 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10771 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10773 2011-01-04 Philipp Thomas <pth@suse.de>
10775 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10778 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10780 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10781 on empty epilogue sequences.
10783 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10785 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10786 non-static): New Driver options.
10788 2011-01-04 Jie Zhang <jie@codesourcery.com>
10791 * gcc.c (default_compilers[]): Set combinable field to 0
10792 for all assembly languages.
10794 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10796 * config/mips/loongson3a.md: New file.
10797 * config/mips/mips.md: Include loongson3a.md.
10798 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10801 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10803 PR middle-end/47017
10804 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10805 instead of convert_memory_address_addr_space on the base expression.
10807 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10809 * config/spu/spu.c (spu_option_override): Update error text
10810 for bad -march= / -mtune= values.
10812 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10814 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10815 if branch-hint optimization will be performed.
10817 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10819 PR tree-optimization/47148
10820 * ipa-split.c (split_function): Convert arguments to
10821 DECL_ARG_TYPE if possible.
10823 PR tree-optimization/47155
10824 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10825 when computing uns.
10827 PR rtl-optimization/47157
10828 * combine.c (try_combine): If undobuf.other_insn becomes
10829 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10830 and set *new_direct_jump_p too.
10832 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10834 PR tree-optimization/47021
10835 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10837 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10839 * gcc.c (process_command): Update copyright notice dates.
10840 * gcov.c (print_version): Likewise.
10841 * gcov-dump.c (print_version): Likewise.
10842 * mips-tfile.c (main): Likewise.
10843 * mips-tdump.c (main): Likewise.
10845 2011-01-03 Martin Jambor <mjambor@suse.cz>
10847 PR tree-optimization/46801
10848 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10849 aggregate fields start at byte boundary instead of the bit-field flag.
10851 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10854 * gcc.c (main): Revert revision 168407.
10856 2011-01-03 Martin Jambor <mjambor@suse.cz>
10858 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10860 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10862 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10863 vector optab to expand vector/scalar shift, update gimple to vector.
10865 2011-01-03 Martin Jambor <mjambor@suse.cz>
10867 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10870 2011-01-03 Martin Jambor <mjambor@suse.cz>
10872 PR tree-optimization/46984
10873 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10875 (cgraph_create_indirect_edge): Fixed line length.
10876 (cgraph_indirect_call_info): Declare.
10877 (cgraph_make_edge_direct) Update declaration.
10878 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10879 (cgraph_create_indirect_edge): Use it.
10880 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10882 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10883 the new thunk_delta representation.
10884 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10886 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10887 (ipa_read_indirect_edge_info): Likewise.
10888 * lto-cgraph.c (output_edge_opt_summary): New function.
10889 (output_node_opt_summary): Call it on all outgoing edges.
10890 (input_edge_opt_summary): New function.
10891 (input_node_opt_summary): Call it on all outgoing edges.
10893 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10896 * gcc.c (main): Don't check have_o when settting combine_inputs.
10898 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10900 * regrename.c: Add general comment describing the pass.
10901 (struct du_head): Remove 'length' field.
10902 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10903 (regrename_optimize): Do not sort chains. Rework comments, add others.
10904 Force renaming to the preferred class (if any) in the first pass and do
10905 not consider registers that belong to it in the second pass.
10906 (create_new_chain): Do not set 'length' field.
10907 (scan_rtx_reg): Likewise.
10909 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10911 PR tree-optimization/47140
10912 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10913 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10914 to bit_value_binop.
10916 PR rtl-optimization/47028
10917 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10918 parm_birth_insn instead of at the beginning of first bb.
10920 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10922 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10923 Remove the word "see" before "@pxref".
10924 * doc/rtl.texi: Remove the word "see" before "@pxref".
10926 2011-01-01 Jan Hubicka <jh@suse.cz>
10928 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10931 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10934 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10937 Copyright (C) 2011 Free Software Foundation, Inc.
10939 Copying and distribution of this file, with or without modification,
10940 are permitted in any medium without royalty provided the copyright
10941 notice and this notice are preserved.