1 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4 * reload1.c (inc_for_reload): Return void. All callers changed.
5 (emit_input_reload_insns): Don't try to delete previous output
6 reloads to a register, or record spill_reg_store for autoincs.
8 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
10 * gengtype.h: Updated copyright year.
11 (struct input_file_st): Add inpisplugin field.
12 (type_fileloc): New function.
14 (write_typed_struct_alloc_def): Add gcc_assert.
15 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16 (write_typed_alloc_defns): Don't output for plugin files.
17 (input_file_by_name): Clear inpisplugin field.
18 (main): Set inpisplugin field for plugin files.
20 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
22 * gengtype-state.c (string_eq): New.
23 (read_state): Use string_eq instead of strcmp when creating the
26 2011-04-19 Wei Guozhi <carrot@google.com>
29 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
30 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
32 * config/arm/constraints.md (Uu): New constraint.
33 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
35 2011-04-19 Tristan Gingold <gingold@adacore.com>
37 * config.gcc (-*-*-*vms): Added.
38 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
40 * config/vms/vms-ld.c: New file.
41 * config/vms/vms-ar.c: New file.
42 * config/vms/t-vmsnative: New file.
45 2011-04-18 Xinliang David Li <davidxl@google.com>
47 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
49 2011-04-18 Jakub Jelinek <jakub@redhat.com>
52 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
53 if TREE_TYPE (v) is non-NULL.
55 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
56 gimple_get_virt_mehtod_for_binfo.
57 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
58 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
60 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
62 2011-04-18 Michael Matz <matz@suse.de>
63 Steve Ellcey <sje@cup.hp.com>
65 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
66 use its mode as source mode if it isn't VOIDmode.
68 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
70 * doc/passes.texi: Fill crossref nodes.
72 2011-04-18 Jim Meyering <meyering@redhat.com>
74 Fix doubled-word typos in comments and strings
75 * config/alpha/vms-unwind.h: s/for for/for/
76 * config/arm/unwind-arm.h: Likewise.
77 * config/microblaze/microblaze.c: Likewise.
78 * config/sh/constraints.md: s/in in/in/
79 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
81 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
83 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
84 (AVX_FLOAT_MODE_P): Ditto.
85 (AVX128_VEC_FLOAT_MODE_P): Ditto.
86 (AVX256_VEC_FLOAT_MODE_P): Ditto.
87 (AVX_VEC_FLOAT_MODE_P): Ditto.
88 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
89 (UNSPEC_MASKSTORE): Ditto.
90 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
91 Merge from <sse>_movmsk<ssemodesuffix> and
92 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
93 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
95 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
96 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
97 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
99 2011-04-18 Jan Hubicka <jh@suse.cz>
101 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
103 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
104 (want_inline_function_called_once_p): Break out the logic from
106 (edge_badness): Ensure that profile is not misupdated.
107 (lookup_recursive_calls): Prioritize by call frequencies.
108 (inline_small_functions): Move program size estimates here;
109 actually process whole queue even when unit growth has been
110 met. (to properly compute inline_failed reasons and for the
111 case unit size decrease.) Revisit comments on recursive inlining.
112 (ipa_inline): Remove unit summary code; first inline hot calls
113 of functions called once, cold calls next.
114 (order, nnodes): Remove unused variables.
115 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
116 (GTFILES): Remove ipa-inline.c
117 * sel-sched.c (fill_insns): Silence uninitialized var warning.
119 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
121 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
123 2011-04-18 Jie Zhang <jie@codesourcery.com>
124 Richard Earnshaw <rearnsha@arm.com>
126 * arm.c (neon_builtin_type_bits): Remove.
127 (typedef enum neon_builtin_mode): New.
128 (T_MAX): Don't define.
129 (typedef enum neon_builtin_datum): Remove bits, codes[],
130 num_vars and base_fcode. Add mode, code and fcode.
131 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
132 VAR10): Change accordingly.
133 (neon_builtin_data[]): Change accordingly
134 (arm_init_neon_builtins): Change accordingly.
135 (neon_builtin_compare): Remove.
136 (locate_neon_builtin_icode): Remove.
137 (arm_expand_neon_builtin): Change accordingly.
139 * arm.h (enum arm_builtins): Move to ...
140 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
142 * arm.c (arm_builtin_decl): Declare.
143 (TARGET_BUILTIN_DECL): Define.
144 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
145 (arm_builtin_decls[]): New.
146 (arm_init_neon_builtins): Store builtin declarations in
148 (arm_init_tls_builtins): Likewise.
149 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
150 (arm_builtin_decl): New.
152 2011-04-18 Richard Guenther <rguenther@suse.de>
154 * tree.c (upper_bound_in_type): Build properly canonicalized
156 (lower_bound_in_type): Likewise.
158 2011-04-18 Richard Guenther <rguenther@suse.de>
160 * gimple.h (gimple_call_addr_fndecl): New function.
161 (gimple_call_fndecl): Use it.
162 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
164 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
165 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
167 2011-04-18 Richard Guenther <rguenther@suse.de>
170 * tree.c (build_string): STRING_CST is now derived from tree_typed.
172 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
175 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
176 DECL_IN_CONSTANT_POOL without RTL.
178 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
179 Ira Rosen <ira.rosen@linaro.org>
182 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
183 to match neon_vzip/vuzp/vtrn_internal.
184 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
185 outputs explicitly dependent on both inputs.
186 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
188 2011-04-18 Jakub Jelinek <jakub@redhat.com>
190 PR tree-optimization/48616
191 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
192 whether the shift is by scalar or vector based on whether all SLP
193 scalar stmts have the same rhs.
195 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
197 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
200 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
202 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
205 2011-04-17 Jan Hubicka <jh@suse.cz>
207 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
208 * cgrpahunit.c (cgraph_finalize_function): Do not set
209 finalized_by_frontend.
210 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
211 finalized_by_frontend.
213 2011-04-17 Jan Hubicka <jh@suse.cz>
215 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
216 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
217 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
218 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
220 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
222 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
224 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
227 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
228 is non-null before accessing it.
229 (input_cgraph): Remove trailing spaces.
231 2011-04-17 Revital Eres <revital.eres@linaro.org>
233 * params.def (sms-min-sc): New param flag.
234 * modulo-sched.c (sms_schedule): Use it.
235 * doc/invoke.texi (sms-min-sc): Document it.
237 2011-04-17 Jan Hubicka <jh@suse.cz>
239 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
240 present, also set gimple_call_set_cannot_inline.
241 * ipa-inline.c: Update toplevel comment.
243 (cgraph_clone_inlined_nodes): Fix linebreaks.
244 (cgraph_check_inline_limits): Restructure to ...
245 (caller_growth_limits): ... this one; be more tolerant
246 on growth in nested inline chains; add explanatory comment;
247 fix stack accounting thinko introduced by previous patch.
248 (cgraph_default_inline_p): Remove.
249 (report_inline_failed_reason): New function.
250 (can_inline_edge_p): New function.
251 (can_early_inline_edge_p): New function.
252 (leaf_node_p): Move upwards in file.
253 (want_early_inline_function_p): New function.
254 (want_inline_small_function_p): New function.
255 (want_inline_self_recursive_call_p): New function.
256 (cgraph_edge_badness): Rename to ...
257 (edge_badness) ... this one; fix linebreaks.
258 (update_edge_key): Update call of edge_baddness; add
259 detailed dump about queue updates.
260 (update_caller_keys): Use can_inline_edge_p and
261 want_inline_small_function_p.
262 (cgraph_decide_recursive_inlining): Rename to...
263 (recursive_inlining): Use can_inline_edge_p and
264 want_inline_self_recursive_call_p; simplify and remove no longer
266 (cgraph_set_inline_failed): Remove.
267 (add_new_edges_to_heap): Use can_inline_edge_p and
268 want_inline_small_function_p.
269 (cgraph_decide_inlining_of_small_functions): Rename to ...
270 (inline_small_functions): ... this one; cleanup; use
271 can/want predicates; cleanup debug ouput; work edges till fibheap
272 is exhausted and do not stop once unit growth is reached; remove
273 later loop processing remaining edges.
274 (cgraph_flatten): Rename to ...
275 (flatten_function): ... this one; use can_inline_edge_p
276 and can_early_inline_edge_p predicates.
277 (cgraph_decide_inlining): Rename to ...
278 (ipa_inline): ... this one; remove unreachable nodes before
279 inlining functions called once; simplify the pass.
280 (cgraph_perform_always_inlining): Rename to ...
281 (inline_always_inline_functions): ... this one; use
282 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
283 (cgraph_decide_inlining_incrementally): Rename to ...
284 (early_inline_small_functions): ... this one; simplify
285 using new predicates; cleanup; make dumps prettier.
286 (cgraph_early_inlining): Rename to ...
287 (early_inliner): newer inline regular functions into always-inlines;
288 fix updating of call stmt summaries.
289 (pass_early_inline): Update for new names.
290 (inline_transform): Fix formating.
291 (gate_cgraph_decide_inlining): Rename to ...
292 (pass_ipa_inline): ... this one.
293 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
294 * ipa-inline-analysis.c (dump_inline_summary): Update.
295 (compute_inline_parameters): Do not compute disregard_inline_limits;
296 look for mismatching arguments.
297 (estimate_growth): Fix handlig of non-trivial self recursion.
298 (inline_read_summary): Do not read info->disregard_inline_limits.
299 (inline_write_summary): Do not write info->disregard_inline_limits.
300 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
301 and move all checks into can_inline_edge_p predicate; re-enable code
302 comparing optimization levels.
303 (expand_call_inline): Do not test inline_forbidden_into_p.
304 * Makefile.in (ipa-inline.o): Update arguments.
306 2011-04-17 Revital Eres <revital.eres@linaro.org>
308 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
310 2011-04-17 Revital Eres <revital.eres@linaro.org>
312 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
314 2011-04-17 Michael Matz <matz@suse.de>
316 PR tree-optimization/48622
318 * ipa-inline-analysis.c (inline_read_summary): Read size/time
319 in same order as they're written.
321 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
323 * config/i386/sse.md (sseunpackmode): New mode attribute.
324 (ssepackmode): Ditto.
325 (vec_pack_trunc_<mode>): Macroize expander from
326 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
327 (vec_unpacks_lo_<mode>): Macroize expander from
328 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
329 (vec_unpacks_hi_<mode>): Macroize expander from
330 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
331 (vec_unpacku_lo_<mode>): Macroize expander from
332 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
333 (vec_unpacku_hi_<mode>): Macroize expander from
334 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
335 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
336 ix86_expand_sse4_unpack.
337 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
339 2011-04-16 Jan Hubicka <jh@suse.cz>
341 * cgraphbuild.c: Include ipa-inline.h.
342 (reset_inline_failed): Use initialize_inline_failed.
343 * cgraph.c: Include ipa-inline.h.
344 (cgraph_create_node_1): Do not initialize estimated_growth.
345 (initialize_inline_failed): More to ipa-inline-analysis.c
346 (dump_cgraph_node): Do not dump inline flags.
347 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
348 and disregard_inline_limits flags.
349 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
350 time, size, estimated_growth.
351 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
353 * cgraphunit.c (cgraph_decide_is_function_needed): Use
354 DECL_DISREGARD_INLINE_LIMITS.
355 (cgraph_analyze_function): Do not initialize
356 node->local.disregard_inline_limits.
357 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
358 inlinable, versionable and disregard_inline_limits.
359 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
360 cgraph_check_inline_limits, cgraph_default_inline_p,
361 cgraph_edge_badness, update_caller_keys, update_callee_keys,
362 add_new_edges_to_heap): Update.
363 (cgraph_decide_inlining_of_small_function): Update; set
364 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
365 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
366 cgraph_decide_inlining_incrementally): Update.
367 * ipa-inline.h (inline_summary): Add inlinable, versionable,
368 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
369 time, size and estimated_growth parameters.
370 (estimate_edge_growth): Update.
371 (initialize_inline_failed): Declare.
372 * ipa-split.c: Include ipa-inline.h
373 (execute_split_functions): Update.
374 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
375 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
376 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
377 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
378 estimated_growth to INT_MIN.
379 (inline_node_duplication_hook): Likewise.
380 (dump_inline_summary): Dump new fields.
381 (compute_inline_parameters): Update.
382 (estimate_edge_time, estimate_time_after_inlining,
383 estimate_size_after_inlining, estimate_growth, inline_read_summary,
384 inline_write_summary):
385 (initialize_inline_failed): Move here from cgraph.c.
386 * tree-sra.c: Include ipa-inline.h.
387 (ipa_sra_preliminary_function_checks): Update.
388 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
391 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
393 * config/i386/sse.md (V16): New mode iterator.
395 (AVXMODEQI, AVXMODEDI): Remove.
396 (sse2, sse3): New mode attribute.
397 (mov<mode>): Use V16 mode iterator.
398 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
399 (push<mode>1): Use V16 mode iterator.
400 (movmisalign<mode>): Ditto.
401 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
402 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
403 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
404 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
405 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
406 avx_movdqu<avxmodesuffix>.
407 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
408 *avx_movdqu<avxmodesuffix>.
409 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
410 avx_lddqu<avxmodesuffix>.
411 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
412 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
413 avx_movnt<AVXMODEDI:mode>.
414 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
415 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
417 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
420 * haifa-sched.c (prune_ready_list, schedule_block): Use
421 sched_pressure_p rather than flag_sched_pressure.
423 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
425 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
426 cgraph_get_node instead of cgraph_get_create_node.
428 2011-04-15 Jakub Jelinek <jakub@redhat.com>
430 * cfgexpand.c (expand_debug_expr): Use
431 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
433 2011-04-15 Michael Matz <matz@suse.de>
435 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
436 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
437 * function.c (gimplify_parameters): Ditto.
438 * gimplify.c (gimplify_vla_decl): Ditto.
440 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
441 (gimple_call_set_alloca_for_var): New inline function.
442 (gimple_call_alloca_for_var_p): Ditto.
443 * gimple.c (gimple_build_call_from_tree): Remember
444 CALL_ALLOCA_FOR_VAR_P state.
445 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
447 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
448 calls if they were for VLA objects.
450 2011-04-15 Martin Jambor <mjambor@suse.cz>
452 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
455 2011-04-15 Martin Jambor <mjambor@suse.cz>
458 * tree-emutls.c (lower_emutls_function_body): Call
459 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
462 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
464 * c-decl.c (detect_field_duplicates): Call
465 objc_detect_field_duplicates instead of objc_get_interface_ivars.
467 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
469 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
470 * gimple.c (gimple_asm_clobbers_memory_p): Define.
471 * ipa-pure-const.c (check_stmt): Call it.
472 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
474 2011-04-15 Richard Guenther <rguenther@suse.de>
476 PR tree-optimization/48290
477 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
478 Properly decide inhibiting propagation based on the valueized
479 operand. Do loop-closed SSA form preserving here ...
480 (init_copy_prop): ... not here.
482 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
485 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
486 (*ieee_smax<mode>3): Likewise.
488 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
490 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
491 Replace match_operand with match_dup for the third operand in
494 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
496 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
497 to track processing of conditionals. Update all callers.
498 (try_combine, simplify_if_then_else): Update.
500 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
502 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
505 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
507 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
508 instead of match_operand for operand 3.
510 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
512 * recog.h (insn_operand_data): Add an "allows_mem" field.
513 * genoutput.c (output_operand_data): Initialize it.
514 * optabs.c (maybe_legitimize_operand_same_code): New function.
515 (maybe_legitimize_operand): Use it when matching the original
518 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
520 * gimplify.c: Fix issues in comments throughout.
521 (voidify_wrapper_expr): Fix long line.
522 (build_stack_save_restore): Likewise.
523 (gimplify_loop_expr): Likewise.
524 (gimplify_compound_lval): Likewise.
525 (gimplify_init_ctor_eval): Likewise.
526 (gimplify_modify_expr_rhs): Likewise.
527 (omp_notice_threadprivate_variable): Likewise.
529 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
531 * cfgexpand.c (expand_call_stmt): Convert the function type to the
532 original one if this is not a builtin function.
534 2011-04-14 Jakub Jelinek <jakub@redhat.com>
537 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
538 offset it as needed based on top 2 bits in operands[3], change
539 MEM mode to SFmode and mask those 2 bits away from operands[3].
541 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
543 * c-parser.c (c_parser_objc_protocol_definition): Updated for
544 change from objc_declare_protocols() to objc_declare_protocol().
546 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
548 * config/i386/sse.md (sse4_1): New mode attribute.
549 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
550 avx_blend<ssemodesuffix><avxmodesuffix> and
551 sse4_1_blend<ssemodesuffix> using VF mode iterator.
552 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
553 avx_blendv<ssemodesuffix><avxmodesuffix> and
554 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
555 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
556 avx_dp<ssemodesuffix><avxmodesuffix> and
557 sse4_1_dp<ssemodesuffix> using VF mode iterator.
558 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
559 (sse4_1_packusdw): Merge with *avx_packusdw.
560 (sse4_1_pblendvb): Merge with *avx_pblendvb.
561 (sse4_1_pblendw): Merge with *avx_pblendw.
562 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
563 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
564 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
566 (sse4_1_round<ssescalarmodesuffix>): Merge with
567 *avx_round<ssescalarmodesuffix>.
568 (aesenc): Merge with *avx_aesenc.
569 (aesenclast): Merge with *avx_aesenclast.
570 (aesdec): Merge with *avx_aesdec.
571 (aesdeclast): Merge with *avx_aesdeclast.
572 (pclmulqdq): Merge with *pclmulqdq.
573 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
575 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
577 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
580 * cfgexpand.c (get_decl_align_unit): Renamed to ...
581 (align_local_variable): This. Update DECL_ALIGN.
582 (add_stack_var): Updated.
583 (expand_one_stack_var): Likewise.
585 2011-04-14 Richard Guenther <rguenther@suse.de>
587 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
589 (dse_initialize_block_local_data, dse_leave_block,
590 record_voperand_set, get_stmt_uid): Likewise.
591 (dse_possible_dead_store_p): Allow any kind of killing stmt.
592 (dse_optimize_stmt): Remove voperand set handling code.
593 Simplify and improve to handle any kind of killing stmt.
594 (dse_record_phi): Remove.
595 (dse_enter_block): Simplify.
596 (tree_ssa_dse): Likewise.
597 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
599 2011-04-14 Jan Hubicka <jh@suse.cz>
601 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
602 * cgraph.h (struct inline_summary): Move to ipa-inline.h
603 (cgraph_local_info): Remove inline_summary.
604 * ipa-cp.c: Include ipa-inline.h.
605 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
606 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
608 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
609 (input_overwrite_node): Do not set inline summary.
610 (input_node): Do not stream inline summary.
611 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
612 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
613 growth; we do not have inline parameters computed for that anyway.
614 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
615 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
616 (inline_summary_t): New type and VECtor.
617 (debug_inline_summary, dump_inline_summaries): Declare.
618 (inline_summary): Use VOCtor.
619 (estimate_edge_growth): Kill hack computing call stmt size directly.
620 * lto-section-in.c (lto_section_name): Add inline section.
621 * ipa-inline-analysis.c: Include lto-streamer.h
622 (node_removal_hook_holder, node_duplication_hook_holder): New holders
623 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
624 (inline_summary_vec): Define.
625 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
626 dump_inline_summaries): New functions.
627 (estimate_function_body_sizes): Properly compute size/time of outgoing
629 (compute_inline_parameters): Alloc inline_summary; do not compute
630 size/time of incomming calls.
631 (estimate_edge_time): Avoid missing time summary hack.
632 (inline_read_summary): Read inline summary info.
633 (inline_write_summary): Write inline summary info.
634 (inline_free_summary): Free all hooks and inline summary vector.
635 * lto-streamer.h: Add LTO_section_inline_summary section.
636 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
637 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
639 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
641 * tree-vectorizer.h (vect_strided_store_supported): Add a
642 HOST_WIDE_INT argument.
643 (vect_strided_load_supported): Likewise.
644 (vect_permute_store_chain): Return void.
645 (vect_transform_strided_load): Likewise.
646 (vect_permute_load_chain): Delete.
647 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
648 count argument. Check that the count is a power of two.
649 (vect_strided_load_supported): Likewise.
650 (vect_permute_store_chain): Return void. Update after above changes.
651 Assert that the access is supported.
652 (vect_permute_load_chain): Likewise.
653 (vect_transform_strided_load): Return void.
654 * tree-vect-stmts.c (vectorizable_store): Update calls after
655 above interface changes.
656 (vectorizable_load): Likewise.
657 (vect_analyze_stmt): Don't check for strided powers of two here.
659 2011-04-14 Richard Guenther <rguenther@suse.de>
661 PR tree-optimization/48590
662 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
663 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
664 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
666 * tree-ssa-dce.c (propagate_necessity): Handle
667 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
669 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
671 * c-parser.c (c_parser_objc_class_declaration): Updated call to
674 2011-04-14 Richard Guenther <rguenther@suse.de>
676 * tree.h (get_object_alignment_1): Declare.
677 * builtins.c (get_object_alignment_1): Split out worker from ...
678 (get_object_alignment): ... here.
679 * fold-const.c (get_pointer_modulus_and_residue): Use
680 get_object_alignment_1.
682 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
684 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
686 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
687 parameter. Generalise code to handle arrays as well as vectors.
688 (vect_setup_realignment): Update accordingly.
689 * tree-vect-stmts.c (vectorizable_store): Likewise.
690 (vectorizable_load): Likewise.
692 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
694 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
695 within the per-copy loop.
697 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
699 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
702 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
704 * doc/options.texi (Negative): Explicitly mention that the
705 Negative chain must be circular.
707 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
709 * function.h (block_chainon): Declare.
710 * function.c (block_chainon): Define.
712 2011-04-14 Anatoly Sokolov <aesok@post.ru>
713 Eric Weddington <eric.weddington@atmel.com>
714 Georg-Johann Lay <avr@gjlay.de>
716 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
718 (avr_init_builtins, avr_expand_builtin,
719 avr_expand_delay_cycles, avr_expand_unop_builtin,
720 avr_expand_binop_builtin ): New functions.
721 (avr_builtin_id): New enum
722 (struct avr_builtin_description): New struct
723 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
724 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
726 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
727 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
728 UNSPECV_DELAY_CYCLES): new enumeration values
729 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
730 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
731 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
732 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
733 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
734 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
737 * config/avr/avr-c.c: fix line endings
738 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
739 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
740 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
741 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
742 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
744 * doc/extend.texi (AVR Built-in Functions): New node
745 (Target Builtins): Add documentation of AVR
748 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
751 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
752 alone. Error if non-const data has attribute progmem.
754 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
756 * tree.h (struct tree_constructor): Include tree_typed instead of
758 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
759 TS_TYPED instead of TS_COMMON.
761 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
763 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
764 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
765 (sse2_psadbw): Merge with *avx_psadbw.
766 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
767 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
768 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
769 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
770 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
771 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
772 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
773 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
774 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
775 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
776 (ssse3_palignrti): Merge with *avx_palignrti.
778 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
780 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
781 * tree-ssanames.c (fini_ssanames): VEC_free it.
782 (make_ssa_name_fn): Update for VECness of free_ssanames.
783 (release_ssa_name, release_dead_ssa_names): Likewise.
784 * tree.h (struct tree_ssa_name): Include tree_typed instead of
786 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
787 TS_TYPED instead of TS_COMMON.
789 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
791 * postreload-gcse.c (gcse_after_reload_main): Add calls to
792 statistics_counter_event.
793 * tree-ssa-copyrename.c (stats): Define.
794 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
795 statistics_counter_event.
796 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
797 (bswap_stats, widen_mul_stats): Define.
798 (insert_reciprocals): Increment rdivs_inserted.
799 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
800 rfuncs_inserted. Add calls to statistics_counter_event.
801 (execute_cse_sincos_1): Increment inserted.
802 (execute_cse_sincos): Zeroize sincos_stats. Add call to
803 statistics_counter_event.
804 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
805 of bswap_stats. Add calls to statistics_counter_event.
806 (convert_mult_to_widen): Increment widen_mults_inserted.
807 (convert_plusminus_to_widen): Increment maccs_inserted.
808 (convert_mult_to_fma): Increment fmas_inserted.
809 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
810 calls to statistics_counter_event.
812 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
814 PR rtl-optimization/48455
815 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
816 `temp_costs->mem_cost'.
818 2011-04-13 Jan Hubicka <jh@suse.cz>
820 * ipa-inline.h: New file.
821 * ipa-inline-analysis.c: New file. Broken out of ...
822 * ipa-inline.c: ... this file; update toplevel comment;
824 (inline_summary): Move to ipa-inline.h
825 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
826 ipa-inline-analysis.c.
827 (cgraph_estimate_time_after_inlining): Rename to
828 estiamte_time_after_inlining; move to ipa-inline-analysis.c
829 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
830 to estimate_edge_growth.
831 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
832 rename to estimate_size_after_inlining.
833 (cgraph_mark_inline_edge): Update for new naming convention.
834 (cgraph_check_inline_limits): Likewise.
835 (cgraph_edge_badness): Likewise.
836 (cgraph_decide_recursive_inlining): Likewise.
837 (cgraph_decide_inlining_of_small_functions): Likewise.
838 (cgraph_decide_inlining_incrementally): Likewise.
839 (cgraph_estimate_growth): Rename to estimate_growth; move to
840 ipa-inline-analysis.c.
841 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
842 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
843 (compute_inline_parameters): Likewise.
844 (compute_inline_parameters_for_current): Likewise.
845 (pass_inline_parameters): Likewise.
846 (inline_indirect_intraprocedural_analysis): Likewise.
847 (analyze_function): Rename to inline_analyze_function; likewise.
848 (add_new_function): Move to ipa-inline-analysis.c.
849 (inline_generate_summary): Likewise.
850 (inline_read_summary): Likewise.
851 (inline_write_summary): Likewise.
852 * Makefile.in (ipa-inline-analysis.c): New file.
854 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
856 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
857 * configure: Regenerate.
859 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
861 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
862 instead of tree_common.
863 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
865 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
866 TS_TYPED rather than TS_COMMON.
867 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
869 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
872 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
873 r20 around calls of __tablejump_elpm__
875 2011-04-13 Jakub Jelinek <jakub@redhat.com>
878 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
880 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
882 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
884 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
885 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
886 (cfi_vec): New typedef.
887 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
888 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
889 (cie_cfi_vec): New static variable.
890 (cie_cfi_head): Delete.
891 (add_cfi): Accept a cfi_vec * as first argument. All callers and
892 declaration changed. Use vector rather than list operations.
893 (new_cfi): Don't initialize the dw_cfi_next field.
894 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
895 rather than list operations.
896 (lookup_cfa): Use vector rather than list operations.
897 (output_cfis): New argument upto. Accept a cfi_vec rather than
898 a dw_cfi_ref list head as argument. All callers changed.
899 Iterate over the vector using upto as a maximum index.
900 (output_all_cfis): New static function.
901 (output_fde): Use vector rather than list operations. Use the
902 new upto argument for output_cfis rather than manipulating a
904 (dwarf2out_begin_prologue): Change initializations to match
906 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
907 from the vector length rather than searching for the end of a list.
909 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
911 2011-04-13 Nick Clifton <nickc@redhat.com>
913 * config/rx/rx.md (movmemsi): Do not use this pattern when
914 volatile pointers are involved.
916 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
918 * config/i386/sse.md (pinsrbits): Remove.
919 (sse2_packsswb): Merge with *avx_packsswb.
920 (sse2_packssdw): Merge with *avx_packssdw.
921 (sse2_packuswb): Merge with *avx_packuswb.
922 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
923 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
924 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
925 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
926 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
927 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
928 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
929 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
930 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
931 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
932 (sse2_loadld): Merge with *avx_loadld.
933 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
934 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
935 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
936 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
937 (vec_concatv2di): Merge with *vec_concatv2di_avx.
939 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
941 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
943 * print-tree.c (print_node): Likewise.
944 * tree-inline.c (copy_tree_r): Likewise.
945 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
946 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
947 instead of TS_COMMON.
948 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
949 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
950 (copy_node_stat): Zero TREE_CHAIN only if necessary.
951 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
952 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
954 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
956 (TREE_CHAIN): Check for a TS_COMMON structure.
957 (TREE_TYPE): Check for a TS_TYPED structure.
959 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
961 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
962 cgraph_get_create_node instead of cgraph_node.
964 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
966 * c-parser.c (c_parser_initelt): Updated call to
967 objc_build_message_expr.
968 (c_parser_postfix_expression): Likewise.
970 2011-04-12 Kai Tietz <ktietz@redhat.com>
972 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
973 MASK_MS_BITFIELD_LAYOUT bit.
975 2011-04-12 Jakub Jelinek <jakub@redhat.com>
977 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
978 assert it is always true.
979 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
982 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
984 * c-parser.c (c_lex_one_token): Rewritten conditional used when
985 compiling Objective-C to be more efficient.
987 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
989 * opts-common.c (decode_cmdline_options_to_array): Remove variable
992 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
994 * recog.h, genoutput.c, optabs.c: Revert last patch.
996 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
999 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1001 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1003 * recog.h (insn_operand_data): Add an "allows_mem" field.
1004 * genoutput.c (output_operand_data): Initialize it.
1005 * optabs.c (maybe_legitimize_operand_same_code): New function.
1006 (maybe_legitimize_operand): Use it when matching the original
1009 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1011 * genpreds.c (process_define_predicate): Move most processing
1012 to gensupport.c. Continue to validate the expression.
1013 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1014 (process_define_predicate): Move processing to gensupport.c.
1015 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1016 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1017 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1019 (valid_predicate_name_p): New function, split out from old
1020 genpreds.c:process_define_predicate.
1021 (process_define_predicate): New function, combining code from
1022 old genpreds.c and genrecog.c functions.
1023 (process_rtx): Call it for DEFINE_PREDICATE and
1024 DEFINE_SPECIAL_PREDICATE.
1026 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1028 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1029 size of a '%A' memory reference.
1030 (T_DREG, T_QREG): New neon_builtin_type_bits.
1031 (arm_init_neon_builtins): Assert that the load and store operands
1032 are neon_struct_operands.
1033 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1034 (NEON_ARG_MEMORY): New builtin_arg.
1035 (neon_dereference_pointer): New function.
1036 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1037 Handle NEON_ARG_MEMORY.
1038 (arm_expand_neon_builtin): Update after above interface changes.
1039 Use NEON_ARG_MEMORY for loads and stores.
1040 * config/arm/predicates.md (neon_struct_operand): New predicate.
1041 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1042 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1043 (V_four_elem): Tweak formatting.
1044 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1045 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1046 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1047 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1048 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1049 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1050 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1051 Use %A in the output template.
1052 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1053 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1054 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1055 the width of the memory access. Remove post-increment.
1056 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1058 2011-04-12 Nick Clifton <nickc@redhat.com>
1060 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1061 instruction for interrupt handlers if the target is the basic V850
1063 (expand_epilogue): Likewise.
1065 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1067 PR rtl-optimization/48549
1068 * combine.c (propagate_for_debug): Also stop after BB_END of
1069 this_basic_block. Process LAST and just stop processing after it.
1070 (combine_instructions): If last_combined_insn has been deleted,
1071 set last_combined_insn to its PREV_INSN.
1073 2011-04-12 Richard Guenther <rguenther@suse.de>
1075 PR tree-optimization/46076
1076 * gimple.h (struct gimple_statement_call): Add fntype field.
1077 (gimple_call_fntype): Adjust.
1078 (gimple_call_set_fntype): New function.
1079 * gimple.c (gimple_build_call_1): Set the call function type.
1080 * gimplify.c (gimplify_call_expr): Preserve the function
1081 type the frontend used for the call.
1082 (gimplify_modify_expr): Likewise.
1083 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1085 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1087 * tree-ssa.c (useless_type_conversion_p): Function pointer
1088 conversions are useless.
1090 2011-04-12 Martin Jambor <mjambor@suse.cz>
1092 * cgraph.h (cgraph_node): Remove function declaration.
1093 (cgraph_create_node): Declare.
1094 (cgraph_get_create_node): Likewise.
1095 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1096 Updated all callers.
1097 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1098 the decl does not already exist. Call cgraph_get_create_node instead
1100 (cgraph_get_create_node): New function.
1101 (cgraph_same_body_alias): Update comment.
1102 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1103 assert it does not return NULL.
1104 (cgraph_update_edges_for_call_stmt): Likewise.
1105 (cgraph_clone_edge): Likewise.
1106 (cgraph_create_virtual_clone): Likewise.
1107 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1108 instead of cgraph_node.
1109 (cgraph_add_new_function): Call cgraph_create_node or
1110 cgraph_get_create_node instead of cgraph_node.
1111 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1112 instead of cgraph_node.
1113 (record_eh_tables): Likewise.
1114 (mark_address): Likewise.
1115 (mark_load): Likewise.
1116 (build_cgraph_edges): Call cgraph_get_create_node instead
1118 (rebuild_cgraph_edges): Likewise.
1119 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1120 instead of cgraph_node.
1121 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1123 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1124 cgraph_create_node instead of cgraph_node.
1125 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1127 * lto-cgraph.c (input_node): Likewise.
1128 * lto-streamer-in.c (input_function): Likewise.
1129 * varasm.c (mark_decl_referenced): Likewise.
1130 (assemble_alias): Likewise.
1132 2011-04-12 Martin Jambor <mjambor@suse.cz>
1134 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1135 instead of cgraph_node and assert it does not return NULL.
1136 * lto-streamer-in.c (lto_read_body): Likewise.
1137 * omp-low.c (new_omp_context): Likewise.
1138 (create_task_copyfn): Likewise.
1139 * tree-emutls.c (lower_emutls_function_body): Likewise.
1140 * matrix-reorg.c (transform_allocation_sites): Likewise.
1142 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1145 * c-typeck.c (build_asm_expr): Error out on attempts to use
1146 void type outputs or inputs for constraints that allow reg or
1149 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1150 Richard Earnshaw <rearnsha@arm.com>
1153 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1154 to use sign-magnitude offsets. Reject unsupported unaligned
1155 cases. Add detailed description in comments.
1156 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1157 condition from TARGET_32BIT to TARGET_ARM.
1159 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1161 * tree.h (struct typed_tree): New.
1162 (struct tree_common): Include it instead of tree_base.
1163 (TREE_TYPE): Update for new location of type field.
1164 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1165 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1166 (union tree_node): Add typed field.
1167 * treestruct.def (TS_TYPED): New.
1168 * lto-streamer.c (check_handled_ts_structures): Handle it.
1169 * tree.c (MARK_TS_TYPED): New macro.
1170 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1172 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1174 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1175 (force_nonfallthru): Do not alter the loop nest if no basic block
1178 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1180 * config/i386/sse.md (VI): New mode iterator.
1182 (AVX256MODEI): Ditto.
1183 (AVXMODEF4P): Ditto.
1184 (avxvecpsmode): Ditto.
1185 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1186 (sse2_andnot<mode>3): New expander.
1187 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1188 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1189 (<any_logic:code><mode>3): Use VI mode iterator.
1190 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1191 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1192 (*andnottf3): Handle AVX three-operand constraints.
1193 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1195 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1196 Robert Millan <rmh@gnu.org>
1198 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1199 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1200 GNU_USER_DYNAMIC_LINKER64): Define.
1201 (REG_NAME): Don't undefine.
1202 (MD_UNWIND_SUPPORT): Undefine.
1203 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1204 (REG_NAME): Don't undefine.
1205 (MD_UNWIND_SUPPORT): Undefine.
1206 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1208 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1210 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1211 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1213 2011-04-11 Xinliang David Li <davidxl@google.com>
1215 * value-profile.c (check_ic_target): New function.
1216 (gimple_ic_transform): Sanity check indirect call target.
1217 * gimple-low.c (gimple_check_call_args): Interface change.
1218 (gimple_check_call_matching_types): New function.
1219 * tree-inline.c (tree_can_inline_p): Call new function.
1221 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1223 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1224 tree-pretty-print.h & realmpfr.h.
1226 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1229 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1230 (setup_allocno_and_important_classes): Ditto.
1232 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1234 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1235 GNU_USER_DYNAMIC_LINKER.
1236 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1237 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1238 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1239 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1240 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1241 GNU_USER_TARGET_OS_CPP_BUILTINS.
1242 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1243 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1244 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1245 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1246 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1247 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1248 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1249 GNU_USER_TARGET_OS_CPP_BUILTINS.
1250 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1251 GNU_USER_DYNAMIC_LINKER.
1252 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1253 GNU_USER_TARGET_OS_CPP_BUILTINS.
1254 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1256 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1257 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1258 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1259 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1260 GNU_USER_DYNAMIC_LINKER64): Remove.
1261 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1264 GNU_USER_DYNAMIC_LINKER.
1265 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1266 GNU_USER_TARGET_OS_CPP_BUILTINS.
1267 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1268 GNU_USER_TARGET_OS_CPP_BUILTINS.
1269 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1270 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1271 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1272 GNU_USER_TARGET_OS_CPP_BUILTINS.
1273 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1274 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1275 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1276 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1277 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1278 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1279 GNU_USER_DYNAMIC_LINKER.
1280 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1281 GNU_USER_TARGET_OS_CPP_BUILTINS.
1282 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1283 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1284 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1285 GNU_USER_DYNAMIC_LINKER.
1286 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1287 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1288 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1290 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1291 GNU_USER_DYNAMIC_LINKER.
1292 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1293 GNU_USER_DYNAMIC_LINKERN32.
1294 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1295 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1296 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1297 GNU_USER_DYNAMIC_LINKER32.
1298 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1301 GNU_USER_DYNAMIC_LINKER.
1302 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1304 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1306 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1307 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1308 GNU_USER_DYNAMIC_LINKER32.
1309 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1310 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1311 GNU_USER_DYNAMIC_LINKER.
1312 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1313 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1314 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1315 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1316 GNU_USER_DYNAMIC_LINKER64.
1317 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1318 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1319 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1320 GNU_USER_DYNAMIC_LINKER.
1321 * config/sparc/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/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1326 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1327 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1328 GNU_USER_DYNAMIC_LINKER32.
1329 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1330 GNU_USER_DYNAMIC_LINKER64.
1331 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1332 GNU_USER_DYNAMIC_LINKER64.
1333 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1334 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1335 * config/xtensa/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_LINKER to GNU_USER_DYNAMIC_LINKER.
1339 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1341 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1342 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1343 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1344 GNU_USER_DYNAMIC_LINKER.
1345 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1346 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1347 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1348 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1349 GNU_USER_DYNAMIC_LINKER64.
1350 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1351 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1352 GNU_USER_LINK_EMULATION.
1353 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1354 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1355 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1356 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1357 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1358 CPP_SPEC, CC1_SPEC): Remove.
1359 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1360 (GNU_USER_DYNAMIC_LINKER): Define.
1361 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1362 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1363 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1364 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1365 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1366 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1367 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1368 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1369 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1370 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1371 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1372 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1373 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1374 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1375 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1376 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1377 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1378 GNU_USER_DYNAMIC_LINKER.
1379 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1380 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1381 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1382 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1383 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1384 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1385 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1386 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1387 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1388 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1390 2011-04-11 Kai Tietz <ktietz@redhat.com>
1394 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1395 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1397 (ix86_is_msabi_thiscall): Removed.
1398 (ix86_is_type_thiscall): Likewise.
1399 (ix86_get_callcvt): New function.
1400 (ix86_comp_type_attributes): Simplify check.
1401 (ix86_function_regparm): Use ix86_get_callcvt for calling
1402 convention attribute checks.
1403 (ix86_return_pops_args): Likewise.
1404 (ix86_static_chain): Likewise.
1405 (x86_this_parameter): Likewise.
1406 (x86_output_mi_thunk): Likewise.
1407 (ix86_function_type_abi): Optimize check for types without attributes.
1408 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1409 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1410 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1412 (IX86_BASE_CALLCVT): Helper macro.
1413 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1414 Use ix86_get_callcvt for calling convention attribute checks and avoid
1415 symbol-decoration for stdcall in TARGET_RTD case.
1416 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1418 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1421 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1423 * config/i386/sse.md (VI_128): New mode iterator.
1424 (VI12_128): Rename from SSEMODE12.
1425 (VI14_128): Rename from SSEMODE14.
1426 (VI124_128): New mode iterator.
1427 (VI24_128): Rename from SSEMODE248.
1428 (VI248_128): Rename from SSEMODE248.
1429 (SSEMODE124C8): Remove.
1430 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1431 (*sse2_<plusminus_insn><mode>3): Merge with
1432 *avx_<plusminus_insn><mode>3.
1433 (*mulv8hi3): Merge with *avx_mulv8hi3.
1434 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1435 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1436 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1437 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1438 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1439 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1440 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1441 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1442 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1443 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1444 (*<smaxmin:code>v8hi3): Ditto.
1445 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1446 (*<smaxmin:code>v16qi3): Ditto.
1447 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1448 (*sse2_eq<mode>3): Ditto.
1449 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1450 (*sse2_gt<mode>3): Ditto.
1451 (vcondv2di): Split out of vcond<mode>.
1452 (vconduv2di): Split out of vcondu<mode>.
1454 2011-04-11 Richard Guenther <rguenther@suse.de>
1456 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1457 before calling tree_low_cst.
1459 2011-04-11 Richard Guenther <rguenther@suse.de>
1461 * stor-layout.c (layout_type): Compute all array index size operations
1462 in the original type.
1463 (initialize_sizetypes): Add comment.
1464 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1466 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1468 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1470 2011-04-11 Martin Jambor <mjambor@suse.cz>
1472 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1473 of cgraph_node, handle NULL return value.
1474 (cgraph_global_info): Likewise.
1475 (cgraph_rtl_info): Likewise.
1476 * tree-inline.c (estimate_num_insns): Likewise.
1477 * gimplify.c (unshare_body): Likewise.
1478 (unvisit_body): Likewise.
1479 (gimplify_body): Likewise.
1480 * predict.c (optimize_function_for_size_p): Likewise.
1481 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1482 (call_may_clobber_ref_p_1): Likewise.
1483 * varasm.c (function_section_1): Likewise.
1484 (assemble_start_function): Likewise.
1486 2011-04-11 Martin Jambor <mjambor@suse.cz>
1488 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1490 * final.c (rest_of_clean_state): Likewise.
1491 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1492 * passes.c (pass_init_dump_file): Likewise.
1493 (execute_all_ipa_transforms): Likewise.
1494 (function_called_by_processed_nodes_p): Likewise.
1495 * predict.c (maybe_hot_frequency_p): Likewise.
1496 (probably_never_executed_bb_p): Likewise.
1497 (compute_function_frequency): Likewise.
1498 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1499 (unnest_nesting_tree_1): Likewise.
1500 (lower_nested_functions): Likewise.
1501 * tree-optimize.c (execute_fixup_cfg): Likewise.
1502 (tree_rest_of_compilation): Likewise.
1503 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1504 * tree-sra.c (ipa_early_sra): Likewise.
1505 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1506 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1507 * ipa.c (record_cdtor_fn): Likewise.
1508 * ipa-inline.c (cgraph_early_inlining): Likewise.
1509 (compute_inline_parameters_for_current): Likewise.
1510 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1511 * ipa-pure-const.c (local_pure_const): Likewise.
1512 * ipa-split.c (split_function): Likewise.
1513 (execute_split_functions): Likewise.
1514 * cgraphbuild.c (build_cgraph_edges): Likewise.
1515 (rebuild_cgraph_edges): Likewise.
1516 (cgraph_rebuild_references): Likewise.
1517 (remove_cgraph_callee_edges): Likewise.
1518 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1519 (verify_cgraph_node): Likewise.
1520 (cgraph_analyze_functions): Likewise.
1521 (cgraph_preserve_function_body_p): Likewise.
1522 (save_inline_function_body): Likewise.
1523 (save_inline_function_body): Likewise.
1524 * tree-inline.c (copy_bb): Likewise.
1525 (optimize_inline_calls): Likewise.
1527 2011-04-11 Martin Jambor <mjambor@suse.cz>
1529 PR tree-optimization/48195
1530 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1531 ipa_check_create_edge_args.
1532 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1533 ipa_check_create_edge_args.
1534 * ipa-inline.c (inline_generate_summary): Do not call
1535 ipa_check_create_node_params and ipa_check_create_edge_args.
1536 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1537 ipa_check_create_edge_args.
1539 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1541 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1543 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1544 * function.c (record_hard_reg_sets): Likewise.
1545 * ira.c (compute_regs_asm_clobbered): Likewise.
1546 * sched-deps.c (sched_analyze_1): Likewise.
1547 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1549 2011-04-09 Xinliang David Li <davidxl@google.com>
1551 PR tree-optimization/PR48484
1552 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1553 has_valid_pred lazily
1555 2011-04-09 Duncan Sands <baldrick@free.fr>
1557 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1559 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1561 * combine.c (combine_validate_cost): Adjust comments. Set registered
1562 cost of I0 to zero at the end, if any.
1564 2011-04-08 Xinliang David Li <davidxl@google.com>
1566 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1567 to insane profile data.
1569 2011-04-08 Xinliang David Li <davidxl@google.com>
1571 * final.c (dump_basic_block_info): New function.
1572 (final): Dump basic block.
1573 (final_scan_insn): Remove old dump.
1575 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1578 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1581 2011-04-08 Michael Matz <matz@suse.de>
1584 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1586 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1587 * rtl.h (rebuild_jump_labels_chain): Declare.
1588 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1589 insns inserted on edges.
1591 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1593 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1594 * config/arm/arm-arches.def: New.
1595 * config/arm/arm-opts.h: New.
1596 * config/arm/genopt.sh: New.
1597 * config/arm/arm-tables.opt: New (generated).
1598 * config/arm/arm.c (arm_handle_option, arm_target_help,
1599 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1600 (all_architectures): Get most table contents from arm-arches.def.
1601 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1602 arm_selected_tune here.
1603 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1604 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1605 (march=, mcpu=, mtune=): Use Enum and Var.
1606 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1607 (arm.o): Update dependencies.
1609 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1611 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1613 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1614 (write_typed_alloc_defns): Likewise.
1615 (main): Calls write_typed_alloc_defns with output_header.
1617 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1620 * ira-color.c (setup_profitable_hard_regs): Add comments.
1621 Don't take prohibited hard regs into account.
1622 (setup_conflict_profitable_regs): Rename to
1623 get_conflict_profitable_regs.
1624 (check_hard_reg_p): Check prohibited hard regs.
1626 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1628 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1629 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1630 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1632 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1635 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1636 move from floating point to shift amount register .
1637 (emit_move_sequence): Remove secondary reload support for floating
1638 point to shift amount amount register copies.
1639 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1640 amount register copies.
1641 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1642 register, return false if mode isn't a scalar integer mode.
1643 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1645 2011-04-08 Richard Guenther <rguenther@suse.de>
1647 * gimple.c (gimple_call_flags): Remove kludge.
1649 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1651 * sel-sched.c (sel_region_init): Move call to
1652 sel_setup_region_sched_flags after setup_current_loop_nest.
1654 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1656 PR rtl-optimization/48272
1657 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1658 init_insn_reg_pressure_info. Adjust a caller.
1659 * sched-int.h (init_insn_reg_pressure_info): Declare.
1660 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1661 when sched-pressure is enabled.
1663 2011-04-08 Richard Guenther <rguenther@suse.de>
1665 * gimple.c (gimple_set_modified): Do not queue calls to
1666 MODIFIED_NORETURN_CALLS here ...
1667 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1669 2011-04-08 Richard Guenther <rguenther@suse.de>
1672 * toplev.c (lang_dependent_init): Do not open asm_out_file
1673 in WPA mode, nor perform debug machinery initialization.
1674 (finalize): Do not unlink asm_out_file in WPA mode.
1676 2011-04-08 Richard Guenther <rguenther@suse.de>
1678 * gimple.h (gimple_call_fntype): New function.
1679 (gimple_call_return_type): Use it.
1680 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1681 * gimple-low.c (gimple_check_call_args): Likewise.
1682 * gimple.c (gimple_call_flags): Likewise.
1683 (gimple_call_arg_flags): Likewise.
1684 (gimple_call_return_flags): Likewise.
1685 * tree-cfg.c (verify_gimple_call): Likewise.
1686 (do_warn_unused_result): Likewise.
1687 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1688 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1690 2011-04-08 Dmitry Melnik <dm@ispras.ru>
1692 PR rtl-optimization/48235
1693 * sel-sched.c (code_motion_process_successors): Recompute the last
1694 insn in basic block if control flow changed.
1695 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1696 Update condition for ilist_remove.
1698 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1700 PR rtl-optimization/48302
1701 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1702 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1703 it to record added preheader blocks.
1704 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1705 on to sel_add_loop_preheaders.
1706 (sel_region_init): Move call to setup_current_loop_nest after
1709 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1712 * cfgloop.h (loop_has_exit_edges): New helper.
1713 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1715 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1716 that have no exit edges.
1718 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1720 PR rtl-optimization/48442
1721 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1722 all callers. Adjust assert.
1724 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1726 PR tree-optimization/48377
1727 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1728 is_packed to true even for types with smaller TYPE_ALIGN than
1731 2011-04-08 Richard Guenther <rguenther@suse.de>
1734 * doc/tm.texi: Re-generate.
1736 2011-04-08 Wei Guozhi <carrot@google.com>
1739 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1740 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1741 * config/arm/arm.md (*push_multi): Change the length computation to
1744 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1746 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1747 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1748 * doc/tm.texi: Regenerate.
1749 * system.h (ASM_OUTPUT_BSS): Poison.
1750 * varasm.c (asm_output_bss): Remove function.
1751 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1753 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1754 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1755 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1756 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1758 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1760 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1762 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1764 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1766 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1769 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1771 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1772 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1773 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1775 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1776 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1777 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1778 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1779 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1780 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1781 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1782 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1783 options. Don't map other m68k options manually. Don't handle
1784 old-style options as canonical.
1785 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1786 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1788 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1790 * basic-block.h (force_nonfallthru): Move to...
1791 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1792 (force_nonfallthru): ...here.
1793 * cfghooks.c (force_nonfallthru): New function.
1794 * cfgrtl.c (force_nonfallthru): Rename into...
1795 (rtl_force_nonfallthru): ...this.
1796 (commit_one_edge_insertion): Do not set AUX field.
1797 (commit_edge_insertions): Do not discover new basic blocks.
1798 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1799 (cfg_layout_rtl_cfg_hooks): Likewise.
1800 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1801 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1802 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1804 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1806 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1809 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1811 * config/i386/sse.md: Update copyright year.
1812 (avxcvtvecmode): Remove.
1813 (sse_movhlps): Merge with *avx_movhlps.
1814 (sse_movlhps): Merge with *avx_movlhps.
1815 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1816 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1817 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1818 (sse_loadhps): Merge with *avx_loadhps.
1819 (sse_storelps): Merge with *avx_storelps.
1820 (sse_loadlps): Merge with *avx_loadlps.
1821 (sse_movss): Merge with *avx_movss.
1822 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1823 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1824 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1825 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1826 (vec_set<mode>_0): Ditto.
1827 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1828 (sse4_1_insertps): Merge with *avx_insertps.
1829 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1830 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1831 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1832 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1833 (sse2_storehpd): Merge with *avx_storehpd.
1834 (sse2_loadhpd): Merge with *avx_loadhpd.
1835 (sse2_loadlpd): Merge with *avx_loadlpd.
1836 (sse2_movsd): Merge with *avx_movsd.
1837 (*vec_concatv2df): Merge with *vec_concatv2df.
1839 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1842 * combine.c (combine_instructions): Add last_combined_insn,
1843 update it if insn is after it, pass it to all try_combine calls.
1844 (try_combine): Add last_combined_insn parameter, pass it instead of
1845 i3 to propagate_for_debug.
1847 2011-04-07 Nick Clifton <nickc@redhat.com>
1849 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1850 to handle MDR <-> data register transfers.
1851 (movhi_internal): Likewise.
1853 2011-04-07 Alan Modra <amodra@gmail.com>
1855 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1856 previous stack info.
1858 2011-04-07 Tom de Vries <tom@codesourcery.com>
1861 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1862 flow_find_cross_jump. Swap variables to implement backward replacement.
1863 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1865 2011-04-07 Tom de Vries <tom@codesourcery.com>
1868 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1869 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1871 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1872 src1 or src2. Redirect edges to the last basic block. Update
1873 frequency and count on multiple basic blocks in case of fallthru.
1875 2011-04-07 Tom de Vries <tom@codesourcery.com>
1878 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1880 (old_insns_match_p): Change return type. Replace return false/true
1881 with return dir_none/dir_both. Use can_replace_by.
1882 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1883 direction from dir_p. Register replacement direction in dir, last_dir
1884 and afterlast_dir. Handle new return type of old_insns_match_p using
1885 merge_dir. Return replacement direction in dir_p.
1886 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1887 return type of old_insns_match_p.
1888 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1889 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1890 flow_find_cross_jump.
1891 * basic-block.h (enum replace_direction): New type.
1892 (flow_find_cross_jump): Add parameter to declaration.
1894 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1896 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1897 (AVXMODEDCVTPS2DQ): Ditto.
1898 (VEC_FLOAT_MODE): Ditto.
1899 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1900 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1901 (<any_logic:code><mode>3): Use VF mode iterator.
1902 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1903 Use VF mode iterator.
1904 (copysign<mode>3): Use VF mode iterator.
1905 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1906 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1907 (*<any_logic:code><MODEF:mode>3): Merge with
1908 *avx_<any_logic:code><MODEF:mode>3.
1909 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1910 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1911 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1912 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1913 (sse2_cvtdq2ps): Use %v modifier.
1914 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1915 (avx_cvtps2dq<avxmodesuffix>): Remove.
1916 (sse2_cvtps2dq): Use %v modifier.
1917 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1918 (avx_cvttps2dq<avxmodesuffix>): Remove.
1919 (sse2_cvttps2dq): Use %v modifier.
1920 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1921 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1922 (sse2_cvtsd2siq): Fix insn template.
1923 (sse2_cvtsd2siq_2): Ditto.
1924 (sse2_cvttsd2siq): Ditto.
1925 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1926 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1928 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1930 * gcov-io.c: Use GCC Runtime Library Exception.
1932 2011-04-06 Jakub Jelinek <jakub@redhat.com>
1935 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1936 as base_reg whatever register reg has been eliminated to, instead
1937 of hardcoding STACK_POINTER_REGNUM.
1939 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1941 * doc/tm.texi.in: Document C target hooks as separate from general
1943 * doc/tm.texi: Regenerate.
1944 * genhooks.c (struct hook_desc): Add docname field.
1945 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1947 (hook_array): Include c-target.def.
1948 (emit_documentation): Use docname field in output.
1949 (emit_init_macros): Take docname argument. Only emit definitions
1950 for hooks matching docname.
1951 (main): Expect additional arguments in all cases. Pass argument
1952 to emit_init_macros.
1953 * target.def: Move initial macro definitions and comments to
1954 target-hooks-macros.h.
1955 (gcc_targetcm): Move to c-family/c-target.def.
1956 * target.h (targetcm): Move declaration to c-family/c-target.h.
1957 * targhooks.c (default_handle_c_option): Move to
1959 * targhooks.h (default_handle_c_option): Move declaration to
1960 c-family/c-common.h.
1961 * target-hooks-macros.h: New file.
1962 * config.gcc (target_has_targetcm): Define and use to add to
1963 c_target_objs and cxx_target_objs.
1964 * config/default-c.c: New file.
1965 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1966 of target.h and target-def.h.
1967 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1968 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1969 darwin_check_cfstring_format_arg): Make static.
1970 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1971 TARGET_STRING_OBJECT_REF_TYPE_P,
1972 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1973 * config/darwin-protos.h (darwin_objc_construct_string,
1974 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1976 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1977 TARGET_STRING_OBJECT_REF_TYPE_P,
1978 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1979 * config/t-darwin (darwin-c.o): Update dependencies.
1980 * system.h (TARGET_HAS_TARGETCM): Poison.
1981 * Makefile.in (TARGET_H): Update.
1982 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1983 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1984 (default-c.o): New target.
1985 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1986 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1987 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
1989 (build/genhooks.o): Update dependencies.
1991 2011-04-06 Richard Guenther <rguenther@suse.de>
1993 * ipa-inline.c (enum inlining_mode): Remove.
1994 (cgraph_flatten): Use some other token.
1995 (cgraph_edge_early_inlinable_p): New function, split out from ...
1996 (cgraph_perform_always_inlining): New function, split out from ...
1997 (cgraph_decide_inlining_incrementally): ... here.
1998 (cgraph_mark_inline_edge): Adjust.
1999 (cgraph_early_inlining): Re-structure.
2000 (pass_early_inline): Require SSA form.
2002 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2003 Julian Brown <julian@codesourcery.com>
2004 Mark Shinwell <shinwell@codesourcery.com>
2006 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2007 LO_REGS only for Thumb-1.
2008 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2009 be used in short instructions when optimising for size on Thumb-2.
2011 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2013 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2014 associated with user returns to be preserved.
2016 2011-04-06 Tristan Gingold <gingold@adacore.com>
2018 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2019 symbol_queue_size, DBXOUT_DECR_NESTING,
2020 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2021 if XCOFF_DEBUGGING_INFO.
2023 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2025 * config/i386/i386.md (attribute isa): New.
2026 (attribute enabled): New.
2027 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2028 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2029 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2030 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2031 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2032 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2033 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2034 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2036 * config/i386/sse.md (VF): New mode iterator.
2040 (SSEMODEF4): Remove.
2041 (attribute sse): Handle V8SF and V4DF modes.
2042 (<absneg:code><mode>2): Use VF mode iterator.
2043 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2045 (<plusminus_insn><mode>3): Use VF mode iterator.
2046 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2047 Use VF mode iterator.
2048 (<sse>_vm<plusminus_insn><mode>3): Merge with
2049 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2050 (mul<mode>3): Use VF mode iterator.
2051 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2052 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2054 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2055 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2056 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2057 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2059 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2060 Use VF1 mode iterator.
2061 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2062 (sqrt<VF2:mode>2): New expander.
2063 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2064 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2065 and sqrtv2df2. Use VF mode iterator.
2066 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2068 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2069 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2070 Use VF1 mode iterator.
2071 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2072 (<smaxmin:code><mode>3): Use VF mode iterator.
2073 (*<smaxmin:code><mode>3_finite): Merge with
2074 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2075 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2076 (<sse>_vm<smaxmin:code><mode>2): Merge with
2077 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2078 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2080 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2082 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2083 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2084 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2085 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2086 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2088 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2089 Use VF_128 mode iterator.
2090 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2092 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2093 VF_128 mode iterator.
2094 (vcond<mode>): Use VF mode iterator.
2095 * config/i386/predicates.md (sse_comparison_operator): Merge with
2096 avx_comparison_float_operator. Do not declare as special_predicate.
2097 * config/i386/i386.c (struct builtin_description): Update for renamed
2099 (ix86_expand_args_builtin): Ditto.
2100 (ix86_expand_sse_compare_mask): Ditto.
2102 2011-04-06 Richard Guenther <rguenther@suse.de>
2104 * tree-inline.c (estimate_num_insns): For calls simply account
2105 for all passed arguments and a used return value.
2107 2011-04-06 Richard Guenther <rguenther@suse.de>
2109 PR tree-optimization/47663
2110 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2111 call_stmt_time fields.
2112 (cgraph_edge_inlinable_p): Declare.
2113 (cgraph_edge_recursive_p): New inline function.
2114 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2115 (cgraph_clone_edge): Copy it.
2116 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2117 Account for call stmt time.
2118 (cgraph_estimate_time_after_inlining): Take edge argument.
2119 (cgraph_estimate_edge_growth): Account call stmt size.
2120 (cgraph_estimate_size_after_inlining): Take edge argument.
2121 (cgraph_mark_inline_edge): Adjust.
2122 (cgraph_check_inline_limits): Likewise.
2123 (cgraph_recursive_inlining_p): Remove.
2124 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2125 (cgraph_decide_recursive_inlining): Take edge argument and
2127 (cgraph_decide_inlining_of_small_functions): Do not avoid
2128 diags for recursive inlining here.
2129 (cgraph_flatten): Adjust.
2130 (cgraph_decide_inlining_incrementally): Likewise.
2131 (estimate_function_body_sizes): Remove call cost handling.
2132 (compute_inline_parameters): Initialize caller edge call costs.
2133 (cgraph_estimate_edge_growth): New function.
2134 (cgraph_estimate_growth): Use it.
2135 (cgraph_edge_badness): Likewise.
2136 (cgraph_check_inline_limits): Take an edge argument.
2137 (cgraph_decide_inlining_of_small_functions): Adjust.
2138 (cgraph_decide_inlining): Likewise.
2139 * tree-inline.c (estimate_num_insns): Only account for call
2140 return value if it is used.
2141 (expand_call_inline): Avoid diagnostics on recursive inline
2143 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2144 (input_edge): Input edge call costs.
2146 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2148 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2150 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2152 * doc/invoke.texi (Spec Files): Fix typo.
2154 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2156 * profile.c (branch_prob): Move declaration of local variable. Remove
2157 obsolete ??? comment. Expand the location explicitly instead of using
2158 the LOCATION_FILE and LOCATION_LINE macros.
2160 2011-04-06 Wei Guozhi <carrot@google.com>
2163 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2164 (arm_cond_branch): Likewise.
2165 (arm_cond_branch_reversed): Likewise.
2166 (arm_jump): Likewise.
2167 (push_multi): Likewise.
2168 * config/arm/constraints.md (Py): New constraint.
2170 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2173 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2175 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2176 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2177 #ifdef DBX_DEBUGGING_INFO.
2179 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2182 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2183 if old and new states differ.
2185 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2187 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2188 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2189 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2190 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2191 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2193 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2194 ColdFire options to -mcpu= options.
2196 2011-04-05 Jeff Law <law@redhat.com>
2198 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2199 check if BB is a successor of LOOP->header and return
2200 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2202 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2204 * cprop.c (struct reg_use): Remove.
2205 (reg_use_table): Make an array of RTX.
2206 (find_used_regs, constprop_register, local_cprop_pass,
2207 bypass_block): Simplify users of reg_use_table.
2208 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2209 on one of the uses found by find_used_regs.
2211 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2214 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2217 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2219 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2221 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2223 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2226 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2228 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2230 * combine.c: Include obstack.h.
2231 (struct insn_link): Define.
2232 (uid_log_links): Adjust type.
2233 (FOR_EACH_LOG_LINK): New macro.
2234 (insn_link_obstack): Declare.
2235 (alloc_insn_link): Define.
2236 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2237 type of link variables.
2238 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2239 (try_combine, record_promoted_values, distribute_notes): Likewise.
2240 (distribute_links): Likewise. Tweak prototype.
2241 (clear_log_links): Delete.
2242 (adjust_for_new_dest): Call alloc_insn_link.
2243 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2245 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2247 * gcse.c (modify_mem_list): Convert to an array of VECs.
2248 (canon_modify_mem_list, compute_transp): Tweak formatting.
2249 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2250 (load_killed_in_block_p): Likewise.
2251 (record_last_mem_set_info): Likewise.
2252 (clear_modify_mem_tables): Likewise.
2254 2011-04-05 Tom de Vries <tom@codesourcery.com>
2257 * function.c (emit_use_return_register_into_block): Only define if
2260 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2262 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2264 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2266 * config/rx/rx-opts.h: New.
2267 * config/rx/rx.c (rx_cpu_type): Remove.
2268 (rx_handle_option): Don't assert that global structures are in
2269 use. Access variables via opts pointer. Defer most handling of
2270 OPT_mint_register_. Use error_at.
2271 (rx_option_override): Handle deferred OPT_mint_register_ here.
2272 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2273 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2274 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2275 (rx_cpu_types): New Enum and EnumValue entries.
2276 (mint-register=): Use Defer and use Var accordingly.
2278 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2280 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2281 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2282 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2284 (debug_free_queue, debug_nesting, symbol_queue_index):
2286 * dbxout.c: ...to here. Make static.
2288 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2290 * gcse.c (modify_pair): Define. Define a VEC of it.
2291 (canon_modify_mem_list): Convert to an array of VECs.
2292 (free_insn_expr_list_list): Delete.
2293 (clear_modify_mem_tables): Call VEC_free instead.
2294 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2295 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2296 (canon_list_insert, compute_transp): Likewise.
2298 2011-04-05 Tom de Vries <tom@codesourcery.com>
2301 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2304 2011-04-05 Tom de Vries <tom@codesourcery.com>
2307 * function.c (emit_use_return_register_into_block): New function.
2308 (thread_prologue_and_epilogue_insns): Use
2309 emit_use_return_register_into_block.
2311 2011-04-05 Tom de Vries <tom@codesourcery.com>
2314 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2317 2011-04-05 Tom de Vries <tom@codesourcery.com>
2319 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2321 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2323 * config/arm/arm.md (define_constants for unspec): Replace with
2325 (define_constants for unspecv): Replace with define_c_enum.
2326 * config/arm/neon.md (define_constants for unspec): Replace with
2329 2011-04-04 Richard Henderson <rth@redhat.com>
2332 * dwarf2out.c (output_line_info): Always emit line info from
2333 at least one section.
2334 (dwarf2out_init): Create text_section_line_info here ...
2335 (set_cur_line_info_table): ... not here.
2337 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2340 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2343 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2345 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2347 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2348 (expr_equiv_p): Remove.
2349 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2350 (hash_scan_set): Update call to insert_set_in_table.
2351 (dump_hash_table): Dump <dest, src> pair.
2352 (lookup_set): Simplify. Lookup <dest, src> pair.
2353 (compute_transp): Remove, fold heavily simplified code into...
2354 (compute_local_properties): ...here. Expect COMP and TRANSP
2356 (find_avail_set): Take set directly from struct expr.
2357 (find_bypass-set): Likewise.
2358 (bypass_block): Likewise.
2359 (cprop_insn): Likewise. Remove redundant INSN_P test.
2361 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2362 checks on form of COND from find_implicit_sets to here.
2363 (find_implicit_sets): Cleanup control flow. Split critical edges
2364 if it exposes implicit sets. Allocate/resize implicit_sets as
2366 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2367 changed something. Run df_analyze after find_implicit_sets if any
2368 edges were split. Do not allocate implicit_sets here.
2370 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2371 (gcse_obstack): Renamed to cprop_obstack.
2372 (GNEW, GNEWVEC, GNEWVAR): Remove.
2374 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2375 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2376 (gcse_alloc): Likewise, and rename to cprop_alloc.
2377 (alloc_gcse_men, free_gcse_mem): Remove.
2378 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2379 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2380 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2382 * cprop.c (oprs_not_set_p): Remove.
2383 (mark_set, mark_clobber): Remove.
2384 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2385 (reg_not_set_p): New function.
2386 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2387 (cprop_insn): Likewise.
2388 (cprop_jump): Use FOR_EACH_EDGE.
2390 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2393 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2394 (rank_for_schedule): Use scheduled_insns vector instead of
2395 last_scheduled_insn.
2396 (ok_for_early_queue_removal): Likewise.
2397 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2399 (choose_ready): Likewise.
2400 (commit_schedule): Use VEC_iterate.
2401 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2402 a dbg_cnt, use it and ensure the first insn is in the ready list.
2403 (haifa_sched_init): Allocate scheduled_insns.
2404 (sched_extend_ready_list): Don't allocate it; reserve space.
2405 (haifa_sched_finish): Free it.
2407 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2409 * optc-gen.awk: Always remove type from Variable entry before
2410 recording in var_seen.
2412 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2414 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2415 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2416 call to tidy_fallthru_edges.
2418 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2420 * doc/options.texi (ToLower): Document.
2421 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2422 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2423 * opts.h (cl_option): Add cl_tolower field.
2424 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2425 arguments with lowercase strings.
2426 * config/rx/rx.opt (mcpu=): Add ToLower.
2427 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2430 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2432 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2434 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2436 * config/vax/vax.c: Include reload.h.
2438 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2440 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2441 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2442 (sparc_preferred_reload_class): New function.
2444 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2447 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2448 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2450 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2452 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2453 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2455 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2457 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2458 (ASM_OUTPUT_ALIGNED_BSS): Define.
2460 2011-04-03 Michael Matz <matz@suse.de>
2462 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2463 and next_slot members.
2464 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2465 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2466 (lto_streamer_cache_append): Declare.
2467 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2468 unsigned index, remove offset parameter, ensure that we append
2469 or update existing entries.
2470 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2471 parameter, update next_slot for append.
2472 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2474 (lto_streamer_cache_insert_at): Likewise.
2475 (lto_streamer_cache_append): New function.
2476 (lto_streamer_cache_lookup): Use unsigned index.
2477 (lto_streamer_cache_get): Likewise.
2478 (lto_record_common_node): Don't test tree_node_can_be_shared.
2479 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2480 (lto_streamer_cache_delete): Don't free offsets member.
2481 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2482 (lto_output_string_with_length): Use lto_output_data_stream.
2483 (lto_output_tree_header): Remove ix parameter, don't write it.
2484 (lto_output_builtin_tree): Likewise.
2485 (lto_write_tree): Adjust callers to above, don't track and write
2486 offset, write unsigned index.
2487 (output_unreferenced_globals): Don't emit all global vars.
2488 (write_global_references): Use unsigned indices.
2489 (lto_output_decl_state_refs): Likewise.
2490 (write_symbol): Likewise.
2491 * lto-streamer-in.c (lto_input_chain): Move earlier.
2492 (input_function): Use unsigned index.
2493 (input_alias_pairs): Don't read and then ignore all global vars.
2494 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2495 don't pass it back, use lto_streamer_cache_append.
2496 (lto_register_var_decl_in_symtab): Use unsigned index.
2497 (lto_register_function_decl_in_symtab): Likewise.
2498 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2500 (lto_get_builtin_tree): Don't read index, use
2501 lto_streamer_cache_append.
2502 (lto_read_tree): Adjust call to lto_materialize_tree.
2504 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2505 don't use function calls in arguments to MIN.
2507 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2510 * gimple.c (gimple_type_leader_entry): Mark deletable.
2512 2011-04-03 Alan Modra <amodra@gmail.com>
2514 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2516 2011-04-03 Michael Matz <matz@suse.de>
2518 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2520 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2522 2011-04-03 Michael Matz <matz@suse.de>
2524 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2525 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2526 without function context.
2527 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2528 current_function_decl and cfun.
2530 2011-04-03 Michael Matz <matz@suse.de>
2532 * tree.c (decl_init_priority_insert): Don't create entry for
2534 (decl_fini_priority_insert): Ditto.
2535 (fields_compatible_p, find_compatible_field): Remove.
2536 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2537 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2539 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2541 * combine.c (try_combine): Remove useless local variable.
2543 2011-04-03 Richard Guenther <rguenther@suse.de>
2544 Ira Rosen <ira.rosen@linaro.org>
2546 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2547 non-variable offsets and compare the remaining bases of the two
2548 accesses instead of looking for exact same data-ref.
2550 2011-04-02 Kai Tietz <ktietz@redhat.com>
2553 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2555 * i386.c (ix86_is_msabi_thiscall): New helper function.
2556 (ix86_is_type_thiscall): New helper function.
2557 (ix86_comp_type_attributes): Handle thiscall for method-functions
2559 (init_cumulative_args): Likewise.
2560 (find_drap_reg): Likewise.
2561 (ix86_static_chain): Likewise.
2562 (x86_this_parameter): Likewise.
2563 (x86_output_mi_thunk): Likewise.
2565 2011-04-01 Olivier Hainque <hainque@adacore.com>
2566 Nicolas Setton <setton@adacore.com>
2567 Eric Botcazou <ebotcazou@adacore.com>
2569 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2570 (add_gnat_descriptive_type_attribute): New function.
2571 (gen_array_type_die): Call it.
2572 (gen_enumeration_type_die): Likewise.
2573 (gen_struct_or_union_type_die): Likewise.
2574 (modified_type_die): Likewise.
2575 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2576 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2577 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2579 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2582 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2583 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2586 2011-03-17 Richard Guenther <rguenther@suse.de>
2589 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2590 origin for decls in other ltrans units.
2591 (input_varpool_node): Likewise.
2593 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2596 * expr.c (expand_assignment): Handle all possibilities
2597 if TO_RTX is CONCAT.
2598 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2599 (store_split_bit_field): If SUBREG_REG (op0) or
2600 op0 itself has smaller mode than word, return it
2601 for offset 0 and const0_rtx for out-of-bounds stores.
2602 If word is const0_rtx, skip it.
2604 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2606 * config/h8300/h8300.c (print_operand_address): Rename to...
2607 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2608 Call h8300_print_operand and h8300_print_operand_address instead of
2609 print_operand and print_operand_address. Declare.
2610 (print_operand): Renake to...
2611 (h8300_print_operand): ...this. Make static. Adjust comments.
2612 Call h8300_print_operand instead of print_operand. Declare.
2613 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2614 (h8300_register_move_cost): Likewise.
2615 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2616 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2617 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2618 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2619 * config/h8300/h8300-protos.h (print_operand): Delete.
2620 (print_operand_address): Delete.
2622 2011-04-01 Richard Henderson <rth@redhat.com>
2625 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2626 in strict mode before dwarf4. Re-order tests to early out
2627 before switching sections.
2629 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2631 * config/h8300/constraints.md: New file.
2632 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2633 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2634 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2635 * config/h8300/predicates.md (bit_operand): Likewise.
2636 (incdec_operand): Use satisfies_constraint_M and
2637 satisfies_constraint_O. Don't use C code block.
2638 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2639 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2640 (compute_mov_length): Use satisfies_constraint_G.
2641 (fix_bit_operand): Use satisfies_constraint_U.
2642 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2643 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2644 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2645 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2646 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2647 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2648 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2649 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2650 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2651 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2652 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2653 (EXTRA_MEMORY_CONSTRAINT): Delete.
2655 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2656 Michael Meissner <meissner@linux.vnet.ibm.com>
2659 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2660 operands, as per the specifications.
2662 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2663 (vec_extract_evenv4sf): Ditto.
2664 (vec_extract_evenv8hi): Ditto.
2665 (vec_extract_evenv16qi): Ditto.
2666 (vec_extract_oddv4si): Ditto.
2668 2011-03-31 Mark Wielaard <mjw@redhat.com>
2670 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2671 high_pc attribute if the CU has no associated code. Only output
2672 DW_AT_entry_pc for CU if not generating strict dwarf and
2675 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2677 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2678 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2680 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2681 * final.c (final_start_function): Call the new function rather
2682 than using a NULL argument for dwarf2out_frame_debug.
2684 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2685 that contains the prologue.
2687 * haifa-sched.c (queue_insn): New arg REASON. All callers
2688 changed. Print it in debugging output.
2690 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2692 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2693 Split most of the code into...
2694 (begin_move_insn): ... here. New function.
2695 (ebb_sched_info): Add a pointer to it.
2696 * haifa-sched.c (scheduled_insns): New static variable.
2697 (sched_extend_ready_list): Allocate it.
2698 (schedule_block): Use it to record the order of scheduled insns.
2699 Perform RTL changes to move insns only after all scheduling
2700 decisions have been made.
2701 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2702 begin_move_insn field.
2703 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2704 * sched-int.h (struct haifa_sched_info): Remove second argument
2705 from begin_schedule_ready hook. Add new member begin_move_insn.
2706 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2707 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2709 * haifa-sched.c (prune_ready_list): New function, broken out of
2711 (schedule_block): Use it.
2713 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2715 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2717 2011-04-01 Kai Tietz <ktietz@redhat.com>
2719 * config.gcc (*-*-mingw*): Allow as option the
2720 posix threading model.
2721 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2722 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2724 (CPP_SPEC): Add pthread/no-pthread handling.
2725 (LIB_SPEC): Likewise.
2726 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2727 (LIB_SPEC): Likewise.
2728 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2729 flag to pass -pthread option for shared libgcc build.
2730 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2731 for shared libgcc build.
2732 * config/i386/t-mingw-pthread: New file.
2733 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2734 New define to enable use of library pthread by default.
2735 * config/i386/mingw.opt (pthread): New driver option.
2736 (no-pthread): New driver option.
2737 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2738 * config/i386/mingw-w64.opt: Likewise.
2740 2011-04-01 Gary Funck <gary@intrepid.com>
2742 * c-decl.c (grokdeclarator): Fix formatting.
2744 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2746 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2747 instead of n_operands.
2748 (set_storage_via_setmem): Likewise.
2749 * optabs.c (maybe_gen_insn): Likewise.
2750 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2751 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2752 (mips_expand_builtin_direct): Likewise.
2753 * config/spu/spu.c (expand_builtin_args): Likewise.
2755 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2757 * recog.h (insn_data_d): Add n_generator_args.
2758 * genoutput.c (data): Likewise.
2759 (output_insn_data): Print it.
2760 (max_opno, num_dups): Delete.
2761 (scan_operands): Just fill in "d->operand[...]".
2762 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2764 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2766 * gensupport.h (pattern_stats): New structure.
2767 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2768 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2769 (max_operand_1, max_operand_vec): Delete.
2770 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2772 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2774 * emit-rtl.c (emit_pattern_after_setloc): New function.
2775 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2776 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2777 (emit_pattern_after): New function.
2778 (emit_insn_after, emit_jump_insn_after): Call it.
2779 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2780 (emit_pattern_before_setloc): New function.
2781 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2782 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2784 (emit_pattern_before): New function.
2785 (emit_insn_before, emit_jump_insn_before): Call it.
2786 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2788 2011-03-31 Richard Henderson <rth@redhat.com>
2790 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2791 (dw_separate_line_info_entry): Remove.
2792 (enum dw_line_info_opcode): New.
2793 (dw_line_info_entry): Use it.
2794 (dw_line_info_table, dw_line_info_table_p): New.
2795 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2796 (line_info_table, line_info_label_num): Remove.
2797 (line_info_table_in_use): Remove.
2798 (separate_line_info_table): Remove.
2799 (separate_line_info_table_allocated): Remove.
2800 (separate_line_info_table_in_use): Remove.
2801 (LINE_INFO_TABLE_INCREMENT): Remove.
2802 (line_info_label_num): New.
2803 (cur_line_info_table): New.
2804 (text_section_line_info, cold_text_section_line_info): New.
2805 (separate_line_info): New.
2806 (SEPARATE_LINE_CODE_LABEL): Remove.
2807 (print_dwarf_line_table): Remove.
2808 (debug_dwarf): Don't dump it.
2809 (output_one_line_info_table): New.
2810 (output_line_info): Use it.
2811 (new_line_info_table): New.
2812 (set_cur_line_info_table): New.
2813 (dwarf2out_switch_text_section): Use it.
2814 (dwarf2out_begin_function): Likewise.
2815 (push_dw_line_info_entry): New.
2816 (dwarf2out_source_line): Rewrite for new line info tables.
2817 (dwarf2out_init): Remove dead initailizations.
2819 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2821 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2823 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2824 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2825 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2826 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2827 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2828 * opt-functions.awk (flag_init, switch_bit_fields): New.
2829 (switch_flags): Don't handle flags moved to bit-fields. Don't
2830 generate CL_MISSING_OK or CL_SAVE.
2831 * optc-gen.awk: Update to generate bit-field output as well as
2833 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2834 bit-field instead of CL_REJECT_DRIVER flag.
2835 * opts-common.c (generate_canonical_option,
2836 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2837 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2838 instead of CL_REJECT_NEGATIVE flag.
2839 * toplev.c (print_switch_values): Use cl_report bit-field instead
2842 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2844 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2845 a zero minimum index only if it is redundant.
2847 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2849 PR rtl-optimization/48381
2850 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2851 instead of ira_class_hard_reg_index for calculating conflicting
2854 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2856 * cprop.c: Clean up hash table building.
2857 (reg_avail_info): Remove.
2858 (oprs_available_p): Remove.
2859 (record_last_reg_set_info): Remove.
2860 (record_last_set_info): Remove.
2861 (reg_available_p): New function.
2862 (gcse_constant_p): Do not treat unfolded conditions as constants.
2863 (make_set_regs_unavailable): New function.
2864 (hash_scan_set): Simplify with new reg_available_p.
2865 (compute_hash_table_work): Traverse insns stream only once.
2866 Do not compute reg_avail_info. Traverse insns in reverse order.
2867 Record implicit sets after recording explicit sets from the block.
2869 2011-03-31 Michael Matz <matz@suse.de>
2871 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2873 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2875 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2876 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2877 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2878 (h8300_mode_dependent_address_p): New function.
2879 (h8300_get_index): Make static.
2881 2011-03-31 Jeff Law <law@redhat.com>
2883 * reload1.c (elimination_effects): Fix typo in recent change.
2885 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2886 typo potentially leading to null pointer dereference.
2888 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2889 (setup_save_areas): Corresponding changes to avoid useless
2892 * jump.c (reversed_comparison_code_parts): Avoid successive return
2893 statements when REVERSE_CONDITION is defined.
2895 * expr.c (expand_assignment): Avoid useless assignments.
2896 (expand_expr_real_1): Likewise.
2897 (expand_expr_real_2): Avoid useless statements.
2899 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2901 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2903 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2906 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2908 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2911 * doc/tm.texi.in (TARGET_VERSION): Remove.
2912 * doc/tm.texi: Regenerate.
2913 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2914 * collect2.c (main): Don't use TARGET_VERSION.
2915 * mips-tdump.c (main): Don't use TARGET_VERSION.
2916 * mips-tfile.c (main): Don't use TARGET_VERSION.
2917 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2918 * config/rs6000/vxworksae.h: Remove.
2919 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2920 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2921 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2922 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2923 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2924 * config/arm/arm.h (TARGET_VERSION): Remove.
2925 * config/arm/coff.h (TARGET_VERSION): Remove.
2926 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2927 * config/arm/elf.h (TARGET_VERSION): Remove.
2928 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2929 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2930 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2931 * config/arm/pe.h (TARGET_VERSION): Remove.
2932 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2933 * config/arm/semi.h (TARGET_VERSION): Remove.
2934 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2935 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2936 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2937 * config/avr/avr.h (TARGET_VERSION): Remove.
2938 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2939 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2940 * config/frv/frv.h (TARGET_VERSION): Remove.
2941 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2942 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2943 * config/i386/darwin.h (TARGET_VERSION): Remove.
2944 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2945 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2946 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2947 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2948 * config/i386/gnu.h (TARGET_VERSION): Remove.
2949 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2950 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2951 * config/i386/linux.h (TARGET_VERSION): Remove.
2952 * config/i386/linux64.h (TARGET_VERSION): Remove.
2953 * config/i386/lynx.h (TARGET_VERSION): Remove.
2954 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2955 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2956 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2957 * config/i386/netware.h (TARGET_VERSION): Remove.
2958 * config/i386/nto.h (TARGET_VERSION): Remove.
2959 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2960 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2961 * config/ia64/elf.h (TARGET_VERSION): Remove.
2962 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2963 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2964 * config/ia64/linux.h (TARGET_VERSION): Remove.
2965 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2966 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2967 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2968 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2969 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2970 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2971 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2972 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2973 * config/m68k/linux.h (TARGET_VERSION): Remove.
2974 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2975 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2976 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2977 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2978 * config/mep/mep.h (TARGET_VERSION): Remove.
2979 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2980 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2981 * config/mips/iris6.h (MACHINE_TYPE): Remove.
2982 * config/mips/linux.h (TARGET_VERSION): Remove.
2983 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2984 * config/mips/vxworks.h (TARGET_VERSION): Remove.
2985 * config/mmix/mmix.h (TARGET_VERSION): Remove.
2986 * config/mn10300/linux.h (TARGET_VERSION): Remove.
2987 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2988 * config/pa/pa.h (TARGET_VERSION): Remove.
2989 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2990 * config/picochip/picochip.h (TARGET_VERSION): Remove.
2991 * config/rs6000/aix.h (TARGET_VERSION): Remove.
2992 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2993 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2994 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2995 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2996 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2997 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2998 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2999 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3000 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3001 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3002 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3003 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3004 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3005 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3006 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3007 * config/s390/linux.h (TARGET_VERSION): Remove.
3008 * config/s390/s390.h (TARGET_VERSION): Remove.
3009 * config/s390/tpf.h (TARGET_VERSION): Remove.
3010 * config/score/score.h (TARGET_VERSION): Remove.
3011 * config/sh/linux.h (TARGET_VERSION): Remove.
3012 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3013 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3014 * config/sh/sh.h (TARGET_VERSION): Remove.
3015 * config/sh/sh64.h (TARGET_VERSION): Remove.
3016 * config/sh/superh.h (TARGET_VERSION): Remove.
3017 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3018 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3019 * config/sparc/linux.h (TARGET_VERSION): Remove.
3020 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3021 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3022 TARGET_NAME32, TARGET_NAME): Remove.
3023 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3024 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3025 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3026 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3027 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3028 * config/spu/spu.h (TARGET_VERSION): Remove.
3029 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3030 * config/v850/v850.h (TARGET_VERSION): Remove.
3031 * config/vax/linux.h (TARGET_VERSION): Remove.
3032 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3033 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3034 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3036 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3039 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3040 frame-related from frame-unrelated adjustments to the stack pointer.
3042 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3044 * common.opt (fdebug-types-section): Move earlier.
3045 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3047 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3049 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3052 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3054 * tree.h (CASE_CHAIN): Define.
3055 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3056 (gimple_redirect_edge_and_branch): Likewise.
3058 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3061 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3064 2011-03-30 Jeff Law <law@redhat.com>
3066 * PR bootstrap/48371
3067 * reload1.c (reload): Fix botch in last change.
3069 * reload.h (struct reload): Fix typo introduced in last change.
3071 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3073 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3074 Undocumented. Remove help text.
3075 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3078 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3080 * doc/options.texi (NegativeAlias): Document.
3081 (Alias): Mention NegativeAlias.
3082 * opt-functions.awk: Handle NegativeAlias.
3083 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3084 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3085 * opts.h (CL_NEGATIVE_ALIAS): Define.
3086 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3087 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3089 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3091 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3092 mno-spe and mno-isel instead of mspe=no and -misel=no.
3094 2011-03-29 Mark Wielaard <mjw@redhat.com>
3096 * common.opt (fdebug-types-section): New flag.
3097 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3098 * dwarf2out.c (use_debug_types): New define.
3099 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3100 (print_die): Guard output of type unit signatures using
3102 (build_abbrev_table): Replace assert of dwarf_version >= 4
3103 with assert on use_debug_types.
3104 (size_of_die): Likewise.
3105 (unmark_dies): Likewise.
3106 (value_format): Decide AT_ref_external form on use_debug_types.
3107 (output_die): Replace dwarf_version version check guard with
3108 use_debug_types where appropriate.
3109 (modified_type_die): Likewise.
3110 (gen_reference_type_die): Likewise.
3111 (dwarf2out_start_source_file): Likewise.
3112 (dwarf2out_end_source_file): Likewise.
3113 (prune_unused_types_walk_attribs): Likewise.
3114 (dwarf2out_finish): Likewise.
3116 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3118 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3120 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3122 PR rtl-optimization/48332
3123 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3124 mode of input operand N and modeN to its actual mode.
3126 2011-03-30 Jeff Law <law@redhat.com>
3128 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3129 define accessor macro.
3130 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3131 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3132 (reg_equiv_init): Likewise.
3133 (reg_equivs_size): New variable.
3134 (reg_equiv_init_size): Remove.
3135 (allocate_initial_values): Move prototype to here from....
3136 * integrate.h (allocate_initial_values): Remove prototype.
3137 * integrate.c: Include reload.h.
3138 (allocate_initial_values): Corresponding changes.
3139 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3140 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3141 (update_equiv_regs): Corresponding changes.
3142 (ira): Corresponding changes.
3143 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3144 (push_secondary_reload): Corresponding changes.
3145 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3146 (make_memloc, find_reloads_address): Corresponding changes.
3147 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3148 (find_reloads_address_1): Corresponding changes.
3149 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3150 (refers_to_regno_for_reload_p): Corresponding changes.
3151 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3152 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3153 * reload1.c: Include ggc.h.
3154 (grow_reg_equivs): New function.
3155 (replace_pseudos_in, reload): Corresponding changes.
3156 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3157 (eliminate_regs_1, elimination_effects): Corresponding changes.
3158 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3159 (delete_output_reload): Likewise.
3160 * caller-save.c (mark_referenced_regs): Corresponding changes.
3161 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3162 * frv/predicates.md (frv_load_operand): Corresponding changes.
3163 * microblaze/microblaze.c (double_memory_operand): Corresponding
3165 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3166 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3167 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3168 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3169 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3171 * pa/pa.c (emit_move_sequence): Corresponding changes.
3172 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3174 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3177 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3178 structure modes. Don't check neon_vector_mem_operand for
3179 vector or structure modes.
3181 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3182 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3185 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3186 operand 1 and reshuffle the operands to match.
3187 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3189 2011-03-30 Christian Schüler <cschueler@gmx.de>
3192 * config/c.opt (F): Added 'Driver' to -F option.
3195 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3197 * config/darwin.opt: Added '-arch' option.
3199 2011-03-30 Nick Clifton <nickc@redhat.com>
3201 * config/rx/rx.md: Add peepholes and patterns to combine
3202 extending loads and simple arithmetic instructions.
3203 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3204 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3205 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3206 modes to use pre-decrement and post-increment addressing.
3207 (rx_is_restricted_memory_address): Add range checking of REG+INT
3209 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3210 (rx_memory_move_cost): Adjust cost of stores.
3211 (rx_adjust_insn_length): New function.
3213 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3216 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3217 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3218 matching arg00/arg01 types.
3220 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3222 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3223 last_location to UNKNOWN_LOCATION.
3225 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3228 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3231 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3232 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3235 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3237 (sparc_cpu): Likewise.
3238 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3241 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3245 PR rtl-optimization/48345
3246 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3247 hard regs for given mode from profitable regs when doing secondary
3250 2011-03-29 Jeff Law <law@redhat.com>
3253 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3254 do_not_duplicate field.
3255 (lookup_redirection_data): Corresponding changes.
3256 (create_duplicates): Always create a template block.
3257 (redirect_edges): Remove code which reused the original block
3258 when it was going to become unreachable code.
3259 (thread_block): Don't set do_not_duplicate field.
3261 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3263 * lto-opts.c (register_user_option_p, lto_register_user_option):
3264 Make type argument unsigned.
3265 * lto-streamer.h (lto_register_user_option): Make type argument
3267 * opth-gen.awk: Make CL_* macros unsigned.
3268 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3269 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3270 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3271 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3272 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3273 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3274 (find_opt): Make lang_mask argument unsigned.
3276 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3278 PR rtl-optimization/48331
3279 PR rtl-optimization/48334
3280 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3281 for any used algorithm.
3283 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3285 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3288 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3290 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3291 (alpha_option_override): Don't set alpha_sr_alias_set.
3292 (emit_frame_store_1): Use gen_frame_mem rather than calling
3294 (alpha_expand_epilogue): Ditto.
3296 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3298 PR tree-optimization/48290
3299 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3300 vectorization, check that relevant phis in the basic block after
3301 the inner loop are really inner loop's exit phis.
3303 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3306 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3307 (cached_dw_loc_list_def): New structure.
3308 (cached_dw_loc_list): New typedef.
3309 (cached_dw_loc_list_table): New variable.
3310 (cached_dw_loc_list_table_hash): New function.
3311 (cached_dw_loc_list_table_eq): Likewise.
3312 (add_location_or_const_value_attribute): Take a bool cache_p.
3313 Cache the list when the parameter is true.
3314 (gen_formal_parameter_die): Update caller.
3315 (gen_variable_die): Likewise.
3316 (dwarf2out_finish): Likewise.
3317 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3318 while generating debug info for the decl.
3319 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3320 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3321 (resolve_addr): Cache the result of resolving a chain of
3324 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3326 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3327 conflict object hard regset nodes have intersecting hard reg sets.
3329 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3330 after regstat_init_n_sets_and_refs.
3332 * ira.c: Add more comments at the top.
3333 (setup_stack_reg_pressure_class, setup_pressure_classes):
3334 Add comments how we compute the register pressure classes.
3335 (setup_allocno_and_important_classes): Add more comments.
3336 (setup_class_translate_array, reorder_important_classes)
3337 (setup_reg_class_relations): Add comments.
3339 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3342 * ira-color.c: Add 2011 to the Copyright line.
3343 (assign_hard_reg): Add more comments.
3344 (improve_allocation): Ditto.
3346 * ira-costs.c: Add 2011 to the Copyright line.
3347 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3349 (setup_regno_cost_classes_by_mode): Ditto.
3351 Initial patches from ira-improv branch:
3353 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3355 * ira-build.c (ira_create_object): Remove initialization of
3356 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3357 (ira_create_allocno): Remove initialization of
3358 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3359 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3360 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3361 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3362 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3363 Initialize ALLOCNO_ADD_DATA.
3364 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3365 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3367 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3368 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3370 * ira.c (ira_reallocate): Remove.
3371 (setup_pressure_classes): Call
3372 ira_init_register_move_cost_if_necessary. Use
3373 ira_register_move_cost instead of ira_get_register_move_cost.
3374 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3375 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3377 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3378 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3379 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3380 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3381 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3382 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3384 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3385 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3386 (struct allocno_color_data): New.
3387 (allocno_color_data_t): New typedef.
3388 (allocno_color_data): New definition.
3389 (ALLOCNO_COLOR_DATA): New macro.
3390 (struct object_color_data): New.
3391 (object_color_data_t): New typedef.
3392 (object_color_data): New definition.
3393 (OBJECT_COLOR_DATA): New macro.
3394 (update_copy_costs, calculate_allocno_spill_cost): Call
3395 ira_init_register_move_cost_if_necessary. Use
3396 ira_register_move_cost instead of ira_get_register_move_cost.
3397 (move_spill_restore, update_curr_costs): Ditto.
3398 (allocno_spill_priority): Make it inline.
3399 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3400 (struct coalesce_data, coalesce_data_t): New.
3401 (allocno_coalesce_data): New definition.
3402 (ALLOCNO_COALESCE_DATA): New macro.
3403 (merge_allocnos, coalesced_allocno_conflict_p): Use
3404 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3405 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3406 (coalesce_allocnos): Ditto.
3407 (setup_coalesced_allocno_costs_and_nums): Ditto.
3408 (collect_spilled_coalesced_allocnos): Ditto.
3409 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3410 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3411 (coalesce_spill_slots): Ditto.
3412 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3413 free allocno_coalesce_data.
3415 * ira-conflicts.c: Fix formatting.
3416 (process_regs_for_copy): Call
3417 ira_init_register_move_cost_if_necessary. Use
3418 ira_register_move_cost instead of ira_get_register_move_cost.
3419 (build_object_conflicts): Optimize.
3421 * ira-costs.c (record_reg_classes): Optimize. Call
3422 ira_init_register_move_cost_if_necessary. Use
3423 ira_register_move_cost, ira_may_move_in_cost, and
3424 ira_may_move_out_cost instead of ira_get_register_move_cost and
3425 ira_get_may_move_cost.
3426 (record_address_regs): Ditto.
3427 (scan_one_insn): Optimize.
3428 (find_costs_and_classes): Optimize.
3429 (process_bb_node_for_hard_reg_moves): Call
3430 ira_init_register_move_cost_if_necessary. Use
3431 ira_register_move_cost instead of ira_get_register_move_cost.
3433 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3434 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3435 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3436 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3438 (ira_initiate_emit_data, ira_finish_emit_data)
3439 (create_new_allocno): New functions.
3440 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3441 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3442 Use ira_register_move_cost instead of ira_get_register_move_cost.
3444 * ira-int.h: Fix some comments.
3445 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3446 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3447 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3448 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3450 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3451 bitfield after mode. Make hard_regno a short int. Make
3452 hard_regno short. Remove first_coalesced_allocno and
3453 next_coalesced_allocno. Move mem_optimized_dest_p,
3454 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3455 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3456 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3457 temp, colorable_p. Add new member add_data.
3458 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3459 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3460 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3461 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3462 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3463 (ALLOCNO_ADD_DATA): New macro.
3464 (ira_emit_data_t): New typedef.
3465 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3466 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3467 from struct ira_allocno.
3468 (ALLOCNO_EMIT_DATA): New macro.
3469 (ira_allocno_emit_data, allocno_emit_reg): New.
3470 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3471 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3472 (OBJECT_ADD_DATA): New macro.
3473 (ira_reallocate): Remove.
3474 (ira_initiate_emit_data, ira_finish_emit_data): New.
3475 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3476 (ira_init_register_move_cost_if_necessary): New.
3477 (ira_object_conflict_iter_next): Merge into
3478 ira_object_conflict_iter_cond.
3479 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3481 * ira-live.c (process_single_reg_class_operands): Call
3482 ira_init_register_move_cost_if_necessary. Use
3483 ira_register_move_cost instead of ira_get_register_move_cost.
3485 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3487 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3489 * ira-costs.c: Fix formatting.
3490 (cost_classes, cost_classes_num): Remove.
3491 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3492 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3493 (cost_classes_del, cost_classes_htab): New.
3494 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3495 (initiate_regno_cost_classes, setup_cost_classes): New.
3496 (setup_regno_cost_classes_by_aclass): New.
3497 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3498 (record_reg_classes): Use regno_cost_classes instead of
3499 cost_classes. Move checking opposite operand up.
3500 (record_address_regs): Use regno_cost_classes
3501 instead of cost_classes.
3502 (scan_one_insn): Ditto. Use always general register.
3503 (print_allocno_costs): Use regno_cost_classes instead of
3505 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3506 (find_costs_and_classes): Set up cost classes for each registers.
3507 Use also their mode for this. Use regno_cost_classes instead of
3509 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3511 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3512 (ira_costs, ira_set_pseudo_classes): Call
3513 initiate_regno_cost_classes and finish_regno_cost_classes.
3515 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3517 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3519 * target.def (ira_cover_classes): Remove.
3521 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3523 * doc/tm.texi.in: Ditto.
3525 * ira-conflicts.c: Remove mentioning cover classes from the file.
3526 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3527 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3529 * targhooks.c (default_ira_cover_classes): Remove.
3531 * targhooks.h (default_ira_cover_classes): Ditto.
3533 * haifa-sched.c: Remove mentioning cover classes from the file.
3534 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3535 ira_pressure_classes and ira_pressure_classes_num instead of
3536 ira_reg_class_cover_size and ira_reg_class_cover. Use
3537 sched_regno_pressure_class instead of sched_regno_cover_class.
3538 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3539 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3541 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3542 classes from the file.
3543 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3544 (struct object_hard_regs, struct object_hard_regs_node): New.
3545 (struct ira_object): New members profitable_hard_regs,
3546 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3547 (struct ira_allocno): Rename cover_class to aclass. Rename
3548 cover_class_cost and updated_cover_class_cost to class_cost and
3549 updated_class_cost. Remove splay_removed_p and
3550 left_conflict_size. Add new members colorable_p.
3551 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3552 (ALLOCNO_COLORABLE_P): New macro.
3553 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3554 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3555 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3556 (OBJECT_...): Rename parameter C to O.
3557 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3558 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3559 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3560 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3561 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3562 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3563 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3564 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3565 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3566 x_ira_reg_class_subunion.
3567 (ira_max_memory_move_cost, ira_max_register_move_cost)
3568 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3569 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3570 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3571 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3572 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3573 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3574 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3575 (ira_tune_allocno_costs_and_cover_classes): Rename to
3576 ira_tune_allocno_costs.
3577 (ira_debug_hard_regs_forest): New.
3578 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3579 (ira_object_conflict_iter_next): Fix comments.
3580 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3581 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3582 cover_class to aclass.
3583 (ira_allocate_and_accumulate_costs): Ditto.
3584 (ira_allocate_and_set_or_copy_costs): Ditto.
3586 * opts.c (decode_options): Remove ira_cover_class check.
3588 * ira-color.c: Remove mentioning cover classes from the file. Use
3589 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3590 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3591 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3592 (splay-tree.h): Remove include.
3593 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3594 before copy_freq_compare_func.
3595 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3596 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3598 (hard_regs_roots, hard_regs_node_vec): Ditto.
3599 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3600 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3601 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3602 (create_new_object_hard_regs_node): Ditto.
3603 (add_new_object_hard_regs_node_to_forest): Ditto.
3604 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3605 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3607 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3608 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3609 (remove_unused_object_hard_regs_nodes): Ditto.
3610 (enumerate_object_hard_regs_nodes): Ditto.
3611 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3612 (object_hard_regs_subnode_t): Ditto.
3613 (struct object_hard_regs_subnode): Ditto.
3614 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3615 (setup_object_hard_regs_subnode_index): Ditto.
3616 (get_object_hard_regs_subnodes_num): Ditto.
3617 (form_object_hard_regs_nodes_forest): Ditto.
3618 (finish_object_hard_regs_nodes_tree): Ditto.
3619 (finish_object_hard_regs_nodes_forest): Ditto.
3620 (allocnos_have_intersected_live_ranges_p): Rename to
3621 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3622 (pseudos_have_intersected_live_ranges_p): Rename to
3623 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3624 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3625 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3626 (update_copy_costs): Remove assert. Skip cost update if the hard
3627 reg does not belong the class.
3628 (assign_hard_reg): Process only profitable hard regs.
3629 (uncolorable_allocnos_num): Make it scalar.
3630 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3631 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3632 and ira_reg_class_max_nregs.
3633 (bucket_allocno_compare_func): Check frequency first.
3634 (sort_bucket): Add compare function as a parameter.
3635 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3636 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3637 (push_allocno_to_stack): Rewrite for checking new allocno
3639 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3640 (push_only_colorable): Pass new parameter to sort_bucket.
3641 (push_allocno_to_spill): Remove.
3642 (allocno_spill_priority_compare): Make it inline and rewrite.
3643 (splay_tree_allocate, splay_tree_free): Remove.
3644 (allocno_spill_sort_compare): New function.
3645 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3646 build and use splay tree. Choose first allocno in uncolorable
3647 allocno bucket to spill. Remove setting spill cost.
3648 (all_conflicting_hard_regs): Remove.
3649 (setup_allocno_available_regs_num): Check only profitable hard
3650 regs. Print info about hard regs nodes.
3651 (setup_allocno_left_conflicts_size): Remove.
3652 (put_allocno_into_bucket): Don't call
3653 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3654 (improve_allocation): New.
3655 (color_allocnos): Call setup_profitable_hard_regs,
3656 form_object_hard_regs_nodes_forest, improve_allocation,
3657 finish_object_hard_regs_nodes_forest. Setup spill cost.
3658 (print_loop_title): Use pressure classes.
3659 (color_allocnso): Ditto.
3660 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3661 and allocnos_for_spilling.
3662 (ira_sort_regnos_for_alter_reg): Don't setup members
3663 {first,next}_coalesced_allocno.
3664 (color): Remove allocating and freeing removed_splay_allocno_vec.
3665 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3666 prohibited_class_mode_regs.
3668 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3670 (update_allocno_pressure_excess_length): Use pressure classes.
3671 (inc_register_pressure, dec_register_pressure): Check for pressure
3673 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3674 pressure class. Use ira_reg_class_nregs instead of
3675 ira_reg_class_max_nregs.
3676 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3677 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3678 (single_reg_class): Use ira_reg_class_nregs instead of
3679 ira_reg_class_max_nregs.
3680 (process_bb_node_lives): Use pressure classes.
3682 * ira-emit.c: Remove mentioning cover classes from the file. Use
3683 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3684 (change_loop): Use pressure classes.
3685 (modify_move_list): Call ira_set_allocno_class instead of
3686 ira_set_allocno_cover_class.
3688 * ira-build.c: Remove mentioning cover classes from the file. Use
3689 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3690 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3691 ALLOCNO_UPDATED_CLASS_COST instead of
3692 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3693 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3694 (ira_create_allocno): Remove initialization of
3695 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3696 ALLOCNO_COLORABLE_P.
3697 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3698 Update conflict regs for the objects.
3699 (create_cap_allocno): Remove assert. Don't propagate
3700 ALLOCNO_AVAILABLE_REGS_NUM.
3701 (ira_free_allocno_costs): New function.
3702 (finish_allocno): Change a part of code into call of
3703 ira_free_allocno_costs.
3704 (low_pressure_loop_node_p): Use pressure classes.
3705 (object_range_compare_func): Don't compare classes.
3706 (setup_min_max_conflict_allocno_ids): Ditto.
3708 * loop-invariant.c: Remove mentioning cover classes from the file.
3709 Use ira_pressure_classes and ira_pressure_classes_num instead of
3710 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3711 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3712 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3713 Use reg_allocno_class instead of reg_cover_class.
3714 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3715 STACK_REG_COVER_CLASS.
3716 (get_regno_cover_class): Rename to get_regno_pressure_class.
3717 (move_loop_invariants): Initialize and finalize regstat.
3719 * ira.c: Remove mentioning cover classes from the file. Add
3720 comments about coloring without cover classes. Use ALLOCNO_CLASS
3721 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3722 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3723 setup_class_subset_and_memory_move_costs.
3724 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3725 (setup_cover_and_important_classes): Rename to
3726 setup_allocno_and_important_classes.
3727 (setup_class_translate_array): New.
3728 (setup_class_translate): Call it for allocno and pressure classes.
3729 (cover_class_order): Rename to allocno_class_order.
3730 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3731 of ira_class_translate.
3732 (reorder_important_classes): Set up ira_important_class_nums.
3733 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3734 (print_class_cover): Rename to print_classes. Add parameter.
3735 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3736 Print pressure classes too.
3737 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3738 setup_reg_subclasses.
3739 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3740 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3741 (setup_prohibited_class_mode_regs): Use
3742 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3743 (clarify_prohibited_class_mode_regs): New function.
3744 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3745 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3746 (ira_init_once): Initialize them.
3747 (free_register_move_costs): Process them.
3748 (ira_init): Move calls of find_reg_classes and
3749 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3750 Call clarify_prohibited_class_mode_regs.
3751 (ira_no_alloc_reg): Remove.
3752 (too_high_register_pressure_p): Use pressure classes.
3754 * sched-deps.c: Remove mentioning cover classes from the file.
3755 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3756 ira_pressure_classes and ira_pressure_classes_num instead of
3757 ira_reg_class_cover_size and ira_reg_class_cover.
3758 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3759 sched_regno_pressure_class instead of sched_regno_cover_class.
3760 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3761 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3763 * ira.h: Add 2010 to Copyright.
3764 (ira_no_alloc_reg): Remove external.
3765 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3766 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3767 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3768 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3769 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3770 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3771 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3772 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3773 x_ira_no_alloc_regs.
3774 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3775 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3776 ira_allocno_classes_num and ira_allocno_classes.
3777 (ira_class_translate): Rename to ira_allocno_class_translate.
3778 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3779 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3780 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3781 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3782 (ira_no_alloc_regs): New.
3784 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3785 classes from the file. Use ALLOCNO_CLASS instead of
3786 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3787 ALLOCNO_COVER_CLASS_COST.
3788 (regno_cover_class): Rename to regno_aclass.
3789 (record_reg_classes): Use ira_reg_class_subunion instead of
3790 ira_reg_class_union.
3791 (record_address_regs): Check overflow.
3792 (scan_one_insn): Ditto.
3793 (print_allocno_costs): Print total mem cost fore regional allocation.
3794 (print_pseudo_costs): Use REG_N_REFS.
3795 (find_costs_and_classes): Use classes intersected with them on the
3796 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3797 ira_reg_class_union. Use ira_allocno_class_translate and
3798 regno_aclass instead of ira_class_translate and regno_cover_class.
3799 Modify code for finding regno_aclass. Setup preferred classes for
3801 (setup_allocno_cover_class_and_costs): Rename to
3802 setup_allocno_class_and_costs. Use regno_aclass instead of
3803 regno_cover_class. Use ira_set_allocno_class instead of
3804 ira_set_allocno_cover_class.
3805 (init_costs, finish_costs): Use regno_aclass instead of
3807 (ira_costs): Use setup_allocno_class_and_costs instead of
3808 setup_allocno_cover_class_and_costs.
3809 (ira_tune_allocno_costs_and_cover_classes): Rename to
3810 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3811 by processing objects. Use ira_reg_class_max_nregs instead of
3812 ira_reg_class_nregs.
3814 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3816 * sched-int.h: Remove mentioning cover classes from the file.
3817 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3819 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3820 classes from the file.
3821 (struct reg_pref): Rename coverclass into allocnoclass.
3822 (reg_cover_class): Rename to reg_allocno_class.
3824 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3826 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3828 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3830 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3832 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3834 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3836 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3838 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3840 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3842 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3844 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3845 (i386_ira_cover_classes): Ditto.
3847 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3849 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3851 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3853 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3855 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3857 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3859 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3860 (mips_ira_cover_classes): Ditto.
3862 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3864 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3866 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3868 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3870 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3872 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3873 (IRA_COVER_CLASSES_VSX): Ditto.
3875 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3876 (rs6000_ira_cover_classes): Ditto.
3878 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3880 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3882 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3884 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3886 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3888 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3890 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3892 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3894 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3896 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3898 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3901 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3902 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3903 dw_fde_unlikely_section_end_label, cold_in_std_section,
3904 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3905 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3907 (output_fde): Use dw_fde_second_{begin,end} if second is
3908 true, otherwise dw_fde_{begin,end}.
3909 (output_call_frame_info): Test dw_fde_second_begin != NULL
3910 instead of dw_fde_switched_sections.
3911 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3912 fields, initialize new fields. Initialize in_std_section
3913 unconditionally from the first partition.
3914 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3915 dw_fde_second_begin is non-NULL.
3916 (dwarf2out_switch_text_section): Stop initializing removed
3917 dw_fde_struct fields, initialize new fields, initialize
3918 also dw_fde_end here. Set dw_fde_switch_cfi even when
3919 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3920 (struct var_loc_list_def): Add last_before_switch field.
3921 (arange_table, arange_table_allocated, arange_table_in_use,
3922 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3923 (size_of_aranges): Count !in_std_section and !second_in_std_section
3924 hunks in fdes, instead of looking at arange_table_in_use.
3925 (output_aranges): Add aranges_length argument, don't call
3926 size_of_aranges here. Instead of using aranges_table*
3927 emit ranges for fdes when !in_std_section resp.
3928 !second_in_std_section.
3929 (dw_loc_list): Break ranges crossing section switch.
3930 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
3931 use dw_fde_second_end instead of dw_fde_end as end of last range.
3932 (gen_subprogram_die): Don't call add_arange. Use
3933 dw_fde_{begin,end} for first partition and if switched
3934 section dw_fde_second_{begin,end} for the second.
3935 (var_location_switch_text_section_1,
3936 var_location_switch_text_section): New functions.
3937 (dwarf2out_begin_function): Initialize cold_text_section even
3938 when function_section () isn't text_section.
3939 (prune_unused_types): Don't walk arange_table.
3940 (dwarf2out_finish): Don't needlessly test
3941 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3942 If info_section_emitted, call size_of_aranges and if it indicates
3943 non-empty .debug_aranges, call output_aranges with the computed
3944 size. Stop using removed dw_fde_struct fields, use
3945 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3949 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3950 create ENTRY_VALUE if incoming or address of incoming's MEM
3952 * dwarf2out.c (mem_loc_descriptor): Don't emit
3953 DW_OP_GNU_entry_value of DW_OP_fbreg.
3954 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3955 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3956 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3957 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3959 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3960 is a REG_P or MEM_P with REG_P address, compute hash directly
3961 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3962 (preserve_only_constants): Don't clear VALUES forwaring
3963 ENTRY_VALUE to some other VALUE.
3965 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3967 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3970 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3972 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3973 block before expanding the statement.
3974 (expand_gimple_stmt_1): Likewise. Set them here...
3975 (expand_gimple_stmt): ...and not here. Tidy.
3976 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3979 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3981 * Makefile.in: New rule for cprop.o.
3982 * gcse.c: Move constant/copy propagation to cprop.c.
3983 (compute_local_properties): Only handle expression tables.
3984 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3985 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3986 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3987 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3988 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3989 compute_cprop_data, find_used_regs, try_replace_reg,
3990 find_avail_set, cprop_jump, constprop_register, cprop_insn,
3991 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3992 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3993 find_bypass_set, reg_killed_on_edge, bypass_block,
3994 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3995 execute_rtl_cprop, pass_rtl_cprop): Move to...
3996 * cprop.c: ...here. New file, constant/copy propagation for RTL
3997 moved from gcse.c to here with minor cleanups in duplicated code.
3999 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4001 * config/i386/i386.c (flag_opts): Fix a typo in
4002 -mavx256-split-unaligned-store.
4004 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4006 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4007 LIBCALL_VALUE): Remove macros.
4008 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4009 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4010 (h8300_function_value, h8300_libcall_value,
4011 h8300_function_value_regno_p): New functions.
4013 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4015 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4017 2011-03-28 Jeff Law <law@redhat.com>
4019 * tree-ssa-threadupdate.c (redirect_edges): Call
4020 create_edge_and_update_destination_phis as needed.
4021 (create_edge_and_update_destination_phis): Accept new BB argument.
4022 All callers updated.
4023 (thread_block): Do not update the profile when threading around
4024 intermediate blocks.
4025 (thread_single_edge): Likewise.
4026 (determine_bb_domination_status): If BB is not a successor of the
4027 loop header, return NONDOMINATING.
4028 (register_jump_thread): Note when we register a jump thread around
4029 an intermediate block.
4030 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4031 (thread_across_edge): Use it.
4033 2011-03-28 Tristan Gingold <gingold@adacore.com>
4035 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4036 when for_return is 2.
4038 2011-03-28 Jeff Law <law@redhat.com>
4040 * var-tracking.c (canonicalize_values_mark): Delete unused
4042 (canonicalize_values_star, set_variable_part): Likewise.
4043 (clobber_variable_part, delete_variable_part): Likewise.
4045 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4047 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4049 2011-03-28 Martin Jambor <mjambor@suse.cz>
4051 * tree-inline.c (expand_call_inline): Do not check that destination
4053 (optimize_inline_calls): Assert that destination node is analyzed.
4054 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4055 not call tree_lowering_passes.
4056 * cgraph.h (cgraph_analyze_function): Declare.
4057 * cgraphunit.c (cgraph_analyze_function): Make public.
4059 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4061 * config/sparc/sparc-opts.h: New.
4062 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4063 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4064 (sparc_option_override): Store processor_type enumeration rather
4065 than string in cpu_default. Remove name and enumeration from
4066 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4067 without using sparc_select. Use target_flags_explicit instead of
4069 * config/sparc/sparc.h (enum processor_type): Move to
4071 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4072 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4073 HeaderInclude entry.
4074 (mcpu=, mtune=): Use Var and Enum.
4075 (sparc_processor_type): New Enum and EnumValue entries.
4077 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4078 Iain Sandoe <iains@gcc.gnu.org>
4081 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4083 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4085 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4086 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4087 Insert new statements at it in lieu of STMT.
4088 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4089 * tree-vect-stmts.c (vectorizable_store): Likewise.
4090 (vectorizable_load): Likewise.
4092 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4094 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4099 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4101 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4102 unaligned 256bit load/store.
4103 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4104 (*avx_movdqu<avxmodesuffix>): Likewise.
4106 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4109 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4110 * config/pa/pa.md (iordi3): Use new predicate in expander.
4113 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4115 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4116 FUNCTION_VALUE_REGNO_P): Remove macros.
4117 * config/mips/mips-protos.h (mips_function_value): Remove.
4118 * config/mips/mips.c (mips_function_value): Rename to...
4119 (mips_function_value_1): ... this. Make static. Handle receiving
4120 the function type in 'fn_decl_or_type' argument.
4121 (mips_function_value, mips_libcall_value,
4122 mips_function_value_regno_p): New function.
4123 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4124 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4126 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4128 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4129 and -mavx256-split-unaligned-store.
4130 (ix86_option_override_internal): Split 32-byte AVX unaligned
4131 load/store by default.
4132 (ix86_avx256_split_vector_move_misalign): New.
4133 (ix86_expand_vector_move_misalign): Use it.
4135 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4136 -mavx256-split-unaligned-store.
4138 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4139 256bit load/store. Generate unaligned store on misaligned memory
4141 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4143 (*avx_movdqu<avxmodesuffix>): Likewise.
4145 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4146 -mavx256-split-unaligned-store.
4148 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4151 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4154 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4156 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4157 opno arguments with an expand_operand. Use create_input_operand.
4158 (mips_prepare_builtin_target): Delete.
4159 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4161 (mips_expand_builtin_direct): Use create_output_operand and
4162 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4163 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4164 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4166 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4168 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4170 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4172 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4174 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4175 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4176 basic blocks and call commit_edge_insertions directly.
4177 (fixup_abnormal_edges): Move from here to...
4178 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4179 on the edges and return whether some have actually been inserted.
4180 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4183 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4185 PR rtl-optimization/48144
4186 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4187 (merge_expr_data): ... here.
4188 (av_set_intersect): Rename to av_set_code_motion_filter.
4189 Update all callers. Call merge_history_vect when an expression
4190 is found in both sets.
4191 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4193 2011-03-26 Alan Modra <amodra@gmail.com>
4195 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4196 cmodel medium addresses.
4197 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4198 64-bit gpr loads and stores.
4199 (rs6000_secondary_reload_ppc64): New function.
4200 * config/rs6000/rs6000-protos.h: Declare it.
4201 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4203 2011-03-26 Alan Modra <amodra@gmail.com>
4206 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4207 GNU Go in traceback table.
4209 2011-03-25 Richard Henderson <rth@redhat.com>
4211 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4212 if there are exactly 6 operands.
4213 (set_storage_via_setmem): Similarly.
4215 2011-03-25 Kai Tietz <ktietz@redhat.com>
4217 * collect2.c (write_c_file_stat): Handle backslash
4218 as right-hand directory separator.
4219 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4220 checking just for slash.
4221 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4222 instead of checking for trailing slash.
4223 * gcc.c (record_temp_file): Use filename_cmp instead
4225 (do_spec_1): Likewise.
4226 (replace_outfile_spec_function): Likewise.
4227 (is_directory): Use filename_ncmp instead of strncmp.
4228 (print_multilib_info): Likewise.
4229 * gcov.c (find_source): Use filename_cmp instead
4231 (make_gcov_file_name): Fix order of slash/backslash
4233 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4234 (add_standard_paths): Likewise.
4235 * mips-tfile.c (saber_stop): Handle backslash.
4236 * prefix.c (update_path): Use filename_ncmp instead of
4238 * profile.c (output_location): Use filename_cmp instead
4240 * read-md.c (handle_toplevel_file): Handle backslash.
4241 * tlink.c (frob_extension): Likewise.
4242 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4244 * tree-dump.c (dequeue_and_dump): Handle backslash.
4245 * tree.c (get_file_function_name): Likewise.
4246 * gengtype.c (read_input_list): Likewise.
4247 (get_file_realbasename): Likewise.
4248 (get_output_file_with_visibility): Use filename_cmp
4251 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4253 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4256 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4258 * fold-const.c (expr_location_or): New function.
4259 (fold_truth_not_expr): Call it.
4261 2011-03-25 Jeff Law <law@redhat.com>
4263 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4265 * c-family/c-common.c (def_fn_type): Likewise.
4266 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4267 * emit-rtl.c (gen_rtvec): Likewise.
4268 * lto/lto-lang.c (def_fn_type): Likewise.
4270 2011-03-25 Richard Guenther <rguenther@suse.de>
4272 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4273 also generate copies.
4274 (fini_copy_prop): Handle constant values properly.
4276 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4278 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4279 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4280 (hash_loc_operands, compare_loc_operands): Handle
4281 DW_OP_GNU_entry_value.
4283 2011-03-25 Kai Tietz <ktietz@redhat.com>
4285 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4286 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4287 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4288 comment and use macro TARGET_64BIT_MS_ABI instead.
4289 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4290 and change default behavior for 32-bit MS_ABI.
4291 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4292 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4294 (ix86_cfun_abi): Likewise.
4295 (ix86_maybe_switch_abi): Adjust comment.
4296 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4297 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4298 instead of checking for SYSV_ABI.
4299 (ix86_nsaved_sseregs): Likewise.
4300 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4302 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4303 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4304 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4305 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4306 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4308 2011-03-25 Richard Guenther <rguenther@suse.de>
4310 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4311 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4312 (verify_gimple): Remove.
4313 * tree-cfg.c (verify_gimple_call): Merge verification
4315 (verify_gimple_phi): Merge verification from verify_stmts.
4316 (verify_gimple_label): New function.
4317 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4318 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4319 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4320 (verify_stmts): Rename to verify_gimple_in_cfg.
4321 (verify_gimple_in_cfg): New function.
4322 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4323 * tree-ssa.c (verify_ssa): Likewise.
4324 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4326 2011-03-25 Richard Guenther <rguenther@suse.de>
4328 * passes.c (init_optimization_passes): Add FRE pass after
4331 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4332 Andrew Stubbs <ams@codesourcery.com>
4334 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4336 (arm_movdi_vfp_cortexa8): New pattern.
4337 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4338 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4339 instructions when tuning for Cortex-A8. Set attribute "arch".
4340 * config/arm/arm.md: Move include arm-tune.md up a bit.
4341 (define_attr "arch"): Add "onlya8" and "nota8" values.
4342 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4344 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4348 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4350 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4351 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4352 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4353 * passes.c (init_optimization_passes): Move
4354 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4356 2011-03-25 Kai Tietz <ktietz@redhat.com>
4358 * c-typeck.c (comptypes_internal): Replace target
4359 hook call of comp_type_attributes by version in tree.c file.
4360 * gimple.c (gimple_types_compatible_p_1): Likewise.
4361 * tree-ssa.c (useless_type_conversion_p): Likewise.
4362 * tree.c (build_type_attribute_qual_variant): Likewise.
4363 (attribute_value_equal): New static helper function.
4364 (comp_type_attributes): New function.
4365 (merge_attributes): Use attribute_value_equal for comparison.
4366 (attribute_list_contained): Likewise.
4367 * tree.h (comp_type_attributes): New prototype.
4369 2011-03-25 Richard Guenther <rguenther@suse.de>
4371 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4372 of complex types at -O0.
4373 (verify_gimple_assign_binary): Likewise.
4374 (verify_gimple_assign_ternary): Likewise.
4376 2011-03-24 Mark Wielaard <mjw@redhat.com>
4378 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4379 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4381 2011-03-24 Mark Wielaard <mjw@redhat.com>
4384 * dwarf2out.c (output_abbrev_section): Only write table when
4385 abbrev_die_table_in_use > 1.
4387 2011-02-24 Richard Henderson <rth@redhat.com>
4389 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4390 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4391 (alpha_expand_unaligned_load_words): Use extql.
4392 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4393 (emit_insxl): Handle all modes for consistency.
4395 2011-02-24 Richard Henderson <rth@redhat.com>
4397 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4398 (alpha_expand_unaligned_load): Likewise.
4399 (alpha_expand_unaligned_store): Likewise.
4400 (alpha_expand_unaligned_load_words): Likewise.
4401 (alpha_expand_unaligned_store_words): Likewise.
4402 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4403 (alpha_split_lock_test_and_set_12): Likewise.
4404 (print_operand, alpha_fold_builtin_extxx): Likewise.
4405 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4406 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4407 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4408 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4409 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4410 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4411 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4412 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4413 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4414 (extwl, extll, extql): Similarly.
4415 (inswh, inslh, insqh): Similarly.
4416 (mskbl, mskwl, mskll, mskql): Similarly.
4417 (mskwh, msklh, mskqh): Similarly.
4419 2011-02-24 Richard Henderson <rth@redhat.com>
4421 * config/alpha/alpha.md (attribute isa): Add er, ner.
4422 (attribute enabled): Handle them.
4423 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4425 2011-02-24 Richard Henderson <rth@redhat.com>
4427 * config/alpha/alpha.md (attribute isa): Add vms.
4428 (attribute enabled): Handle it.
4429 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4430 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4431 (*movtf): Rename from *movtf_internal for consistency.
4432 (*movsi): Merge with *movsi_nt_vms.
4433 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4434 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4435 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4436 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4438 2011-02-24 Richard Henderson <rth@redhat.com>
4440 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4441 (extendqisi2, extendhisi2): Likewise.
4442 (extendqidi2): Simplify BWX/non-BWX expansions.
4443 (extendhidi2): Similarly.
4445 2011-02-24 Richard Henderson <rth@redhat.com>
4447 * config/alpha/alpha.md (attribute isa): New.
4448 (attribute enabled): New.
4449 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4450 (zero_extendqisi2, zero_extendqidi2): Similarly.
4451 (zero_extendhisi2, zero_extendhidi2): Similarly.
4452 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4454 2011-02-24 Richard Henderson <rth@redhat.com>
4456 * config/alpha/predicates.md (input_operand): Revert last change;
4457 update comment to mention 32-bit VMS rather than Windows.
4459 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4461 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4462 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4463 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4464 * passes.c (init_optimization_passes): Move
4465 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4467 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4469 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4471 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4473 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4476 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4479 * simplify-rtx.c (simplify_const_unary_operation): Call
4480 real_convert when changing mode class with FLOAT_EXTEND.
4482 2011-03-24 Nick Clifton <nickc@redhat.com>
4484 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4485 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4486 * config/rx/rx.c (rx_option_override): Set align_jumps,
4487 align_loops and align_labels if not set by the user.
4488 (rx_align_for_label): New function.
4489 (rx_max_skip_for_label): New function.
4490 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4491 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4492 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4493 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4494 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4496 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4498 PR rtl-optimization/48263
4499 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4500 and original commutative_p handling. Use maybe_gen_insn.
4502 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4504 * reload.c (find_reloads_subreg_address): Add address_reloaded
4505 parameter and return true there if the full address has been
4507 (find_reloads_toplev): Pass address_reloaded flag.
4508 (find_reloads_address_1): Don't use address_reloaded parameter.
4510 2011-03-24 Jeff Law <law@redhat.com>
4512 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4513 unused variable "ann".
4514 (remove_unused_locals): Likewise.
4516 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4519 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4522 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4524 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4525 for invalid symbolic addresses.
4526 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4529 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4531 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4532 the argument in calls to fold_truth_not_expr.
4534 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4536 * tree.c (record_node_allocation_statistics): New function.
4537 (make_node_stat, copy_node_stat, build_string): Call it.
4538 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4539 (build1_stat, build_omp_clause): Likewise.
4541 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4543 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4546 2011-03-24 Richard Guenther <rguenther@suse.de>
4548 PR tree-optimization/48271
4549 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4550 blocks that still exist.
4552 2011-03-24 Richard Guenther <rguenther@suse.de>
4554 PR tree-optimization/48270
4555 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4556 not free datarefs before ddrs.
4558 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4560 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4561 from the address built for a reference with variable offset.
4563 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4566 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4567 alternatives that can be handled with movq or movabsq insn.
4568 (*movdf_internal): Disable for !TARGET_64BIT.
4569 (*movdf_internal_nointeger): Ditto.
4570 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4572 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4574 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4575 (FUNCTION_ARG_ADVANCE): Likewise.
4576 * tm.texi.in: Change references to them to hook references.
4577 * tm.texi: Regenerate.
4578 * targhooks.c (default_function_arg): Eliminate check for target macro.
4579 (default_function_incoming_arg): Likewise.
4580 (default_function_arg_advance): Likewise.
4581 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4582 (function_arg_advance): Likewise.
4583 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4585 2011-03-24 Richard Guenther <rguenther@suse.de>
4588 * tree-object-size.c (addr_object_size): Do not double-account
4589 for MEM_REF offsets.
4591 2011-03-24 Diego Novillo <dnovillo@google.com>
4593 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4594 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4595 (lto_input_data_block): Move from lto-opts.c. Make extern.
4597 (lto_input_string): Rename from input_string. Make extern.
4599 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4600 output_string_with_length.
4601 Output 0 to indicate a non-NULL string. Update all callers to
4603 (lto_output_string): Rename from output_string. Make extern.
4605 (lto_output_decl_state_streams): Make extern.
4606 (lto_output_decl_state_refs): Make extern.
4607 * lto-streamer.h (lto_input_string): Declare.
4608 (lto_input_data_block): Declare.
4609 (lto_output_string): Declare.
4610 (lto_output_string_with_length): Declare.
4611 (lto_output_decl_state_streams): Declare.
4612 (lto_output_decl_state_refs): Declare.
4614 2011-03-24 Richard Guenther <rguenther@suse.de>
4616 PR tree-optimization/46562
4617 * tree.c (build_invariant_address): New function.
4618 * tree.h (build_invariant_address): Declare.
4619 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4620 a renamed function moved ...
4621 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4622 Take valueization callback parameter.
4623 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4624 * gimple-fold.h: New file.
4625 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4626 (ccp_fold, fold_const_aggregate_ref,
4627 fold_ctor_reference, fold_nonarray_ctor_reference,
4628 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4629 get_base_constructor): Move ...
4630 * gimple-fold.c: ... here.
4631 (gimple_fold_stmt_to_constant_1): New function
4632 split out from ccp_fold. Take a valueization callback parameter.
4633 Valueize all operands.
4634 (gimple_fold_stmt_to_constant): New wrapper function.
4635 (fold_const_aggregate_ref_1): New function split out from
4636 fold_const_aggregate_ref. Take a valueization callback parameter.
4637 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4638 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4639 invariant POINTER_PLUS_EXPRs to invariant form.
4640 (vn_valueize): New function.
4641 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4642 * tree-vrp.c (vrp_valueize): New function.
4643 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4644 to fold statements to constants.
4645 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4646 function declarations.
4647 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4648 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4650 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4652 * config/h8300/predicates.md (jump_address_operand): Fix register
4655 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4657 * doc/invoke.texi (max-stores-to-sink): Document.
4658 * params.h (MAX_STORES_TO_SINK): Define.
4659 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4660 if either vectorization or if-conversion is disabled.
4661 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4662 tree-vect-data-refs.c vect_equal_offsets.
4663 (dr_equal_offsets_p): New function.
4664 (find_data_references_in_bb): Remove static.
4665 * tree-data-ref.h (find_data_references_in_bb): Declare.
4666 (dr_equal_offsets_p): Likewise.
4667 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4668 (vect_drs_dependent_in_basic_block): Update calls to
4670 (vect_check_interleaving): Likewise.
4671 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4672 (cond_if_else_store_replacement): Rename to...
4673 (cond_if_else_store_replacement_1): ... this. Change arguments and
4675 (cond_if_else_store_replacement): New function.
4676 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4677 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4679 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4682 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4683 to subtract lower bound instead of GEN_INT().
4685 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4690 * doc/extend.texi (Alignment): Move section to match order in TOC.
4691 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4692 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4694 2011-03-23 Jeff Law <law@redhat.com>
4696 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4697 before removing the edge.
4699 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4700 it may have been freed by redirect_branch_edge or
4701 redirect_edge_succ_nodup.
4703 2011-03-23 Richard Guenther <rguenther@suse.de>
4705 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4706 (check_va_list_escapes): Likewise.
4707 (check_all_va_list_escapes): Likewise.
4709 2011-03-23 Richard Guenther <rguenther@suse.de>
4711 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4712 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4713 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4714 (alias.o): Likewise.
4715 (ipa-type-escape.o): Remove.
4716 (ipa-struct-reorg.o): Likewise.
4717 (GTFILES): Remove ipa-struct-reorg.c.
4718 * alias.c: Do not include ipa-type-escape.h.
4719 * tree-ssa-alias.c: Likewise.
4720 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4721 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4722 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4723 and ipa-type-escape passes.
4724 * tree-pass.h (pass_ipa_type_escape): Remove.
4725 (pass_ipa_struct_reorg): Likewise.
4726 * ipa-struct-reorg.h: Remove.
4727 * ipa-struct-reorg.c: Likewise.
4728 * ipa-type-escape.h: Likewise.
4729 * ipa-type-escape.c: Likewise.
4730 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4731 (--param struct-reorg-cold-struct-ratio): Likewise.
4732 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4733 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4734 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4736 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4738 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4739 cpu attribute value.
4740 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4741 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4742 * config/s390/s390.c (processor_flags_table): New constant array.
4743 (s390_handle_arch_option): Remove.
4744 (s390_handle_option): Remove s390_handle_arch_option invocations
4745 and OPT_mwarn_framesize_ handling.
4746 (s390_option_override): Remove s390_handle_arch_option invocation.
4747 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4749 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4750 * config/s390/s390.opt (s390_tune, s390_arch)
4751 (march=): Replace s390_arch_option enum and values with
4752 processor_type. Set variable name to s390_arch. Set
4753 initialization value.
4754 (mtune=): Replace s390_arch_option with processor_type. Set
4755 variable name to s390_tune. Set initialization value.
4757 2011-03-23 Julian Brown <julian@codesourcery.com>
4759 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4760 accesses which are not naturally aligned.
4762 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4765 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4767 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4769 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4770 parameter from "int" to "enum insn_code".
4771 (expand_operand_type): New enum.
4772 (expand_operand): New structure.
4773 (create_expand_operand): New function.
4774 (create_fixed_operand, create_output_operand): Likewise
4775 (create_input_operand, create_convert_operand_to): Likewise.
4776 (create_convert_operand_from, create_address_operand): Likewise.
4777 (create_integer_operand): Likewise.
4778 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4779 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4780 (expand_insn, expand_jump_insn): Likewise.
4781 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4782 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4783 (expand_movstr, expand_builtin___clear_cache): Likewise.
4784 (expand_builtin_lock_release): Likewise.
4785 * explow.c (allocate_dynamic_stack_space): Likewise.
4786 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4787 and use the default handling in that case.
4788 * expmed.c (check_predicate_volatile_ok): Delete.
4789 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4790 (emit_cstore): Likewise.
4791 * expr.c (emit_block_move_via_movmem): Likewise.
4792 (set_storage_via_setmem, expand_assignment): Likewise.
4793 (emit_storent_insn, try_casesi): Likewise.
4794 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4795 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4796 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4797 (expand_twoval_unop, expand_twoval_binop): Likewise.
4798 (expand_unop_direct, emit_indirect_jump): Likewise.
4799 (emit_conditional_move, vector_compare_rtx): Likewise.
4800 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4801 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4802 (expand_sync_lock_test_and_set): Likewise.
4803 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4804 (emit_unop_insn): Likewise.
4805 (expand_copysign_absneg): Change icode to an insn_code.
4806 (create_convert_operand_from_type): New function.
4807 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4808 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4809 (expand_insn, expand_jump_insn): Likewise.
4810 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4811 than const_int_operand for operand 2.
4813 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4815 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4818 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4820 * emit-rtl.c (emit_pattern_before_noloc): New function.
4821 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4822 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4823 (emit_pattern_after_noloc): New function.
4824 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4825 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4827 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4829 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4830 (__ffsDI2): Likewise.
4832 2011-03-22 Richard Henderson <rth@redhat.com>
4834 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4835 of !TARGET_ABI_OPEN_VMS.
4836 (alpha_trampoline_init, alpha_start_function): Likewise.
4837 (alpha_expand_epilogue, alpha_file_start): Likewise.
4838 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4839 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4840 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4841 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4842 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4844 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4846 * config/s390/s390-opts.h: New.
4847 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4848 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4849 s390_stack_guard): Remove.
4850 (s390_handle_arch_option): Return void. Take enum
4851 s390_arch_option value instead of string and searching array.
4852 (s390_handle_option): Don't assert that global structures are in
4853 use. Access variables via opts pointer. Use error_at. Don't use
4854 sscanf for -mstack-guard= or -mstack-size=. Update call to
4855 s390_handle_arch_option.
4856 (s390_option_override): Update call to s390_handle_arch_option.
4857 (s390_emit_prologue): Use %d format for s390_stack_size in
4858 diagnostic. Use %wd for HOST_WIDE_INT.
4859 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4860 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4861 * config/s390/s390.opt (config/s390/s390-opts.h): New
4862 HeaderInclude entry.
4863 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4864 s390_arch_flags, s390_warn_framesize): New Variable entries.
4865 (s390_arch_option): New Enum and EnumValue entries.
4866 (march=): Use Enum instead of Var.
4867 (mstack-guard=, mstack-size=): Use UInteger and Var.
4870 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4872 * config/score/score.c (score_handle_option): Don't assert that
4873 global structures are in use. Access target_flags via opts
4874 pointer. Use value of -march= option to determine target_flags
4876 * config/score/score.opt (march=): Use Enum.
4877 (score_arch): New Enum and EnumValue entries.
4879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4881 * config/mep/mep.c (option_mtiny_specified): Remove.
4882 (mep_option_override): Move register handling for -mivc2 from
4883 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4884 instead of option_mtiny_specified.
4885 (mep_handle_option): Access target_flags via opts pointer. Don't
4886 assert that global structures are in use. Defer part of -mivc2
4887 handling and move it to mep_option_override.
4888 * config/mep/mep.opt (IVC2): New Mask entry.
4889 (mivc2): Use Var and Defer instead of Mask.
4891 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4893 * config/v850/v850-opts.h: New.
4894 * config/v850/v850.c (small_memory): Replace with
4895 small_memory_physical_max array. Make that array static const.
4896 (v850_handle_memory_option): Take integer value of argument. Take
4897 gcc_options pointer, option text and location. Return void.
4898 Update for changes to small memory structures.
4899 (v850_handle_option): Access target_flags via opts pointer. Don't
4900 assert that global structures are in use. Update calls to
4901 v850_handle_memory_option.
4902 (v850_encode_data_area): Update references to small memory settings.
4903 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4904 (enum small_memory_type): Move to v850-opts.h.
4905 * config/v850/v850.opt (config/v850/v850-opts.h): New
4906 HeaderInclude entry.
4907 (small_memory_max): New Variable entry.
4908 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4909 (mtda, mzda): Likewise.
4911 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4913 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4914 pointer. Don't assert that global structures are in use.
4916 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4918 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4919 via opts pointer. Don't assert that global structures are in use.
4921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4923 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4924 (munix=93): Use Var.
4925 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4926 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4927 * config/pa/pa-opts.h: New.
4928 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4929 (pa_handle_option): Don't assert that global structures are in
4930 use. Access target_flags via opts pointer. Don't handle
4931 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4933 (pa_option_override): Handle deferred OPT_mfixed_range_.
4935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4937 * config/mn10300/mn10300-opts.h: New.
4938 * config/mn10300/mn10300.c (mn10300_processor,
4939 mn10300_tune_string): Remove.
4940 (mn10300_handle_option): Don't assert that global structures are
4941 in use. Access mn10300_processor via opts pointer. Don't handle
4943 * config/mn10300/mn10300.h (enum processor_type): Move to
4945 (mn10300_processor): Remove.
4946 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4947 HeaderInclude entry.
4948 (mn10300_processor): New Variable entry.
4951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4953 * config/microblaze/microblaze.c: Don't include opts.h.
4954 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4955 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4956 (mno-clearbss): Use Var and Warn.
4958 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4960 * config/m32r/m32r-opts.h: New.
4961 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4962 (m32r_handle_option): Don't assert that global structures are in
4963 use. Access target_flags and m32r_cache_flush_func via opts
4964 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4965 OPT_mno_flush_trap here.
4966 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4967 include of m32r-opts.h.
4968 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4969 HeaderInclude entry.
4970 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4971 (mmodel=): Use Enum and Var.
4972 (m32r_model): New Enum and EnumValue entries.
4973 (mno-flush-trap): Use Var.
4974 (msdata=): Use Enum and Var.
4975 (m32r_sdata): New Enum and EnumValue entries.
4977 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4979 * config/m32c/m32c.c: Don't include opts.h.
4980 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4981 m32c_handle_option): Remove.
4982 (m32c_option_override): Check global_options_set.x_target_memregs
4983 instead of target_memregs_set.
4984 * config/m32c/m32c.h (target_memregs): Remove.
4985 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4988 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4990 * config/iq2000/iq2000-opts.h: New.
4991 * config/iq2000/iq2000.c: Don't include opts.h.
4992 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4993 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4994 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4995 HeaderInclude entry.
4996 (iq2000_tune): New Variable entry.
4997 (march=): Add comment. Use Enum.
4998 (iq2000_arch): New Enum and EnumValue entries.
4999 (mcpu=): Use Enum and Var.
5000 (iq2000_tune): New Enum and EnumValue entries.
5002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5004 * config/ia64/ia64-opts.h: New.
5005 * config/ia64/ia64.c (ia64_tune): Remove.
5006 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5008 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5009 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5010 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5011 HeaderInclude entry.
5012 (ia64_tune): New Variable entry.
5013 (mfixed-range=): Use Defer and Var.
5014 (mtune=): Use Enum and Var.
5015 (ia64_tune): New Enum and EnumValue entries.
5017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5019 * config/frv/frv-opts.h: New.
5020 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5022 (frv_cpu_type): Remove.
5023 * config/frv/frv.c: Don't include opts.h.
5024 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5025 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5026 (frv_cpu_type): New Variable entry.
5027 (frv_cpu): New Enum and EnumValue entries.
5029 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5031 * config/cris/cris.c (cris_handle_option): Access target_flags via
5032 opts pointer. Don't assert that global structures are in use.
5033 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5034 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5036 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5038 * config/bfin/bfin-opts.h: New.
5039 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5040 bfin_si_revision, bfin_workarounds): Remove.
5041 (bfin_cpus): Make static const.
5042 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5043 not bfin_lib_id_given.
5044 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5045 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5046 pointer. Use error_at. Don't assert that global structures are in use.
5047 * config/bfin/bfin.h: Include bfin-opts.h.
5048 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5049 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5050 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5051 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5056 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5057 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5058 or -msoft-float here.
5059 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5060 -msoft-float and -mhard-float.
5061 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5062 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5064 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5066 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5067 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5069 (LIBGCC_SPEC): Don't handle -msoft-float.
5070 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5072 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5074 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5075 -mfloat-abi=*, not -msoft-float and -mhard-float.
5076 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5078 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5079 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5080 mhard-float and msoft-float.
5081 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5082 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5083 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5084 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5086 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5087 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5089 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5091 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5094 2011-03-22 Richard Henderson <rth@redhat.com>
5096 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5097 TARGET_ABI_WINDOWS_NT.
5098 (alpha_output_function_end_prologue): Likewise.
5099 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5100 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5101 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5102 (trap, *movsi_nt_vms): Likewise.
5103 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5104 (*tablejump_osf_nt_internal): Remove.
5105 * config/alpha/predicates.md (input_operand): Only test Pmode.
5107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5109 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5110 via opts pointer. Use error_at. Don't assert that global
5111 structures are in use.
5113 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5115 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5116 (ix86_handle_option): Access ix86_isa_flags and
5117 ix86_isa_flags_explicit via opts pointer. Don't assert that
5118 global structures are in use.
5119 (ix86_function_specific_save, ix86_function_specific_restore):
5120 Update ix86_isa_flags_explicit field name.
5121 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5122 (ix86_isa_flags_explicit): Rename TargetSave entry to
5123 x_ix86_isa_flags_explicit.
5125 2011-03-22 Richard Henderson <rth@redhat.com>
5127 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5128 (alpha_option_override, direct_return): Likewise.
5129 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5130 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5131 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5132 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5133 (alpha_expand_epilogue, alpha_end_function): Likewise.
5134 (alpha_init_libfuncs): Likewise.
5135 (struct machine_function): Remove unicosmk members.
5136 (print_operand) ['t']: Remove.
5137 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5138 unicosmk_output_module_name, unicosmk_output_common,
5139 current_section_align, unicosmk_output_text_section_asm_op,
5140 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5141 unicosmk_section_type_flags, unicosmk_unique_section,
5142 unicosmk_asm_named_section, unicosmk_insert_attributes,
5143 unicosmk_output_align, unicosmk_defer_case_vector,
5144 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5145 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5146 unicosmk_output_ssib, unicosmk_add_call_info_word,
5147 unicosmk_extern_head, unicosmk_output_default_externs,
5148 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5149 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5150 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5151 * config/alpha/alpha-protos.h: Update.
5152 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5153 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5154 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5155 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5156 (*mulsi_se, mulvsi3): Likewise.
5157 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5158 (*divmodsi_internal, call, call_value, realign): Likewise.
5159 (moddi3, umoddi3): Likewise; remove duplicate expander.
5160 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5161 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5162 (*movdi_nofix): Remove r/U alternative.
5163 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5164 * config/alpha/constraints.md ("U"): Remove.
5165 * config/alpha/predicates.md (call_operand"): Don't test
5166 TARGET_ABI_UNICOSMK.
5168 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5170 * target.def (handle_option): Take gcc_options and
5171 cl_decoded_option pointers and location_t.
5172 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5173 * doc/tm.texi: Regenerate.
5174 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5175 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5176 * lto-opts.c (lto_reissue_options): Generate option structure for
5177 targetm.handle_option call.
5178 * opts.c (target_handle_option): Update call to
5179 targetm.handle_option. Remove assertions about values now passed
5181 * targhooks.c (default_target_handle_option): New.
5182 * targhooks.h (default_target_handle_option): Declare.
5183 * config/alpha/alpha.c: Include opts.h.
5184 (alpha_handle_option): Update to new hook interface.
5185 * config/arm/arm.c: Include opts.h.
5186 (arm_handle_option): Update to new hook interface.
5187 * config/arm/t-arm (arm.o): Update dependencies.
5188 * config/bfin/bfin.c: Include opts.h.
5189 (bfin_handle_option): Update to new hook interface.
5190 * config/cris/cris.c: Include opts.h.
5191 (cris_handle_option): Update to new hook interface.
5192 * config/frv/frv.c: Include opts.h.
5193 (frv_handle_option): Update to new hook interface.
5194 * config/i386/i386.c: Include opts.h.
5195 (ix86_handle_option): Update to new hook interface.
5196 (ix86_valid_target_attribute_inner_p): Generate option structure
5197 for call to ix86_handle_option.
5198 * config/i386/t-i386 (i386.o): Update dependencies.
5199 * config/ia64/ia64.c: Include opts.h.
5200 (ia64_handle_option): Update to new hook interface.
5201 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5202 * config/iq2000/iq2000.c: Include opts.h.
5203 (iq2000_handle_option): Update to new hook interface.
5204 * config/m32c/m32c.c: Include opts.h.
5205 (m32c_handle_option): Update to new hook interface.
5206 * config/m32r/m32r.c: Include opts.h.
5207 (m32r_handle_option): Update to new hook interface.
5208 * config/m68k/m68k.c: Include opts.h.
5209 (m68k_handle_option): Update to new hook interface.
5210 * config/mep/mep.c: Include opts.h.
5211 (mep_handle_option): Update to new hook interface.
5212 * config/microblaze/microblaze.c: Include opts.h.
5213 (microblaze_handle_option): Update to new hook interface.
5214 * config/mips/mips.c: Include opts.h.
5215 (mips_handle_option): Update to new hook interface.
5216 * config/mn10300/mn10300.c: Include opts.h.
5217 (mn10300_handle_option): Update to new hook interface.
5218 * config/pa/pa.c: Include opts.h.
5219 (pa_handle_option): Update to new hook interface.
5220 * config/pdp11/pdp11.c: Include opts.h.
5221 (pdp11_handle_option): Update to new hook interface.
5222 * config/rs6000/rs6000.c: Include opts.h.
5223 (rs6000_handle_option): Update to new hook interface.
5224 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5225 * config/rx/rx.c: Include opts.h.
5226 (rx_handle_option): Update to new hook interface.
5227 * config/s390/s390.c: Include opts.h.
5228 (s390_handle_option): Update to new hook interface.
5229 * config/score/score.c: Include opts.h.
5230 (score_handle_option): Update to new hook interface.
5231 * config/sh/sh.c: Include opts.h.
5232 (sh_handle_option): Update to new hook interface.
5233 * config/sparc/sparc.c: Include opts.h.
5234 (sparc_handle_option): Update to new hook interface.
5235 * config/v850/v850.c: Include opts.h.
5236 (v850_handle_option): Update to new hook interface.
5238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5240 * gcc.c (driver_unknown_option_callback): Only permit and save
5241 unknown -Wno- options.
5242 (driver_wrong_lang_callback): Save options directly instead of via
5243 driver_unknown_option_callback.
5245 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5247 * combine.c (simplify_set): Try harder to find the best CC mode when
5248 simplifying a nested COMPARE on the RHS.
5250 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5252 * config/alpha/gnu.h: Remove.
5253 * config/arc: Remove directory.
5254 * config/arm/netbsd.h: Remove.
5255 * config/arm/t-pe: Remove.
5256 * config/crx: Remove directory.
5257 * config/i386/netbsd.h: Remove.
5258 * config/m68hc11: Remove directory.
5259 * config/m68k/uclinux-oldabi.h: Remove.
5260 * config/mcore/mcore-pe.h: Remove.
5261 * config/mcore/t-mcore-pe: Remove.
5262 * config/netbsd-aout.h: Remove.
5263 * config/rs6000/gnu.h: Remove.
5264 * config/sh/sh-symbian.h: Remove.
5265 * config/sh/symbian-base.c: Remove.
5266 * config/sh/symbian-c.c: Remove.
5267 * config/sh/symbian-cxx.c: Remove.
5268 * config/sh/symbian-post.h: Remove.
5269 * config/sh/symbian-pre.h: Remove.
5270 * config/sh/t-symbian: Remove.
5271 * config/svr3.h: Remove.
5272 * config/vax/netbsd.h: Remove.
5273 * config.build: Don't handle i[34567]86-*-pe.
5274 * config.gcc: Remove handling of deprecations for most deprecated
5276 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5277 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5278 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5279 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5280 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5281 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5283 * config.host: Don't handle i[34567]86-*-pe.
5284 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5285 (ASM_SPEC32): Don't handle -mcall-gnu.
5286 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5288 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5289 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5290 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5291 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5292 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5293 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5294 conditional on SYMBIAN.
5295 * configure.ac: Don't handle powerpc*-*-gnu*.
5296 * configure: Regenerate.
5297 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5298 * doc/install-old.texi (m6811, m6812): Don't mention.
5299 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5300 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5301 (m68k-uclinuxoldabi): Don't mention.
5302 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5304 (-mcall-gnu): Remove.
5305 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5306 families): Remove constraint documentation.
5308 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5310 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5311 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5312 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5314 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5316 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5317 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5318 * config/avr/avr.c (init_cumulative_args)
5319 (avr_function_arg_advance): Use it.
5320 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5322 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5323 (avr_function_ok_for_sibcall): ...this new function.
5324 (avr_lookup_function_attribute1): New static Function.
5325 (avr_naked_function_p, interrupt_function_p)
5326 (signal_function_p, avr_OS_task_function_p)
5327 (avr_OS_main_function_p): Use it.
5328 * config/avr/avr.md ("sibcall", "sibcall_value")
5329 ("sibcall_epilogue"): New expander.
5330 ("*call_insn", "*call_value_insn"): New insn.
5331 ("call_insn", "call_value_insn"): Remove
5332 ("call", "call_value", "epilogue"): Change expander to handle
5335 2011-03-21 Nick Clifton <nickc@redhat.com>
5337 * doc/invoke.texi (Overall Options): Move closing brace to end of
5339 (Optimization Options): Add missing @gol.
5340 (Directory Options): Likewise.
5341 (i386 and x86-64 Options): Likewise.
5342 (RS6000 and PowerPC Options): Likewise.
5343 (i386 and x86-64 Windows Options): Likewise.
5344 (V850 Options): Add text missing from descriptions.
5346 2011-03-22 Richard Henderson <rth@redhat.com>
5348 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5349 (avr_incoming_return_addr_rtx): New.
5350 (emit_push_byte): New.
5351 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5352 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5353 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5354 (emit_pop_byte): New.
5355 (expand_epilogue): Use it. Pop frame pointer by bytes.
5356 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5357 (INCOMING_RETURN_ADDR_RTX): New.
5358 (INCOMING_FRAME_SP_OFFSET): New.
5359 (ARG_POINTER_CFA_OFFSET): New.
5360 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5361 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5364 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5366 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5368 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5369 (FUNCTION_ARG_ADVANCE): Likewise.
5370 * tm.texi.in: Change references to them to hook references.
5371 * tm.texi: Regenerate.
5372 * targhooks.c (default_function_arg): Eliminate check for target
5374 (default_function_incoming_arg): Likewise.
5375 (default_function_arg_advance): Likewise.
5376 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5377 (function_arg_advance): Likewise.
5378 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5380 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5382 * tree.c (build_call_1): New function.
5383 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5385 2011-03-22 Richard Guenther <rguenther@suse.de>
5387 PR tree-optimization/48228
5388 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5389 for single-arg PHIs.
5391 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5393 PR rtl-optimization/48143
5394 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5395 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5396 sse2_cvtps2pd): Likewise.
5398 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5400 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5402 2011-03-22 Richard Guenther <rguenther@suse.de>
5404 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5405 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5406 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5407 and REALIGN_LOAD_EXPR.
5408 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5409 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5410 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5411 DOT_PROD_EXPR case ...
5412 (expand_expr_real_2): ... here.
5413 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5414 and REALIGN_LOAD_EXPR.
5415 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5416 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5417 (vect_create_epilog_for_reduction): Likewise.
5418 (vectorizable_reduction): Likewise.
5419 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5420 * tree-vect-stmts.c (vectorizable_load): Likewise.
5422 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5424 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5426 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5428 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5429 handling for PLTOFF/GOTOFF.
5431 2011-03-22 Nick Clifton <nickc@redhat.com>
5433 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5434 trailing backslash from the end of the macro definition.
5436 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5438 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5441 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5443 * expr.h (prepare_operand): Move to...
5444 * optabs.h (prepare_operand): ...here and change the insn code
5445 parameter from "int" to "enum insn_code".
5446 (insn_operand_matches): Declare.
5447 * expr.c (init_expr_target): Use insn_operand_matches.
5448 (compress_float_constant): Likewise.
5449 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5450 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5451 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5452 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5454 (gen_cond_trap): Likewise.
5455 (prepare_operand): Likewise. Change icode to an insn_code.
5456 (insn_operand_matches): New function.
5457 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5458 * reload1.c (gen_reload): Likewise.
5459 * targhooks.c (default_secondary_reload): Likewise.
5461 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5463 * config/alpha/alpha.md (unspec): New define_c_enum.
5466 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5469 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5470 between a call and its CALL_ARG_LOCATION note.
5472 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5474 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5476 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5480 * c-common.c (shorten_compare): If primopN is first sign-extended
5481 to opN and then zero-extended to result type, set primopN to opN.
5483 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5485 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5486 for barrier handlers.
5488 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5490 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5491 UNSPEC constants to be in the unspec enumeration, and redefine
5492 all UNSPECV constants to be in the unspecv enumeration, so that
5493 dumps print which unspec/unspec_volatile this is.
5494 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5495 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5496 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5497 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5498 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5500 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5501 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5502 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5503 * config/rs6000/sync.md (isync, lwsync): Ditto.
5505 2011-03-21 Richard Guenther <rguenther@suse.de>
5507 * params.def (lto-min-partition): Fix typo.
5509 2011-03-21 Richard Guenther <rguenther@suse.de>
5512 * c-decl.c (grokdeclarator): Drop to the main variant only
5513 for array types. Drop flag_gen_aux_info check.
5515 2011-03-21 Richard Guenther <rguenther@suse.de>
5517 PR translation/47911
5518 * params.def (lto-partitions): Fix typo.
5519 (lto-min-partition): Fix wording.
5521 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5523 * config/rs6000/t-freebsd: Remove duplication from file.
5525 2011-03-21 Richard Guenther <rguenther@suse.de>
5528 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5530 2011-03-21 Richard Guenther <rguenther@suse.de>
5533 * params.def (lto-partitions): Require at least 1 partition.
5535 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5537 * gthr-solaris.h: Remove.
5538 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5539 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5540 (LIB_SPEC): Likewise.
5541 * config/sol2.opt (threads): Remove.
5542 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5543 (sparc*-*-solaris2*): Likewise.
5544 * configure.ac (enable_threads): Enable solaris support.
5545 * configure: Regenerate.
5546 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5547 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5550 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5552 * config.gcc: Obsolete *-*-solaris2.8*.
5553 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5555 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5558 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5559 reference. Solaris 8 perl works.
5561 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5564 * doc/install.texi (Prerequisites): Move jar etc. up.
5565 Explain support library version requirements.
5567 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5570 * doc/install.texi (Prerequisites): Move Perl to build
5571 requirements. Always necessary on Solaris 2 with Sun ld.
5573 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5575 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5577 (Specific, i?86-*-solaris2.[89]): Likewise.
5578 (Specific, i?86-*-solaris2.10): Likewise.
5579 (Specific, mips-sgi-irix6): Likewise.
5580 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5581 Update for binutils 2.21.
5583 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5585 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5586 Allow -fuse-linker-plugin for non-default plugin linker.
5587 * configure: Regenerate.
5589 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5592 * gengtype.c (files_rules): Added rule for cp/parser.h.
5594 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5597 * config/s390/s390.c (s390_delegitimize_address): Don't call
5598 lowpart_subreg if orig_x has BLKmode.
5600 2011-03-21 Kai Tietz <ktietz@redhat.com>
5603 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5604 * tree.h (attribute_spec): Add new member affects_type_identity.
5605 * attribs.c (empty_attribute_table): Adjust attribute_spec
5607 * config/alpha/alpha.c: Likewise.
5608 * config/arc/arc.c: Likewise.
5609 * config/arm/arm.c: Likewise.
5610 * config/avr/avr.c: Likewise.
5611 * config/bfin/bfin.c: Likewise.
5612 * config/crx/crx.c: Likewise.
5613 * config/darwin.h: Likewise.
5614 * config/h8300/h8300.c: Likewise.
5615 * config/i386/cygming.h: Likewise.
5616 * config/i386/i386.c: Likewise.
5617 * config/ia64/ia64.c: Likewise.
5618 * config/m32c/m32c.c: Likewise.
5619 * config/m32r/m32r.c: Likewise.
5620 * config/m68hc11/m68hc11.c: Likewise.
5621 * config/m68k/m68k.c: Likewise.
5622 * config/mcore/mcore.c: Likewise.
5623 * config/mep/mep.c: Likewise.
5624 * config/microblaze/microblaze.c: Likewise.
5625 * config/mips/mips.c: Likewise.
5626 * config/rs6000/rs6000.c: Likewise.
5627 * config/rx/rx.c: Likewise.
5628 * config/sh/sh.c: Likewise.
5629 * config/sol2.h: Likewise.
5630 * config/sparc/sparc.c: Likewise.
5631 * config/spu/spu.c: Likewise.
5632 * config/stormy16/stormy16.c: Likewise.
5633 * config/v850/v850.c: Likewise.
5635 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5637 * simplify-rtx.c (simplify_binary_operation_1): Handle
5638 (xor (and A B) C) case when B and C are both constants.
5640 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5642 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5644 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5647 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5649 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5651 PR rtl-optimization/48156
5652 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5653 assume df and df_lr are not NULL.
5655 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5658 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5659 between a call and its CALL_ARG_LOCATION note.
5661 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5664 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5665 between a call and its corresponding CALL_ARG_LOCATION note.
5667 2011-03-19 Anatoly Sokolov <aesok@post.ru>
5669 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5670 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5671 * haifa-sched.c (setup_ref_regs): Ditto.
5672 * caller-save.c (add_used_regs_1): Ditto.
5673 * dse.c (look_for_hardregs): Ditto.
5674 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5675 * sched-rgn.c (check_live_1): Ditto.
5677 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5679 * c-decl.c (diagnose_mismatched_decls): Give an error for
5680 redefining a typedef with variably modified type.
5682 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5684 * c-decl.c (grokfield): Don't allow typedefs for structures or
5685 unions with no tag by default.
5686 * doc/extend.texi (Unnamed Fields): Update.
5688 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
5690 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5691 Rewrite using indirect functions.
5692 (lwp_slwpcb): Ditto.
5693 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5694 (avx_vinsertf128<mode>): Ditto.
5696 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5698 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5701 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5703 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5704 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5706 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5708 PR rtl-optimization/48170
5709 * gcse.c (hoist_code): Remove bogus asserts.
5711 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5713 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5714 computation for prologue/epilogue.
5716 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5718 * Makefile.in (check-consistency): Remove.
5720 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5723 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5724 arange_table_in_use is 0, but either text_section_used or
5725 cold_text_section_used is true. Don't call it if
5726 !info_section_emitted.
5728 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5730 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5731 FUNCTION_VALUE_REGNO_P): Remove.
5732 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5734 * config/avr/avr.c (avr_ret_register): Make static inline.
5735 (avr_function_value_regno_p): New function.
5736 (avr_libcall_value): Make static. Add 'func' argument.
5737 (avr_function_value): Make static. Rename 'func' argument to
5738 'fn_decl_or_type', forward it to avr_libcall_value. Call
5739 avr_ret_register function instead of RET_REGISTER macro.
5740 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5742 2011-03-18 Jason Merrill <jason@redhat.com>
5745 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5747 2011-03-18 Richard Guenther <rguenther@suse.de>
5749 * doc/install.texi (--enable-gold): Remove.
5750 (--with-plugin-ld): Document.
5751 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5753 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5756 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5757 again after expansion changes.
5759 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5761 * combine.c (try_combine): Do simplification only call of
5762 subst() on i2 even when i1 is present. Update comments.
5764 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5766 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5767 and UNSPEC_PCREL_SYMOFF.
5769 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5771 * config/s390/s390.md: Use define_c_enum for the unspec constant
5774 2011-03-18 Richard Henderson <rth@redhat.com>
5775 Jakub Jelinek <jakub@redhat.com>
5778 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5779 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5781 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5784 * combine.c (cant_combine_insn_p): Don't check zero/sign
5785 extended hard registers.
5787 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5790 * combine.c (cant_combine_insn_p): Check zero/sign extended
5793 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5795 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5796 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5797 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5798 Change return type to bool.
5799 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5801 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5804 * var-tracking.c (prepare_call_arguments): If CALL target
5805 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5806 pc instead of looking it up using cselib_lookup and use
5807 Pmode for it if x has VOIDmode.
5808 * dwarf2out.c (gen_subprogram_die): If also both first and
5809 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5812 * function.c (assign_parms): For data.passed_pointer parms
5813 use MEM of data.entry_parm instead of data.entry_parm itself
5814 as DECL_INCOMING_RTL.
5815 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5816 also when passed and declared mode is the same, DECL_RTL
5817 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5820 2011-03-16 Jeff Law <law@redhat.com>
5822 PR rtl-optimization/37273
5823 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5824 handle them like argument loads from stack slots. Do not double
5825 count memory for memory constants and argument loads from stack slots.
5827 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5830 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5832 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5835 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5837 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5840 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5842 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5843 Clear call_arg_locations and call_arg_loc_last always.
5846 * var-tracking.c (prepare_call_arguments): If argument needs to be
5847 passed by reference, adjust argtype and mode.
5849 2011-03-17 Richard Guenther <rguenther@suse.de>
5852 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5853 a value make sure to fold the statement.
5855 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5858 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5859 return condition with !cfun->calls_alloca.
5861 2011-03-17 Richard Guenther <rguenther@suse.de>
5864 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5865 origin for decls in other ltrans units.
5866 (input_varpool_node): Likewise.
5868 2011-03-17 Richard Guenther <rguenther@suse.de>
5871 * tree-object-size.c (compute_object_offset): Properly return
5872 the offset operand of MEM_REFs as sizetype.
5874 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5876 PR rtl-optimization/48141
5877 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5878 * dse.c: Include params.h.
5879 (active_local_stores_len): New variable.
5880 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5882 (record_store, check_mem_read_rtx): Decrease it when removing
5884 (scan_insn): Likewise. Increase it when adding to chain, if it
5885 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5886 set active_local_stores to NULL before the addition.
5887 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5889 PR rtl-optimization/48141
5890 * dse.c (record_store): If no positions are needed in an insn
5891 that cannot be deleted, at least unchain it from active_local_stores.
5893 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5896 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5897 (lookup_type_die_strip_naming_typedef): ... here.
5898 (get_context_die): Use it.
5899 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5900 the anonymous struct named by the naming typedef.
5902 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5905 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5906 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5908 2011-03-16 Jeff Law <law@redhat.com>
5910 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5911 check for operands of conditional. Allow type to be a pointer.
5913 2011-03-16 Richard Guenther <rguenther@suse.de>
5915 PR tree-optimization/48149
5916 * fold-const.c (fold_binary_loc): Fold
5917 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5919 2011-03-16 Richard Guenther <rguenther@suse.de>
5921 PR tree-optimization/26134
5922 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5923 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5924 (non_rewritable_mem_ref_base): Handle complex type component
5925 accesses, constrain offsets for vector and complex extracts
5928 2011-03-16 Richard Guenther <rguenther@suse.de>
5930 PR tree-optimization/48146
5931 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5932 operands avoiding the need for renaming.
5934 2011-03-16 Richard Guenther <rguenther@suse.de>
5936 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5937 constant folding. Move MEM_REF canonicalization first.
5938 Rely on fold_const_aggregate_ref for initializer folding.
5939 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5941 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5944 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5945 arg0/arg1 or their arguments are always fold converted to matching
5948 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5951 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5954 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5955 Handle in-tree gold.
5956 (ld_vers): Extract binutils version for gold.
5957 (gcc_cv_ld_hidden): Handle gold here.
5958 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5959 * configure: Regenerate.
5960 * config.in: Regenerate.
5961 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5962 -fuse-linker-plugin otherwise.
5963 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5964 (LINK_COMMAND_SPEC): Use it.
5965 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5967 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5969 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5970 * calls.c: Remove debug.h include.
5971 (emit_call_1): Don't call virtual_call_token debug hook.
5972 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5973 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5974 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5975 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5976 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5977 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5978 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5979 dwarf2out_virtual_call): Remove.
5980 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5981 copy_call_info and virtual_call hooks.
5982 (dwarf2out_init): Don't initialize vcall_insn_table,
5983 debug_dcall_section and debug_vcall_section.
5984 (prune_unused_types): Don't mark nodes from dcall_table.
5985 (dwarf2out_finish): Don't output dcall or vcall tables.
5986 * final.c (final_scan_insn): Don't call direct_call or
5987 virtual_call debug hooks.
5988 * debug.h (struct gcc_debug_hooks): Remove direct_call,
5989 virtual_call_token, copy_call_info and virtual_call hooks.
5990 (debug_nothing_uid): Remove prototype.
5991 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5992 copy_call_info and virtual_call hooks.
5993 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5994 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5995 * debug.c (do_nothing_debug_hooks): Likewise.
5996 (debug_nothing_uid): Remove.
5997 * doc/invoke.texi (-fenable-icf-debug): Remove.
5998 * common.opt (-fenable-icf-debug): Likewise.
6000 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6001 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6002 call's MEM. Handle functions returning aggregate through a hidden
6003 first pointer. For virtual calls add clobbered pc to call arguments
6005 * dwarf2out.c (gen_subprogram_die): Emit
6006 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6010 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6011 * rtl.h (ENTRY_VALUE_EXP): Define.
6012 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6013 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6014 * print-rtl.c (print_rtx): Likewise.
6015 * gengtype.c (adjust_field_rtx_def): Likewise.
6016 * var-tracking.c (vt_add_function_parameter): Adjust
6017 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6018 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6019 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6020 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6021 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6023 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6024 Call var_location debug hook even on CALL_INSNs.
6025 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6026 * rtl.def (ENTRY_VALUE): New.
6027 * dwarf2out.c: Include cfglayout.h.
6028 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6029 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6030 (struct call_arg_loc_node): New type.
6031 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6032 tail_call_site_count): New variables.
6033 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6034 DW_TAG_GNU_call_site_parameter.
6035 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6036 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6037 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6038 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6039 and DW_AT_GNU_all_source_call_sites.
6040 (mem_loc_descriptor): Handle ENTRY_VALUE.
6041 (add_src_coords_attributes): Don't add enything if
6042 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6043 (dwarf2out_abstract_function): Save and clear call_arg_location,
6044 call_site_count and tail_call_site_count around dwarf2out_decl call.
6045 (gen_call_site_die): New function.
6046 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6047 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6048 (dwarf2out_function_decl): Clear call_arg_locations,
6049 call_arg_loc_last, set call_site_count and tail_call_site_count
6050 to -1 and free block_map.
6051 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6052 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6053 followed by any real instructions.
6054 (dwarf2out_begin_function): Set call_site_count and
6055 tail_call_site_count to 0.
6056 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6057 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6058 attempt to force a DIE for it and worst case remove the attribute.
6059 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6060 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6062 * var-tracking.c: Include tm_p.h.
6063 (vt_stack_adjustments): For calls call note_register_arguments.
6064 (argument_reg_set): New variable.
6065 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6066 ensure the VALUE is resolved.
6067 (call_arguments): New variable.
6068 (prepare_call_arguments): New function.
6069 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6070 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6071 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6072 always use the best expression.
6073 (vt_expand_loc): Add ignore_cur_loc argument.
6074 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6075 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6076 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6078 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6079 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6080 argument. Don't call cselib_preserve_only_values and
6082 (note_register_arguments): New function.
6083 (vt_initialize): Compute argument_reg_set. Call
6084 vt_add_function_parameters before processing basic blocks instead of
6085 afterwards. For calls call prepare_call_arguments before calling
6086 cselib_process_insn.
6087 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6088 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6089 (var-tracking.o): Depend on $(TM_P_H).
6090 * cfglayout.h (insn_scope): New prototype.
6091 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6092 * cfglayout.c (insn_scope): No longer static.
6093 * insn-notes.def (CALL_ARG_LOCATION): New.
6094 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6095 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6096 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6097 nothing for DECL_EXTERNAL BLOCK_VARS.
6099 2011-03-16 Alan Modra <amodra@gmail.com>
6102 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6103 create invalid offset address for vsx splat insn.
6104 * config/rs6000/predicates.md (splat_input_operand): New.
6105 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6107 2011-03-15 Xinliang David Li <davidxl@google.com>
6110 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6111 (normalize_preds): New function.
6112 (is_use_properly_guarded): Normalize def predicates.
6114 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6117 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6118 in the output template.
6120 2011-03-15 Richard Guenther <rguenther@suse.de>
6123 * tree-pretty-print.c (dump_function_declaration): Properly
6124 dump unprototyped and varargs function types.
6126 2011-03-15 Richard Guenther <rguenther@suse.de>
6128 PR tree-optimization/13954
6129 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6132 2011-03-15 Richard Guenther <rguenther@suse.de>
6134 PR tree-optimization/48037
6135 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6136 selects into BIT_FIELD_REFs.
6137 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6140 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6142 PR tree-optimization/48129
6143 * builtins.c (fold_builtin_snprintf): Convert to type of
6144 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6145 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6147 2011-03-15 Richard Guenther <rguenther@suse.de>
6149 PR tree-optimization/41490
6150 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6151 value but with VUSE.
6152 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6154 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6155 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6156 * tree-tailcall.c (find_tail_calls): Ignore returns.
6158 2011-03-15 Richard Guenther <rguenther@suse.de>
6161 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6162 or variable-indexed array accesses when in gimple form.
6164 2011-03-15 Richard Guenther <rguenther@suse.de>
6166 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6168 2011-03-15 Alan Modra <amodra@gmail.com>
6171 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6172 presume symbol_refs without a symbol_ref_decl are suitably
6173 aligned, nor other trees we may see here. Handle anchor symbols.
6174 (legitimate_constant_pool_address_p): Comment. Add mode param.
6175 Check cmodel=medium addresses. Adjust all calls.
6176 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6177 creating cmodel=medium optimized access to locals.
6178 * config/rs6000/constraints.md (R): Pass QImode to
6179 legitimate_constant_pool_address_p.
6180 * config/rs6000/predicates.md (input_operand): Pass mode to
6181 legitimate_constant_pool_address_p.
6182 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6185 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6188 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6189 64-bit constants being loaded into registers other than GPRs such
6190 as loading 0 into a VSX register.
6192 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6194 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6196 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6199 * builtins.c (fold_builtin_snprintf): New function.
6200 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6201 (fold_builtin_4): Likewise.
6204 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6205 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6206 and C - X == X also strip nops from +/-/p+ operand.
6207 When optimizing -X == C, fold C to arg0's type.
6210 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6211 emit it as add_AT_int instead of add_AT_unsigned.
6213 2011-03-14 Tom Tromey <tromey@redhat.com>
6215 * unwind-dw2.c: Include sys/sdt.h if it exists.
6216 (_Unwind_DebugHook): Use STAP_PROBE2.
6217 * config.in, configure: Rebuild.
6218 * configure.ac: Check for sys/sdt.h.
6220 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6222 * config/i386/i386.md (ROUND_FLOOR): New constant.
6223 (ROUND_CEIL): Ditto.
6224 (ROUND_TRUNC): Ditto.
6225 (ROUND_MXCSR): Ditto.
6226 (ROUND_NO_EXC): Ditto.
6227 (rint<mode>2): Use new defines instead of numerical constants.
6228 (floor<mode>2): Ditto.
6229 (ceil<mode>2): Ditto.
6230 (btrunc<mode>2): Ditto.
6231 * config/i386/i386-builtin-types.def: Define ROUND function type
6233 * config/i386/i386.c (enum ix86_builtins): Add
6234 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6235 (struct builtin_description): Add
6236 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6237 (ix86_expand_sse_round): New static function.
6238 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6240 (ix86_builtin_vectorized_function): Handle
6241 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6243 2011-03-14 Tom Tromey <tromey@redhat.com>
6245 * c-parser.c (c_parser_asm_string_literal): Clear
6246 warn_overlength_strings.
6248 2011-03-14 Tom Tromey <tromey@redhat.com>
6250 * c-parser.c (disable_extension_diagnostics): Save
6251 warn_overlength_strings.
6252 (restore_extension_diagnostics): Restore warn_overlength_strings.
6254 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6256 * BASE-VER: Change to 4.7.0.
6258 2011-03-14 Richard Guenther <rguenther@suse.de>
6261 * tree.c (build_vector_from_val): Adjust assert to requirements
6264 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6267 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6269 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6271 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6272 terms of target_flags_explicit. Adjust copyright year.
6274 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6275 * config/rs6000/t-freebsd: New file. Add override for
6278 2011-03-13 Chris Demetriou <cgd@google.com>
6280 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6281 (-fno-diagnostics-show-option): this, to reflect current default.
6282 (-Werror=): Update text about -fno-diagnostics-show-option.
6284 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6287 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6288 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6289 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6290 mode is not V2DImode or V2DFmode.
6291 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6292 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6293 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6295 (movdi_internal64): Likewise.
6297 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6299 PR tree-optimization/47127
6300 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6302 (set_cloog_options): Same.
6303 (scop_to_clast): Same.
6304 (print_clast_stmt): Do not call cloog_state_malloc and
6306 (print_generated_program): Same.
6308 * graphite-clast-to-gimple.h (cloog_state): Declared.
6309 (scop_to_clast): Adjust declaration.
6310 * graphite.c (cloog_state): Defined here.
6311 (graphite_initialize): Call cloog_state_malloc.
6312 (graphite_finalize): Call cloog_state_free.
6314 2011-03-11 Jason Merrill <jason@redhat.com>
6316 * attribs.c (lookup_attribute_spec): Take const_tree.
6319 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6321 * config/sparc/sparc.c (sparc_option_override): Use
6322 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6324 2011-03-11 Richard Guenther <rguenther@suse.de>
6326 PR tree-optimization/48067
6327 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6328 multiplication result will be only used once on the target
6331 2011-03-11 Richard Guenther <rguenther@suse.de>
6333 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6335 2011-03-11 Richard Guenther <rguenther@suse.de>
6338 * tree.c (find_decls_types_r): Do not walk types only reachable
6339 from IDENTIFIER_NODEs.
6341 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6344 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6345 all vnode->force_output nodes as needed.
6347 2011-03-11 Jason Merrill <jason@redhat.com>
6350 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6351 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6353 2011-03-11 Martin Jambor <mjambor@suse.cz>
6355 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6358 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6360 PR tree-optimization/48063
6361 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6362 inline functions called once if !tree_can_inline_p (node->callers).
6364 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6366 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6368 * config/score/score3.c: Delete.
6369 * config/score/score3.h: Delete.
6370 * config/score/mul-div.S: Delete.
6371 * config/score/sfp-machine.h: Add new file.
6372 * config/score/constraints.md: Add new file.
6373 * config/score/t-score-softfp: Add new file.
6374 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6375 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6376 (score7_extra_constraint): Delete.
6377 (score7_option_override): Remove unused code.
6378 * config/score/score.c: Remove score3 and score5 define and code.
6379 * config/score/score.h: Remove score3 and score5 define and code.
6380 * config/score/score.md: Remove score3 template and unusual insn.
6381 * config/score/score.opt: Remove score3 and score5 options.
6383 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6385 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6386 when _HPUX_SOURCE is defined.
6387 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6389 2011-03-10 Jason Merrill <jason@redhat.com>
6392 * stor-layout.c (layout_type): Don't set structural equality
6393 on arrays of incomplete type.
6394 * tree.c (type_hash_eq): Handle comparing them properly.
6396 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6399 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6400 result mode matches original rtl mode.
6402 2011-03-10 Nick Clifton <nickc@redhat.com>
6404 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6405 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6407 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6409 PR rtl-optimization/47866
6410 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6411 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6412 if target wasn't scalar.
6413 * function.c (assign_stack_temp_for_type): Assert that neither
6414 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6415 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6417 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6419 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6421 * config/s390/s390-protos.h (s390_label_align): New prototype.
6422 * config/s390/s390.c (s390_label_align): New function.
6423 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6425 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6428 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6429 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6430 (output_vec_const_move): Ditto.
6432 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6434 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6435 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6436 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6437 Change 'rclass' argument and result type to reg_class_t.
6438 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6440 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6442 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6443 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6444 (TARGET_MEMORY_MOVE_COST): Define.
6445 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6447 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6450 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6453 PR tree-optimization/48022
6454 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6457 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6460 * var-tracking.c (find_use_val): Return NULL for
6461 cui->sets && cui->store_p BLKmode MEMs.
6463 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6465 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6467 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6468 xstormy16_print_operand_address): Remove.
6469 * config/stormy16/stormy16.c (xstormy16_print_operand,
6470 xstormy16_print_operand_address): Make static.
6471 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6473 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6476 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6477 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6480 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6483 * cfgloopmanip.c (fix_bb_placements): Return immediately
6484 if FROM is BASE_LOOP's header.
6486 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6488 * gimplify.c (gimplify_function_tree): Fix building calls
6489 to __builtin_return_address.
6491 2011-03-07 Alan Modra <amodra@gmail.com>
6493 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6494 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6495 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6496 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6498 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6499 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6500 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6501 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6502 * config/rs6000/rs6000.c
6503 (rs6000_elf_end_indicate_exec_stack): Rename to..
6504 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6505 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6506 (rs6000_file_start): ..here.
6507 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6508 file scope variables.
6509 (call_ABI_of_interest): New function.
6510 (init_cumulative_args): Set above vars when function return value
6511 is a float, vector, or small struct.
6512 (rs6000_function_arg_advance_1): Likewise for function args.
6513 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6514 references float args.
6516 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6518 * doc/cfg.texi: Remove "See" before @ref.
6519 * doc/invoke.texi: Likewise.
6521 2011-03-05 Jason Merrill <jason@redhat.com>
6523 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6525 2011-03-05 Anthony Green <green@moxielogic.com>
6527 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6529 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6531 PR rtl-optimization/47899
6532 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6533 to flow_loop_nested_p when moving the loop upward.
6535 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6538 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6540 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6542 PR tree-optimization/47967
6543 * ipa-cp.c (build_const_val): Return NULL instead of creating
6544 VIEW_CONVERT_EXPR for mismatching sizes.
6545 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6546 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6547 give up on versioning.
6549 2011-03-05 Alan Modra <amodra@gmail.com>
6552 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6553 full cmodel medium/large lo_sum + high addresses.
6555 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6557 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6558 pool references in UNSPEC_LTREL_OFFSET.
6560 2011-03-04 Jan Hubicka <jh@suse.cz>
6563 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6564 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6565 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6567 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6568 cgraph_add_thunk): Add node pointers.
6569 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6570 associated to right node.
6571 (input_node): Update use of cgraph_same_body_alias
6572 and cgraph_add_thunk.
6574 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6576 * config/i386/i386.opt (mprefer-avx128): New flag.
6577 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6578 modes when the flag -mprefer-avx128 is on.
6580 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6582 * dwarf2out.c (compare_loc_operands): Fix address handling.
6584 2011-03-04 Alan Modra <amodra@gmail.com>
6586 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6588 2011-03-04 Richard Guenther <rguenther@suse.de>
6591 * expmed.c (extract_bit_field_1): Prefer vector modes that
6592 vec_extract patterns can handle.
6594 2011-03-04 Richard Guenther <rguenther@suse.de>
6597 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6599 2011-03-04 Richard Henderson <rth@redhat.com>
6601 * explow.c (emit_stack_save): Remove 'after' parameter.
6602 (emit_stack_restore): Likewise.
6603 * expr.h: Update to match.
6604 * builtins.c, calls.c, stmt.c: Likewise.
6605 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6606 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6607 * function.c (expand_function_end): Insert the emit_stack_save
6608 sequence before parm_birth_insn instead of after.
6610 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6612 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6613 (ssse3_pmaddubsw128): Ditto.
6614 (ssse3_pmaddubsw): Ditto.
6616 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6618 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6620 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6623 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6624 on TYPE_SIZE_UNIT if it is a DECL.
6627 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6628 first operand is not is_gimple_mem_ref_addr, try to fold it.
6629 If the operand still isn't is_gimple_mem_ref_addr, clear
6632 2011-03-03 Richard Guenther <rguenther@suse.de>
6635 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6637 (refs_may_alias_p_1): For release branches return true if
6638 we are confused by our input.
6640 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6642 * config/s390/s390.c (s390_function_value): Rename to ...
6643 (s390_function_and_libcall_value): ... this.
6644 (s390_function_value): New function.
6645 (s390_libcall_value): New function.
6646 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6647 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6648 target macro definitions.
6649 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6651 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6653 * config/i386/freebsd64.h (CC1_SPEC): Define.
6654 * config/i386/linux64.h (CC1_SPEC): Define.
6655 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6657 2011-03-02 Anatoly Sokolov <aesok@post.ru>
6659 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6661 * config/stormy16/stormy16.c: Include reload.h.
6662 (xstormy16_memory_move_cost): New function.
6663 (TARGET_MEMORY_MOVE_COST): Define.
6665 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6667 PR rtl-optimization/47925
6668 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6669 with side effects. Remove the more-specific check for volatile asms.
6671 2011-03-02 Alan Modra <amodra@gmail.com>
6674 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6675 toc relative addresses for valid offsets.
6677 2011-03-01 Richard Guenther <rguenther@suse.de>
6679 PR tree-optimization/47890
6680 * tree-vect-loop.c (get_initial_def_for_induction): Set
6681 related stmt properly.
6683 2011-03-01 Richard Guenther <rguenther@suse.de>
6686 * lto-streamer.c (lto_record_common_node): Also register
6689 2011-03-01 Richard Guenther <rguenther@suse.de>
6692 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6693 Do not stream DECL_ABSTRACT_ORIGIN.
6694 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6695 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6696 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6697 Do not stream DECL_ABSTRACT_ORIGIN.
6698 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6699 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6701 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6703 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6704 FUNCTION_VALUE_REGNO_P): Remove.
6705 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6706 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6707 Add 'outgoing' argument.
6708 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6710 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6711 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6713 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6716 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6717 (lookup_filename): Likewise.
6718 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6720 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6721 Jakub Jelinek <jakub@redhat.com>
6724 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6725 (assign_stack_local_1): Change last argument type to int.
6726 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6727 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6728 don't record padding space into frame_space_list nor use those areas.
6729 (assign_stack_local): Adjust caller.
6730 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6731 of assign_stack_local, pass 0 as last argument.
6732 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6735 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6738 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6739 Use target address_mode and pointer_mode hooks instead of hardcoded
6740 Pmode and ptr_mode. Handle some simple cases of extending if
6741 POINTERS_EXTEND_UNSIGNED < 0.
6742 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6743 Call convert_debug_memory_address.
6744 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6745 convert_debug_memory_address.
6748 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6749 * configure: Regenerated.
6750 * config.in: Regenerated.
6751 * varasm.c (default_function_section): Return NULL
6752 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6754 2011-02-28 Martin Jambor <mjambor@suse.cz>
6756 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6757 the description to match the printed values.
6759 2011-02-28 Richard Guenther <rguenther@suse.de>
6761 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6762 of the copied scope tree.
6764 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6766 * doc/extend.texi (Function Attributes): Avoid deeply (and
6767 wrongly) nested tables.
6769 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6772 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6773 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6774 r isn't op0 nor op1.
6776 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6778 * config/avr/avr.md: Remove magic comment for emacs.
6780 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6783 * config/avr/avr.c (avr_option_override): Use error on bad options.
6784 (avr_help): New function.
6785 (TARGET_HELP): Define.
6787 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6790 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6791 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6793 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6795 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6796 (ARM Options): Ditto.
6797 (i386 and x86-64 Options): Ditto.
6798 (RX Options): Ditto.
6799 (SPARC Options): Ditto.
6801 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6803 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6804 FreeBSD 6 and later. Generally use cpu generic.
6806 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6808 * doc/cpp.texi: Update copyright years.
6810 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6813 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6815 2011-02-25 Jon Beniston <jon@beniston.com>
6818 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6819 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6820 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6821 (lm32_block_move_inline): Add type cast to remove warning.
6822 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6823 (gen_int_relational): Move declarations to start of function.
6825 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6827 PR tree-optimization/45470
6828 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6829 can throw internally only.
6830 * tree-vect-stmts.c (vectorizable_call): Likewise.
6832 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6834 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6835 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6836 * config/stormy16/stormy16-protos.h
6837 (xstormy16_preferred_reload_class): Remove.
6838 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6839 static. Change 'rclass' argument and return type to reg_class_t.
6840 (TARGET_PREFERRED_RELOAD_CLASS,
6841 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6843 2011-02-24 Richard Guenther <rguenther@suse.de>
6845 * lto-streamer-in.c (input_bb): Do not find referenced vars
6846 in debug statements.
6848 2011-02-23 Jason Merrill <jason@redhat.com>
6850 * common.opt (fabi-version): Document v5 and v6.
6852 2011-02-23 Richard Guenther <rguenther@suse.de>
6854 PR tree-optimization/47849
6855 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6857 2011-02-23 Jie Zhang <jie@codesourcery.com>
6859 * opts-common.c (decode_cmdline_option): Print empty string
6860 argument as "" in decoded->orig_option_with_args_text.
6861 * gcc.c (execute): Print empty string argument as ""
6862 in the verbose output.
6863 (do_spec_1): Keep empty string argument.
6865 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6867 * config.gcc: Declare score-* and crx-* obsolete.
6869 2011-02-23 Jie Zhang <jie@codesourcery.com>
6871 PR rtl-optimization/47763
6872 * web.c (web_main): Ignore naked clobber when replacing register.
6874 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6876 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6879 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6882 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6884 2011-02-22 Mike Stump <mikestump@comcast.net>
6886 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6888 * configure: Regenerate.
6890 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6892 PR rtl-optimization/46002
6893 * ira-color.c (update_copy_costs): Change class intersection
6894 test to reg_class_contents[] test of 'hard_regno'.
6896 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6898 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6900 * config/hpux11.opt (mt): Likewise.
6901 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6902 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6903 * config/vax/elf.opt (mno-asm-pic): Likewise.
6904 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6906 2011-02-21 Mike Stump <mikestump@comcast.net>
6909 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6910 tree so we can get save the type.
6911 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6912 for CFString instead of trying to use past the end of the builtins.
6913 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6914 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6915 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6916 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6917 Rename to darwin_builtin_cfstring.
6918 (darwin_init_cfstring_builtins): Return the built type.
6920 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
6923 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6924 (_mm256_insert_epi64): Use _mm_insert_epi64.
6926 2011-02-21 Anatoly Sokolov <aesok@post.ru>
6928 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6929 * config/stormy16/stormy16-protos.h
6930 (xstormy16_mode_dependent_address_p): Remove.
6931 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6932 Make static. Change return type to bool. Change argument type to
6933 const_rtx. Remove dead code.
6934 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6936 2011-02-21 Richard Guenther <rguenther@suse.de>
6939 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6940 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6941 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6943 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6944 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6946 2011-02-20 Richard Guenther <rguenther@suse.de>
6949 * tree.c (free_lang_data_in_decl): Clean builtins from
6950 the TU decl BLOCK_VARS.
6952 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6956 * haifa-sched.c (fix_tick_ready): Skip tick computation
6959 2011-02-19 Richard Guenther <rguenther@suse.de>
6962 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6963 Remove lazy BLOCK_VARS streaming.
6964 (lto_input_ts_block_tree_pointers): Likewise.
6965 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6967 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6969 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6971 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6973 * config/i386/biarch32.h, config/i386/mach.h,
6974 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6976 2011-02-19 Jakub Jelinek <jakub@redhat.com>
6979 * config/i386/i386.md (peephole2 for shift and plus): Use
6980 operands[1] original mode in the first insn.
6982 2011-02-18 Mike Stump <mikestump@comcast.net>
6984 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6986 2011-02-18 Jan Hubicka <jh@suse.cz>
6989 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6990 to zero when the function is not inlinable at all.
6992 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6994 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6995 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6996 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6997 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6998 * config/pa/t-pa64: Likewise.
6999 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7001 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7004 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7006 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7009 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7011 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7013 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7014 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7015 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7016 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7017 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7018 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7019 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7020 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7021 m32r_legitimate_address_p): New functions.
7022 * config/m32r/constraints.md (constraint "S"): Don't use
7023 STORE_PREINC_PREDEC_P.
7024 (constraint "U"): Don't use LOAD_POSTINC_P.
7026 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7028 PR rtl-optimization/46178
7029 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7030 compute ira_hard_regno_cover_class[].
7032 2011-02-18 Richard Guenther <rguenther@suse.de>
7035 * lto-streamer.h (lto_global_var_decls): Declare.
7036 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7037 statics for global var processing.
7039 2011-02-18 Richard Guenther <rguenther@suse.de>
7041 PR tree-optimization/47737
7042 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7043 edge dominance check.
7045 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7048 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7049 avoid invalid rtx sharing.
7051 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7053 * doc/cpp.texi (Obsolete Features): Add background on the
7054 origin of assertions.
7056 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7058 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7060 * config/darwin.c (output_objc_section_asm_op): Added support for
7062 (is_objc_metadata): New.
7063 (darwin_objc2_section): New.
7064 (darwin_objc1_section): New.
7065 (machopic_select_section): Added support for ABI v1 and v2.
7066 (darwin_emit_objc_zeroed): New.
7067 (darwin_output_aligned_bss): Detect objc metadata and treat it
7069 (darwin_asm_output_aligned_decl_common): Same.
7070 (darwin_asm_output_aligned_decl_local): Same.
7071 * config/darwin-sections.def: Updated for ABI v1 and v2.
7072 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7073 compiling Objective-C code for the NeXT runtime, default to using
7074 ABI version 0 for 32-bit, and version 2 for 64-bit.
7076 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7078 * common.opt (optimize_fast): New Variable.
7079 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7080 instead of local variable ofast.
7082 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7084 * doc/invoke.texi (fobjc-abi-version): Documented.
7085 (fobjc-nilcheck): Documented.
7086 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7089 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7092 * common.opt (export-dynamic): New Driver option.
7093 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7095 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7097 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7099 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7100 Jan Hubicka <jh@suse.cz>
7104 * cfgexpand.c (account_used_vars_for_block): Remove.
7105 (estimated_stack_frame_size): Use referenced vars.
7106 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7107 that were referenced in the original function. Test src_fn
7108 rather than cfun. Drop redundant get_var_ann.
7109 (setup_one_parameter): Drop redundant get_var_ann.
7110 (declare_return_variable): Likewise.
7111 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7112 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7113 * ipa-inline.c (compute_inline_parameters): Do not compute
7114 disregard_inline_limits here.
7115 (compute_inlinable_for_current, pass_inlinable): New.
7116 (pass_inline_parameters): Require PROP_referenced_vars.
7117 * cgraphunit.c (cgraph_process_new_functions): Don't run
7118 compute_inline_parameters explicitly unless function is in SSA form.
7119 (cgraph_analyze_function): Set .disregard_inline_limits.
7120 * tree-sra.c (convert_callers): Compute inliner parameters
7121 only for functions already in SSA form.
7123 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7125 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7126 -mlittle-endian-data.
7128 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7130 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7131 -mno-fpu, not -fpu and -no-fpu.
7132 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7133 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7135 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7138 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7139 input reload with PLUS RTX.
7141 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7143 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7144 of InverseVar(MDMX).
7146 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7148 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7151 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7153 * config/mn10300/mn10300.opt (mno-crt0): New.
7155 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7157 * config/m68k/uclinux.opt (static-libc): New Driver option.
7159 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7161 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7163 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7165 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7166 %{muser-extend-enabled}.
7168 2011-02-16 Richard Guenther <rguenther@suse.de>
7170 PR tree-optimization/47738
7171 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7172 the TODO from tree_predictive_commoning.
7174 2011-02-15 Jeff Law <law@redhat.com>
7177 2011-01-25 Jeff Law <law@redhat.com>
7179 PR rtl-optimization/37273
7180 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7181 handle them like argument loads from stack slots. Do not double
7182 count memory for memory constants and argument loads from stack slots.
7184 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7187 * combine.c (cant_combine_insn_p): Revert the last change.
7189 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7192 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7193 mode for vector constants. Remove code that checks for TImode.
7195 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7199 * cgraph.h (compute_inline_parameters): Return void.
7200 * ipa-inline.c (compute_inline_parameters): Adjust.
7202 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7206 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7208 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7209 * ipa-inline.c (compute_inline_parameters): Adjust.
7211 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7215 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7216 Adjust all users. Pass FN to...
7217 * tree-flow-inline.h (first_referenced_var): ... this. Add
7219 * ipa-struct-reorg.c: Adjust.
7220 * tree-dfa.c: Adjust.
7221 * tree-into-ssa.c: Adjust.
7222 * tree-sra.c: Adjust.
7223 * tree-ssa-alias.c: Adjust.
7224 * tree-ssa-live.c: Adjust.
7225 * tree-ssa.c: Adjust.
7226 * tree-ssanames.c: Adjust.
7227 * tree-tailcall.c: Adjust.
7229 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7233 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7235 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7236 * tree-flow-inline.h: Adjust.
7237 * gimple-pretty-print.c: Adjust.
7238 * tree-into-ssa.c: Adjust.
7239 * tree-ssa.c: Adjust.
7240 * cfgexpand.c: Adjust.
7242 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7244 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7245 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7246 (EXTRA_CONSTRAINT): Delete.
7247 * config/iq2000/constraints.md: New file.
7248 * config/iq2000/iq2000.md: Include it.
7249 (define_insn ""): Delete.
7250 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7251 unsupported constraint letters from patterns.
7252 (call_value, call_value_internal1): Likewise.
7253 (call_value_multiple_internal1): Likewise.
7255 2011-02-15 Nick Clifton <nickc@redhat.com>
7257 * config/mn10300/mn10300.c: Include tm-constrs.h.
7258 (struct liw_data): New data structure describing an LIW candidate
7260 (extract_bundle): Use struct liw_data. Allow small integer
7261 operands for some instructions.
7262 (check_liw_constraints): Use struct liw_data. Remove swapped
7263 parameter. Add comments describing the checks. Fix bug when
7264 assigning the source of liw1 to the source of liw2.
7265 (liw_candidate): Delete. Code moved into extract_bundle.
7266 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7268 * config/mn10300/predicates.md (liw_operand): New predicate.
7269 Allows registers and small integer constants.
7270 * config/mn10300/constraints.md (O): New constraint. Accetps
7271 integers in the range -8 to +7 inclusive.
7272 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7273 for moving a small integer into a register. Give this alternative
7275 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7276 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7277 using the J,K,L and M constraints,
7278 (liw): Remove SI mode on second operands to allow for HI and QI
7280 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7283 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7286 * combine.c (cant_combine_insn_p): Check zero/sign extended
7289 2011-02-15 Richard Guenther <rguenther@suse.de>
7291 PR tree-optimization/47743
7292 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7293 for a non-type-compatible VN lookup bail out.
7295 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7297 * config/fr30/constraints.md: New file.
7298 * config/fr30/fr30.md: Include it.
7299 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7300 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7301 (EXTRA_CONSTRAINT): Delete.
7303 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7305 * config/frv/constraints.md: New file.
7306 * config/frv/predicates.md: Include it.
7307 * config/frv/frv.c (reg_class_from_letter): Delete.
7308 (frv_option_override): Don't initialize it.
7309 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7310 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7311 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7312 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7313 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7314 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7315 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7316 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7317 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7318 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7319 (REG_CLASS_FROM_CONSTRAINT): Delete.
7321 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7324 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7325 if frame size is 0 in a leaf function.
7327 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7330 * config/alpha/host-osf.c: New file.
7331 * config/alpha/x-osf: New file.
7332 * config.host (alpha*-dec-osf*): Use it.
7334 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7336 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7337 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7338 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7339 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7341 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7343 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7345 * config/stormy16/constraints.md: New file.
7346 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7347 Use satisfies_constraint_Q and satisfies_constraint_R.
7348 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7350 (xstormy16_legitiamte_address_p): Declare.
7351 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7352 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7353 (EXTRA_CONSTRAINT): Delete.
7354 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7356 (xstormy16_extra_constraint_p): Delete.
7358 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7360 PR tree-optimization/46494
7361 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7362 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7363 (pass_rtl_loop_done): Add TODO_verify_flow.
7364 * fwprop.c (pass_rtl_fwprop): Likewise.
7365 * modulo-sched.c (pass_sms): Likewise.
7366 * tree-ssa-dom.c (pass_dominator): Likewise.
7367 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7368 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7369 (pass_tree_loop_done): Likewise.
7370 * tree-ssa-pre.c (execute_pre): Likewise.
7371 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7372 * tree-ssa-sink.c (pass_sink_code): Likewise.
7373 * tree-vrp.c (pass_vrp): Likewise.
7375 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7377 * config/v850/constraints.md: New file.
7378 * config/v850/v850.md: Include it.
7379 * config/v850/predicates.md (reg_or_0_operand): Use
7380 satisfies_constraint_G.
7381 (special_symbolref_operand): Use satisfies_constraint_K.
7382 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7383 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7384 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7385 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7386 (EXTRA_CONSTRAINT): Delete.
7387 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7388 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7389 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7391 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7394 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7397 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7399 * config/mcore/constraints.md: New file.
7400 * config/mcore/mcore.md: Include it.
7401 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7402 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7403 (REG_CLASS_FROM_LETTER): Delete.
7404 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7405 insn_const_int_ok_for_constraint.
7406 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7407 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7408 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7409 (EXTRA_CONSTRAINT): Delete.
7411 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7414 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7415 (IS_SIGHANDLER): Define.
7416 (sparc64_is_sighandler): New function, split off from
7417 sparc64_fallback_frame_state.
7418 (sparc_is_sighandler): New function, split off from
7419 sparc_fallback_frame_state.
7420 (sparc64_fallback_frame_state): Merge with ...
7421 (sparc_fallback_frame_state): ... this into ...
7422 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7423 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7424 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7425 stack instead of hardcoded offsets.
7427 2011-02-14 Andriy Gapon <avg@freebsd.org>
7430 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7432 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7434 * configure: Regenerate.
7436 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7439 * gcc.c (asm_options): Correct spec matching --target-help.
7441 2011-02-12 Martin Jambor <mjambor@suse.cz>
7443 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7444 to gimple call error.
7446 2011-02-12 Mike Stump <mikestump@comcast.net>
7448 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7449 comments in backslash regions.
7451 2011-02-12 Mike Stump <mikestump@comcast.net>
7452 Jakub Jelinek <jakub@redhat.com>
7453 Iain Sandoe <iains@gcc.gnu.org>
7456 * dwarf2out.c (output_cfa_loc): When required, apply the
7457 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7458 (output_loc_sequence): Likewise.
7459 (output_loc_operands_raw): Likewise.
7460 (output_loc_sequence_raw): Likewise.
7461 (output_cfa_loc): Likewise.
7462 (output_loc_list): Suppress register number adjustment when
7463 calling output_loc_sequence()
7464 (output_die): Likewise.
7466 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7468 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7470 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7471 xtensa_memory_move_cost): New functions.
7472 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7474 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7477 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7478 in the current directory.
7479 * configure: Rebuilt.
7481 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7483 * config/darwin.c (darwin_override_options): Add a hunk missed
7484 from the commit of r168571. Trim comment line lengths and
7485 correct indents of the preceding block.
7487 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7489 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7492 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7494 * common.opt (nostartfiles): New Driver option.
7496 2011-02-11 Xinliang David Li <davidxl@google.com>
7498 PR tree-optimization/47707
7499 * tree-chrec.c (convert_affine_scev): Keep type precision.
7501 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7503 PR tree-optimization/47420
7504 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7506 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7508 PR rtl-optimization/47614
7509 * rtl.h (check_for_inc_dec): Declare.
7510 * dse.c (check_for_inc_dec): Externalize...
7511 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7512 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7514 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7517 * gcc.c (main): Do not compile inputs if there were errors in
7519 * opts-common.c (read_cmdline_option): Check for wrong language
7520 after other error checks.
7522 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7524 * cgraph.c: Fix comment typos.
7525 * cgraph.h: Likewise.
7526 * cgraphunit.c: Likewise.
7527 * ipa-cp.c: Likewise.
7528 * ipa-inline.c: Likewise.
7529 * ipa-prop.c: Likewise.
7530 * ipa-pure-const.c: Likewise.
7531 * ipa-ref.c: Likewise.
7532 * ipa-reference.c: Likewise.
7534 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7537 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7539 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7542 * doc/sourcebuild.texi (Require Support): Document
7543 dg-require-ascii-locale.
7545 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7547 * doc/lto.texi (Write summary): Fix missing parentheses.
7549 2011-02-10 DJ Delorie <dj@redhat.com>
7551 * config/m32c/m32c.c (m32c_option_override): Disable
7552 -fcombine-stack-adjustments until flag value tracking and compare
7553 optimization can be rewritten.
7555 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7557 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7559 (PROCESSOR_DEFAULT64): Likewise.
7561 2011-02-10 Richard Henderson <rth@redhat.com>
7563 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7564 change from 2011-02-03.
7565 * config/rx/rx.c (flags_from_code): Likewise.
7566 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7567 is valid, n/pz otherwise.
7568 (rx_select_cc_mode): Return CCmode if Y is not zero.
7570 2011-02-10 Richard Guenther <rguenther@suse.de>
7572 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7574 2011-02-10 Richard Guenther <rguenther@suse.de>
7576 PR tree-optimization/47677
7577 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7579 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7582 * combine.c (make_compound_operation): Only change shifts into
7583 multiplication for SCALAR_INT_MODE_P.
7585 2011-02-10 Jie Zhang <jie@codesourcery.com>
7589 2011-02-05 Jie Zhang <jie@codesourcery.com>
7591 * web.c (entry_register): Don't clobber the number of the
7592 first uninitialized reference in used[].
7594 2011-02-09 Richard Guenther <rguenther@suse.de>
7596 PR tree-optimization/47664
7597 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7600 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7604 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7606 (PROCESSOR_DEFAULT64): Same.
7607 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7609 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7611 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7613 2011-02-09 Martin Jambor <mjambor@suse.cz>
7616 * tree-sra.c (struct access): New flags grp_scalar_read and
7617 grp_scalar_write. Changed description of assignment read and write
7619 (dump_access): Dump new flags, reorder all of them.
7620 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7621 to detect multiple scalar reads.
7622 (analyze_access_subtree): Use the new scalar read write flags instead
7623 of the old flags. Adjusted comments.
7625 2011-02-08 DJ Delorie <dj@redhat.com>
7628 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7633 * config/m68k/uclinux.opt: New.
7634 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7636 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7638 * config/cris/elf.opt (sim): New Driver option.
7640 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7642 * config/xtensa/elf.opt: New.
7643 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7645 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7647 * config/vax/elf.opt: New.
7648 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7650 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7652 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7654 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7656 * config/gnu-user.opt: New.
7657 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7658 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7659 *-*-uclinux*): Use gnu-user.opt.
7661 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
7663 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7664 * config/i386/gnu.h (CPP_SPEC): Likewise.
7666 2011-02-08 Ian Lance Taylor <iant@google.com>
7668 * common.opt (fcx-limited-range): Add SetByCombined flag.
7669 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7670 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7671 (fassociative-math, freciprocal-math): Likewise.
7672 (funsafe-math-optimizations): Likewise.
7673 * opth-gen.awk: Handle SetByCombined.
7674 * optc-gen.awk: Likewise.
7675 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7676 (set_unsafe_math_optimizations_flags): Likewise.
7677 * doc/options.texi (Option properties): Document SetByCombined.
7679 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7681 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7682 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7683 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7684 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7685 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7687 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7689 PR tree-optimization/46834
7690 PR tree-optimization/46994
7691 PR tree-optimization/46995
7692 * graphite-sese-to-poly.c (used_outside_reduction): New.
7693 (detect_commutative_reduction): Call used_outside_reduction.
7694 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7695 translate_scalar_reduction_to_array only when at least one
7696 loop-phi/close-phi tuple has been detected.
7698 2011-02-08 Richard Guenther <rguenther@suse.de>
7701 * tree-vect-generic.c (expand_vector_operations_1): Update
7703 (expand_vector_operations): ... not here. Cleanup EH info
7704 and the CFG if required.
7706 2011-02-08 Richard Guenther <rguenther@suse.de>
7708 PR tree-optimization/47641
7709 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7710 require type compatibility.
7712 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7714 * gimple-low.c (lower_function_body): Don't remove the location of
7715 the return statement here.
7716 (lower_gimple_return): Do it here instead but only if the return
7717 statement is actually used twice.
7719 2011-02-08 Richard Guenther <rguenther@suse.de>
7721 PR tree-optimization/47632
7722 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7723 unused up_to_stmt parameter, return whether cfg-cleanup is
7724 necessary, remove EH info properly.
7725 (forward_propagate_into_gimple_cond): Adjust caller.
7726 (forward_propagate_into_cond): Likewise.
7727 (forward_propagate_comparison): Likewise.
7728 (tree_ssa_forward_propagate_single_use_vars): Make
7729 forward_propagate_comparison case similar to the two others.
7731 2011-02-08 Nick Clifton <nickc@redhat.com>
7733 * config/mn10300/mn10300.opt (mliw): New command line option.
7734 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7735 (liw_bundling): New automaton.
7736 (liw): New attribute.
7737 (liw_op): New attribute.
7738 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7739 (movsi_internal): Add LIW attributes.
7743 (addsi3): Separate register and immediate alternatives.
7748 (lshrsi3): Likewise.
7749 (ashrsi3): Likewise.
7751 * config/mn10300/mn10300.c (liw_op_names): New
7752 (mn10300_print_operand): Handle 'W' operand descriptor.
7753 (extract_bundle): New function.
7754 (check_liw_constraints): New function.
7755 (liw_candidate): New function.
7756 (mn10300_bundle_liw): New function.
7757 (mn10300_reorg): New function.
7758 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7759 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7760 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7761 __LIW__ or __NO_LIW__.
7762 * doc/invoke.texi: Describe the -mliw command line option.
7764 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7766 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7767 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7768 pthread_mutex_unlock): Remove.
7769 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7770 * config/pa/t-pa64: Likewise.
7771 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7772 shared libc if not linking against libpthread.
7773 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7775 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7778 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7779 on 10.6 and later to ensure that we always use the unwinder from
7780 the system. Only add -no_compact_unwind when tarteting darwin
7783 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7786 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7787 (vec_interleave_lowv2sf): Ditto.
7788 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7789 (vec_extract_oddv2sf): Ditto.
7791 2011-02-07 Mike Stump <mikestump@comcast.net>
7794 Add __ieee_divdc3 entry point.
7795 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7797 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7798 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7799 * config/darwin.c (darwin_rename_builtins): Add.
7800 * config/darwin-protos.h (darwin_rename_builtins): Add.
7802 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7805 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7808 2011-02-07 Mike Stump <mikestump@comcast.net>
7810 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7812 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7815 * config/avr/libgcc.S (exit): Move .endfunc
7817 2011-02-07 Richard Guenther <rguenther@suse.de>
7819 PR tree-optimization/47615
7820 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7821 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7822 (run_scc_vn): Initialize it.
7823 (visit_reference_op_load): Use it.
7824 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7826 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7828 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7829 DImode trapping arithmetic libfuncs.
7831 2011-02-07 Richard Guenther <rguenther@suse.de>
7833 PR tree-optimization/47621
7834 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7836 (execute_update_addresses_taken): ... here. Make it more
7837 conservative in what we accept.
7839 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7841 * config/sparc/freebsd.h (ASM_SPEC): Define.
7842 * config/sparc/vxworks.h (ASM_SPEC): Define.
7844 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7846 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7848 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7850 * doc/invoke.texi: Remove reference to compiler internals from
7853 * reg-notes.def: Remove REG_VALUE_PROFILE.
7854 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7856 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7859 * varasm.c (default_section_type_flags): If decl is NULL,
7860 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7862 2011-02-05 Jie Zhang <jie@codesourcery.com>
7865 * web.c (entry_register): Don't clobber the number of the
7866 first uninitialized reference in used[].
7868 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7870 PR tree-optimization/46194
7871 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7872 (build_classic_dist_vector_1): Do not represent classic distance
7873 vectors when the access functions are variating in different loops.
7875 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7877 * config/mips/iris6.opt: New.
7878 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7880 2011-02-04 Richard Henderson <rth@redhat.com>
7881 Steve Ellcey <sje@cup.hp.com>
7884 * config/ia64/predicates.md (mux1_brcst_element): New.
7885 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7886 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7887 (ia64_unpack_sign): New.
7888 (ia64_expand_unpack): Rewrite using new routines.
7889 (ia64_expand_widen_sum): Ditto.
7890 (ia64_expand_dot_prod_v8qi): Ditto.
7891 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7892 routines, add endian check.
7893 (pmpy2_even): Rename from pmpy2_r, add endian check.
7894 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7895 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7896 (vec_widen_smult_hi_v4hi): Ditto.
7897 (vec_widen_umult_lo_v4hi): Ditto.
7898 (vec_widen_umult_hi_v4hi): Ditto.
7899 (mulv2si3): Change endian checks.
7900 (sdot_prodv4hi): Rewrite with new calls.
7901 (udot_prodv4hi): New.
7902 (vec_pack_ssat_v4hi): Add endian check.
7903 (vec_pack_usat_v4hi): Ditto.
7904 (vec_pack_ssat_v2si): Ditto.
7905 (max1_even): Rename from max1_r, add endian check.
7906 (max1_odd): Rename from max1_l, add endian check.
7907 (*mux1_rev): Format change.
7909 (*mux1_shuf): Ditto.
7911 (*mux1_brcst_v8qi): Use new predicate.
7912 (vec_extract_evenv8qi): Remove endian check.
7913 (vec_extract_oddv8qi): Ditto.
7914 (vec_interleave_lowv4hi): Format change.
7915 (vec_interleave_highv4hi): Ditto.
7916 (mix2_even): Rename from mix2_r, add endian check.
7917 (mix2_odd): Rename from mux2_l, add endian check.
7918 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7919 (vec_extract_evenodd_helper): Format change.
7920 (vec_extract_evenv4hi): Remove endian check.
7921 (vec_extract_oddv4hi): Remove endian check.
7922 (vec_interleave_lowv2si): Format change.
7923 (vec_interleave_highv2si): Format change.
7924 (vec_initv2si): Remove endian check.
7925 (vecinit_v2si): Add endian check.
7926 (reduc_splus_v2sf): Add endian check.
7927 (reduc_smax_v2sf): Ditto.
7928 (reduc_smin_v2sf): Ditto.
7929 (vec_initv2sf): Remove endian check.
7930 (fpack): Add endian check.
7931 (fswap): Add endian check.
7932 (vec_interleave_highv2sf): Add endian check.
7933 (vec_interleave_lowv2sf): Add endian check.
7934 (fmix_lr): Add endian check.
7935 (vec_setv2sf): Format change.
7936 (*vec_extractv2sf_0_be): Use shift to extract operand.
7937 (*vec_extractv2sf_1_be): New.
7938 (vec_pack_trunc_v4hi): Add endian check.
7939 (vec_pack_trunc_v2si): Format change.
7941 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7944 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7945 do bb, locus and block comparison and disallow loads if it is not set.
7946 (stmt_is_replaceable_p): New function.
7947 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7949 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7950 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7952 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7954 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7956 * config/rs6000/xilinx.opt: New.
7957 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7959 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7961 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7963 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7965 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7966 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7967 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7968 secondary_reload_info, xtensa_secondary_reload): Remove.
7969 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7970 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7971 (xtensa_preferred_reload_class): Make static. Change return and
7972 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7973 Use CONST_DOUBLE_P predicate.
7974 (xtensa_preferred_output_reload_class): New function.
7975 (xtensa_secondary_reload): Make static.
7977 2011-02-03 Joseph Myers <joseph@codesourcery.com>
7979 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7980 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7981 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7983 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7986 * output.h (SECTION_RELRO): Define.
7987 (SECTION_MACH_DEP): Adjust.
7988 (get_variable_section): New prototype.
7989 * varpool.c (varpool_finalize_named_section_flags): New function.
7990 (varpool_assemble_pending_decls): Call it.
7991 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7992 * cgraphunit.c (cgraph_output_in_order): Call
7993 varpool_finalize_named_section_flags.
7994 * varasm.c (get_section): Allow section flags conflicts between
7995 relro and read-only sections if the section hasn't been declared yet.
7996 Set SECTION_OVERRIDE after diagnosing section type conflict.
7997 (get_variable_section): No longer static.
7998 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7999 readonly sections that need relocations.
8000 (decl_readonly_section_1): New function.
8001 (decl_readonly_section): Use it.
8004 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8005 Steve Ellcey <sje@cup.hp.com>
8008 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8009 if section attribute used.
8011 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8013 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8014 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8015 (darwin_init_sections): Remove assertion.
8017 2011-02-03 Nick Clifton <nickc@redhat.com>
8019 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8021 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8022 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8023 instead of "n" and "pz".
8024 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8027 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8030 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8031 fma, expand FMA_EXPR as fma{,f,l} call.
8034 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8035 copy them into a unsigned char variable and pass address of it to
8036 lto_output_data_stream.
8039 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8040 around backend_init_target and lang_dependent_init_target calls.
8041 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8042 (verify_cgraph_node): Don't call set_cfun here. Use
8043 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8044 Set error_found for incorrectly represented calls to thunks.
8046 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8049 PR rtl-optimization/43494
8050 * rtl.h (for_each_inc_dec_fn): New type.
8051 (for_each_inc_dec): Declare.
8052 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8053 (for_each_inc_dec_find_inc_dec): New fn.
8054 (for_each_inc_dec_find_mem): New fn.
8055 (for_each_inc_dec): New fn.
8056 * dse.c (struct insn_size): Remove.
8057 (replace_inc_dec, replace_inc_dec_mem): Remove.
8058 (emit_inc_dec_insn_before): New fn.
8059 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8060 (canon_address): Pass mem modes to cselib_lookup.
8061 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8062 (cselib_lookup_from_insn): Likewise.
8063 (cselib_subst_to_values): Likewise.
8064 * cselib.c (find_slot_memmode): New var.
8065 (cselib_find_slot): New fn. Use it instead of
8066 htab_find_slot_with_hash everywhere.
8067 (entry_and_rtx_equal_p): Use find_slot_memmode.
8068 (autoinc_split): New fn.
8069 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8070 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8071 Deal with autoinc. Special-case recursion into MEMs.
8072 (cselib_hash_rtx): Likewise.
8073 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8074 address and MEM modes.
8075 (cselib_subst_to_values): Add memmode, pass it on.
8077 (cselib_lookup): Add memmode argument, pass it on.
8078 (cselib_lookup_from_insn): Add memmode.
8079 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8080 (struct cselib_record_autoinc_data): New.
8081 (cselib_record_autoinc_cb): New fn.
8082 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8083 mode to cselib_lookup. Reset autoinced REGs here instead of...
8084 (cselib_process_insn): ... here.
8085 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8087 (add_uses): Likewise, also to cselib_subst_to_values.
8088 (add_stores): Likewise.
8089 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8090 cselib_subst_to_values.
8091 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8092 * gcse.c (do_local_cprop): Adjusted.
8093 * postreload.c (reload_cse_simplify_set): Adjusted.
8094 (reload_cse_simplify_operands): Adjusted.
8095 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8097 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8099 PR tree-optimization/45122
8100 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8101 unsafe assumptions when there's more than one loop exit.
8103 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8106 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8107 Document using vector double with the load/store builtins, and
8108 that the load/store builtins always use Altivec instructions.
8110 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8111 to use altivec memory instructions, even on VSX.
8112 (vector_altivec_store_<mode>): Ditto.
8114 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8117 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8118 V2DF, V2DI support to load/store overloaded builtins.
8120 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8121 altivec load/store builtins for V2DF/V2DI types.
8123 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8124 set avoid indexed addresses on power6 if -maltivec.
8125 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8126 vector_altivec_load/vector_altivec_store builtins.
8127 (altivec_expand_st_builtin): Ditto.
8128 (altivec_expand_builtin): Add VSX memory builtins.
8129 (rs6000_init_builtins): Add V2DI types to internal types.
8130 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8131 load/store builtins.
8132 (rs6000_address_for_altivec): Insure memory address is appropriate
8135 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8136 vec_vsx_ld and vec_vsx_st.
8137 (vsx_store_<mode>): Ditto.
8139 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8140 variables to hold long long types for VSX vector memory builtins.
8141 (RS6000_BTI_unsigned_long_long): Ditto.
8142 (long_long_integer_type_internal_node): Ditti.
8143 (long_long_unsigned_type_internal_node): Ditti.
8145 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8146 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8147 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8149 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8151 (vec_vsx_st): Ditto.
8153 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8155 * config/pa/pa-hpux10.opt: New.
8156 * config/hpux11.opt (pthread): New Driver option.
8157 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8158 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8160 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8162 * config/ia64/vms.opt: New.
8163 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8165 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8168 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8169 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8170 generator functions.
8171 (vsx_floatuns<VSi><mode>2): Ditto.
8172 (vsx_fix_trunc<mode><VSi>2): Ditto.
8173 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8175 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8177 * config/i386/djgpp.opt (posix): New Driver option.
8179 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8181 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8182 Move to the unsupported targets list.
8184 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8186 PR rtl-optimization/47525
8187 * df-scan.c: Update copyright years.
8188 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8189 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8191 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8193 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8194 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8195 (ASM_OUTPUT_ASCII): Remove.
8196 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8198 2011-02-02 Jeff Law <law@redhat.com>
8201 * reload.c (find_reloads_address): Handle reg+d address where both
8202 components are invalid by reloading the entire address.
8204 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8205 Richard Guenther <rguenther@suse.de>
8207 PR tree-optimization/40979
8209 * passes.c (init_optimization_passes): After LIM call copy_prop
8210 and DCE to clean up.
8211 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8213 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8215 PR tree-optimization/47576
8216 PR tree-optimization/47555
8217 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8218 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8219 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8220 * tree-scalar-evolution.c (follow_ssa_edge): Use
8221 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8223 2011-02-02 Richard Guenther <rguenther@suse.de>
8225 PR tree-optimization/47566
8226 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8228 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8232 * tree-inline.c (declare_return_variable): Remove unused caller
8237 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8238 * cfgexpand.c (account_used_vars_for_block): Use them.
8239 * tree-nrv.c (tree_nrv): Likewise.
8240 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8241 (dump_scope_block): Likewise.
8242 (remove_unused_locals): Likewise.
8246 * tree-inline.c (declare_return_variable): Add result decl to
8247 local decls only once.
8248 * gimple-low.c (record_vars_into): Mark newly-created variables
8251 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8257 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8259 (no_real_insns_p, schedule_block, set_priorities): Drop special
8260 treatment of boundary debug insns.
8261 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8262 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8263 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8264 (BOUNDARY_DEBUG_INSN_P): Likewise.
8265 (SCHEDULE_DEBUG_INSN_P): Likewise.
8266 * sched-rgn.c (init_ready_list): Drop special treatment of
8267 boundary debug insns.
8268 * final.c (rest_of_clean_state): Clear notes' BB.
8270 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8272 * config/openbsd.opt (assert=): New Driver option.
8274 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8276 * config/i386/nto.opt: New.
8277 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8279 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8281 * config/i386/netware.opt: New.
8282 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8284 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8286 * config/interix.opt (posix): New Driver option.
8288 2011-02-01 DJ Delorie <dj@redhat.com>
8290 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8292 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8295 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8297 PR tree-optimization/47561
8298 * toplev.c (process_options): Print the Graphite flags. Add
8299 flag_loop_flatten to the list of options requiring Graphite.
8301 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8303 * config/i386/cygming.opt (posix): New Driver option.
8305 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8307 * config/arm/vxworks.opt: New.
8308 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8310 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8312 * config/alpha/elf.opt: New.
8313 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8314 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8316 2011-02-01 Richard Guenther <rguenther@suse.de>
8318 PR tree-optimization/47559
8319 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8320 store-motion on references that can throw.
8322 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8324 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8325 * tree-pass.h (TDF_CSELIB): New macro.
8326 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8327 cselib_lookup): Check for it rather than for TDF_DETAILS.
8329 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8332 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8335 * opts.c (finish_options): Don't add x_aux_base_name if it is
8338 2011-02-01 Richard Guenther <rguenther@suse.de>
8340 PR tree-optimization/47555
8342 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8344 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8346 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8349 * config/lm32/t-lm32: Add multilib for all CPU options.
8351 2011-02-01 Richard Guenther <rguenther@suse.de>
8353 PR tree-optimization/47541
8354 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8355 sure to have a field at offset zero.
8357 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8359 * config/arc/arc.opt (EB, EL): New Driver options.
8361 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8363 * config/alpha/osf5.opt: New.
8364 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8366 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8368 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8370 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8372 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8374 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8375 is an alias of -floop-interchange and that it requires the
8376 Graphite infrastructure.
8377 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8378 flag_loop_interchange based on the value of flag_tree_loop_linear.
8380 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8381 Richard Guenther <rguenther@suse.de>
8383 PR tree-optimization/47538
8384 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8385 type instead of r1type, except for comparisons. For right
8386 shifts and comparisons punt if there are mismatches in
8387 sizetype vs. non-sizetype types.
8389 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8391 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8394 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8396 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8398 * configure: Regenerate.
8400 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8402 * configure.ac (gcc_cv_ld_static_option): Define.
8403 (gcc_cv_ld_dynamic_option): Define.
8404 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8406 (HAVE_LD_STATIC_DYNAMIC): Update message.
8407 (LD_STATIC_OPTION): Define.
8408 (LD_DYNAMIC_OPTION): Define.
8409 * configure: Regenerate.
8410 * config.in: Regenerate.
8411 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8412 HAVE_LD_STATIC_DYNAMIC]: Use them.
8414 2011-01-31 Nick Clifton <nickc@redhat.com>
8416 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8417 registers inside interrupt handlers if the handler is not a leaf
8420 2011-01-31 Nick Clifton <nickc@redhat.com>
8422 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8423 reg_renumber returning an INVALID_REGNUM.
8425 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8428 * doc/install.texi: Document host options discarded when cross
8429 configuring target libraries.
8431 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8434 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8437 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8439 (no_real_insns_p, schedule_block, set_priorities): Drop special
8440 treatment of boundary debug insns.
8441 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8442 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8443 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8444 (BOUNDARY_DEBUG_INSN_P): Likewise.
8445 (SCHEDULE_DEBUG_INSN_P): Likewise.
8446 * sched-rgn.c (init_ready_list): Drop special treatment of
8447 boundary debug insns.
8448 * final.c (rest_of_clean-state): Clear notes' BB.
8450 2011-01-31 Alan Modra <amodra@gmail.com>
8452 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8453 toc relative expressions as we do in print_operand_address.
8455 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8457 * doc/extend.texi: Follow spelling conventions.
8458 * doc/invoke.texi: Fix a typo.
8460 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8462 * config/hpux11.opt: New.
8463 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8464 ia64*-*-hpux*): Use hpux11.opt.
8466 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8468 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8471 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8473 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8476 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8478 * doc/install.texi (Binaries): Remove outdated reference for
8479 Motorola 68HC11/68HC12 downloads.
8481 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8483 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8486 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8489 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8492 2011-01-28 Ahmad Sharif <asharif@google.com>
8494 * value-prof.c (check_counter): Corrected error message.
8496 2011-01-29 Jie Zhang <jie@codesourcery.com>
8498 * config/arm/arm.c (arm_legitimize_reload_address): New.
8499 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8500 arm_legitimize_reload_address.
8501 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8503 2011-01-28 Ian Lance Taylor <iant@google.com>
8505 * godump.c (go_define): Ignore macros whose definitions include
8506 two adjacent operands.
8508 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8511 * varasm.c (force_const_mem): Store copy of x in desc->constant
8512 instead of x itself.
8513 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8514 itself into REG_EQUAL note.
8516 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8518 * config/freebsd.opt (posix, rdynamic): New Driver options.
8520 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8522 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8524 * configure: Regenerate.
8526 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8528 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8529 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8531 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8533 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8534 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8535 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8536 (s390_preferred_reload_class): Make static. Change return and
8537 'rclass' argument type to reg_class_t.
8539 2011-01-27 Jan Hubicka <jh@suse.cz>
8542 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8543 (process_function_and_variable_attributes): Check defined weakrefs.
8545 2011-01-27 Martin Jambor <mjambor@suse.cz>
8547 PR tree-optimization/47228
8548 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8549 build_ref_for_offset.
8551 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8553 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8555 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8557 PR rtl-optimization/46856
8558 * postreload.c (reload_combine_recognize_const_pattern): Do not
8559 separate cc0 setter and user on cc0 targets.
8561 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8564 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8565 passed a VOID_TYPE expression, immediately emit an error and
8566 return error_mark_node.
8568 2011-01-26 Jeff Law <law@redhat.com>
8570 PR rtl-optimization/47464
8571 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8572 rather than may_trap_p as needed.
8574 2011-01-26 DJ Delorie <dj@redhat.com>
8576 PR rtl-optimization/46878
8577 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8578 setter/user dependency as well.
8580 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8582 PR rtl-optimization/44469
8583 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8584 after removing trivially dead basic blocks.
8586 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8588 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8589 * config/frv/frv.h (LINK_SPEC): Likewise.
8590 * config/i386/netware.h (LINK_SPEC): Likewise.
8591 * config/m68k/linux.h (ASM_SPEC): Likewise.
8592 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8593 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8594 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8595 * config/sparc/linux.h (ASM_SPEC): Likewise.
8596 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8597 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8599 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8601 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8602 * config/frv/frv.h (ASM_SPEC): Likewise.
8603 * config/m68k/linux.h (ASM_SPEC): Likewise.
8604 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8605 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8606 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8607 * config/sparc/linux.h (ASM_SPEC): Likewise.
8608 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8609 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8611 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8613 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8614 * config/frv/frv.h (LINK_SPEC): Likewise.
8615 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8617 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8619 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8620 * config/frv/frv.h (ASM_SPEC): Likewise.
8621 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8622 * config/m68k/linux.h (ASM_SPEC): Likewise.
8623 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8624 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8625 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8626 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8627 * config/sparc/linux.h (ASM_SPEC): Likewise.
8628 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8629 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8630 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8632 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8635 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8637 (vec_extract_evenodd_help): Ditto.
8638 (vec_extract_evenv4hi): Ditto.
8639 (vec_extract_oddv4hi): Ditto.
8640 (vec_interleave_lowv2si): Ditto.
8641 (vec_interleave_highv2si): Ditto.
8642 (vec_extract_evenv2si): Ditto.
8643 (vec_extract_oddv2si: Ditto.
8644 (vec_pack_trunc_v2si): Ditto.
8646 2011-01-22 Jan Hubicka <jh@suse.cz>
8649 * cgraph.h (cgraph_local_info): New field can_change_signature.
8650 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8651 signature can change.
8652 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8654 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8655 (cgraph_function_versioning): We can not change signature of functions
8656 that don't allow that.
8657 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8658 (lto_input_node): Likewise.
8659 * ipa-inline.c (compute_inline_parameters): Compute
8660 local.can_change_signature.
8661 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8662 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8663 functions that can not change signature.
8664 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8665 init_cumulative_args): Do not use local calling conventions
8666 for functions that can not change signature.
8668 2011-01-22 Jan Hubicka <jh@suse.cz>
8670 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8672 2011-01-26 Richard Guenther <rguenther@suse.de>
8674 PR tree-optimization/47190
8675 * cgraphunit.c (process_common_attributes): New function.
8676 (process_function_and_variable_attributes): Use it.
8678 2011-01-26 Richard Guenther <rguenther@suse.de>
8681 * cgraphbuild.c (record_eh_tables): Record reference to personality
8684 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
8687 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8688 non-debug insns from moving up.
8690 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8693 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8694 t-dlldir{,-x} fragment for build and add it to tmake_file.
8695 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8696 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8697 * config/i386/t-dlldir: New file.
8698 (SHLIB_DLLDIR): Define.
8699 * config/i386/t-dlldir-x: New file.
8700 (SHLIB_DLLDIR): Define.
8701 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8702 (SHLIB_INSTALL): Use it.
8704 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8707 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8708 lower bound of the allowed Thumb-2 coprocessor load/store
8709 index range to -256. Add explaining comment.
8711 2011-01-25 Ian Lance Taylor <iant@google.com>
8713 * godump.c (go_define): Improve lexing of macro expansion to only
8714 accept expressions which match Go spec.
8716 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8719 * tree.c (handle_dll_attribute): Handle it.
8720 * doc/extend.texi (@item dllexport): Mention it.
8721 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8723 2011-01-25 Ian Lance Taylor <iant@google.com>
8725 PR tree-optimization/26854
8726 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8727 (decl_jump_unsafe): Move higher in file, with no other change.
8728 (bind): Set has_jump_unsafe_decl if appropriate.
8729 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8730 (check_earlier_gotos): Likewise.
8731 (c_check_switch_jump_warnings): Likewise.
8733 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8735 * doc/invoke.texi (Warning Options): Add missing hyphen.
8736 (-fprofile-dir): Minor grammatical fixes.
8737 (-fbranch-probabilities): Likewise.
8739 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8743 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8745 (no_real_insns_p, schedule_block, set_priorities): Drop special
8746 treatment of boundary debug insns.
8747 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8748 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8749 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8750 (BOUNDARY_DEBUG_INSN_P): Likewise.
8751 (SCHEDULE_DEBUG_INSN_P): Likewise.
8752 * sched-rgn.c (init_ready_list): Drop special treatment of
8753 boundary debug insns.
8754 * final.c (rest_of_clean-state): Clear notes' BB.
8756 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8758 * Makefile.in (LAMBDA_H): Removed.
8759 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8760 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8761 lambda-trans.o, and tree-loop-linear.o.
8762 (lto-symtab.o): Remove dependence on LAMBDA_H.
8763 (tree-loop-linear.o): Remove rule.
8764 (lambda-mat.o): Same.
8765 (lambda-trans.o): Same.
8766 (lambda-code.o): Same.
8767 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8768 (tree-vect-slp.o): Same.
8769 * hwint.h (gcd): Moved here.
8770 (least_common_multiple): Same.
8771 * lambda-code.c: Removed.
8772 * lambda-mat.c: Removed.
8773 * lambda-trans.c: Removed.
8774 * lambda.h: Removed.
8775 * tree-loop-linear.c: Removed.
8776 * lto-symtab.c: Do not include lambda.h.
8777 * omega.c (gcd): Removed.
8778 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8779 * tree-data-ref.c (print_lambda_vector): Moved here.
8780 (lambda_vector_copy): Same.
8781 (lambda_matrix_copy): Same.
8782 (lambda_matrix_id): Same.
8783 (lambda_vector_first_nz): Same.
8784 (lambda_matrix_row_add): Same.
8785 (lambda_matrix_row_exchange): Same.
8786 (lambda_vector_mult_const): Same.
8787 (lambda_vector_negate): Same.
8788 (lambda_matrix_row_negate): Same.
8789 (lambda_vector_equal): Same.
8790 (lambda_matrix_right_hermite): Same.
8791 * tree-data-ref.h: Do not include lambda.h.
8792 (lambda_vector): Moved here.
8793 (lambda_matrix): Same.
8794 (dependence_level): Same.
8795 (lambda_transform_legal_p): Removed declaration.
8796 (lambda_collect_parameters): Same.
8797 (lambda_compute_access_matrices): Same.
8798 (lambda_vector_gcd): Same.
8799 (lambda_vector_new): Same.
8800 (lambda_vector_clear): Same.
8801 (lambda_vector_lexico_pos): Same.
8802 (lambda_vector_zerop): Same.
8803 (lambda_matrix_new): Same.
8804 * tree-flow.h (least_common_multiple): Removed declaration.
8805 * tree-parloops.c (lambda_trans_matrix): Moved here.
8807 (LTM_ROWSIZE): Same.
8808 (LTM_COLSIZE): Same.
8809 (LTM_DENOMINATOR): Same.
8810 (lambda_trans_matrix_new): Same.
8811 (lambda_matrix_vector_mult): Same.
8812 (lambda_transform_legal_p): Same.
8813 * tree-pass.h (pass_linear_transform): Removed declaration.
8814 * tree-ssa-loop.c (tree_linear_transform): Removed.
8815 (gate_tree_linear_transform): Removed.
8816 (pass_linear_transform): Removed.
8817 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8818 flag_loop_interchange.
8820 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8822 PR tree-optimization/47265
8823 PR tree-optimization/47443
8824 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8825 if name still has some uses.
8827 2011-01-25 Martin Jambor <mjambor@suse.cz>
8829 PR tree-optimization/47382
8830 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8831 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8833 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8835 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8836 sjlj_except_unwind_info.
8838 2011-01-25 Richard Guenther <rguenther@suse.de>
8840 PR tree-optimization/47426
8841 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8842 visible functions results escape.
8844 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8847 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8848 (arm_get_frame_offsets): Use it.
8850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8851 Jakub Jelinek <jakub@redhat.com>
8853 PR tree-optimization/47271
8854 * tree-if-conv.c (bb_postdominates_preds): New.
8855 (if_convertible_bb_p): Call bb_postdominates_preds.
8856 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8857 (predicate_scalar_phi): Call bb_postdominates_preds.
8859 2011-01-25 Nick Clifton <nickc@redhat.com>
8861 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8862 * config/rx/rx.c (rx_function_value): Likewise.
8863 (rx_promote_function_mode): Likewise.
8864 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8865 in order to make it legitimate.
8866 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8867 make sure that the first operand is the same as the result register.
8868 (addsi3_unspec): Delete.
8869 (subdi3): Do not accept immediate operands.
8870 (subdi3_internal): Likewise.
8872 2011-01-25 Jeff Law <law@redhat.com>
8874 PR rtl-optimization/37273
8875 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8876 handle them like argument loads from stack slots. Do not double
8877 count memory for memory constants and argument loads from stack slots.
8879 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8881 PR tree-optimization/47427
8882 PR tree-optimization/47428
8883 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8884 coalesce if the new root var would be TREE_READONLY.
8886 2011-01-25 Richard Guenther <rguenther@suse.de>
8889 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8890 correct type for TBAA.
8892 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8894 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8895 (close_phi_written_to_memory): Call for_each_index with
8896 dr_indices_valid_in_loop.
8898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8900 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8901 when it is initialized.
8903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8905 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8906 call to graphite_find_data_references_in_stmt.
8907 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8908 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8909 call to graphite_find_data_references_in_stmt.
8910 (analyze_drs_in_stmts): Same.
8911 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8912 in which the scalar analysis of indices is performed.
8913 (create_data_ref): Same. Update call to dr_analyze_indices.
8914 (find_data_references_in_stmt): Update call to create_data_ref.
8915 (graphite_find_data_references_in_stmt): Same.
8916 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8918 (create_data_ref): Same.
8919 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8920 call to create_data_ref.
8922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8924 * graphite-sese-to-poly.c (build_poly_scop): Move
8925 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8929 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8930 VAR_DECL, PARM_DECL, and RESULT_DECL.
8932 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8934 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8936 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8937 that have already been marked as PBB_IS_REDUCTION.
8939 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8941 * graphite-scop-detection.c (same_close_phi_node): New.
8942 (remove_duplicate_close_phi): New.
8943 (make_close_phi_nodes_unique): New.
8944 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8946 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8948 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8949 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8950 of both data references to be the same.
8952 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8954 * graphite-dependences.c (build_lexicographical_constraint): Remove
8956 (build_lexicographical_constraint): Adjust call to
8957 ppl_powerset_is_empty.
8958 (dependence_polyhedron): Same.
8959 (graphite_legal_transform_dr): Same.
8960 (graphite_carried_dependence_level_k): Same.
8961 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8963 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8967 * graphite-sese-to-poly.c
8968 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8969 (close_phi_written_to_memory): New.
8970 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8973 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8975 * doc/install.texi: Update the expected version number of PPL to 0.11.
8976 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8977 #if PPL_VERSION_MINOR < 11.
8979 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8981 * graphite-dependences.c: Include graphite-cloog-util.h.
8982 (new_poly_ddr): Inlined into dependence_polyhedron.
8983 (free_poly_ddr): Moved close by new_poly_ddr.
8984 (dependence_polyhedron_1): Renamed dependence_polyhedron.
8985 Early return NULL when ppl_powerset_is_empty returns true.
8986 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
8987 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
8988 (graphite_legal_transform_dr): Call new_poly_ddr.
8989 (graphite_carried_dependence_level_k): Same.
8990 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
8991 (dot_transformed_deps_stmt_1): Removed.
8992 (dot_deps_stmt_1): Call dot_deps_stmt_2.
8993 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
8994 (dot_deps_1): Call dot_deps_2.
8995 * Makefile.in (graphite-dependences.o): Add missing dependence on
8996 graphite-cloog-util.h.
8998 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9000 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9001 (build_lexicographical_constraint): Same.
9002 (dependence_polyhedron_1): Same.
9003 (graphite_legal_transform_dr): Same.
9004 (graphite_carried_dependence_level_k): Same.
9005 * graphite-ppl.c (ppl_powerset_is_empty): New.
9006 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9007 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9009 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9011 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9012 the "a followed by b" relation and document it.
9014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9016 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9017 iteration when the bag of constraints is empty.
9019 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9021 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9023 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9025 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9026 nest and two loop depths as parameters.
9027 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9028 lst_perfect_nestify.
9030 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9032 * graphite-dependences.c (print_pddr): Call
9033 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9037 * graphite-ppl.c (debug_gmp_value): New.
9038 * graphite-ppl.h (debug_gmp_value): Declared.
9040 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9042 * doc/install.texi: Document availability of cloog-0.16.
9044 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9046 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9047 invalid postdominance info.
9049 2011-01-24 Jan Hubicka <jh@suse.cz>
9052 * doc/extend.texi (weak pragma): Drop claim that it must
9053 appear before definition.
9054 * varasm.c (merge_weak, declare_weak): Only sanity check
9055 that DECL is not output at a time it is declared weak.
9057 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9059 * machmode.def: Fixed comments.
9061 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9063 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9065 2011-01-24 Paul Koning <ni1d@arrl.net>
9067 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9070 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9073 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9074 (block_info): Add scanned and prev.
9075 (move_or_delete_vzeroupper_2): Return if the basic block
9076 has been scanned and the upper 128bit state is unchanged
9078 (move_or_delete_vzeroupper_1): Return true if the exit
9080 (move_or_delete_vzeroupper): Visit basic blocks using the
9081 work-list based algorithm based on vt_find_locations in
9084 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9086 2011-01-24 Nick Clifton <nickc@redhat.com>
9088 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9089 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9090 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9091 then define __v850e1__.
9092 * doc/invoke.texi: Document -mv850es.
9094 2011-01-24 Richard Henderson <rth@redhat.com>
9096 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9097 compound unordered comparisons.
9098 * config/rx/rx.c (rx_split_fp_compare): Remove.
9099 * config/rx/rx-protos.h: Update.
9100 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9101 (cbranchsf4): Don't call rx_split_fp_compare.
9102 (*cbranchsf4): Use rx_split_cbranch.
9103 (*cmpsf): Don't accept "i" constraint.
9104 (*conditional_branch): Only valid after reload.
9105 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9107 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9110 * config/rs6000/altivec.md (vector constant splitters): Add
9111 support for creating vector single precision constants if -mvsx is
9112 used and we would create the constant using Altivec primitives.
9114 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9115 Richard Sandiford <rdsandiford@googlemail.com>
9117 PR rtl-optimization/47166
9118 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9119 mechanism for PRE_MODIFY and POST_MODIFY.
9120 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9123 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9125 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9127 2011-01-22 Jan Hubicka <jh@suse.cz>
9130 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9132 2011-01-22 Jan Hubicka <jh@suse.cz>
9134 PR tree-optimization/43884
9136 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9137 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9139 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9141 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9142 * config/s390/s390.c (s390_register_move_cost,
9143 s390_memory_move_cost): New.
9144 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9146 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9149 * except.c (sjlj_assign_call_site_values): Move setting the
9150 crtl->uses_eh_lsda flag to ...
9151 (sjlj_mark_call_sites): ... here.
9152 (sjlj_emit_function_enter): Support NULL dispatch label.
9153 (sjlj_build_landing_pads): In a function with no landing pads
9154 that still has must-not-throw regions, generate code to register
9155 a personality function with empty LSDA.
9157 2011-01-21 Richard Henderson <rth@redhat.com>
9159 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9161 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9163 * compare-elim.c: New file.
9164 * Makefile.in (OBJS-common): Add it.
9165 (compare-elim.o): New.
9166 * common.opt (fcompare-elim): New.
9167 * opts.c (default_options_table): Add OPT_fcompare_elim.
9168 * tree-pass.h (pass_compare_elim_after_reload): New.
9169 * passes.c (init_optimization_passes): Add it.
9170 * recog.h: Protect against re-inclusion.
9171 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9172 * doc/invoke.texi (-fcompare-elim): Document it.
9173 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9174 * doc/tm.texi: Rebuild.
9176 2011-01-22 Nick Clifton <nickc@redhat.com>
9178 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9179 rx_split_fp_compare.
9181 2011-01-22 Nick Clifton <nickc@redhat.com>
9183 * config/rx/rx.md (UNSPEC_CONST): New.
9184 (deallocate_and_return): Wrap the amount popped off the stack in
9185 an UNSPEC_CONST in order to stop it being rejected by
9186 -mmax-constant-size.
9187 (pop_and_return): Add a "(return)" rtx.
9188 (call): Drop the immediate operand.
9189 (call_internal): Likewise.
9190 (call_value): Likewise.
9191 (call_value_internal): Likewise.
9192 (sibcall_internal): Likewise.
9193 (sibcall_value_internal): Likewise.
9194 (sibcall): Likewise. Generate an explicit call using
9196 (sibcall_value): Likewise.
9197 (mov<>): FAIL if a constant operand is not legitimate.
9198 (addsi3_unpsec): New pattern.
9200 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9201 (ok_for_max_constant): New function.
9202 (gen_safe_add): New function.
9203 (rx_expand_prologue): Use gen_safe_add.
9204 (rx_expand_epilogue): Likewise.
9205 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9208 2011-01-21 Jeff Law <law@redhat.com>
9210 PR tree-optimization/47053
9211 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9212 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9213 statements are deleted.
9214 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9215 is nonempty, then purge dead edges and cleanup the CFG.
9217 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9221 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9223 * tree-dfa.c (create_var_ann): Mark variable as used.
9225 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9228 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9229 notes from other section in hot/cold partitioning even if
9230 last_action is -3. Increment call_site_base.
9232 PR rtl-optimization/47366
9233 * fwprop.c (forward_propagate_into): Return bool. If
9234 any changes are made, -fnon-call-exceptions is used and
9235 REG_EH_REGION note is present, call purge_dead_edges
9236 and return true if it purged anything.
9237 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9238 any EH edges were purged.
9240 2011-01-21 Jeff Law <law@redhat.com>
9242 PR rtl-optimization/41619
9243 * caller-save.c (setup_save_areas): Break out code to determine
9244 which hard regs are live across calls by examining the reload chains
9245 so that it is always used.
9246 Eliminate code which checked REG_N_CALLS_CROSSED.
9248 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9250 PR tree-optimization/47355
9251 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9252 NOP has non-debug uses beyond PHIs in new_bb.
9254 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9257 * cfgexpand.c (account_used_vars_for_block): Only account vars
9258 that are annotated as used.
9259 (estimated_stack_frame_size): Don't set TREE_USED.
9260 * tree-dfa.c (create_var_ann): Mark variable as used.
9262 2011-01-21 Richard Guenther <rguenther@suse.de>
9265 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9267 2011-01-21 Richard Guenther <rguenther@suse.de>
9269 PR tree-optimization/47365
9270 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9271 (vn_reference_lookup_pieces): Adjust.
9272 (vn_reference_lookup): Likewise.
9273 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9274 (vn_reference_lookup_3): Only look through kills if in
9275 VN_WALKREWRITE mode.
9276 (vn_reference_lookup_pieces): Adjust.
9277 (vn_reference_lookup): Likewise.
9278 (visit_reference_op_load): Likewise.
9279 (visit_reference_op_store): Likewise.
9280 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9281 (compute_avail): Likewise.
9282 (eliminate): Likewise.
9284 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9286 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9287 DECL_IGNORED_P non-reg vars if they are used.
9289 PR tree-optimization/47391
9290 * varpool.c (const_value_known_p): Return false if
9293 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9296 * config/i386/i386.c (ix86_local_alignment): Handle
9297 case for va_list_type_node is nil.
9298 (ix86_canonical_va_list_type): Likewise.
9300 2011-01-21 Alan Modra <amodra@gmail.com>
9302 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9303 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9305 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9307 * config/arm/arm.md (define_attr type): Rename f_load
9308 and f_store to f_fpa_load and f_fpa_store. Update.
9309 (write_conflict): Deal with rename fallout.
9310 (*push_fp_multi): Likewise.
9311 * config/arm/fpa.md (f_load): Use f_fpa_load.
9312 (f_store): Use f_fpa_store.
9313 (*movsf_fpa): Likewise.
9314 (*movdf_fpa): Likewise.
9315 (*movxf_fpa): Likewise.
9316 (*thumb2_movsf_fpa): Likewise.
9317 (*thumb2_movdf_fpa): Likewise.
9318 (*thumb2_movxf_fpa): Likewise.
9319 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9320 f_loadd and f_stored.
9321 (*thumb2_movdi_vfp): Likewise.
9322 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9323 (*thumb2_movsi_vfp): Likewise.
9324 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9325 Use f_loads instead of f_load.
9326 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9328 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9330 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9331 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9332 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9333 (xtensa_mode_dependent_address_p): New function.
9334 (constantpool_address_p): Make static. Change return type to bool.
9335 Change argument type to const_rtx. Use CONST_INT_P predicate.
9337 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9340 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9342 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9345 * cfgexpand.c (expand_debug_expr): Instead of generating
9346 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9349 2011-01-20 Richard Guenther <rguenther@suse.de>
9352 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9353 the pointer operand of MEM_REFs.
9355 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9357 PR tree-optimization/46130
9358 * ipa-split.c (consider_split): If return_bb contains non-virtual
9359 PHIs other than for retval or if split_function would not adjust it,
9362 2011-01-20 Richard Guenther <rguenther@suse.de>
9364 PR tree-optimization/47167
9365 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9366 Revert previous change, only avoid enumeral type changes.
9368 2011-01-19 Mike Stump <mikestump@comcast.net>
9370 * doc/tm.texi.in (BRANCH_COST): Englishify.
9371 * doc/tm.texi (BRANCH_COST): Likewise.
9373 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9376 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9377 (gen_scheduled_generic_parms_dies): New functions.
9378 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9379 generation for the end of CU compilation.
9380 (dwarf2out_finish): Generate template parameters DIEs here.
9382 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9385 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9386 debug bind stmt on merge edges.
9388 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9392 * function.c (instantiate_expr): Instantiate incoming rtl of
9393 implicit arguments, and recurse on VALUE_EXPRs.
9394 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9395 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9397 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9399 * c-parser.c (c_parser_for_statement): Initialize
9400 collection_expression.
9402 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9404 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9406 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9408 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9409 (LINK_SHLIB_SPEC): Don't use %(link_path).
9410 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9412 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9414 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9415 (NO_SHARED_LIB_SUPPORT): Remove.
9416 (LINK_SHLIB_SPEC): Remove one conditional definition.
9418 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9420 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9422 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9423 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9424 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9425 %{call_shared} and conditionals on these options not being passed.
9426 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9429 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9431 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9434 * ipa-split.c: Spelling fixes.
9436 2011-01-19 Richard Henderson <rth@redhat.com>
9438 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9439 (*mulsi3): Likewise.
9441 * longlong.h [__mn10300__] (count_leading_zeros): New.
9442 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9443 [__mn10300__] (add_ssaaaa, subddmmss): New.
9444 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9445 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9447 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9449 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9451 2011-01-19 Richard Henderson <rth@redhat.com>
9453 * config/mn10300/mn10300.md (addsi3_flags): New.
9454 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9455 (subsi3_flags, subc_internal, subdi3): New.
9456 (subdi3_internal, *subdi3_degenerate): New.
9457 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9459 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9460 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9461 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9462 * config/mn10300/mn10300-protos.h: Update.
9463 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9464 (return_ret): Likewise. Rename from return_internal_regs.
9465 (return_internal): Remove.
9467 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9468 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9469 (mn10300_legitimate_constant_p): Likewise.
9470 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9471 (mn10300_frame_size): New.
9472 (mn10300_expand_prologue): Use it.
9473 (mn10300_expand_epilogue): Likewise.
9474 (mn10300_initial_offset): Likewise.
9475 * config/mn10300/mn10300-protos.h: Update.
9476 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9477 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9478 (prologue, epilogue, return_internal): Tidy output code.
9479 (mn10300_store_multiple_operation, return): Likewise.
9480 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9481 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9482 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9483 (load_pic, am33_load_pic): New.
9484 (mn10300_load_pic0, mn10300_load_pic1): New.
9486 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9487 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9488 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9489 (cc_flags_for_mode, cc_flags_for_code): New.
9490 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9491 overflow flag is not valid. Validate that the flags we need
9492 for the comparison are valid.
9493 (mn10300_output_cmp): Remove.
9494 (mn10300_output_add): New.
9495 (mn10300_select_cc_mode): Use cc_flags_for_code.
9496 (mn10300_split_cbranch): New.
9497 (mn10300_match_ccmode): New.
9498 (mn10300_split_and_operand_count): New.
9499 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9501 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9502 (addsi3): ... here. Use mn10300_output_add.
9503 (*addsi3_flags): New.
9504 (*am33_subsi3, *mn10300_subsi3): Merge...
9505 (subsi3): ... here. Use attribute isa.
9506 (*subsi3_flags): New.
9507 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9509 (*am33_andsi3, *mn10300_andsi3): Merge...
9511 (*andsi3_flags): New.
9512 (andsi3 splitters): New.
9513 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9515 (*iorsi3_flags): New.
9516 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9518 (*xorsi3_flags): New.
9519 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9520 (one_cmplsi2): ... here.
9521 (*one_cmplsi2_flags): New.
9522 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9523 instead of "dax" in constraints. Use mn10300_split_cbranch.
9524 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9525 use matching constraints to eliminate a self-comparison.
9526 (*integer_conditional_branch): Rename from integer_conditional_branch.
9527 Use int_mode_flags to match CC_REG.
9528 (*cbranchsi4_btst, *btstsi): New.
9529 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9530 mn10300_split_cbranch.
9531 (*am33_cmpsf): Rename from am33_cmpsf.
9532 (*float_conditional_branch): Rename from float_conditional_branch.
9533 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9534 (zero_extendqisi2): ... here.
9535 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9536 (zero_extendhisi2): ... here.
9537 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9538 (extendqisi2): ... here.
9539 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9540 (extendhisi2): ... here.
9541 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9542 (ashlsi3): ... here.
9543 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9544 (lshrsi3): ... here.
9545 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9546 (ashrsi3): ... here.
9547 (consecutive add peephole): Remove.
9548 * config/mn10300/predicates.md (label_ref_operand): New.
9549 (int_mode_flags): New.
9550 (CCZN_comparison_operator): New.
9552 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9553 (throughput_42_latency_43): New reservation.
9554 (mulsidi3, umulsidi3): New expanders.
9555 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9556 the MDR register to allocation; separately allocate the low and
9557 high parts of the DImode result.
9558 (umulsidi3_internal): Similarly.
9559 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9560 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9561 (udivsi3, umodsi3): Remove.
9562 (udivmodsi4, divmodsi4): New expanders.
9563 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9564 (*divmodsi4): Simiarly.
9565 (ext_internal): New.
9567 * config/mn10300/constraints.md ("z"): New constraint.
9568 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9569 (FIXED_REGISTERS): Don't fix MDR.
9570 (CALL_USED_REGSITERS): Reformat nicely.
9571 (REG_ALLOC_ORDER): Add MDR.
9572 (enum regclass): Add MDR_REGS.
9573 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9574 (IRA_COVER_CLASSES): Add MDR_REGS.
9575 (REGNO_REG_CLASS): Handle MDR_REG.
9576 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9577 (mn10300_register_move_cost): Likewise.
9578 * config/mn10300/mn10300.md (MDR_REG): New.
9579 (*movsi_internal): Handle moves to/from MDR_REGS.
9581 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9583 (mn10300_secondary_reload): Tidy combination reload classes.
9584 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9585 addresses for AM33. Allow symbolic offsets for reg+imm.
9586 (mn10300_regno_in_class_p): New.
9587 (mn10300_legitimize_reload_address): New.
9588 * config/mn10300/mn10300.h (enum reg_class): Remove
9589 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9590 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9592 (REG_CLASS_NAMES): Update to match.
9593 (REG_CLASS_CONTENTS): Likewise.
9594 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9595 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9596 (REGNO_IN_RANGE_P): Remove.
9597 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9598 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9599 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9600 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9601 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9602 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9603 (REGNO_GENERAL_P): New.
9604 (HAVE_POST_MODIFY_DISP): New.
9605 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9606 (LEGITIMIZE_RELOAD_ADDRESS): New.
9607 * config/mn10300/mn10300-protos.h: Update.
9609 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9610 DATA_REGS for AM33 stack-pointer destination.
9611 (mn10300_preferred_output_reload_class): Likewise.
9612 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9613 into a form appropriate for ...
9614 (TARGET_SECONDARY_RELOAD): New.
9615 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9616 * config/mn10300/mn10300-protos.h: Update.
9617 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9618 reload_insi; use the "A" constraint for the scratch; handle AM33
9619 moves of sp to non-address registers.
9621 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9622 (*movqi_internal): ... here.
9623 (*am33_movhi, *mn10300_movhi): Merge into...
9624 (*movhi_internal): ... here.
9625 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9626 as the source/destination of moves from/to SP.
9627 (movsf): Only allow for AM33-2.
9628 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9629 any integer constant constraint. Only allow for AM33-2. Tidy
9630 all of the alternative outputs.
9631 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9632 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9634 (udivsi3, umodsi3): New patterns for MN103 only.
9636 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9638 * doc/tm.texi.in: Spell out that a lack of register class unions
9640 * doc/tm.texi: Regenerate.
9642 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9644 PR rtl-optimization/47337
9645 * dce.c (check_argument_store): New function.
9646 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9648 PR tree-optimization/47290
9649 * tree-eh.c (infinite_empty_loop_p): New function.
9650 (cleanup_empty_eh): Use it.
9652 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9655 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9656 (a64_expand_widen_sum): Ditto.
9657 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9658 (vec_extract_evenodd_help): Ditto.
9659 (vec_extract_evenv4hi): Ditto.
9660 (vec_extract_oddv4hi): Ditto.
9661 (vec_extract_evenv2si): Ditto.
9662 (vec_extract_oddv2si): Ditto.
9663 (vec_extract_evenv2sf): Ditto.
9664 (vec_extract_oddv2sf): Ditto.
9665 (vec_pack_trunc_v4hi: Ditto.
9666 (vec_pack_trunc_v2si): Ditto.
9667 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9668 (vec_interleave_highv8qi): Ditto.
9670 (vec_extract_oddv8qi): Ditto.
9671 (vec_interleave_lowv4hi): Ditto.
9672 (vec_interleave_highv4hi): Ditto.
9673 (vec_interleave_lowv2si): Ditto.
9674 (vec_interleave_highv2si): Ditto.
9676 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9678 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9679 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9680 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9681 (pa_c_mode_for_suffix): New.
9682 (TARGET_EXPAND_BUILTIN): Define.
9683 (TARGET_C_MODE_FOR_SUFFIX): Define.
9684 (pa_builtins): Define.
9685 (pa_init_builtins): Register __float128 type and init new support
9687 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9688 * config/pa/quadlib.c (_U_Qfcopysign): New.
9690 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9693 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9694 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9697 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9699 PR tree-optimization/47179
9700 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9701 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9703 2011-01-18 Richard Guenther <rguenther@suse.de>
9705 PR rtl-optimization/47216
9706 * emit-rtl.c: Include tree-flow.h.
9707 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9708 of replicating it with different semantics.
9709 * Makefile.in (emit-rtl.o): Adjust.
9711 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9713 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9714 (cortex_a9_dp): Handle neon types correctly.
9716 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9718 PR rtl-optimization/47299
9719 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9720 subtarget. Use normal multiplication if both operands are constants.
9721 * expmed.c (expand_widening_mult): Don't try to optimize constant
9722 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9725 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9727 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9728 spacing after 'e.g.', typos, comma, hyphenation.
9730 2011-01-17 Richard Henderson <rth@redhat.com>
9732 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9733 (rx_restricted_mem_operand): New.
9734 (rx_shift_operand): Use register_operand.
9735 (rx_source_operand, rx_compare_operand): Likewise.
9736 * config/rx/rx.md (addsi3_flags): New expander.
9737 (adddi3): Rewrite as expander.
9738 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9739 (subsi3_flags): New expander.
9740 (subdi3): Rewrite as expander.
9741 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9743 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9744 (rx_init_builtins): Remove sat builtin.
9745 (rx_expand_builtin): Likewise.
9746 * config/rx/rx.md (ssaddsi3): New.
9747 (*sat): Rename from sat. Represent the CC_REG input.
9749 * config/rx/predicates.md (rshift_operator): New.
9750 * config/rx/rx.c (rx_expand_insv): Remove.
9751 * config/rx/rx-protos.h: Update.
9752 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9753 operand to the canonical position.
9754 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9755 (*bitclr, *bitclr_in_memory): Similarly.
9756 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9757 (insv): Retain the zero_extract in the expansion.
9759 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9760 (bswaphi2, bitinvert, revw): Likewise.
9762 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9763 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9764 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9765 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9766 (bitset, bitset_in_memory): Likewise.
9767 (bitinvert, bitinvert_in_memory): Likewise.
9768 (bitclr, bitclr_in_memory): Likewise.
9769 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9770 (rx_strend, rx_cmpstrn): Likewise.
9771 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9772 (bitop peep2 patterns): Remove.
9774 * config/rx/rx.c (rx_match_ccmode): New.
9775 * config/rx/rx-protos.h: Update.
9776 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9777 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9778 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9779 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9780 (fix_truncsfsi2, floatsisf2): Likewise.
9781 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9782 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9783 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9784 (*subsi3_flags, *xorsi3_flags): New.
9786 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9788 * config/rx/rx.c (rx_print_operand): Remove workaround for
9789 unsplit comparison operations.
9791 * config/rx/rx.md (movsicc): Split after reload.
9792 (*movsicc): Merge *movsieq and *movsine via match_operator.
9793 (*stcc): New pattern.
9795 * config/rx/rx.c (rx_float_compare_mode): Remove.
9796 * config/rx/rx.h (rx_float_compare_mode): Remove.
9797 * config/rx/rx.md (cstoresi4): Split after reload.
9798 (*sccc): New pattern.
9800 * config/rx/predicates.md (label_ref_operand): New.
9801 (rx_z_comparison_operator): New.
9802 (rx_zs_comparison_operator): New.
9803 (rx_fp_comparison_operator): New.
9804 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9805 Validate that the flags are set properly for the comparison.
9806 (rx_gen_cond_branch_template): Remove.
9807 (rx_cc_modes_compatible): Remove.
9808 (mode_from_flags): New.
9809 (flags_from_code): Rename from flags_needed_for_conditional.
9810 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9811 (rx_select_cc_mode): Likewise.
9812 (rx_split_fp_compare): New.
9813 (rx_split_cbranch): New.
9814 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9815 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9816 (*cbranchsf4): Similarly.
9817 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9818 match_operator and rx_split_cbranch.
9819 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9820 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9821 (*cmpsi): Rename from cmpsi.
9822 (*tstsi): Rename from tstsi.
9823 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9824 (*conditional_branch): Rename from conditional_branch.
9825 (*reveresed_conditional_branch): Remove.
9826 (b<code>): Remove expander.
9827 * config/rx/rx-protos.h: Update.
9829 * config/rx/rx.c (rx_compare_redundant): Remove.
9830 * config/rx/rx.md (cmpsi): Don't use it.
9831 * config/rx/rx-protos.h: Update.
9833 * config/rx/rx-modes.def (CC_F): New mode.
9834 * config/rx/rx.c (rx_select_cc_mode): New.
9835 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9836 * config/rx/rx-protos.h: Update.
9838 2011-01-17 Richard Henderson <rth@redhat.com>
9840 * except.c (dump_eh_tree): Fix stray ; after for statement.
9842 2011-01-17 Richard Guenther <rguenther@suse.de>
9844 PR tree-optimization/47313
9845 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9846 handling before copying the body. Properly deal with
9847 by-reference result in SSA form.
9849 2011-01-17 Ian Lance Taylor <iant@google.com>
9852 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9853 (struct_value_alias_set): Don't define.
9854 (sparc_option_override): Don't set sparc_sr_alias_set and
9855 struct_value_alias_set.
9856 (save_or_restore_regs): Use gen_frame_mem rather than calling
9858 (sparc_struct_value_rtx): Likewise.
9860 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9863 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9864 (_mm_maskstore_pd): Likewise.
9865 (_mm_maskload_ps): Likewise.
9866 (_mm_maskstore_ps): Likewise.
9867 (_mm256_maskload_pd): Change mask to __m256i.
9868 (_mm256_maskstore_pd): Likewise.
9869 (_mm256_maskload_ps): Likewise.
9870 (_mm256_maskstore_ps): Likewise.
9872 * config/i386/i386-builtin-types.def: Updated.
9873 (ix86_expand_special_args_builtin): Likewise.
9875 * config/i386/i386.c (bdesc_special_args): Update
9876 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9877 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9878 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9879 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9881 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9882 Use <avxpermvecmode> on mask register.
9883 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9885 2011-01-17 Olivier Hainque <hainque@adacore.com>
9886 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9887 Eric Botcazou <ebotcazou@adacore.com>
9890 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9891 if <= USHRT_MAX in 32-bit mode.
9893 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9895 * doc/install.texi (Configuration, Specific): Wrap long
9896 lines in examples. Allow line wrapping in long options
9897 and URLs where beneficial for PDF output.
9899 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9901 * config/mips/mips.c (mips_classify_symbol): Don't return
9902 SYMBOL_PC_RELATIVE for nonlocal labels.
9904 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9906 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9908 2011-01-15 Jan Hubicka <jh@suse.cz>
9910 PR tree-optimization/47276
9911 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9912 declarations as needed.
9914 2011-01-15 Martin Jambor <mjambor@suse.cz>
9916 * common.opt (fdevirtualize): New flag.
9917 * doc/invoke.texi (Option Summary): Document it.
9918 * opts.c (default_options_table): Add devirtualize flag.
9919 * ipa-prop.c (detect_type_change): Return immediately if
9920 devirtualize flag is not set.
9921 (detect_type_change_ssa): Likewise.
9922 (compute_known_type_jump_func): Likewise.
9923 (ipa_analyze_virtual_call_uses): Likewise.
9925 2011-01-14 Martin Jambor <mjambor@suse.cz>
9927 PR tree-optimization/45934
9928 PR tree-optimization/46302
9929 * ipa-prop.c (type_change_info): New type.
9930 (stmt_may_be_vtbl_ptr_store): New function.
9931 (check_stmt_for_type_change): Likewise.
9932 (detect_type_change): Likewise.
9933 (detect_type_change_ssa): Likewise.
9934 (compute_complex_assign_jump_func): Check for dynamic type change.
9935 (compute_complex_ancestor_jump_func): Likewise.
9936 (compute_known_type_jump_func): Likewise.
9937 (compute_scalar_jump_functions): Likewise.
9938 (ipa_analyze_virtual_call_uses): Likewise.
9939 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9943 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9944 * config/i386/i386.opt (msse5): New Alias.
9946 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9948 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9949 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9950 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9951 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9953 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9955 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9957 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9958 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9959 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9960 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9962 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9966 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9968 2011-01-14 Mike Stump <mikestump@comcast.net>
9970 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9971 * config/fr30/fr30.md: Likweise
9972 (movsi_push): Likewise.
9973 (movsi_pop): Likewise.
9974 (enter_func): Likewise.
9975 * config/moxie/moxie.md (movsi_push): Likewise.
9976 (movsi_pop): Likewise.
9978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9980 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9981 %{no_archive} %{exact_version}.
9982 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9983 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9984 %{no_archive} %{exact_version}.
9985 * config/mips/openbsd.h (LINK_SPEC): Likewise.
9986 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9987 * config/mips/vxworks.h: Likewise.
9989 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9991 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9993 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9995 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9996 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10000 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10005 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10007 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10008 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10010 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10011 Don't handle -shlib.
10013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10015 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10016 (CC1_SPEC): Don't handle -profile.
10018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10020 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10021 * config/mips/mips.h (CC1_SPEC): Likewise.
10023 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10025 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10026 * config/mips/mips.h (CC1_SPEC): Likewise.
10028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10030 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10031 * config/m32r/linux.h (LINK_SPEC): Likewise.
10032 * config/mips/linux.h (LINK_SPEC): Likewise.
10033 * config/mips/linux64.h (LINK_SPEC): Likewise.
10034 * config/sparc/linux.h (LINK_SPEC): Likewise.
10035 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10036 LINK_SPEC): Likewise.
10037 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10039 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10041 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10043 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10045 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10047 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10048 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10052 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10054 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10056 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10057 supports -Bstatic/-Bdynamic.
10058 * configure: Regenerate.
10060 2011-01-14 Jan Hubicka <jh@suse.cz>
10061 Jack Howarth <howarth@bromo.med.uc.edu>
10064 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10065 when checking debug_info_level. Test write_symbols instead of
10066 debug_hooks->var_location when setting flag_var_tracking_uninit.
10068 2011-01-14 Richard Guenther <rguenther@suse.de>
10070 PR tree-optimization/47179
10071 * target.def (ref_may_alias_errno): New target hook.
10072 * targhooks.h (default_ref_may_alias_errno): Declare.
10073 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10074 (default_ref_may_alias_errno): New function.
10075 * target.h (struct ao_ref_s): Declare.
10076 * tree-ssa-alias.c: Include target.h.
10077 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10078 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10079 (targhooks.o): Likewise.
10080 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10081 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10083 2011-01-14 Richard Guenther <rguenther@suse.de>
10085 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10087 2011-01-14 Richard Guenther <rguenther@suse.de>
10089 PR tree-optimization/47280
10090 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10091 return CFG changes.
10092 (tree_ssa_forward_propagate_single_use_vars): Deal with
10093 CFG changes from associate_plusminus.
10095 2011-01-14 Richard Guenther <rguenther@suse.de>
10097 PR middle-end/47281
10099 2011-01-11 Richard Guenther <rguenther@suse.de>
10101 PR tree-optimization/46076
10102 * tree-ssa.c (useless_type_conversion_p): Conversions from
10103 unprototyped to empty argument list function types are useless.
10105 2011-01-14 Richard Guenther <rguenther@suse.de>
10107 PR tree-optimization/47286
10108 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10110 2011-01-14 Martin Jambor <mjambor@suse.cz>
10112 PR middle-end/46823
10113 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10115 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10117 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10118 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10119 * config/xtensa/xtensa.c (xtensa_libcall_value,
10120 xtensa_function_value_regno_p): New functions.
10121 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10123 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10126 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10128 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10129 New function prototype.
10130 * config/i386/winnt.c (i386_pe_assemble_visibility):
10131 Warn only if attribute was specified by user.
10133 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10136 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10138 (floatunsdidf2_fcfidu): Ditto.
10140 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10142 * config/s390/s390.c (print_operand_address): Replace 'error' with
10143 'output_operand_lossage'.
10144 (print_operand): Likewise.
10146 2011-01-13 Jeff Law <law@redhat.com>
10148 PR rtl-optimization/39077
10149 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10150 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10151 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10152 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10153 * gcse.c (prune_insertions_deletions): New function.
10154 (compute_pre_data): Use it.
10156 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10159 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10161 (prune_unused_types_mark): Use it.
10163 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10165 PR rtl-optimization/45352
10166 * sel-sched.c: Update copyright years.
10167 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10168 in the advancing loop when we have issued issue_rate insns.
10170 2011-01-12 Richard Henderson <rth@redhat.com>
10172 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10173 (TARGET_MD_ASM_CLOBBERS): New.
10175 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10176 (TARGET_DELEGITIMIZE_ADDRESS): New.
10178 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10179 (clzsi2, *bsch): New patterns.
10181 * config/mn10300/mn10300.md (INT): New mode iterator.
10182 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10184 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10185 flag_split_wide_types.
10187 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10188 (mn10300_trampoline_init): Rewrite without a template, an immediate
10189 load and a direct branch.
10190 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10192 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10194 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10195 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10196 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10197 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10199 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10202 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10205 2011-01-12 Jan Hubicka <jh@suse.cz>
10208 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10209 (PLUGIN_COND_CLOSE): New macro.
10210 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10212 2011-01-12 Richard Guenther <rguenther@suse.de>
10215 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10216 register variables in a MEM_REF.
10218 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10220 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10221 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10222 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10223 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10224 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10225 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10226 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10227 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10228 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10229 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10230 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10231 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10232 * config/gnu-user.h: New. Copied from linux.h.
10233 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10234 GNU_USER_TARGET_STARTFILE_SPEC.
10235 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10236 GNU_USER_TARGET_ENDFILE_SPEC.
10237 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10238 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10239 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10240 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10241 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10242 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10243 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10244 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10245 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10246 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10247 * config/arm/linux-eabi.h (CC1_SPEC): Use
10248 GNU_USER_TARGET_CC1_SPEC.
10249 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10250 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10251 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10252 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10253 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10254 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10255 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10256 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10258 2011-01-12 Richard Guenther <rguenther@suse.de>
10261 * doc/invoke.texi (ffast-math): Document it is turned on
10264 2011-01-12 Jan Hubicka <jh@suse.cz>
10266 PR tree-optimization/47233
10267 * opts.c (common_handle_option): Disable ipa-reference with profile
10270 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10272 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10275 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10277 * c-parser.c (c_lex_one_token): Updated and reindented some
10278 comments. No changes in code.
10280 2011-01-11 Ian Lance Taylor <iant@google.com>
10282 * godump.c (go_output_var): Don't output the variable if there is
10283 already a type with the same name.
10285 2011-01-11 Ian Lance Taylor <iant@google.com>
10287 * godump.c (go_format_type): Don't generate float80.
10289 2011-01-11 Richard Henderson <rth@redhat.com>
10291 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10292 declaration. Rewrite for both speed and size.
10293 (mn10300_address_cost_1): Remove.
10294 (mn10300_register_move_cost): New.
10295 (mn10300_memory_move_cost): New.
10296 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10297 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10298 extensions, shifts, BSWAP, CLZ.
10299 (mn10300_wide_const_load_uses_clr): Remove.
10300 (TARGET_REGISTER_MOVE_COST): New.
10301 (TARGET_MEMORY_MOVE_COST): New.
10302 * config/mn10300/mn10300-protos.h: Update.
10303 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10305 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10306 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10307 * config/mn10300/mn10300-protos.h: Update.
10308 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10309 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10310 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10311 (*test_int_bitfield, *test_byte_bitfield): Remove.
10312 (*bit_test, *subreg_bit_test): Remove.
10313 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10315 * config/mn10300/constraints.md ("c"): Rename from "A".
10316 ("A", "D"): New constraint letters.
10317 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10318 (fmssf4, fnmasf4, fnmssf4): Likewise.
10320 * config/mn10300/mn10300.md (isa): New attribute.
10321 (enabled): New attribute.
10323 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10324 (abssf2, negsf2): Define only for hardware fp.
10325 (sqrtsf2): Reformat.
10326 (addsf3, subsf3, mulsf3): Merge expander and insn.
10328 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10329 (DEBUGGER_AUTO_OFFSET): Remove.
10330 (DEBUGGER_ARG_OFFSET): Remove.
10332 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10333 Emit register stores with the same offsets as the hardware.
10334 (mn10300_store_multiple_operation): Don't check that the register
10335 save offsets are monotonic.
10336 * config/mn10300/mn10300-protos.h: Update.
10338 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10340 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10341 in terms of the value on the stack, not the MDR register.
10343 2011-01-11 Jan Hubicka <jh@suse.cz>
10347 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10348 (symbol_alias_set_destroy, symbol_alias_set_contains,
10349 propagate_aliases_backward): Declare.
10350 * lto-streamer-out.c (struct sets): New sturcture.
10351 (trivally_defined_alias): New function.
10352 (output_alias_pair_p): Rewrite.
10353 (output_unreferenced_globals): Fix output of alias pairs.
10354 (produce_symtab): Likewise.
10355 * ipa.c (function_and_variable_visibility): Set weak alias destination
10357 * varasm.c (symbol_alias_set_t): Remove.
10358 (symbol_alias_set_destroy): Export.
10359 (propagate_aliases_forward, propagate_aliases_backward): New functions
10361 (compute_visible_aliases): ... this one; remove.
10362 (trivially_visible_alias): New
10363 (trivially_defined_alias): New.
10364 (remove_unreachable_alias_pairs): Rewrite.
10365 (finish_aliases_1): Reorganize code checking if alias is defined.
10366 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10369 2011-01-11 Richard Guenther <rguenther@suse.de>
10371 PR tree-optimization/46076
10372 * tree-ssa.c (useless_type_conversion_p): Conversions from
10373 unprototyped to empty argument list function types are useless.
10375 2011-01-11 Richard Guenther <rguenther@suse.de>
10377 PR middle-end/45235
10378 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10379 volatile MEMs as MEM_READONLY_P.
10381 2011-01-11 Richard Guenther <rguenther@suse.de>
10383 PR tree-optimization/47239
10384 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10386 2011-01-11 Jeff Law <law@redhat.com>
10388 PR tree-optimization/47086
10389 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10390 IVs from statements that might throw.
10392 2011-01-10 Jan Hubicka <jh@suse.cz>
10395 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10397 2011-01-10 Jan Hubicka <jh@suse.cz>
10400 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10401 when correcting profile.
10403 2011-01-10 Jan Hubicka <jh@suse.cz>
10406 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10407 DECL_FINI_PRIORITY.
10408 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10409 Restore DECL_FINI_PRIORITY.
10411 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10413 * doc/gimple.texi: Fix quoting of multi-word return values in
10414 @deftypefn statements. Ensure presence of return value. Wrap
10415 overlong @deftypefn lines.
10416 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10417 descriptions of removed functions.
10418 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10419 of multi-word return value in @deftypefn statement.
10421 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10423 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10424 (Conditional Expressions, Logical Operators)
10425 (Statement and operand traversals): Do not indent smallexample
10426 code. Fix duplicate function argument in example.
10428 2011-01-10 Jeff Law <law@redhat.com>
10430 PR tree-optimization/47141
10431 * ipa-split.c (split_function): Handle case where we are
10432 returning a value and the return block has a virtual operand phi.
10434 2011-01-10 Jan Hubicka <jh@suse.cz>
10436 PR tree-optimization/47234
10437 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10438 (pass_feedback_split_functions): Declare.
10439 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10441 * ipa-split.c (gate_split_functions): Update comments; disable
10442 split-functions for profile_arc_flag and branch_probabilities.
10443 (gate_feedback_split_functions): New function.
10444 (execute_feedback_split_functions): New function.
10445 (pass_feedback_split_functions): New global var.
10447 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10450 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10451 calling gimple_call_set_cannot_inline.
10453 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10455 * config/darwin-sections.def: Remove unused section.
10457 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10460 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10462 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10465 * c-parser.c (c_parser_declaration_or_fndef): Improved
10468 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10470 * config/i386/winnt.c (i386_pe_start_function): Make sure
10471 to switch back to function's section.
10473 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10477 * plugin.c: Move include of dlfcn.h from here...
10478 * system.h: ... to here.
10480 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10482 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10484 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10485 two extra empty pages in PDF output.
10487 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10490 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10491 for error recovery purposes behave as if it was not specified so
10492 that the default type is usd.
10494 2011-01-07 Jan Hubicka <jh@suse.cz>
10496 PR tree-optmization/46469
10497 * ipa.c (function_and_variable_visibility): Clear needed flags on
10498 nodes with external decls; handle weakrefs merging correctly.
10500 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10502 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10505 2011-01-07 Jan Hubicka <jh@suse.cz>
10507 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10508 and no longer claim that gold is required for linker plugin.
10509 * configure: Regenerate.
10510 * gcc.c (PLUGIN_COND): New macro.
10511 (LINK_COMMAND_SPEC): Use it.
10512 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10513 * config.in (HAVE_LTO_PLUGIN): New.
10514 * configure.ac (--with-lto-plugin): New parameter; autodetect
10517 2011-01-07 Jan Hubicka <jh@suse.cz>
10519 PR tree-optimization/46367
10520 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10521 when we can update original.
10522 (cgraph_mark_inline_edge): Sanity check.
10523 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10525 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10527 * config/spu/spu.h (ASM_COMMENT_START): Define.
10529 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10532 * gcc.c (%>S): New.
10533 (SWITCH_KEEP_FOR_GCC): Likewise.
10534 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10535 (do_spec_1): Handle "%>".
10537 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10539 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10542 * config/i386/i386.c (ix86_delegitimize_address): If
10543 simplify_gen_subreg fails, return orig_x.
10546 * value-prof.c (gimple_stringop_fixed_value): Handle
10547 lhs of the call properly.
10549 2011-01-07 Jan Hubicka <jh@suse.cz>
10552 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10554 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10556 * target.def (function_switched_text_sections): New hook.
10557 * doc/tm.texi: Regenerated.
10558 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10559 * final.c (default_function_switched_text_sections): New.
10560 (final_scan_insn): Call function_switched_text_sections when a
10561 mid-function section change occurs.
10562 * output.h (default_function_switched_text_sections): Declare.
10563 * config/darwin-protos.h (darwin_function_switched_text_sections):
10565 * config/darwin.c (darwin_function_switched_text_sections): New.
10566 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10568 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10570 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10571 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10572 the secondary code fragment when outputting for DWARF == 2.
10574 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10576 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10577 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10579 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10580 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10582 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10585 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10586 when it is not empty.
10588 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10591 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10592 (case ${target}): Add btver1.
10593 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10594 -march=native recognize btver1 processors.
10595 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10596 btver1 def_and_undef
10597 * config/i386/i386.c (struct processor_costs btver1_cost): New
10599 (m_BTVER1): New definition.
10600 (m_AMD_MULTIPLE): Includes m_BTVER1.
10601 (initial_ix86_tune_features): Add btver1 tune.
10602 (processor_target_table): Add btver1 entry.
10603 (static const char *const cpu_names): Add btver1 entry.
10604 (software_prefetching_beneficial_p): Add btver1.
10605 (ix86_option_override_internal): Add btver1 instruction sets.
10606 (ix86_issue_rate): Add btver1.
10607 (ix86_adjust_cost): Add btver1.
10608 * config/i386/i386.h (TARGET_BTVER1): New definition.
10609 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10610 (enum processor_type): Add PROCESSOR_BTVER1.
10611 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10613 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10616 * config/i386/i386.c (legitimize_tls_address)
10617 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10618 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10619 (tls_initial_exec_64_sun): New pattern.
10621 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10623 * doc/invoke.texi (Overall Options): Improve wording and markup
10624 of the description of -wrapper.
10626 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10628 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10629 rdynamic, threads): New Driver options.
10631 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10634 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10635 if coming from .tdata.
10636 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10638 2011-01-06 Jan Hubicka <jh@suse.cz>
10641 * collect2.c (main): Do not enable LTOmode when plugin is active.
10643 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10646 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10647 --version output if supported.
10648 * configure: Regenerate.
10650 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10652 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10655 2011-01-06 Jakub Jelinek <jakub@redhat.com>
10658 * c-convert.c (convert): When converting a complex expression
10659 other than COMPLEX_EXPR to a different complex type, ensure
10660 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10661 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10662 when converting COMPLEX_TYPE.
10664 2011-01-06 Ira Rosen <irar@il.ibm.com>
10666 PR tree-optimization/47139
10667 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10668 only the last reduction value is used outside the loop. Update
10671 2011-01-05 Joseph Myers <joseph@codesourcery.com>
10673 * config/rtems.opt: New.
10674 * config.gcc (*-*-rtems*): Use rtems.opt.
10676 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10678 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10679 processors do not support 3DNow instructions.
10681 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10683 * config/spu/spu.c (spu_option_override): Set parameter
10684 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10686 2011-01-05 Jan Hubicka <jh@suse.cz>
10688 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10689 at the command line.
10691 2011-01-05 Martin Jambor <mjambor@suse.cz>
10694 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10695 deltas on streamed outgoing edges.
10696 (output_node_opt_summary): Output info for outgoing edges only when
10697 the node is in new parameter set.
10698 (output_cgraph_opt_summary): New parameter set, passed to the two
10699 aforementioned functions. Update its forward declaration and its
10702 2011-01-05 Tom Tromey <tromey@redhat.com>
10704 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10705 operator to c_finish_omp_atomic.
10706 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10707 (build_unary_op): Update.
10708 (build_modify_expr): Update.
10709 (build_asm_expr): Update.
10711 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10713 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10714 newly inserted insns.
10715 (pad_bb): Likewise.
10716 (spu_emit_branch_hint): Likewise.
10717 (insert_hbrp_for_ilb_runout): Likewise.
10718 (spu_machine_dependent_reorg): Call df_finish_pass after
10719 schedule_insns returns.
10721 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10723 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10725 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10727 PR tree-optimization/47005
10728 * tree-sra.c (struct access): Add 'non_addressable' bit.
10729 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10730 (decide_one_param_reduction): Return 0 if the parameter is passed by
10731 reference and one of the accesses in the group is non_addressable.
10733 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10735 PR tree-optimization/47056
10736 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10737 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10738 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10740 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10742 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10743 initializer. Skip view conversions from aggregate types.
10745 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10748 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10750 2011-01-04 Philipp Thomas <pth@suse.de>
10752 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10755 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10757 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10758 on empty epilogue sequences.
10760 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10762 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10763 non-static): New Driver options.
10765 2011-01-04 Jie Zhang <jie@codesourcery.com>
10768 * gcc.c (default_compilers[]): Set combinable field to 0
10769 for all assembly languages.
10771 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10773 * config/mips/loongson3a.md: New file.
10774 * config/mips/mips.md: Include loongson3a.md.
10775 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10778 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10780 PR middle-end/47017
10781 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10782 instead of convert_memory_address_addr_space on the base expression.
10784 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10786 * config/spu/spu.c (spu_option_override): Update error text
10787 for bad -march= / -mtune= values.
10789 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10791 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10792 if branch-hint optimization will be performed.
10794 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10796 PR tree-optimization/47148
10797 * ipa-split.c (split_function): Convert arguments to
10798 DECL_ARG_TYPE if possible.
10800 PR tree-optimization/47155
10801 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10802 when computing uns.
10804 PR rtl-optimization/47157
10805 * combine.c (try_combine): If undobuf.other_insn becomes
10806 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10807 and set *new_direct_jump_p too.
10809 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10811 PR tree-optimization/47021
10812 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10814 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10816 * gcc.c (process_command): Update copyright notice dates.
10817 * gcov.c (print_version): Likewise.
10818 * gcov-dump.c (print_version): Likewise.
10819 * mips-tfile.c (main): Likewise.
10820 * mips-tdump.c (main): Likewise.
10822 2011-01-03 Martin Jambor <mjambor@suse.cz>
10824 PR tree-optimization/46801
10825 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10826 aggregate fields start at byte boundary instead of the bit-field flag.
10828 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10831 * gcc.c (main): Revert revision 168407.
10833 2011-01-03 Martin Jambor <mjambor@suse.cz>
10835 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10837 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10839 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10840 vector optab to expand vector/scalar shift, update gimple to vector.
10842 2011-01-03 Martin Jambor <mjambor@suse.cz>
10844 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10847 2011-01-03 Martin Jambor <mjambor@suse.cz>
10849 PR tree-optimization/46984
10850 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10852 (cgraph_create_indirect_edge): Fixed line length.
10853 (cgraph_indirect_call_info): Declare.
10854 (cgraph_make_edge_direct) Update declaration.
10855 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10856 (cgraph_create_indirect_edge): Use it.
10857 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10859 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10860 the new thunk_delta representation.
10861 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10863 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10864 (ipa_read_indirect_edge_info): Likewise.
10865 * lto-cgraph.c (output_edge_opt_summary): New function.
10866 (output_node_opt_summary): Call it on all outgoing edges.
10867 (input_edge_opt_summary): New function.
10868 (input_node_opt_summary): Call it on all outgoing edges.
10870 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10873 * gcc.c (main): Don't check have_o when settting combine_inputs.
10875 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10877 * regrename.c: Add general comment describing the pass.
10878 (struct du_head): Remove 'length' field.
10879 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10880 (regrename_optimize): Do not sort chains. Rework comments, add others.
10881 Force renaming to the preferred class (if any) in the first pass and do
10882 not consider registers that belong to it in the second pass.
10883 (create_new_chain): Do not set 'length' field.
10884 (scan_rtx_reg): Likewise.
10886 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10888 PR tree-optimization/47140
10889 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10890 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10891 to bit_value_binop.
10893 PR rtl-optimization/47028
10894 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10895 parm_birth_insn instead of at the beginning of first bb.
10897 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10899 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10900 Remove the word "see" before "@pxref".
10901 * doc/rtl.texi: Remove the word "see" before "@pxref".
10903 2011-01-01 Jan Hubicka <jh@suse.cz>
10905 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10908 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10911 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10914 Copyright (C) 2011 Free Software Foundation, Inc.
10916 Copying and distribution of this file, with or without modification,
10917 are permitted in any medium without royalty provided the copyright
10918 notice and this notice are preserved.