1 2009-11-21 Ian Lance Taylor <iant@google.com>
3 * Makefile.in (HOST_LIBS): Move higher in file.
4 (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
5 is not empty, set to $(CC) and $(CFLAGS).
7 2009-11-22 Martin Jambor <mjambor@suse.cz>
9 * tree-cfg.c (verify_types_in_gimple_reference): Error out on
10 V_C_E of an SSA_NAME or an invariant if lvalue is required.
11 (verify_gimple_call): Verify LHS also with with
12 verify_types_in_gimple_reference.
14 2009-11-21 Martin Jambor <mjambor@suse.cz>
17 * tree-sra.c (access_precludes_ipa_sra_p): New function.
18 (splice_param_accesses): Check all accesses by calling
19 access_precludes_ipa_sra_p.
20 (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
21 not convert types if it is true.
22 (sra_ipa_modify_assign): Convert types in case of mismatch.
24 2009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26 * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
29 2009-11-21 Adam Nemet <adambnemet@gmail.com>
31 * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
32 (mips_mulsidi3_gen_fn): Declare new function.
33 * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
34 * config/mips/mips.md (<u>mulsidi3): Change condition to use
35 mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the
37 (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
38 (mulsidi3_64bit_dmul): New define_insn.
40 2009-11-21 Ben Elliston <bje@au.ibm.com>
42 * gengtype-lex.l: Enable noinput flex option.
43 (YY_NO_INPUT): Remove define.
45 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
47 * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
48 (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
49 (insert_debug_temps_for_defs): Handle PHI nodes.
50 * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
53 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
55 * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
56 after remove_phi_node.
58 2009-11-21 Alexandre Oliva <aoliva@redhat.com>
60 PR tree-optimization/42078
61 * gimple.h (gimple_replace_lhs): New declaration.
62 * gimple.c (gimple_replace_lhs): New function.
63 * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
66 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
68 * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
69 (xop_mulv2div2di3_low): Same.
70 (*xop_pmacsdqh_mem): Same.
72 2009-11-20 Richard Henderson <rth@redhat.com>
74 * config/i386/i386-builtin-types.awk: New file.
75 * config/i386/i386-builtin-types.def: New file.
76 * config/i386/t-i386: Use them to build i386-builtin-types.inc.
77 * config/i386/i386.c: Include it.
78 (ix86_builtin_type_tab, ix86_get_builtin_type): New.
79 (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
80 (struct builtin_isa): Remove GTY marker. Replace tree type with
81 ix86_builtin_func_type; add set_and_not_built_p.
82 (def_builtin): Change type parameter to tcode; use
83 ix86_get_builtin_func_type; update all callers. Accept zero mask
84 to mean the builtin is unconditionally available.
85 (ix86_add_new_builtins): Use set_and_not_built_p instead of type
87 (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
88 Update some users to rationalized enumeration codes from new include.
89 (enum multi_arg_type): Remove. Replace all enumeration values
90 with defines to new ix86_builtin_func_type.
91 (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
92 all type resolution to def_builtin.
93 (ix86_init_builtin_types): Split out from ...
94 (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
96 2009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
99 * config/rs6000/rs6000.c (struct machine_function): Revert
100 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
101 (rs6000_expand_to_rtl_hook): Ditto.
102 (rs6000_check_vector_mode): Ditto.
103 (compute_vrsave_mask): Ditto.
105 2009-11-20 Paul Brook <paul@codesourcery.com>
107 * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
108 * config/arm/arm-cores.def: Add cortex-a5.
109 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
110 * config/arm/arm-tune.md: Regenerate.
112 2009-11-20 Olga Golovanevsky <olga@il.ibm.com>
115 * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
116 (ref_pos): New field in structure.
117 (insert_new_var_in_stmt): New function.
120 2009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
123 * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
124 (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
125 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
126 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
127 (INT_LEAST64_TYPE): Define.
128 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
129 UINT_LEAST64_TYPE): Define.
130 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
131 INT_FAST64_TYPE): Define.
132 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
133 UINT_FAST64_TYPE): Define.
134 (INTPTR_TYPE, UINTPTR_TYPE): Define.
136 2009-11-20 Julian Brown <julian@codesourcery.com>
138 * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
139 specially for Thumb-1.
140 (ASM_OUTPUT_REG_POP): Likewise.
142 2009-11-19 Jason Merrill <jason@redhat.com>
144 * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
146 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
147 Rafael Avila de Espindola <espindola@google.com>
149 * doc/plugins.texi (Plugin initialization): Added advices for
150 retrieving the version of GCC at plugin compilation and loading
153 2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
155 * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
156 (dump_active_plugins): output to file everything. Use
157 internationalized dump & FMT_FOR_PLUGIN_EVENT.
159 2009-11-19 Richard Guenther <rguenther@suse.de>
161 * gimple.c (canonicalize_cond_expr_cond): Strip conversions
162 around truth-valued expressions.
163 * tree.c (free_lang_data): Untangle check for LTO frontend.
165 2009-11-19 Jakub Jelinek <jakub@redhat.com>
167 * tree.c (need_assembler_name_p): Use cgraph_get_node instead
168 of cgraph_node_for_decl.
169 * cgraph.h (cgraph_node_for_decl): Remove prototype.
170 * cgraph.c (cgraph_node_for_decl): Remove.
171 (cgraph_get_node): Just return NULL if !cgraph_hash.
173 2009-11-19 Paul Brook <paul@codesourcery.com>
175 * config.gcc: Add new ARM --with-fpu options.
176 * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
177 * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
179 2009-11-18 Richard Guenther <rguenther@suse.de>
181 * gimple.h (union gimple_statement_d): Add gsmembase member.
182 (gimple_vuse_op): Use gsmembase for access.
183 (gimple_vdef_op): Likewise.
184 (gimple_vuse): Likewise.
185 (gimple_vdef): Likewise.
186 (gimple_vuse_ptr): Likewise.
187 (gimple_vdef_ptr): Likewise.
188 (gimple_set_vuse): Likewise.
189 (gimple_set_vdef): Likewise.
190 * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
192 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
194 * doc/arm-neon-intrinsics.texi: Regenerated.
196 2009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
198 * config/arm/neon-docgen.ml (analyze_shape_elt): Handle
201 2009-11-18 Paul Brook <paul@codesourcery.com>
202 Daniel Jacobowitz <dan@codesourcery.com>
204 * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
205 (arm_arch7em): New variable.
206 (all_architectures): Add armv7e-m.
207 (arm_override_options): Set arm_arch7em.
208 * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
210 (arm_arch7em): Declare.
212 2009-11-18 Richard Guenther <rguenther@suse.de>
214 * lto-streamer-in.c (input_gimple_stmt): Assert that we find
215 a valid field decl if checking is enabled.
217 2009-11-18 Martin Jambor <mjambor@suse.cz>
219 * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
220 (lto_ipa_fixup_call_notes): Declare.
221 * ipa-prop.c (ipa_note_param_call): Store gimple uid.
222 (update_call_notes_after_inlining): Copy call stmt uid to the new
224 (ipa_write_param_call_note): New function.
225 (ipa_read_param_call_note): New function
226 (ipa_write_node_info): Write also param call notes. Removed a bogus
227 comment, reformatted to fit 80 columns.
228 (ipa_read_node_info): Read also param call notes. Removed a bogus
229 comment. Remove ipa_edge_args_vector growth.
230 (lto_ipa_fixup_call_notes): New function.
231 * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
232 * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
233 inlining regardless of flag_wpa.
234 (cgraph_decide_inlining_of_small_functions): Likewise.
235 (cgraph_decide_inlining): Likewise.
236 (inline_read_summary): Likewise.
238 2009-11-18 Jan Hubicka <jh@suse.cz>
240 * predict.c (compute_function_frequency): Export.
241 * predict.h (compute_function_frequency): Declare.
242 * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
244 2009-11-18 Martin Jambor <mjambor@suse.cz>
246 * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
247 on all nodes we write summaries for.
249 2009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
252 * params.def (PARAM_INLINE_UNIT_GROWTH)
253 PARAM_IPCP_UNIT_GROWTH)
254 (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
255 (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
256 (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
257 (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
258 (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
259 PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
262 2009-11-18 Jakub Jelinek <jakub@redhat.com>
264 * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
266 (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
269 * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
271 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
273 * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
274 cgraph_materialize_all_clones): Handle same_body aliases.
275 * cgraph.c (cgraph_allocate_node): New function.
276 (cgraph_create_node): Use it.
277 (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
278 cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
279 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
281 * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
282 (input_node): Stream in same_body aliases.
283 * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
284 for same_body aliases.
285 (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
287 2009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
290 * config/darwin.h: Use the extension stub libraries to access
291 current libgcc_s features.
293 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
296 * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
297 (vect_transform_loop): Call it.
299 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
301 * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
304 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
308 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
310 * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
311 (try_generate_gimple_bb): Skip debug stmts when finding data refs.
312 * sese.c (sese_build_liveouts_bb): Skip debug stmts.
313 (sese_bad_liveouts_use): New.
314 (sese_reset_debug_liveouts_bb): New.
315 (sese_build_liveouts): Use it.
316 (rename_variables_in_stmt): Reset debug stmts rather than creating
318 (expand_scalar_variable_stmt): Likewise.
320 2009-11-18 Alexandre Oliva <aoliva@redhat.com>
322 * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
323 (df_ref_remove): Likewise.
325 2009-11-17 Jan Hubicka <jh@suse.cz>
327 * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
330 2009-11-17 Eric Botcazou <ebotcazou@adacore.com>
332 * toplev.c (process_options): Remove dead code.
333 * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
335 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
337 * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
340 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
342 PR tree-optimization/41857
343 * tree-ssa-address.c (move_hint_to_base): Use void pointer to
344 TYPE's address space instead of pointer to TYPE.
346 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
348 * reload.c (find_reloads_address): Fix typo.
350 2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
352 * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
353 registers in leaf functions if possible.
355 2009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
357 * config/m68k/m68k-devices.def: Add MCF5441x family.
359 2009-11-17 Jan Hubicka <jh@suse.cz>
361 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
363 * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
365 2009-11-17 Uros Bizjak <ubizjak@gmail.com>
367 * config/i386/predicates.md (x86_64_szext_general_operand): Do not
368 nest ior expressions.
369 (x86_64_szext_nonmemory_operand): Ditto.
370 (call_insn_operand): Ditto.
372 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
374 * stmt.c (expand_asm_stmt): Get locus from stmt.
376 2009-11-16 Alexandre Oliva <aoliva@redhat.com>
378 * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
379 Create the decl label for the new dest block on demand. Require
380 a fallthrough edge if no asm labels were redirected.
382 2009-11-16 Uros Bizjak <ubizjak@gmail.com>
384 * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
386 (cstoresi4): Ditto for operand 2.
387 (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
388 patterns using SDWIM mode iterator.
389 (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
390 using SWIM mode iterator.
391 (cmpdi_1): Rename from cmpdi_1_rex64.
392 (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
394 (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn using SWI
396 (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
397 (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
398 (*cmpqi_ext_3_insn): Make private.
399 (*cmpqi_ext_3_insn_rex64): Make private.
400 (cmpstrnsi): Update for renamed cmpdi_1_rex64.
401 * config/i386/predicates.md (cmpsi_operand): Remove.
403 2009-11-16 Paul Brook <paul@codesourcery.com>
405 * doc/invoke.texi: Document ARM VFPv4 based FPUs.
406 * config/arm/arm.c (all_fpus): Add VFPv4 entries.
408 2009-11-14 Jan Hubicka <jh@suse.cz>
410 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
412 * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
413 zero out all callees.
414 * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
415 frequency and count match.
416 * ipa-inline.c (update_noncloned_frequencies): New function.
417 (cgraph_clone_inlined_nodes): Use it.
418 * tree-inline.c (copy_bb): Fix frequency scaling; output
419 diagnostic on frequency mismatches to dump file.
420 (initialize_cfun): Do not scale frequency; fix count scaling;
421 initialize entry and exit block frequencies; copy profile info.
422 (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
423 (copy_body): Use frequency_scale as argument.
424 (expand_call_inline): Compute frequency scale and output diagnostic
426 (delete_unreachable_blocks_update_callgrah): Remove checking that
427 has to be done after edge redirection.
428 (tree_function_versioning): Update initialize_cfun and copy_body call.
430 2009-11-14 Jan Hubicka <jh@suse.cz>
432 * cgraph.c (cgraph_release_function_body): Update use of
433 ipa_transforms_to_apply.
434 (cgraph_remove_node): Remove ipa_transforms_to_apply.
435 * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
436 * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
438 (cgraph_materialize_clone): Remove original if dead.
439 * lto-streamer-in.c (lto_read_body): Remove FIXME and
440 ipa_transforms_to_apply hack.
441 * function.h (struct function): Add ipa_transforms_to_apply.
442 * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
443 * tree-inline.c (copy_bb): Update sanity check.
444 (initialize_cfun): Do not copy ipa_transforms_to_apply.
445 (expand_call_inline): remove dead clone originals.
446 (tree_function_versioning): Merge transformation queues.
447 * passes.c (add_ipa_transform_pass): Remove.
448 (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
450 (execute_all_ipa_transforms): Update.
451 (execute_one_pass): Update.
453 2009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
455 PR target/21078, 21080
456 * config/avr/avr.c (avr_return_addr_rtx): New function for
457 builtin_return_address.
458 (expand_prologue): Calculate stack usage.
459 (avr_asm_function_end_prologue): Output stack size and offset label.
460 * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
461 (machine_function): Add stack_usage.
462 * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
464 2009-11-14 Anatoly Sokolov <aesok@post.ru>
466 * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
467 new 'outgoing' argument.
468 (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
469 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
470 * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
471 iq2000_function_value_regno_p.
472 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
473 * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
476 2009-11-14 Richard Earnshaw <rearnsha@arm.com>
479 * arm.md (adddi_sesidi_di): Place tied contraint first.
480 (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
481 (subdi_zesidi_di, subdi_sesidi_di): Likewise.
482 (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
483 (mulsi3addsi, mulsi3addsi_compare0): Likewise.
484 (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
485 (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
486 (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
487 (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
488 (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
490 2009-11-14 Uros Bizjak <ubizjak@gmail.com>
492 * config/i386/predicates.md (call_register_no_elim_operand):
493 New predicate. Reject stack register as valid call operand
495 (call_insn_operand): Use call_register_no_elim_operand.
497 2009-11-13 Richard Henderson <rth@redhat.com>
499 * function.c (stack_protect_prologue): Don't bypass expand_expr
500 for stack_protect_guard and guard_decl.
501 (stack_protect_epilogue): Likewise.
503 2009-11-13 Jan Hubicka <jh@suse.cz>
505 * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
506 when to PUBLIC is set.
508 2009-11-13 Jakub Jelinek <jakub@redhat.com>
511 * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
514 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
517 * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
518 *call_value_1): Use "lsm" as operand 1 constraint.
519 * config/i386/predicates.md (call_insn_operand): Depend on
520 index_register_operand to avoid %esp register.
522 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
525 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
528 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
529 (TARGET_CALL_ESP): New define.
530 * config/i386/i386.c (initial_ix86_tune_features): Initialize
532 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
533 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
534 *call_1, *call_value_pop_1 and *call_value_1. Depend on
536 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
537 New patterns, use "lsm" as operand 1 constraint.
538 * config/i386/predicates.md (call_insn_operand): Depend on
539 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
541 2009-11-13 Jason Merrill <jason@redhat.com>
544 * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
545 Don't emit a second declaration at any scope.
547 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
549 PR rtl-optimization/41697
550 * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
551 a conditional jump has a single successor.
553 2009-11-13 Andrey Belevantsev <abel@ispras.ru>
555 * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
556 allocate reg_last when in case lazy_reg_last is true.
557 (init_deps_reg_last): New.
558 (free_deps): When max_reg is 0, this context is already freed.
559 * sched-int.h (init_deps_reg_last): Export.
560 (init_deps): Update prototype.
561 * sched-ebb.c (schedule_ebb): Update the call to init_deps.
562 * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
563 * ddg.c (build_intra_loop_deps): Likewise.
564 * sel-sched-ir.c (copy_deps_context, create_deps_context,
565 reset_deps_context, deps_init_id): Likewise.
566 (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
567 (free_data_for_scheduled_insn): New, break down from ...
568 (free_first_time_insn_data): ... here.
569 (has_dependence_p): Allocate reg_last now, when it is needed.
570 (extend_insn_data): When maximal LUID is big enough, allocate
571 per-insn data in smaller chunks.
572 * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
573 * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
576 2009-11-13 Uros Bizjak <ubizjak@gmail.com>
578 * config/i386/i386.md (call_value): Fix comment.
579 (sibcall_value): Ditto.
581 2009-11-13 Eric Botcazou <ebotcazou@adacore.com>
583 * config/i386/linux-unwind.h (x86_frob_update_context): New function.
584 (MD_FROB_UPDATE_CONTEXT): Define.
586 2009-11-12 Eric Botcazou <ebotcazou@adacore.com>
587 Laurent GUERBY <laurent@guerby.net>
589 * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
590 Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
591 (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
593 2009-11-12 Jan Hubicka <jh@suse.cz>
595 * ipa.c (function_and_variable_visibility): Fix my accidentail commit
596 and clear DECL_COMMON on localized declarations.
598 2009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
601 * regrename.c (struct du_head): New structure; some elements moved
603 (struct du_chain): ... this one.
604 (open_chains, closed_chains): Now of type struct du_head *.
605 (do_replace): Accept du_head argument, not du_chain. All callers
606 changed. Modified code to match new data structures.
607 (build_def_use): Return a list of du_head structures. Modified code
608 to match new data structures.
609 (dump_def_use_chain): Accept du_head argument, not du_chain. All
610 callers changed. Modified code to match new data structures.
611 (merge_overlapping_regs): Accept du_head argument, not du_chain. All
612 callers changed. Modified code to match new data structures.
613 (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
614 Allocate a du_head structure as well as a du_chain when creating a
615 new chain. Modified other code to match new data structures.
617 2009-11-12 Jan Hubicka <jh@suse.cz>
619 * cgraph.h (varpool_node_name): Declare.
620 * cgraphunit.c (process_function_and_variable_attributes): Set
621 force_output flag on used variables.
622 * ipa.c (function_and_variable_visibility): Dump externally visible
623 and needed variables.
624 * varpool.c (varpool_node_name): Export.
625 (decide_is_variable_needed): Check COMDAT for externally visible vars;
628 2009-11-12 Uros Bizjak <ubizjak@gmail.com>
631 * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
632 processing if XEXP (x, i) is NULL.
634 2009-11-12 Jan Hubicka <jh@suse.cz>
636 * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
637 imply PUBLIC || EXTERNAL.
639 2009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
642 * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
643 single successor block, ending with jump created by RTL expander.
645 2009-11-11 Jan Hubicka <jh@suse.cz>
648 * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
649 and WEAK variables at -fwhole-program.
652 * ipa.c (whole_program_function_and_variable_visility): COMDAT
653 functions/variables are not needed even if they are externally visible.
655 2009-11-11 Jan Hubicka <jh@suse.cz>
657 (patch by Richard Guenther)
658 * lto-streamer-out.c (output_function): Output head of argument list
660 * lto-streamer-in.c (input_function): Re-map arguments into merged
663 2009-11-11 Jan Hubicka <jh@suse.cz>
665 * lto-cgraph.c: Include gcov-io.h
666 (output_profile_summary): New function.
667 (output_cgraph): Use it.
668 (input_profile_summary): New function.
669 (input_cgraph): Use it.
670 * coverage.c (build_ctr_info_value): Use varpool; initalize
672 (create_coverage): Likewise.
673 * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
674 (tree_init_edge_profiler): Likewise.
675 * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
677 2009-11-11 Kai Tietz <kai.tietz@onevision.com>
679 * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
680 * c-pragma.c (def_pragma_macro_value): Likewise.
681 (def_pragma_macro): Likewise.
682 (pushed_macro_table): Likewise.
683 (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
684 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
686 2009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
688 * doc/plugins.texi (Registering custom attributes): section
689 renamed as (Registering custom attributes or pragmas).
690 Mentions custom attributes & pragmas, and c_register_pragma, with
692 * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
694 * doc/extend.texi (Function Attributes): Mentions that plugin can
695 provide their attributes.
697 2009-11-11 Jon Beniston <jon@beniston.com>
699 * config.gcc: Add lm32 elf and uclinux targets.
700 * config/lm32: New directory.
701 * config/lm32/lm32.c: New file.
702 * config/lm32/lm32.h: New file.
703 * config/lm32/lm32.md: New file.
704 * config/lm32/lm32.opt: New file.
705 * config/lm32/lm32-protos.h: New file.
706 * config/lm32/constraints.md: New file.
707 * config/lm32/predicates.md: New file.
708 * config/lm32/sfp-machine.h: New file.
709 * config/lm32/t-fprules-softfp: New file.
710 * config/lm32/uclinux-elf.h: New file.
711 * doc/invoke.texi: Document lm32 options.
712 * doc/contrib.texi: Document lm32 porter.
713 * doc/install.texi: Document lm32 targets.
715 2009-11-11 Martin Jambor <mjambor@suse.cz>
718 * ipa-prop.c (ipa_update_after_lto_read): Call
719 ipa_check_create_node_params and ipa_check_create_edge_args. Also
720 call ipa_initialize_node_params instead of ipa_populate_param_decls.
722 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
724 * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
725 (neon_expand_vector_init): Use them. Also handle non-constant
726 vectors with identical elements and vectors with only one
727 non-constant element.
728 (arm_print_operand): Handle 'y' modifier.
729 * config/arm/arm-protos.h (neon_make_constant): Declare.
730 * config/arm/neon.md (neon_vdup_n<mode>): Split into two
731 patterns. Use VX instead of VDQW for the first one. Allow
732 a VFP alternative and V32 modes for the second one.
733 * config/arm/neon.ml (shape_elt): Add Alternatives.
734 (ops): Use Alternatives for vdup lane instructions.
735 * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
736 * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
738 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
740 * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
742 (movti, mov<mode>): Call force_reg on one operand if required.
743 * config/arm/vec-common.md (mov<mode>): Likewise.
745 2009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
747 * config/arm/arm.c (arm_override_options): Enable scheduling for
750 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
754 * expr.h (anti_adjust_stack_and_probe): Declare.
755 * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
756 parameter and rewrite head comment.
757 (allocate_dynamic_stack_space): Adjust call to above function.
758 * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
760 * tree.h (dwarf2out_args_size): Delete.
761 * dwarf2out.c (dwarf2out_args_size): Make static and move around.
762 (dwarf2out_args_size_adjust): Delete prototype and move around.
763 (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
764 ACCUMULATE_OUTGOING_ARGS targets.
766 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
768 * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
769 DECL_SIZE of DECL_RESULT before evaluating it.
771 2009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
773 PR tree-optimization/41987
774 * fold-const.c (const_binop): Avoid using fold_buildN().
776 2009-11-10 Martin Jambor <mjambor@suse.cz>
778 * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
779 (execute_all_ipa_stmt_fixups): Declare.
780 * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
781 * ipa-inline.c (pass_ipa_inline): Likewise.
782 * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
783 * ipa-reference.c (pass_ipa_reference): Likewise.
784 * ipa.c (pass_ipa_whole_program_visibility): Likewise.
785 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
786 (pass_ipa_lto_finish_out): Likewise.
787 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
788 * passes.c (execute_ipa_stmt_fixups): New function.
789 (execute_all_ipa_stmt_fixups): New function.
790 * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
792 2009-11-10 Eric Botcazou <ebotcazou@adacore.com>
795 * explow.c (probe_stack_range): Fix typo.
796 * config/sparc/sparc.md (probe_stack): New expander.
798 2009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
800 * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
802 2009-11-09 Jason Merrill <jason@redhat.com>
804 * gdbinit.in (pgq): New function for printing gimple sequence.
806 2009-11-09 Paul Brook <paul@codesourcery.com>
807 Daniel Jacobowitz <dan@codesourcery.com>
808 Sandra Loosemore <sandra@codesourcery.com>
810 * doc/extend.texi (Half-Precision): Update wording to reflect
811 that there are now multiple -mfpu options that enable fp16
813 * doc/invoke.texi: Update list of ARM -mfpu= options.
814 * config.gcc: Update ARM --with-fpu option list.
815 * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
816 vfpv3xd and vfpv3xd-fp16.
817 (use_vfp_abi): New function.
818 (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
820 (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
821 aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
822 (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
823 arm_9e_rtx_costs): Only expect double-precision operations if the FPU
825 (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
827 (arm_print_operand): Handle 'p' modifier.
828 (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
830 * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
831 (TARGET_FP16): Define.
832 * config/arm/vfp.md: Disable double-precision patterns if the FPU
833 does not provide them.
834 (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
835 double-precision values on a single-precision FPU.
836 (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
837 double-precision constants.
838 (movhf_vfp_neon): New pattern (was movhf_vfp).
839 (movhf_vfp): Remove NEON instructions.
840 * config/arm/constraints.md: Add new "Dy" constraint for
841 double-precision constants. Update description of "Dv".
842 * config/arm/arm.md: Disable double-precision patterns if the FPU
843 does not provide them
845 2009-11-09 Jakub Jelinek <jakub@redhat.com>
847 * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
848 (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
851 2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
853 * collect2.c (main): Search PLUGIN_LD for plugin linker.
855 * configure.ac (--with-plugin-ld): New. Default to ld.
856 * configure: Regenerated.
857 * config.in: Likewise.
859 * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
860 (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
862 2009-11-08 Jonathan Gray <jsg@openbsd.org>
864 * config/openbsd-stdint.h: Change to reflect what
865 c_common_nodes_and_builtins expects.
867 2009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
869 * builtins.c (apply_args_reg_offset): Remove commented out delaration.
871 2009-11-08 Jakub Jelinek <jakub@redhat.com>
874 * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
875 function contains at least one local dynamic name.
876 (print_operand) <case '&'>: Instead output operand lossage diagnostics
877 here if that happens.
879 2009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
880 Joern Rennecke <amylaar@spamcop.net>
882 * cfgrtl.c (pass_free_cfg): Add pass name.
883 * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
884 (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
885 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
886 * df-core.c (pass_df_initialize_no_opt): Likewise.
887 * except.c (pass_rtl_eh): Likewise.
888 * function.c (pass_init_function, pass_leaf_regs): Likewise.
889 * gcse.c (pass_rtl_pre): Change pass name.
890 * passes.c (pass_postreload): Add pass name.
891 (make_pass_instance): Don't use duplicate-tracking logic for
892 names starting with '*'.
893 (next_pass_1): Assert that pass has a name.
894 (register_one_dump_file): If there is an space in the name,
896 * predict.c (pass_strip_predict_hints): Add pass name.
897 * reg-stack.c (pass_stack_regs): Likewise.
898 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
899 * tree-cfg.c (pass_warn_function_return,
900 pass_warn_function_noreturn): Add pass name.
901 * tree-dfa.c (pass_referenced_vars): Likewise.
902 * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
903 Fix whitespace before comment.
904 (pass_fixup_cfg): Add pass name, fix whitespace before comment.
905 (pass_init_datastructures): Add pass name.
906 * tree-ssa-loop.c (pass_record_bounds): Likewise.
907 * tree-ssa.c (pass_early_warn_uninitialized,
908 pass_late_warn_uninitialized): Likewise.
909 * tree.c (pass_ipa_free_lang_data): Likewise.
910 * doc/passes.texi (pass manager): Document how to disambiguate
913 2009-11-08 Paolo Bonzini <bonzini@gnu.org>
915 * df-problems.c: Fix documentation for forward simulation of LR.
916 (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
917 (df_simulate_finalize_forwards): Remove.
918 * df.h (df_simulate_finalize_forwards): Remove.
920 2009-11-08 Richard Guenther <rguenther@suse.de>
922 * tree-ssa-structalias.c (build_succ_graph): Properly make
923 variables escape if they are stored to anything.
925 2009-11-08 Richard Guenther <rguenther@suse.de>
927 PR rtl-optimization/41928
928 * loop-invariant.c (free_loop_data): If we didn't allocate
929 loop data do not try to free it.
931 2009-11-07 Jason Merrill <jason@redhat.com>
933 * tree.c (reconstruct_complex_type): Preserve attributes.
935 2009-11-07 Richard Guenther <rguenther@suse.de>
937 * tree-ssa-structalias.c (build_succ_graph): Feed stores
938 to anything only to variables that can take pointers.
939 (get_constraint_for_ssa_var): Properly exclude full
940 variables from expanding.
941 (first_vi_for_offset): Avoid overflow in arithmetic.
942 (first_or_preceding_vi_for_offset): Likewise.
943 (count_num_arguments): Fix implementation.
944 (gate_ipa_pta): Do not run when not optimizing.
946 2009-11-07 David Binderman <dcb314@hotmail.com>
948 * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
949 expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
950 set but not used variables.
951 (apply_args_reg_offset): Comment out as unused.
952 * calls.c (flags_from_decl_or_type): Likewise.
953 * genautomata.c (check_regexp_units_distribution): Likewise.
955 2009-11-07 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
958 xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
959 *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
960 xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
961 xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
962 xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
963 operand alternatives.
965 2009-11-06 Michael Matz <matz@suse.de>
968 * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
969 of a potential reciprocal to really be reciprocals.
971 2009-11-06 Jakub Jelinek <jakub@redhat.com>
973 * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
974 lwpintrin.h after immintrin.h.
975 * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
979 * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
980 or non-constant index, allow index one past the last element and
981 allow exceeding array bound in arrays that might be used as flexible
984 2009-11-05 Richard Henderson <rth@redhat.com>
986 * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
988 2009-11-05 Paul Brook <paul@codesourcery.com>
990 * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
992 (all_fpus): Add FPU details.
993 (fp_model_for_fpu): Remove.
994 (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
995 (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
996 (arm_file_start): Use arm_fpu_desc.
997 * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
998 TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
1000 (TARGET_FPA_EMU2): Define.
1001 (arm_fp_model, fputype, arm_fpu_tune): Remove.
1002 (vfp_reg_type, arm_fpu_desc): New.
1003 * config/arm/arm.md (attr fpu): Simplify.
1004 * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
1005 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
1006 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
1007 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
1008 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
1010 2009-11-05 Michael Matz <matz@suse.de>
1012 * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
1014 * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
1017 2009-11-04 Jason Merrill <jason@redhat.com>
1020 * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
1021 or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
1022 (output_constant): Avoid crash after error.
1024 2009-11-05 Martin Jambor <mjambor@suse.cz>
1026 * tree-sra.c (struct access): Changed comment of next_sibling field.
1027 (analyze_modified_params): Loop over accesses of a group rather than
1028 over all with the ame base, pass a common bitmap to
1030 (unmodified_by_ref_scalar_representative): Build link lists of
1031 accesses of a group.
1032 (splice_param_accesses): Likewise.
1034 2009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
1036 * df-scan.c (df-uses-record): Add case zero_extract of mem.
1038 2009-11-04 Eric Botcazou <ebotcazou@adacore.com>
1042 * config/i386/i386.md (probe_stack): New expander.
1043 (logical operation peepholes): Do not split stack checking probes.
1045 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
1046 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1048 * doc/invoke.texi (-mlwp): Add documentation.
1049 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
1050 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
1051 (x86_64-*-*): Ditto.
1052 * config/i386/lwpintrin.h: New file, provide x86 compiler
1053 intrinisics for LWP.
1054 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
1055 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
1056 * config/i386/i386-c.c (ix86_target_macros_internal): Check
1058 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
1059 * config/i386/i386.opt (-mlwp): New switch for LWP support.
1060 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
1061 (OPTION_MASK_ISA_LWP_UNSET): New.
1062 (ix86_handle_option): Handle -mlwp.
1063 (isa_opts): Handle -mlwp.
1064 (enum pta_flags): Add PTA_LWP.
1065 (override_options): Add LWP support.
1066 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
1067 (IX86_BUILTIN_LLWPCB32): Ditto.
1068 (IX86_BUILTIN_LLWPCB64): Ditto.
1069 (IX86_BUILTIN_SLWPCB16): Ditto.
1070 (IX86_BUILTIN_SLWPCB32): Ditto.
1071 (IX86_BUILTIN_SLWPCB64): Ditto.
1072 (IX86_BUILTIN_LWPVAL16): Ditto.
1073 (IX86_BUILTIN_LWPVAL32): Ditto.
1074 (IX86_BUILTIN_LWPVAL64): Ditto.
1075 (IX86_BUILTIN_LWPINS16): Ditto.
1076 (IX86_BUILTIN_LWPINS32): Ditto.
1077 (IX86_BUILTIN_LWPINS64): Ditto.
1078 (enum ix86_special_builtin_type): Add LWP intrinsic support.
1079 (builtin_description): Ditto.
1080 (ix86_init_mmx_sse_builtins): Ditto.
1081 (ix86_expand_special_args_builtin): Ditto.
1082 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
1084 (UNSPEC_SLWP_INTRINSIC): Ditto.
1085 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
1086 (UNSPECV_LWPINS_INTRINSIC): Ditto.
1087 (lwp_llwpcbhi1): New lwp pattern.
1088 (lwp_llwpcbsi1): Ditto.
1089 (lwp_llwpcbdi1): Ditto.
1090 (lwp_slwpcbhi1): Ditto.
1091 (lwp_slwpcbsi1): Ditto.
1092 (lwp_slwpcbdi1): Ditto.
1093 (lwp_lwpvalhi3): Ditto.
1094 (lwp_lwpvalsi3): Ditto.
1095 (lwp_lwpvaldi3): Ditto.
1096 (lwp_lwpinshi3): Ditto.
1097 (lwp_lwpinssi3): Ditto.
1098 (lwp_lwpinsdi3): Ditto.
1100 2009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1101 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1104 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
1107 2009-11-04 Richard Guenther <rguenther@suse.de>
1108 Rafael Avila de Espindola <espindola@google.com>
1110 * gcc.c (process_command): Handle arguments name@offset.
1112 2009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
1113 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1115 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
1116 (x86_64-*-*): Ditto.
1117 * config/i386/xopintrin.h: New file, provide common x86 compiler
1118 intrinisics for XOP.
1119 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
1120 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
1121 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1123 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
1124 * config/i386/i386.opt (-mxop): New switch for XOP support.
1125 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
1126 (UNSPEC_XOP_TRUEFALSE)
1127 (UNSPEC_XOP_PERMUTE)
1128 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
1129 (PPERM_*): New constants for vpperm instruction.
1130 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
1131 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
1132 (OPTION_MASK_ISA_XOP_UNSET): New.
1133 (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
1134 (ix86_handle_option): Handle -mxop.
1135 (isa_opts): Handle -mxop.
1136 (enum pta_flags): Add PTA_XOP.
1137 (override_options): Add XOP support.
1138 (print_operand): Add code for XOP compare instructions.
1139 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
1140 (ix86_expand_int_vcond): Extend for XOP compare instruction.
1142 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
1143 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
1144 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
1145 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
1146 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
1147 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
1148 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
1150 (IX86_BUILTIN_VPCMOV256): Ditto.
1151 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
1152 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
1153 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
1154 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
1155 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
1156 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
1158 (IX86_BUILTIN_VPPERM): Ditto.
1160 (IX86_BUILTIN_VPMACSSWW): Ditto.
1161 (IX86_BUILTIN_VPMACSWW): Ditto.
1162 (IX86_BUILTIN_VPMACSSWD): Ditto.
1163 (IX86_BUILTIN_VPMACSWD): Ditto.
1164 (IX86_BUILTIN_VPMACSSDD): Ditto.
1165 (IX86_BUILTIN_VPMACSDD): Ditto.
1166 (IX86_BUILTIN_VPMACSSDQL): Ditto.
1167 (IX86_BUILTIN_VPMACSSDQH): Ditto.
1168 (IX86_BUILTIN_VPMACSDQL): Ditto.
1169 (IX86_BUILTIN_VPMACSDQH): Ditto.
1170 (IX86_BUILTIN_VPMADCSSWD): Ditto.
1171 (IX86_BUILTIN_VPMADCSWD): Ditto.
1173 (IX86_BUILTIN_VPHADDBW): Ditto.
1174 (IX86_BUILTIN_VPHADDBD): Ditto.
1175 (IX86_BUILTIN_VPHADDBQ): Ditto.
1176 (IX86_BUILTIN_VPHADDWD): Ditto.
1177 (IX86_BUILTIN_VPHADDWQ): Ditto.
1178 (IX86_BUILTIN_VPHADDDQ): Ditto.
1179 (IX86_BUILTIN_VPHADDUBW): Ditto.
1180 (IX86_BUILTIN_VPHADDUBD): Ditto.
1181 (IX86_BUILTIN_VPHADDUBQ): Ditto.
1182 (IX86_BUILTIN_VPHADDUWD): Ditto.
1183 (IX86_BUILTIN_VPHADDUWQ): Ditto.
1184 (IX86_BUILTIN_VPHADDUDQ): Ditto.
1185 (IX86_BUILTIN_VPHSUBBW): Ditto.
1186 (IX86_BUILTIN_VPHSUBWD): Ditto.
1187 (IX86_BUILTIN_VPHSUBDQ): Ditto.
1189 (IX86_BUILTIN_VPROTB): Ditto.
1190 (IX86_BUILTIN_VPROTW): Ditto.
1191 (IX86_BUILTIN_VPROTD): Ditto.
1192 (IX86_BUILTIN_VPROTQ): Ditto.
1193 (IX86_BUILTIN_VPROTB_IMM): Ditto.
1194 (IX86_BUILTIN_VPROTW_IMM): Ditto.
1195 (IX86_BUILTIN_VPROTD_IMM): Ditto.
1196 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
1198 (IX86_BUILTIN_VPSHLB): Ditto.
1199 (IX86_BUILTIN_VPSHLW): Ditto.
1200 (IX86_BUILTIN_VPSHLD): Ditto.
1201 (IX86_BUILTIN_VPSHLQ): Ditto.
1202 (IX86_BUILTIN_VPSHAB): Ditto.
1203 (IX86_BUILTIN_VPSHAW): Ditto.
1204 (IX86_BUILTIN_VPSHAD): Ditto.
1205 (IX86_BUILTIN_VPSHAQ): Ditto.
1207 (IX86_BUILTIN_VFRCZSS): Ditto.
1208 (IX86_BUILTIN_VFRCZSD): Ditto.
1209 (IX86_BUILTIN_VFRCZPS): Ditto.
1210 (IX86_BUILTIN_VFRCZPD): Ditto.
1211 (IX86_BUILTIN_VFRCZPS256): Ditto.
1212 (IX86_BUILTIN_VFRCZPD256): Ditto.
1214 (IX86_BUILTIN_VPCOMEQUB): Ditto.
1215 (IX86_BUILTIN_VPCOMNEUB): Ditto.
1216 (IX86_BUILTIN_VPCOMLTUB): Ditto.
1217 (IX86_BUILTIN_VPCOMLEUB): Ditto.
1218 (IX86_BUILTIN_VPCOMGTUB): Ditto.
1219 (IX86_BUILTIN_VPCOMGEUB): Ditto.
1220 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
1221 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
1223 (IX86_BUILTIN_VPCOMEQUW): Ditto.
1224 (IX86_BUILTIN_VPCOMNEUW): Ditto.
1225 (IX86_BUILTIN_VPCOMLTUW): Ditto.
1226 (IX86_BUILTIN_VPCOMLEUW): Ditto.
1227 (IX86_BUILTIN_VPCOMGTUW): Ditto.
1228 (IX86_BUILTIN_VPCOMGEUW): Ditto.
1229 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
1230 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
1232 (IX86_BUILTIN_VPCOMEQUD): Ditto.
1233 (IX86_BUILTIN_VPCOMNEUD): Ditto.
1234 (IX86_BUILTIN_VPCOMLTUD): Ditto.
1235 (IX86_BUILTIN_VPCOMLEUD): Ditto.
1236 (IX86_BUILTIN_VPCOMGTUD): Ditto.
1237 (IX86_BUILTIN_VPCOMGEUD): Ditto.
1238 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
1239 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
1241 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
1242 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
1243 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
1244 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
1245 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
1246 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
1247 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
1248 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
1250 (IX86_BUILTIN_VPCOMEQB): Ditto.
1251 (IX86_BUILTIN_VPCOMNEB): Ditto.
1252 (IX86_BUILTIN_VPCOMLTB): Ditto.
1253 (IX86_BUILTIN_VPCOMLEB): Ditto.
1254 (IX86_BUILTIN_VPCOMGTB): Ditto.
1255 (IX86_BUILTIN_VPCOMGEB): Ditto.
1256 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
1257 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
1259 (IX86_BUILTIN_VPCOMEQW): Ditto.
1260 (IX86_BUILTIN_VPCOMNEW): Ditto.
1261 (IX86_BUILTIN_VPCOMLTW): Ditto.
1262 (IX86_BUILTIN_VPCOMLEW): Ditto.
1263 (IX86_BUILTIN_VPCOMGTW): Ditto.
1264 (IX86_BUILTIN_VPCOMGEW): Ditto.
1265 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
1266 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
1268 (IX86_BUILTIN_VPCOMEQD): Ditto.
1269 (IX86_BUILTIN_VPCOMNED): Ditto.
1270 (IX86_BUILTIN_VPCOMLTD): Ditto.
1271 (IX86_BUILTIN_VPCOMLED): Ditto.
1272 (IX86_BUILTIN_VPCOMGTD): Ditto.
1273 (IX86_BUILTIN_VPCOMGED): Ditto.
1274 (IX86_BUILTIN_VPCOMFALSED): Ditto.
1275 (IX86_BUILTIN_VPCOMTRUED): Ditto.
1277 (IX86_BUILTIN_VPCOMEQQ): Ditto.
1278 (IX86_BUILTIN_VPCOMNEQ): Ditto.
1279 (IX86_BUILTIN_VPCOMLTQ): Ditto.
1280 (IX86_BUILTIN_VPCOMLEQ): Ditto.
1281 (IX86_BUILTIN_VPCOMGTQ): Ditto.
1282 (IX86_BUILTIN_VPCOMGEQ): Ditto.
1283 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
1284 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
1286 (enum multi_arg_type): New enum for describing the various XOP
1287 intrinsic argument types.
1288 (bdesc_multi_arg): New table for XOP intrinsics.
1289 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
1290 (ix86_expand_multi_arg_builtin): New function for creating XOP
1293 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
1294 (xop_pmacsww): Ditto.
1295 (xop_pmacssww): Ditto.
1296 (xop_pmacsdd): Ditto.
1297 (xop_pmacssdd): Ditto.
1298 (xop_pmacssdql): Ditto.
1299 (xop_pmacssdqh): Ditto.
1300 (xop_pmacsdql): Ditto.
1301 (xop_pmacsdql_mem): Ditto.
1302 (xop_mulv2div2di3_low): Ditto.
1303 (xop_pmacsdqh): Ditto.
1304 (xop_pmacsdqh_mem): Ditto.
1305 (xop_mulv2div2di3_high): Ditto.
1306 (xop_pmacsswd): Ditto.
1307 (xop_pmacswd): Ditto.
1308 (xop_pmadcsswd): Ditto.
1309 (xop_pmadcswd): Ditto.
1310 (xop_pcmov_<mode>): Ditto.
1311 (xop_pcmov_<mode>256): Ditto.
1312 (xop_phaddbw): Ditto.
1313 (xop_phaddbd): Ditto.
1314 (xop_phaddbq): Ditto.
1315 (xop_phaddwd): Ditto.
1316 (xop_phaddwq): Ditto.
1317 (xop_phadddq): Ditto.
1318 (xop_phaddubw): Ditto.
1319 (xop_phaddubd): Ditto.
1320 (xop_phaddubq): Ditto.
1321 (xop_phadduwd): Ditto.
1322 (xop_phadduwq): Ditto.
1323 (xop_phaddudq): Ditto.
1324 (xop_phsubbw): Ditto.
1325 (xop_phsubwd): Ditto.
1326 (xop_phsubdq): Ditto.
1328 (rotl<mode>3): Ditto.
1329 (rotr<mode>3): Ditto.
1330 (xop_rotl<mode>3): Ditto.
1331 (xop_rotr<mode>3): Ditto.
1332 (vrotr<mode>3): Ditto.
1333 (vrotl<mode>3): Ditto.
1334 (xop_vrotl<mode>3): Ditto.
1335 (vlshr<mode>3): Ditto.
1336 (vashr<mode>3): Ditto.
1338 (xop_ashl<mode>3): Ditto.
1339 (xop_lshl<mode>3): Ditto.
1340 (ashlv16qi3): Ditto.
1341 (lshlv16qi3): Ditto.
1342 (ashrv16qi3): Ditto.
1344 (xop_frcz<mode>2): Ditto.
1345 (xop_vmfrcz<mode>2): Ditto.
1346 (xop_frcz<mode>2256): Ditto.
1347 (xop_maskcmp<mode>3): Ditto.
1348 (xop_maskcmp_uns<mode>3): Ditto.
1349 (xop_maskcmp_uns2<mode>3): Ditto.
1350 (xop_pcom_tf<mode>3): Ditto.
1352 * doc/invoke.texi (-mxop): Add documentation.
1353 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
1355 2009-11-03 Mark Mitchell <mark@codesourcery.com>
1358 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
1359 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
1360 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
1362 2009-11-04 Richard Earnshaw <rearnsha@arm.com>
1365 * arm.md (peephole2 patterns for move and compare): New.
1367 2009-11-04 Nick Clifton <nickc@redhat.com>
1369 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
1370 Make sure that it does not allow CONST_DOUBLEs.
1371 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
1372 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
1373 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
1374 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
1375 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
1376 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
1377 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
1378 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
1379 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
1380 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
1381 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
1382 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
1383 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
1384 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
1385 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
1387 2009-11-04 Richard Guenther <rguenther@suse.de>
1389 PR tree-optimization/41919
1390 * tree-vrp.c (test_for_singularity): Properly compare values.
1392 2009-11-04 Revital Eres <eres@il.ibm.com>
1394 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1395 Consider peeling for alignment only for stores and remove
1396 redundant assignment.
1398 2009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
1401 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
1402 (m68k_ok_for_sibcall_p): Handle different result return locations.
1404 2009-11-04 Richard Guenther <rguenther@suse.de>
1406 * c-opts.c (c_common_post_options): Move LTO option processing
1408 * opts.c (decode_options): ... here.
1410 2009-11-04 Jakub Jelinek <jakub@redhat.com>
1412 * c-common.c (fold_offsetof_1): Use %wd instead of
1413 HOST_WIDE_INT_PRINT_DEC.
1415 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
1417 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
1420 2009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
1422 * config.gcc (vax-*-linux*): Keep the original contents of
1423 tmake_file while adding vax/t-linux.
1425 2009-11-03 Eric Botcazou <ebotcazou@adacore.com>
1429 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
1430 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
1431 (STACK_CHECK_MOVING_SP): Likewise.
1432 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
1433 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
1434 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
1435 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
1436 Document PROBE_STACK.
1437 * explow.c (anti_adjust_stack_and_probe): New function.
1438 (allocate_dynamic_stack_space): Do not directly allocate space if
1439 STACK_CHECK_MOVING_SP, instead invoke above function.
1440 (emit_stack_probe): Handle probe_stack insn.
1441 (PROBE_INTERVAL): New macro.
1442 (STACK_GROW_OPTAB): Likewise.
1443 (STACK_GROW_OFF): Likewise.
1444 (probe_stack_range): Use Pmode and memory_address consistently. Fix
1445 loop condition in the small constant case. Rewrite in the general
1446 case to be immune to wraparounds. Make sure the address of probes
1447 is valid. Try to use [base + disp] addressing mode if possible.
1448 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
1449 checking is enabled and STACK_CHECK_MOVING_SP.
1450 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
1451 return 1 for volatile references to the stack pointer.
1452 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
1453 __builtin_alloca if stack checking is enabled.
1454 * unwind-dw2.c (uw_identify_context): Take into account whether the
1455 context is that of a signal frame or not.
1456 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
1457 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
1459 2009-11-03 Jakub Jelinek <jakub@redhat.com>
1461 PR rtl-optimization/41917
1462 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
1463 operand isn't known to be 0, return 1.
1465 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
1467 * config/mips/mips.md: Fix typos.
1469 2009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
1471 * doc/invoke.texi: Fix typo.
1473 2009-11-03 Paul Brook <paul@codesourcery.com>
1475 * config/arm/neon.ml (vectype): Add T_floatSF.
1476 (string_of_vectype): Ditto.
1477 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
1478 (deftypes): Use float for float32_t.
1479 * config/arm/arm_neon.h: Regenerate.
1481 2009-11-03 Nick Clifton <nickc@redhat.com>
1482 Kevin Buettner <kevinb@redhat.com>
1484 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
1485 order of expected registers.
1486 (rx_load_multiple_vector): Likewise.
1487 (rx_rtsd_vector): Likewise.
1488 * config/rx/rx.c (rx_cpu_type): New variable.
1489 (rx_print_operand): Fix bug printing 64-bit constant values.
1490 (rx_emit_stack_pushm): Reverse order of pushed registers.
1491 (gen_rx_store_vector): Likewise.
1492 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
1494 (is_exception_func): Rename to is_interrupt_func and only accept
1495 "interrupt" as the attribute name.
1496 (rx_get_stack_layout): Use new function name.
1497 (rx_func_attr_inlinable): Likewise.
1498 (rx_attribute_table): Remove "exception".
1499 (rx_expand_prologue): If necessary push the accumulator register
1500 in the prologue of interrupt functions.
1501 (rx_expand_epilogue): If necessary pop the accumulator.
1502 (rx_builtins): Add RX_BUILTIN_MVTIPL.
1503 (rx_expand_builtin_stz): Remove.
1504 (rx_expand_builtin_mvtipl): New function.
1505 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
1506 (rx_expand_builtin): Likewise.
1507 (rx_enable_fpu): New variable.
1508 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
1509 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
1510 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
1511 (enum rx_cpu_types): Define.
1512 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
1513 (INCOMING_FRAME_SP_OFFSET): Define.
1514 (ARG_POINTER_CFA_OFFSET): Define.
1515 (FRAME_POINTER_CFA_OFFSET): Define.
1516 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
1517 (ALLOW_RX_FPU_INSNS): Define.
1518 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
1519 fast_math_flags_set_p.
1520 (UNSPEC_BUILTIN_MVTIPL): Define.
1521 (revl): Rename to bswapsi2.
1522 (bswaphi2): New pattern.
1523 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
1524 (mvtaclo): Likewise.
1526 (mvtc): Remove clobber of cc0.
1529 * config/rx/rx.opt (mieee): Remove.
1534 (msave-acc-in-interrupts): Add.
1535 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
1536 (MULTILIB_DIRS): Likewise.
1537 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
1538 * doc/extend.texi: Remove description of "exception" function
1540 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
1541 -msave-acc-in-interrupts options.
1543 2009-11-03 Richard Guenther <rguenther@suse.de>
1545 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
1547 2009-11-03 Dodji Seketeli <dodji@redhat.com>
1550 * c-common.c (fold_offsetof_1): Issue errors when the member
1551 designator of the offsetof expression is not legitimate.
1553 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
1555 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
1556 names instead of numerical constants.
1557 (sse_prologue_save): Ditto.
1558 (*sse_prologue_save_insn): Ditto.
1560 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
1563 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
1564 (TARGET_CALL_ESP): New define.
1565 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1567 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
1568 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
1569 *call_1, *call_value_pop_1 and *call_value_1. Depend on
1571 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
1572 New patterns, use "lsm" as operand 1 constraint.
1573 * config/i386/predicates.md (call_insn_operand): Depend on
1574 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
1576 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1578 PR tree-optimization/41857
1579 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
1580 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
1582 * tree-ssa-address.c (move_hint_to_base): New function.
1583 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
1584 address space associated with TYPE.
1585 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
1586 most_expensive_mult_to_index. Call move_hint_to_base.
1587 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
1588 TYPE to addr_to_parts.
1590 2009-11-02 Martin Jambor <mjambor@suse.cz>
1592 PR tree-optimization/41750
1593 * tree-sra.c (analyze_modified_params): Loop over all
1594 representatives of components of a parameter.
1596 2009-11-02 Jakub Jelinek <jakub@redhat.com>
1598 PR tree-optimization/41841
1599 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
1600 local variables of not yet materialized clones.
1603 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
1604 for a VOIDmode variable.
1607 * c-pragma.c (visstack): Change into vector of ints rather than
1608 enum symbol_visibility.
1609 (push_visibility): Add kind argument, push default_visibility together
1611 (pop_visibility): Add kind argument, return true if successful, fail
1612 if visibility stack is empty or if stack top is of different kind.
1613 (handle_pragma_visibility): Don't check length of visstack, instead
1614 call pop_visibility and issue diagnostics if it failed. Pass 0
1615 as last argument to push_visibility and pop_visibility.
1616 * c-pragma.h (push_visibility): Add kind argument.
1617 (pop_visibility): Likewise. Return bool instead of void.
1619 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
1621 * tree.def (TARGET_MEM_REF): Update comment.
1622 * alias.c (get_alias_set): Retrieve the original memory reference for
1623 a TARGET_MEM_REF before proceeding.
1625 2009-10-31 Anatoly Sokolov <aesok@post.ru>
1627 * config/frv/frv.c (frv_function_value, frv_libcall_value,
1628 frv_function_value_regno_p): New functions.
1629 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1630 * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1631 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
1632 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
1634 2009-10-31 Anatoly Sokolov <aesok@post.ru>
1636 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
1637 new 'outgoing' argument.
1638 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
1639 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1640 * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1641 LIBCALL_VALUE): Remove.
1642 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
1643 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
1644 (mh10300_function_value_regno_p): Declare.
1646 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1648 * config/arm/cortex-a9.md: New - integer pipeline description.
1650 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
1652 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
1653 aborting if the sizes of the two references don't match.
1655 2009-10-31 Toon Moene <toon@moene.org>
1657 * ipa-inline.c (cgraph_decide_inlining):
1658 Include reason for not inlining called-once functions in dump file.
1660 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
1662 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
1663 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
1664 (LINK_SPEC): BE_LINK_SPEC added.
1666 2009-10-30 Richard Guenther <rguenther@suse.de>
1669 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
1671 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
1673 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
1674 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
1677 2009-10-30 Martin Jambor <mjambor@suse.cz>
1679 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
1681 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
1684 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
1685 first. Move assert on stack_alignment_estimated just before
1686 setting stack_realign_needed.
1687 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
1688 Don't call update_stack_boundary.
1690 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
1691 (verride_options): Don't check ix86_force_align_arg_pointer here.
1692 (ix86_function_ok_for_sibcall): Use it.
1693 (ix86_update_stack_boundary): Likewise.
1695 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
1697 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
1699 * arm.md (QHSI): New mode iterator.
1700 (movqi): If generating for thumb, then truncate any immediate to
1702 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
1704 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
1707 2009-10-29 Cary Coutant <ccoutant@google.com>
1710 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
1711 locations in the source).
1712 (store_vcall_insn): New function.
1713 (lookup_vcall_insn): New function.
1714 (dwarf2out_virtual_call_token): Use store_vcall_insn.
1715 (dwarf2out_copy_call_info): New function.
1716 (dwarf2out_virtual_call): Use lookup_vcall_insn.
1717 * emit-rtl.c (try_split): Call copy_call_info debug hook.
1718 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
1719 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
1720 (debug_nothing_rtx_rtx): New dummy hook.
1721 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
1722 (xcoff_debug_hooks): Likewise.
1723 * sdbout.c (sdb_debug_hooks): Likewise.
1724 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1726 2009-10-29 David Daney <ddaney@caviumnetworks.com>
1728 * doc/invoke.texi (mmcount-ra-address): Document new command line
1730 * config/mips/mips.opt (mmcount-ra-address): New option.
1731 * config/mips/mips-protos.h (mips_function_profiler): Declare new
1733 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
1735 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
1736 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
1738 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
1739 mips_function_profiler.
1741 2009-10-29 Steve Ellcey <sje@cup.hp.com>
1745 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
1746 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1747 * optc-gen.awk (cl_target_option_restore): Include call to
1748 targetm.override_options_after_change.
1749 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1750 * target.h (override_options_after_change): New.
1751 * c-common.c (parse_optimize_options): Call
1752 targetm.override_options_after_change.
1753 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1754 (ia64_override_options_after_change): New.
1755 (ia64_override_options) Add call to above.
1757 2009-10-29 Michael Matz <matz@suse.de>
1759 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
1760 (gate_convert_to_rsqrt): Ditto.
1761 (pass_convert_to_rsqrt): Ditto.
1762 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
1763 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
1766 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
1768 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1770 * config/arm/arm.c (find_best_start): Fix type of remainder to be
1773 2009-10-29 Martin Jambor <mjambor@suse.cz>
1775 PR tree-optimization/41775
1776 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
1777 (generate_subtree_copies): Do not unshare agg.
1778 (load_assign_lhs_subreplacements): Do not unshare rhs.
1779 (sra_modify_assign): Do not unshare exprs.
1780 (propagate_subacesses_accross_link): Renamed to
1781 propagate_subaccesses_across_link.
1783 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
1785 * arm.c (count_insns_for_constant): Rework to support counting for
1786 thumb2 immediates as well.
1787 (find_best_start): Split out from arm_gen_constant.
1788 (arm_gen_constant): Rework to support XOR with immediate.
1790 2009-10-29 Chao-ying Fu <fu@mips.com>
1792 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
1794 (mips_expand_synci_loop): Use the length rtx to control the
1795 synci loop from the begin rtx that points to the first byte of
1798 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
1800 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
1802 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
1804 * dbxout.c (dbxout_common_check): Accept non public trees.
1805 * dwarf2out.c (fortran_common): Accept non public trees.
1807 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
1809 * common.opt (fuse-linker-plugin): New option.
1810 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
1812 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
1814 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1816 PR rtl-optimization/39715
1817 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
1818 (gen_cstoresi_ltu_thumb1): New splitter.
1820 2009-10-28 Richard Guenther <rguenther@suse.de>
1824 * tree-ssa.c (useless_type_conversion_p): Do not treat
1825 conversions to pointers to incomplete types as useless.
1826 * gimple.c (gimple_types_compatible_p): Compare struct tags,
1829 2009-10-28 Jakub Jelinek <jakub@redhat.com>
1831 * var-tracking.c (emit_note_insn_var_location): Don't call the second
1832 vt_expand_loc unnecessarily when location is not a register nor
1836 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
1837 fields don't have DECL_NAME.
1840 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
1841 call convert_memory_address on addr.
1844 * config/i386/i386.c (ix86_pic_register_p): Don't call
1845 rtx_equal_for_cselib_p for VALUEs discarded as useless.
1847 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
1849 * var-tracking.c (emit_note_insn_var_location): Get the mode of
1850 a variable part from its REG, MEM or VALUE.
1852 2009-10-28 Richard Guenther <rguenther@suse.de>
1854 * gimple.c (gimple_get_alias_set): Fix comment typo.
1856 2009-10-28 Richard Guenther <rguenther@suse.de>
1858 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
1859 (free_lang_data): Unconditionally compute alias sets for all
1860 standard integer types. Bail out if gate bailed out previously.
1861 Do not reset the types_compatible_p langhook.
1862 (gate_free_lang_data): Remove.
1863 (struct pass_ipa_free_lang_data): Enable unconditionally.
1864 * gimple.c (gimple_get_alias_set): Use the same alias-set for
1867 2009-10-28 Richard Guenther <rguenther@suse.de>
1870 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
1871 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
1872 (call_may_clobber_ref_p_1): Likewise.
1873 * tree-ssa-structalias.c (find_func_aliases): Likewise.
1874 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
1876 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1878 PR rtl-optimization/41812
1881 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1883 * df-problems.c (df_md_scratch): New.
1884 (df_md_alloc, df_md_free): Allocate/free it.
1885 (df_md_local_compute): Only include live registers in init.
1886 (df_md_transfer_function): Prune the in-set computed by
1887 the confluence function, and the gen-set too.
1889 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1891 PR rtl-optimization/39715
1892 * combine.c (simplify_comparison): Use extensions to
1893 widen comparisons. Try an ANDing first.
1895 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1897 PR rtl-optimization/40741
1898 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
1899 a small constant is cheap.
1900 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
1901 force_reg on the LHS.
1902 (xorsi3): Likewise, and split the XOR if the constant is complex
1903 and not in Thumb mode.
1905 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1907 * expmed.c (emit_store_flag): Check costs before
1908 transforming to the opposite representation.
1910 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
1912 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
1913 cstore result to DImode.
1915 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
1917 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
1918 inside the unspec vector.
1920 2009-10-27 Richard Henderson <rth@redhat.com>
1922 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
1924 2009-10-27 Richard Henderson <rth@redhat.com>
1927 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
1928 eh_region_may_contain_throw; update users.
1929 (eh_region_may_contain_throw): New function.
1930 (lower_catch): Check flag_exceptions before creating exception region.
1931 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
1932 (lower_cleanup): Tidy existing flag_exceptions check to match.
1934 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
1937 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
1938 * config/i386/mingw.opt: Add fset-stack-executable.
1939 * config/i386/i386.c (ix86_trampoline_init): Make call to
1940 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
1941 defined and its value is not zero.
1944 2009-10-27 Richard Guenther <rguenther@suse.de>
1946 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
1947 handle calls to externally visible functions like in regular mode.
1948 (create_variable_info_for): Do not create function infos here.
1949 (have_alias_info): Remove write-only variable.
1950 (solve_constraints): New function split out from common code
1951 in compute_points_to_sets and ipa_pta_execute.
1952 (compute_points_to_sets): Adjust.
1953 (ipa_pta_execute): Likewise. Handle clones and externally visible
1954 functions like in non-IPA mode.
1956 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1959 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
1962 2009-10-27 Richard Guenther <rguenther@suse.de>
1964 * tree-complex.c (expand_complex_div_wide): Check for
1965 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
1967 2009-10-27 Revital Eres <eres@il.ibm.com>
1969 PR tree-optimization/40648
1970 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1971 Change decision of when to peel for alignment.
1973 2009-10-27 Richard Guenther <rguenther@suse.de>
1976 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
1978 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
1981 * fold-const.c (fold_binary_loc): Do not call
1982 protected_set_expr_location.
1984 2009-10-27 Wei Guozhi <carrot@google.com>
1987 * target.h (have_conditional_execution): Add a new target hook
1989 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
1990 * targhooks.h (default_have_conditional_execution): Likewise.
1991 * targhooks.c (default_have_conditional_execution): Likewise.
1992 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
1993 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
1994 (arm_have_conditional_execution): New function.
1995 * ifcvt.c (noce_process_if_block, find_if_header,
1996 cond_exec_find_if_block, dead_or_predicable): Change the usage of
1997 macro HAVE_conditional_execution to a target hook call.
1998 * recog.c (peephole2_optimize): Likewise.
1999 * sched-rgn.c (add_branch_dependences): Likewise.
2000 * final.c (asm_insn_count, final_scan_insn): Likewise.
2001 * bb-reorder.c (HAVE_conditional_execution): Remove it.
2003 2009-10-26 Ben Elliston <bje@au.ibm.com>
2004 Michael Meissner <meissner@linux.vnet.ibm.com>
2005 Ulrich Weigand <uweigand@de.ibm.com>
2007 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
2008 * config/spu/spu_cache.h: New file.
2010 * config/spu/cachemgr.c: New file.
2011 * config/spu/cache.S: New file.
2013 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
2014 (ADDR_SPACE_EA): Define.
2015 (TARGET_ADDR_SPACE_KEYWORDS): Define.
2016 * config/spu/spu.c (EAmode): New macro.
2017 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
2018 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2019 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
2020 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
2021 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
2022 (TARGET_ADDR_SPACE_CONVERT): Likewise.
2023 (TARGET_ASM_SELECT_SECTION): Likewise.
2024 (TARGET_ASM_UNIQUE_SECTION): Likewise.
2025 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
2026 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
2027 (ea_symbol_ref): New function.
2028 (spu_legitimate_constant_p): Handle __ea qualified addresses.
2029 (spu_addr_space_legitimate_address_p): New function.
2030 (spu_addr_space_legitimize_address): Likewise.
2031 (cache_fetch): New global.
2032 (cache_fetch_dirty): Likewise.
2033 (ea_alias_set): Likewise.
2034 (ea_load_store): New function.
2035 (ea_load_store_inline): Likewise.
2036 (expand_ea_mem): Likewise.
2037 (spu_expand_mov): Handle __ea qualified memory references.
2038 (spu_addr_space_pointer_mode): New function.
2039 (spu_addr_space_address_mode): Likewise.
2040 (spu_addr_space_subset_p): Likewise.
2041 (spu_addr_space_convert): Likewise.
2042 (spu_section_type_flags): Handle "._ea" section.
2043 (spu_select_section): New function.
2044 (spu_unique_section): Likewise.
2045 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
2046 and __EA64__ predefined macros.
2047 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
2048 -matomic-updates switches.
2050 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
2051 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
2052 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
2053 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
2054 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
2055 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
2056 $(T)cache128k.o): Likewise.
2057 ($(T)libgcc_%.a): Likewise.
2059 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
2060 * config/spu/spu.opt (-mea32/-mea64): Add switches.
2061 (-maddress-space-conversion): Likewise.
2062 (-mcache-size=): Likewise.
2063 (-matomic-updates): Likewise.
2064 * doc/invoke.texi (-mea32/-mea64): Document.
2065 (-maddress-space-conversion): Likewise.
2066 (-mcache-size=): Likewise.
2067 (-matomic-updates): Likewise.
2069 2009-10-26 Ben Elliston <bje@au.ibm.com>
2070 Michael Meissner <meissner@linux.vnet.ibm.com>
2071 Ulrich Weigand <uweigand@de.ibm.com>
2073 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
2075 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
2076 defined, add the named address space keywords.
2077 (c_addr_space_name): New function.
2078 (complete_array_type): Preserve named address space.
2079 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
2080 instead of targetm.valid_pointer_mode.
2082 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
2083 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
2084 (ADDR_SPACE_KEYWORD): New macro.
2085 (c_addr_space_name): Add prototype.
2087 * c-tree.h (struct c_declspecs): Add address_space member.
2088 (declspecs_add_addrspace): Add prototype.
2090 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
2092 * c-parser.c (c_parse_init): Add assertion.
2093 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
2094 (c_lex_one_token): Handle address space keywords.
2095 (c_token_starts_typename): Likewise.
2096 (c_token_starts_declspecs): Likewise.
2097 (c_parser_declspecs): Likewise.
2098 (c_parser_postfix_expression_after_paren_type): Diagnose compound
2099 literal within function qualified with named address space.
2101 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
2102 address space qualifiers.
2103 (shadow_tag_warned): Warn about useless address space qualifiers.
2104 (quals_from_declspecs): Handle address space qualifiers.
2105 (grokdeclarator): Likewise.
2106 (build_null_declspecs): Likewise.
2107 (declspecs_add_addrspace): New function.
2109 * c-typeck.c (addr_space_superset): New function.
2110 (qualify_type): Handle named address spaces.
2111 (composite_type): Likewise.
2112 (common_pointer_type): Likewise.
2113 (comp_target_types): Likewise.
2114 (build_conditional_expr): Likewise.
2115 (handle_warn_cast_qual): Likewise.
2116 (build_c_cast): Likewise.
2117 (convert_for_assignment): Likewise.
2118 (build_binary_op): Likewise.
2119 (pointer_diff): Handle named address spaces. Use intermediate
2120 integer type of sufficient size if required.
2122 2009-10-26 Ben Elliston <bje@au.ibm.com>
2123 Michael Meissner <meissner@linux.vnet.ibm.com>
2124 Ulrich Weigand <uweigand@de.ibm.com>
2126 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
2127 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2128 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
2130 * target.h (struct target_def): Add pointer_mode, address_mode,
2131 and valid_pointer_mode to addr_space substructure.
2132 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
2133 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
2134 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
2135 (TARGET_ADDR_SPACE_HOOKS): Add them.
2136 * targhooks.c (target_default_pointer_address_modes_p): New function.
2137 * target.h (target_default_pointer_address_modes_p): Add prototype.
2138 * targhooks.c (default_addr_space_pointer_mode): New function.
2139 (default_addr_space_address_mode): Likewise.
2140 (default_addr_space_valid_pointer_mode): Likewise.
2141 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
2142 (default_addr_space_address_mode): Likewise.
2143 (default_addr_space_valid_pointer_mode): Likewise.
2144 * output.h (default_valid_pointer_mode): Move to ...
2145 * targhooks.h (default_valid_pointer_mode): ... here.
2146 * varasm.c (default_valid_pointer_mode): Move to ...
2147 * targhooks.c (default_valid_pointer_mode): ... here.
2149 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
2150 instead of targetm.valid_pointer_mode.
2152 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
2153 * tree.c (integer_pow2p): Likewise.
2154 (tree_log2): Likewise.
2155 (tree_floor_log2): Likewise.
2156 (signed_or_unsigned_type_for): Support pointer type of different size.
2157 (int_or_pointer_precision): New function.
2158 * tree.h (int_or_pointer_precision): Add prototype.
2159 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
2160 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
2161 incoming pointer type instead of POINTER_SIZE.
2163 * tree.c (build_pointer_type): Use appropriate pointer mode
2164 instead of ptr_mode.
2165 (build_reference_type): Likewise.
2166 * expr.c (store_expr): Likewise.
2167 (expand_expr_addr_expr): Likewise.
2168 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
2169 * cfgexpand.c (expand_debug_expr): Likewise.
2171 * auto-inc-dec.c: Include "target.h".
2172 (try_merge): Use appropriate address mode instead of Pmode.
2173 (find_inc): Likewise.
2174 * combine.c (find_split_point): Likewise.
2175 * cselib.c (cselib_record_sets): Likewise.
2176 * dse.c (replace_inc_dec): Likewise.
2177 (canon_address): Likewise.
2178 * var-tracking.c (replace_expr_with_values): Likewise.
2179 (count_uses): Likewise.
2180 (add_uses): Likewise.
2181 (add_stores): Likewise.
2182 * emit-rtl.c: Include "target.h".
2183 (adjust_address_1): Use appropriate address mode instead of Pmode.
2184 (offset_address): Likewise.
2185 * explow.c (break_out_memory_refs): Likewise.
2186 (memory_address_addr_space): Likewise.
2187 (promote_mode): Likewise.
2188 * expr.c (move_by_pieces): Likewise.
2189 (emit_block_move_via_loop): Likewise.
2190 (store_by_pieces): Likewise.
2191 (store_by_pieces_1): Likewise.
2192 (expand_assignment): Likewise.
2193 (store_constructor): Likewise.
2194 (expand_expr_addr_expr): Likewise.
2195 (expand_expr_real_1): Likewise.
2196 * cfgexpand.c (expand_debug_expr): Likewise.
2197 * ifcvt.c (noce_try_cmove_arith): Likewise.
2198 * regcprop.c (kill_autoinc_value): Likewise.
2199 * regmove.c (try_auto_increment): Likewise.
2200 * reload.c (find_reloads): Likewise.
2201 (find_reloads_address): Likewise.
2202 (find_reloads_address_1): Likewise.
2203 * sched-deps.c: Include "target.h".
2204 (sched_analyze_1): Use appropriate address mode instead of Pmode.
2205 (sched_analyze_2): Likewise.
2206 * sel-sched-dump.c: Include "target.h".
2207 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
2208 * stor-layout.c (layout_type): Likewise.
2209 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2210 (multiplier_allowed_in_address_p): Likewise.
2211 (get_address_cost): Likewise.
2212 * varasm.c (make_decl_rtl): Likewise.
2214 * expr.c (expand_assignment): Always convert offsets to appropriate
2216 (store_expr): Likewise.
2217 (store_constructor): Likewise.
2218 (expand_expr_real_1): Likewise.
2220 * reload.h (form_sum): Add MODE argument.
2221 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
2222 Update recursive calls.
2223 (subst_indexed_address): Update calls to form_sum.
2225 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
2226 * tree-ssa-address.c: Include "target.h".
2227 (templates): Replace by ...
2228 (mem_addr_template_list): ... this new vector.
2229 (TEMPL_IDX): Handle address space numbers.
2230 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
2231 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
2232 instead of global cache. Update call to gen_addr_rtx.
2233 (valid_mem_ref_p): Update call to addr_for_mem_ref.
2234 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
2236 * rtl.h (convert_memory_address_addr_space): Add prototype.
2237 (convert_memory_address): Define as macro.
2238 * explow.c (convert_memory_address): Rename to ...
2239 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
2240 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
2241 Update recursive calls.
2242 (memory_address_addr_space): Call convert_memory_address_addr_space.
2243 * expmed.c (make_tree): Likewise.
2244 * expr.c (expand_assignment): Likewise.
2245 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
2246 (expand_expr_addr_expr): Likewise. Also, update call.
2248 * alias.c (find_base_value): Guard pointer size optimizations.
2249 (find_base_term): Likewise.
2250 * rtlanal.c (nonzero_bits1): Likewise.
2251 (num_sign_bit_copies1): Likewise.
2252 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2254 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
2255 (emit-rtl.o): Likewise.
2256 (auto-inc-dec.o): Likewise.
2257 (sched-deps.o): Likewise.
2259 2009-10-26 Ben Elliston <bje@au.ibm.com>
2260 Michael Meissner <meissner@linux.vnet.ibm.com>
2261 Ulrich Weigand <uweigand@de.ibm.com>
2263 * doc/extend.texi (Named Address Spaces): New section.
2264 * coretypes.h (addr_space_t): New type.
2265 (ADDR_SPACE_GENERIC): New define.
2266 (ADDR_SPACE_GENERIC_P): New macro.
2268 * doc/tm.texi (Named Address Spaces): New section.
2269 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
2270 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
2271 (TARGET_ADDR_SPACE_SUBSET_P): Document.
2272 (TARGET_ADDR_SPACE_CONVERT): Document.
2273 * target.h (struct gcc_target): Add addr_space substructure.
2274 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2275 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
2276 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
2277 (TARGET_ADDR_SPACE_CONVERT): Likewise.
2278 (TARGET_ADDR_SPACE_HOOKS): Likewise.
2279 (TARGET_INITIALIZER): Initialize addr_space hooks.
2280 * targhooks.c (default_addr_space_legitimate_address_p): New function.
2281 (default_addr_space_legitimize_address): Likewise.
2282 (default_addr_space_subset_p): Likewise.
2283 (default_addr_space_convert): Likewise.
2284 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
2285 (default_addr_space_legitimize_address): Likewise.
2286 (default_addr_space_subset_p): Likewise.
2287 (default_addr_space_convert): Likewise.
2289 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
2290 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
2291 (MEM_ADDR_SPACE): New macro.
2292 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
2293 address space memory attribute.
2294 (mem_attrs_htab_hash): Handle address space memory attribute.
2295 (mem_attrs_htab_eq): Likewise.
2296 (set_mem_attributes_minus_bitpos): Likewise.
2297 (set_mem_alias_set): Likewise.
2298 (set_mem_align): Likewise.
2299 (set_mem_expr): Likewise.
2300 (set_mem_offset): Likewise.
2301 (set_mem_size): Likewise.
2302 (adjust_address_1): Likewise.
2303 (offset_address): Likewise.
2304 (widen_memoy_address): Likewise.
2305 (get_spill_slot_decl): Likewise.
2306 (set_mem_attrs_for_spill): Likewise.
2307 (set_mem_addr_space): New function.
2308 * emit-rtl.h (set_mem_addr_space): Add prototype.
2309 * print-rtl.c (print_rtx): Print address space memory attribute.
2310 * expr.c (expand_assignment): Set address space memory attribute
2311 of generated MEM RTXes as appropriate.
2312 (expand_expr_real_1): Likewise.
2313 * cfgexpand.c (expand_debug_expr): Likewise.
2314 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2316 * tree.h (struct tree_base): Add address_space bitfield. Reduce
2317 size of "spare" bitfield.
2318 (TYPE_ADDR_SPACE): New macro.
2319 (ENCODE_QUAL_ADDR_SPACE): Likewise.
2320 (DECODE_QUAL_ADDR_SPACE): Likewise.
2321 (CLEAR_QUAL_ADDR_SPACE): Likewise.
2322 (KEEP_QUAL_ADDR_SPACE): Likewise.
2323 (TYPE_QUALS): Encode type address space.
2324 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
2325 * tree.c (set_type_quals): Set type address space.
2326 (build_array_type): Inherit array address space from element type.
2327 * print-tree.c (print_node_brief): Print type address space.
2328 (print_node): Likewise.
2329 * tree-pretty-print.c (dump_generic_node): Likewise.
2331 * explow.c (memory_address): Rename to ...
2332 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
2333 Use address-space aware variants of memory address routines.
2334 * recog.c (memory_address_p): Rename to ...
2335 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
2336 Use address-space aware variants of memory address routines.
2337 (offsettable_address_p): Rename to ...
2338 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
2339 Use address-space aware variants of memory address routines.
2340 * reload.c (strict_memory_address_p): Rename to ...
2341 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
2342 Use address-space aware variants of memory address routines.
2343 (maybe_memory_address_p): Rename to ...
2344 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
2345 Use address-space aware variants of memory address routines.
2346 * expr.h (memory_address_addr_space): Add prototype.
2347 (memory_address): Define as macro.
2348 * recog.h (memory_address_addr_space_p): Add prototype.
2349 (memory_address_p): Define as macro.
2350 (offsettable_address_addr_space_p): Add prototype.
2351 (offsettable_address_p): Define as macro.
2352 (strict_memory_address_addr_space_p): Add prototype.
2353 (strict_memory_address_p): Define as macro.
2355 * combine.c (find_split_point): Use address-space aware variants
2356 of memory address routines.
2357 * emit-rtl.c (operand_subword): Likewise.
2358 (change_address_1): Likewise.
2359 (adjust_address_1): Likewise.
2360 (offset_address): Likewise.
2361 * expr.c (emit_move_insn): Likewise.
2362 (expand_assignment): Likewise.
2363 (expand_expr_real_1): Likewise.
2364 * recog.c (verify_changes): Likewise.
2365 (general_operand): Likewise.
2366 (offsettable_memref_p): Likewise.
2367 (offsettable_nonstrict_memref_p): Likewise.
2368 (constrain_operands): Likewise.
2369 * reload.c (get_secondary_mem): Likewise.
2370 (find_reloads_toplev): Likewise.
2371 (find_reloads_address): Likewise.
2372 (find_reloads_subreg_address): Likewise.
2373 * reload1.c (reload): Likewise.
2374 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2375 * rtl.h (address_cost): Add ADDRSPACE argument.
2376 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
2377 aware variant of memory address routines.
2378 * loop-invariant.c (create_new_invariant): Update address_cost call.
2379 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2380 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
2381 Use address-space aware variant of memory address routines.
2382 (propagate_rtx_1): Update call to should_replace_address.
2383 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
2385 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
2386 ADDRSPACE argument. Use per-address-space instead of global cache.
2387 Use address-space aware variant of memory address routines.
2388 (get_address_cost): Likewise.
2389 (get_computation_cost_at): Update calls.
2390 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
2391 Use address-space aware variant of memory address routines.
2392 (create_mem_ref_raw): Update call to valid_mem_ref_p.
2393 (most_expensive_mult_to_index): Update call to
2394 multiplier_allowed_in_address_p.
2396 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
2397 attribute to indicate named address spaces.
2399 * varasm.c (get_variable_section): DECLs in named address spaces
2402 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
2403 for addresses in a non-generic address space.
2405 * expr.c (emit_block_move_hints): Do not use libcalls for
2406 memory in non-generic address spaces.
2407 (clear_storage_hints): Likewise.
2408 (expand_assignment): Likewise.
2410 * fold-const.c (operand_equal_p): Expressions refering to different
2411 address spaces are not equivalent.
2413 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
2414 spaces are not equivalent.
2415 (rtx_equal_p): Likewise.
2416 * cse.c (exp_equiv_p): Likewise.
2417 * jump.c (rtx_renumbered_equal_p): Likewise.
2418 * reload.c (operands_match_p): Likewise.
2420 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
2421 address spaces may alias.
2422 (true_dependence): Likewise.
2423 (canon_true_dependence): Likewise.
2424 (write_dependence_p): Likewise.
2426 * dse.c (canon_address): Handle named address spaces.
2427 * ifcvt.c (noce_try_cmove_arith): Likewise.
2429 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
2430 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
2431 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
2432 to handle conversions between different address spaces.
2433 * fold-const.c (fold_convert_loc): Likewise.
2434 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
2435 * tree-pretty-print.c (dump_generic_node): Likewise.
2436 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
2437 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
2438 * tree-inline.c (estimate_operator_cost): Likewise.
2439 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
2440 to different address spaces are not useless.
2442 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2445 * cfgcleanup.c (trivially_empty_bb_p): New function.
2446 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
2449 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
2450 add_name_and_src_coords_attributes, gen_namespace_die,
2451 dwarf2out_set_name): Handle dwarf2_name returning NULL.
2453 2009-10-26 Nick Clifton <nickc@redhat.com>
2455 * config.gcc: Add support for RX target.
2456 * config/rx: New directory.
2457 * config/rx/constraints.md: New file.
2458 * config/rx/predicates.md: New file.
2459 * config/rx/rx.c: New file.
2460 * config/rx/rx.h: New file.
2461 * config/rx/rx.md: New file.
2462 * config/rx/rx.opt: New file.
2463 * config/rx/rx-protos.h: New file.
2464 * config/rx/t-rx: New file.
2465 * doc/extend.texi: Document RX function attributes.
2466 * doc/invoke.texi: Document RX specific command line options.
2467 * doc/contrib.texi: Document RX contribution.
2468 * doc/md.texi: Document RX constraints.
2469 * doc/install.texi: Document RX support.
2471 2009-10-26 Michael Matz <matz@suse.de>
2473 PR tree-optimization/41783
2474 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
2475 case for simple diamonds.
2476 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
2477 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
2478 argument, use alias oracle to skip some vdefs.
2479 (phi_translate_1): Change call to above, don't allocate new
2480 value ids if they can stay the same.
2481 (compute_avail): Allow vuse walking when looking up references.
2483 2009-10-26 Richard Guenther <rguenther@suse.de>
2485 PR tree-optimization/41826
2486 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
2487 access to re-allocated vector fields.
2489 2009-10-26 Richard Guenther <rguenther@suse.de>
2491 * graphite-sese-to-poly.c (check_poly_representation): Fix
2492 compile without checking.
2494 2009-10-26 Janus Weil <janus@gcc.gnu.org>
2497 * gimple.h (tree_annotate_all_with_location): Remove prototype.
2498 * gimplify.c (tree_should_carry_location_p,
2499 tree_annotate_one_with_location,tree_annotate_all_with_location):
2500 Remove obsolete functions.
2502 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
2505 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
2507 2009-10-25 Richard Guenther <rguenther@suse.de>
2509 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2510 Stream DECL_RESTRICTED_P.
2511 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2513 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
2515 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
2516 a note when expanding to nothing.
2518 2009-10-25 Richard Guenther <rguenther@suse.de>
2521 * tree.c (find_decls_types_r): Deal with Java overloading
2522 BINFO_VIRTUALS for its own purpose.
2524 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
2526 * config/mips/predicates.md (hilo_operand): New predicate.
2527 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
2528 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
2529 splitter part from here ...:
2530 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
2531 op0 and op4 to match the DINS case.
2532 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
2534 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
2537 * avr.md (QIDI): Add new mode iterator.
2538 (sbrx_branch<mode>): Create new zero extract bit, test and jump
2539 patterns for all QI thru DI modes combinations.
2540 (sbrx_and_branch<mode>): Create new and based bit test and jump
2541 patterns for QI thru SI modes.
2542 avr.c (avr_out_sbxx_branch): Use only bit number.
2544 2009-10-24 Jan Hubicka <jh@suse.cz>
2546 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
2548 (analyze_function): When analyzing noreturn nothrow call, do not
2549 compute written stats; free bitmaps of vars early if possible.
2550 (generate_summary): Only update bitmaps if computed.
2551 (propagate): Only dump bitmaps if computed.
2552 (ipa_reference_read_summary): Fix pasto.
2554 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
2556 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
2557 (aliasing_component_refs_p): ...this. Return true if there is no
2558 common base and the base access types have the same alias set.
2559 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
2560 (indirect_refs_may_alias_p): Likewise.
2562 2009-10-23 Joseph Myers <joseph@codesourcery.com>
2565 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
2566 a C_MAYBE_CONST_EXPR.
2568 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2571 * config/rs6000/rs6000.c (struct machine_function): Add
2572 vsx_or_altivec_used_p to record if vector types are used.
2573 (rs6000_expand_to_rtl_hook): Rename from
2574 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
2575 any vector operations, so if there are, we can set VRSAVE to
2576 non-zero when only floating point vector registers are used.
2577 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
2578 (rs6000_check_vector_mode): Inner function to check if vector
2579 types are used in the code.
2580 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
2581 vector instructions are used.
2583 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
2584 Indicate that VSX registers which overlap floating point
2585 registers, can't be used across a call, since the ABI only states
2586 the scalar part of the register will be saved and restored.
2588 2009-10-23 Joseph Myers <joseph@codesourcery.com>
2591 * alias.c (get_alias_set): Call langhook before returning 0 for
2592 types with structural equality.
2593 * c-common.c (c_common_get_alias_set): Use alias set of element
2594 type for arrays with structural comparison.
2596 2009-10-23 Richard Guenther <rguenther@suse.de>
2599 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
2600 gimple_call_nothrow_p.
2602 2009-10-23 Richard Guenther <rguenther@suse.de>
2604 PR tree-optimization/41778
2605 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
2606 redundancy along a path in the CFG we want to optimize for speed
2607 is going to be removed.
2608 (execute_pre): Do partial-PRE only if the function is to be
2609 optimized for speed.
2610 (gate_pre): Do not turn off all of PRE when not optimizing a
2613 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2615 * builtins.c (fold_builtin_cabs): Use validate_arg().
2616 (fold_builtin_cexp): Fix if-logic.
2617 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
2619 2009-10-22 Jeff Law <law@redhat.com>
2621 * ira-lives.c (process_single_reg_class_operands): Update the
2622 hard reg costs for all the hard registers desired by the
2623 single reg class operand.
2625 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
2627 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
2628 for rtxes that aren't handled specially.
2630 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
2632 * rtl.h (shallow_copy_rtvec): Declare.
2633 * rtl.c (shallow_copy_rtvec): New function.
2634 * cselib.c (cselib_subst_to_values): Use it. Only modify an
2635 rtx field if the subrtx has changed.
2637 2009-10-22 Anatoly Sokolov <aesok@post.ru>
2639 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
2640 (m32c_function_value): Make static, add new 'outgoing' argument.
2641 (m32c_libcall_value): Make static, add new 'fun' argument.
2642 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2643 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2644 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
2645 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
2646 (m32c_function_value, m32c_libcall_value): Delete declaration.
2648 2009-10-22 Diego Novillo <dnovillo@google.com>
2650 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
2652 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2654 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
2657 2009-10-22 Richard Guenther <rguenther@suse.de>
2659 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
2660 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
2661 (lto_symtab_merge): Do not merge cgraph nodes here.
2662 (lto_symtab_resolve_can_prevail_p): Simplify.
2663 (lto_symtab_resolve_symbols): Store cgraph node.
2664 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
2665 functions from the symtab.
2666 (lto_symtab_merge_cgraph_nodes_1): New function.
2667 (lto_symtab_merge_cgraph_nodes): Likewise.
2669 2009-10-22 Richard Guenther <rguenther@suse.de>
2672 * lto-streamer-out.c (lto_output_location): Stream the
2674 * lto-streamer-in.c (lto_input_location): Likewise.
2676 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2678 * cfgloopmanip.c (duplicate_subloops): Export.
2679 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
2680 (transform_to_exit_first_loop): Duplicate bbs starting from
2681 header up to loop->latch instead of exit->src.
2682 Initialize control variable to the correct number of iterations.
2683 (gather_scalar_reductions): Do not register double reductions.
2684 (parallelize_loops): Dump which loop is tested.
2685 Indicate whether the parallelized loop is inner or not.
2686 Remove the innermost-loop requirement.
2687 * cfgloop.h (duplicate_subloops): Export.
2688 * tree-cfg.c (add_phi_args_after_redirect): New function.
2689 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
2690 Call duplicate_subloops.
2691 Update number of iterations at the exit condition.
2692 Don't redirect nexits always to the loop exit.
2693 Redirect copied edges from latch to the loop exit.
2695 2009-10-22 Jan Hubicka <jh@suse.cz>
2697 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
2699 * ipa-inline.c (cgraph_mark_inline_edge,
2700 cgraph_decide_inlining_of_small_function,
2701 cgraph_decide_inlining, inline_read_summary): Disable indirect
2702 inlining for WPA for time being.
2704 PR tree-optimize/40556
2705 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
2707 2009-10-22 Richard Guenther <rguenther@suse.de>
2709 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
2710 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
2712 2009-10-22 Jan Hubicka <jh@suse.cz>
2715 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
2717 (check_call): Handle only indirect calls.
2718 (propagate_bits): Update comment.
2719 (write_node_summary_p): Turn bogus check to assert.
2720 (ipa_reference_write_summary): Stream calls_read_all properly.
2721 (ipa_reference_read_summary): Stream in calls_read_all properly.
2722 (read_write_all_from_decl): New function.
2723 (propagate): Handle OVERWRITABLE nodes and external calls here.
2724 * ipa-pre-const.c (check_call): In IPA mode handle indirect
2726 (analyze_function): Do not check visibility here.
2727 (add_new_function): We summary OVERWRITABLE too.
2728 (generate_summary): Stream OVERWRITABLE nodes too.
2729 (propagate): Handle external calls and OVERWRITABLE nodes here.
2730 (local_pure_const): Check visibility here.
2732 2009-10-22 Jan Hubicka <jh@suse.cz>
2734 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
2735 (pass_ipa_cp): Register them.
2736 (ipcp_init_stage): Analyze all functions for whopr/lto.
2737 (ipcp_propagate_stage): Skip external calls.
2738 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
2739 * ipa-reference.c (write_node_summary_p): Fix thinko about
2741 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
2742 when in ltrans, skip executing of ipa passes since everything
2743 should've been done.
2744 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
2745 (inline_generate_summary): Likewise.
2746 (inline_read_summary): New function.
2747 (inline_write_summary): New function.
2748 (pass_ipa_inline): Register new hooks.
2749 * ipa-prop.c: Inlcude lto-streamer.h
2750 (ipa_edge_args_vector): Update declaration.
2751 (ipa_count_arguments, ipa_compute_jump_functions,
2752 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
2753 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
2754 ipa_read_node_info): New static functions.
2755 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
2756 (duplicate_array): Use xmalloc.
2757 (duplicate_ggc_array): New.
2758 (ipa_edge_duplication_hook): Use it.
2759 (ipa_update_after_lto_read): New function.
2760 * ipa-prop.h (ipa_prop_write_jump_functions,
2761 ipa_prop_read_jump_functions): Declare.
2762 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
2763 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
2764 (ipa_edge_args_vector): Move into GGC.
2765 (ipa_check_create_edge_args): Update.
2766 (ipa_update_after_lto_read): New.
2767 * passes.c (ipa_write_summaries_1): When in wpa, do not write
2769 (ipa_read_summaries): When in ltrans, so not read summaries.
2770 * lto-streamer.c (lto_get_section_name): Add
2771 LTO_section_jump_functions.
2772 * lto-streamer.h (LTO_section_jump_functions): New section.
2773 (produce_asm): Declare.
2774 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
2775 * lto-streamer-out.c (produce_asm): Export.
2776 * lto-streamer-in.c: Include tree-pass.h
2777 (input_function): Free dominance info when done.
2778 (lto_read_body): Push ipa_inline in ltrans stage.
2779 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
2780 * Makefile.in (GTFILES): Add ipa-prop.h
2782 2009-10-22 Matthias Klose <doko@ubuntu.com>
2784 * doc/install.texi: Document --enable-browser-plugin.
2786 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
2788 * doc/invoke.texi (fira-loop-pressure): Update default value.
2789 * opts.c (decode_options): Remove default value setting for
2790 flag_ira_loop_pressure.
2791 * config/ia64/ia64.c (ia64_override_options): Set
2792 flag_ira_loop_pressure up for -O3.
2793 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
2795 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
2797 PR tree-optimization/41497
2798 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
2799 chrec_dont_know if the evolution function returned by follow_ssa_edge
2800 is constant in the analyzed loop and is not compatible with the
2801 initial value before the loop.
2802 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
2804 2009-10-21 Joseph Myers <joseph@codesourcery.com>
2806 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
2808 2009-10-21 Jakub Jelinek <jakub@redhat.com>
2811 * doc/invoke.texi: Document -print-multi-os-directory.
2813 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
2816 * gcc/config/darwin10.h: Use default_emit_unwind_label.
2817 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
2818 when darwin_emit_unwind_label is used.
2820 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
2822 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
2825 2009-10-20 Richard Henderson <rth@redhat.com>
2827 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
2828 before emit_post_landing_pad.
2830 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
2832 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
2833 Use when calling rtx_costs.
2834 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
2835 global optimize_size. Pass speed to mips_binary_cost.
2837 2009-10-20 Jakub Jelinek <jakub@redhat.com>
2839 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
2842 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
2844 * rtl.h (simplify_replace_fn_rtx): Declare.
2845 (wrap_constant, unwrap_constant): Delete.
2846 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
2847 (expand_debug_expr): Don't call wrap_constant.
2848 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
2849 (auto_adjust_pair): Fold into...
2850 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
2851 Just return a new value.
2852 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
2853 otherwise use simplify_replace_rtx.
2854 * cselib.c (wrap_constant): Reinstate old definition.
2855 (cselib_expand_value_rtx_1): Don't wrap constants.
2856 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
2857 simplify_replace_rtx.
2858 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
2859 * reload1.c (reload): Skip all uses for an insn before adjusting it.
2860 Use simplify_replace_rtx.
2861 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
2863 (simplify_replace_rtx): ...here. Turn into a wrapper for
2864 simplify_replace_fn_rtx.
2865 (simplify_unary_operation): Don't unwrap CONSTs.
2866 * var-tracking.c (check_wrap_constant): Delete.
2867 (vt_expand_loc_callback): Don't call it.
2868 (vt_expand_loc): Likewise.
2870 2009-10-20 Pascal Obry <obry@adacore.com>
2871 Eric Botcazou <ebotcazou@adacore.com>
2873 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
2875 2009-10-20 Michael Matz <matz@suse.de>
2877 * loop-invariant.c (create_new_invariant): Use different magic number.
2879 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
2882 * arm.c (arm_override_options): Forcibly disable hot/cold block
2885 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
2888 * haifa-sched.c (try_ready): Skip debug deps updating speculation
2891 2009-10-20 Richard Guenther <rguenther@suse.de>
2893 * ggc-page.c: Include cfgloop.h.
2894 (struct max_alignment): Drop long double, add void *.
2895 (extra_order_size_table): Add low non-power-of-two multiples
2896 of MAX_ALIGNMENT. Drop small type-based entries, add
2897 tree_type, cgraph_node and loop.
2898 * alloc-pool.c (struct allocation_object_def): Drop long double
2901 2009-10-20 Jakub Jelinek <jakub@redhat.com>
2904 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
2905 referenced just in DEBUG_INSNs.
2907 2009-10-20 Richard Guenther <rguenther@suse.de>
2910 * gimple.c (gimple_register_type): Make sure we register
2911 the types main variant first.
2913 2009-10-20 Richard Guenther <rguenther@suse.de>
2915 * gimple.c (gimple_types_compatible_p): Simplify. Move
2916 cheap checks before hashtable queries. Add checks for
2917 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
2919 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
2921 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
2922 without size or with size that can't be represented as a host integer.
2924 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
2926 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
2927 the removal of a debug stmt as a significant change.
2929 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
2931 * config/s390/s390.md: Added agen condition to operand
2932 forwarding bypasses. Added bypass for early address generation
2933 use of int results. Updated comments.
2935 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
2937 * config/i386/i386.c: Remove signal.h #include.
2939 2009-10-20 Jie Zhang <jie.zhang@analog.com>
2941 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
2942 * doc/rtl.texi: Document ss_abs.
2944 2009-10-19 Jakub Jelinek <jakub@redhat.com>
2946 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
2947 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
2948 instead of C_LEX_RAW_STRINGS.
2949 (lex_string): Handle CPP_UTF8STRING.
2950 * c-parser.c (c_parser_postfix_expression): Likewise.
2951 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
2952 (C_LEX_STRING_NO_JOIN): ... this.
2954 2009-10-19 Anatoly Sokolov <aesok@post.ru>
2956 * config/cris/cris.c (cris_function_value, cris_libcall_value,
2957 cris_function_value_regno_p): New functions.
2958 (cris_promote_function_mode): Update comment.
2959 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2960 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2961 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
2962 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
2964 2009-10-19 Jakub Jelinek <jakub@redhat.com>
2966 * unwind-dw2.c (execute_stack_op): Fix operand order for
2967 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
2969 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
2971 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
2972 (lower_stmt) <GIMPLE_BIND>: Add comment.
2973 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
2975 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
2976 Otherwise lower it and set cannot_fallthru to true.
2977 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
2978 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
2979 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
2980 to true for a noreturn call. Do not remove statements.
2981 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
2982 Set cannot_fallthru to false on function exit.
2983 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
2984 <GIMPLE_ASSIGN>: Remove.
2986 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2988 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
2990 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2992 * config/s390/s390.c (s390_z10_optimize_cmp): Use
2993 next/prev_active_insn to skip DEBUG_INSNs as well.
2995 2009-10-19 Joseph Myers <joseph@codesourcery.com>
2997 * config/arm/arm.c (output_move_neon): Use DImode in call to
3000 2009-10-19 Matthias Klose <doko@ubuntu.com>
3003 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
3005 2009-10-19 Jakub Jelinek <jakub@redhat.com>
3007 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
3009 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3012 * optabs.c (expand_binop): Make mode of shift count expression mode
3013 of shift count not target.
3016 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3018 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
3019 case. Force using values to replace references within the statement.
3020 (convert_local_reference_stmt): Likewise.
3022 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3024 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
3025 remove a subsequent GOTO or RETURN statement.
3027 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
3029 * config/avr.md (*movqi): Add zero as equally preferable constraint
3030 as general register.
3033 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
3035 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
3037 2009-10-17 Richard Guenther <rguenther@suse.de>
3039 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
3041 2009-10-17 Richard Guenther <rguenther@suse.de>
3043 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
3044 operands in COMPONENT_REFs.
3046 2009-10-17 Anatoly Sokolov <aesok@post.ru>
3048 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
3049 if not defined. Change type of second argument to const_rtx.
3050 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
3052 * targhooks.h (default_libcall_value): Update prototype.
3053 * target.h (struct gcc_target): Change type of second argument of
3054 libcall_value to const_rtx.
3055 * config/arm/arm.c (arm_libcall_value): Change type of second argument
3057 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
3058 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
3060 2009-10-17 Jakub Jelinek <jakub@redhat.com>
3063 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
3064 * cgraphunit.c (cgraph_optimize): Call it.
3065 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
3066 (dwarf2out_assembly_start): ... here. New hook.
3067 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
3068 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
3070 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3071 * sdbout.c (sdb_debug_hooks): Likewise.
3072 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
3073 (vmsdbgout_assembly_start): New hook.
3075 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3077 * rtl.h (RTL_LOCATION): Fix typo.
3079 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3081 * print-rtl.c (print_rtx): Print locators in asm_operands
3084 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
3087 * sched-deps.c (depl_on_debug_p): New.
3088 (attach_dep_link): Reject debug deps before nondebug deps.
3089 (add_to_deps_list): Insert debug deps after nondebug deps.
3090 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
3092 (sd_add_dep): Do not reject debug deps.
3093 (add_insn_mem_dependence): Don't count debug deps.
3094 (remove_from_deps): Likewise.
3095 (sched_analyze_2): Set up mem deps on debug insns.
3096 (sched_analyze_insn): Record reg uses for deps on debug insns.
3097 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
3098 try_ready nondebug insn after debug insn.
3099 * ddg.c (create_ddg_dep_from_intra_loop_link,
3100 create_ddg_dep_no_link): Don't reject debug deps.
3102 2009-10-16 Richard Guenther <rguenther@suse.de>
3104 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
3105 (maybe_merge_incomplete_and_complete_type): Likewise.
3106 (lto_symtab_merge): Do not call them. Do not warn for
3107 complete vs. incomplete compatible types.
3108 (lto_symtab_merge_decls_2): Simplify.
3109 * gimple.c (gimple_force_type_merge): Remove.
3110 (gimple_types_compatible_p): Make it static.
3111 * gimple.h (gimple_force_type_merge): Remove.
3112 (gimple_types_compatible_p): Likewise.
3114 2009-10-16 Jakub Jelinek <jakub@redhat.com>
3116 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
3117 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
3119 2009-10-16 Richard Guenther <rguenther@suse.de>
3121 PR tree-optimization/41728
3122 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
3123 if fold_stmt did anything.
3125 2009-10-16 Richard Guenther <rguenther@suse.de>
3128 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
3129 (maybe_fixup_handled_component): New function.
3130 (input_gimple_stmt): Fixup mismatched decl replacements.
3132 2009-10-16 Richard Guenther <rguenther@suse.de>
3135 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
3136 the same as VAR_DECL.
3138 2009-10-16 Richard Guenther <rguenther@suse.de>
3140 * gimple.c (iterative_hash_gimple_type): For integer types
3141 also hash their minimum and maximum values and the string flag.
3142 For array types hash their domain and the string flag.
3144 2009-10-16 Richard Guenther <rguenther@suse.de>
3146 * gimple.c (gimple_types_compatible_p): Restrict completing
3147 types to record or unions. Simplify completion.
3148 Do not merge records or unions with different
3149 TYPE_STRUCTURAL_EQUALITY_P tag.
3150 (iterative_hash_gimple_type): Restrict non-recursing into
3151 pointer targets for records and unions.
3153 2009-10-15 Jakub Jelinek <jakub@redhat.com>
3156 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
3157 * dwarf2out.c (mem_loc_descriptor): Don't handle
3158 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
3159 punt if it is not lowpart subreg or if inner mode isn't
3162 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3164 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
3165 investigating previous or next insns.
3167 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
3169 * tree-sra.c (build_ref_for_offset_1): Update comment.
3171 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
3173 * config/s390/s390.md (atype): Added missing values.
3175 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3178 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
3179 (casesi64p): Update pattern to reflect above.
3181 2009-10-15 Steve Ellcey <sje@cup.hp.com>
3183 PR rtl-optimization/41697
3184 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
3186 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3189 * config/rs6000/predicates.md: Update copyright year.
3190 * config/rs6000/altivec.md: Ditto.
3192 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
3193 (MD_INCLUDES): Add a2.md.
3195 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
3196 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
3197 (builtin_classify): New static vector to classify various builtins
3198 to get the tree attributes correct.
3199 (def_builtin): Set the attributes of builtins based on what the
3200 builtin does (i.e. memory operation, floating point, saturation
3201 need special attributes, others are pure functions).
3203 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
3205 (enum rs6000_builtins): Include rs6000-builtin.def to define the
3206 builtins. Change the end marker to MAX_RS6000_BUILTINS from
3207 RS6000_BUILTIN_COUNT.
3208 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
3209 MAX_RS6000_BUILTINS.
3211 * config/rs6000/rs6000-builtin.def: New file that combines the
3212 builtin enumeration name and attributes.
3214 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
3216 * config/i386/linux.h (ASM_SPEC): Add --32.
3218 2009-10-15 Jakub Jelinek <jakub@redhat.com>
3220 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
3221 and DW_TAG_template_alias.
3222 (dwarf_attr_name): Handle DW_AT_main_subprogram,
3223 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
3224 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
3225 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
3226 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
3227 and DW_AT_GNU_odr_signature.
3228 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
3229 DW_FORM_flag_present and DW_FORM_ref_sig8.
3230 (output_signature): Only print name on the first byte.
3231 (output_die): Likewise for dw_val_class_data8.
3233 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
3235 * doc/invoke.texi: Clarify that most optimizations are not enabled
3238 2009-10-15 Richard Guenther <rguenther@suse.de>
3241 * gimple.c (compare_type_names_p): Handle anonymous names
3242 differently based on new mode argument.
3243 (gimple_types_compatible_p): For structs also compare the tags.
3244 (iterative_hash_type_name): Rename to ...
3245 (iterative_hash_name): ... this. Hash all names.
3246 (iterative_hash_gimple_type): Fix hashing the struct tag of
3247 pointer targets. Hash field decl names.
3249 2009-10-15 Richard Guenther <rguenther@suse.de>
3252 * gimple.c (gimple_get_alias_set): Avoid recursing on
3253 invalid type topology.
3255 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
3257 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
3259 2009-10-15 Richard Guenther <rguenther@suse.de>
3261 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
3263 2009-10-15 Jakub Jelinek <jakub@redhat.com>
3265 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
3266 add --with-tune{,-32,-64} configured default for -mtune if explicit
3269 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
3271 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
3273 2009-10-14 DJ Delorie <dj@redhat.com>
3275 * config/h8300/h8300.c (F): New.
3277 (h8300_emit_stack_adjustment): Call them.
3279 (h8300_push_pop): Likewise.
3280 (h8300_expand_prologue): Likewise.
3281 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
3282 (MUST_USE_SJLJ_EXCEPTIONS): Define.
3283 (INCOMING_RETURN_ADDR_RTX): Define.
3284 (INCOMING_FRAME_SP_OFFSET): Define.
3285 (DWARF_CIE_DATA_ALIGNMENT): Define.
3287 2009-10-14 Jakub Jelinek <jakub@redhat.com>
3289 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
3290 fields in builtin structs.
3291 (finalize_record_size): Likewise.
3293 2009-10-14 Richard Guenther <rguenther@suse.de>
3295 * gimple.c (gtc_ob): New global.
3296 (struct type_pair_d): Replace pointers with type UIDs.
3297 (type_pair_hash): Adjust.
3298 (type_pair_eq): Likewise.
3299 (lookup_type_pair): Likewise. Allocate from an obstack.
3300 (gimple_force_type_merge): Adjust.
3301 (gimple_types_compatible_p): Likewise.
3302 (free_gimple_type_tables): Free the obstack.
3304 2009-10-14 Jakub Jelinek <jakub@redhat.com>
3306 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
3307 stmts setting DEBUG_EXPR_DECLs.
3309 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
3310 Don't crash if mode1 is VOIDmode.
3312 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
3314 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
3315 * params.h (IRA_LOOP_RESERVED_REGS): New.
3316 * tree-pass.h (pass_subregs_of_mode_init,
3317 pass_subregs_of_mode_finish): Remove.
3318 * passes.c (pass_subregs_of_mode_init,
3319 pass_subregs_of_mode_finish): Remove.
3320 (pass_reginfo_init): Move before loop optimizations.
3321 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
3322 * common.opt (fira-loop-pressure): New.
3323 * toplev.h (flag_ira_loop_pressure): New.
3324 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
3325 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
3326 Make external and void type functions.
3327 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
3328 pass_subregs_of_mode_finish): Remove.
3329 * ira-costs.c (init_costs): Call init_subregs_of_mode.
3330 * regmove.c: Include ira.h.
3331 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
3332 register pressure calculation in loops.
3333 * loop-invariant.c: Include REGS_H and ira.h.
3334 (struct loop_data): New members max_reg_pressure, regs_ref, and
3336 (struct invariant): New member orig_regno.
3337 (curr_loop): New variable.
3338 (find_exits): Initialize regs_ref and regs_live.
3339 (create_new_invariant): Initialize orig_regno.
3340 (get_cover_class_and_nregs): New.
3341 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
3342 array. Add code for flag_ira_loop_pressure.
3343 (gain_for_invariant): Make new_regs an array. Add code for
3344 flag_ira_loop_pressure.
3345 (best_gain_for_invariant): Ditto.
3346 (set_move_mark): New parameter gain. Use it for debugging output.
3347 (find_invariants_to_move): Make regs_needed and new_regs an array.
3348 Add code for flag_ira_loop_pressure.
3349 (move_invariant_reg): Set up orig_regno.
3350 (move_invariants): Set up reg classes for pseudos for
3351 flag_ira_loop_pressure.
3352 (free_loop_data): Clear regs_ref and regs_live.
3353 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
3354 get_regno_cover_class, change_pressure, mark_regno_live,
3355 mark_regno_death, mark_reg_store, mark_reg_clobber,
3356 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
3357 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
3358 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
3359 register pressure calculation in loops if new regs were added.
3360 Call finish_subregs_of_mode.
3361 * opts.c (decode_options): Set up flag_ira_loop_pressure.
3362 * Makefile.in (loop-invariant.o): Add ira.h.
3364 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
3366 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
3368 2009-10-14 Richard Guenther <rguenther@suse.de>
3370 * lto-symtab.c (lto_symtab_compatible): Fold in ...
3371 (lto_symtab_merge): ... here. Rewrite both to take the
3372 prevailing and a to-be-merged entry and to queue diagnostics properly.
3373 (lto_symtab_resolve_replaceable_p): New predicate for
3375 (lto_symtab_resolve_can_prevail_p): Likewise.
3376 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
3377 handles merging commons by choosing the largest decl. Fold
3378 in code that gives ODR errors.
3379 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
3381 (lto_symtab_merge_decls_1): Re-structure. Deal with the
3382 case of no prevailing decl here. Diagnose mismatches
3383 in object types here. Drop all but the prevailing decls.
3384 (lto_symtab_prevailing_decl): Return the single prevailing decl.
3385 * lto-streamer-in.c (lto_input_tree_ref): Deal with
3386 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
3388 2009-10-14 Richard Guenther <rguenther@suse.de>
3391 * lto-streamer-in.c (input_bb): Replace debug stmts with
3392 nops instead of dropping them.
3394 2009-10-14 Nick Clifton <nickc@redhat.com>
3396 * gcc/doc/extended.texi: Replace the dash character with @minus{}
3397 in situations where it is being used as a minus symbol.
3398 * gcc/doc/tm.texi: Likewise.
3399 * gcc/doc/md.texi: Likewise.
3401 2009-10-14 Jakub Jelinek <jakub@redhat.com>
3403 PR preprocessor/41543
3404 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
3405 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
3406 * tree.c: Include intl.h.
3407 (expand_location): Handle BUILTINS_LOCATION.
3408 * Makefile.in (tree.o): Depend on intl.h.
3411 * dwarf2out.c (dwarf2out_var_location): Always clear
3412 last_postcall_label when changing last_label.
3414 2009-10-14 Pascal Obry <obry@adacore.com>
3416 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
3417 (process_command): Handle -E as done with -c and -S. Do not add
3418 the target executable suffix to the output file when -E is used.
3419 (main): Adjust error message accordingly.
3421 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
3427 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
3429 (tree_code_size): Likewise.
3431 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3433 * builtins.c (fold_builtin_1): Support complex "arc" functions.
3434 * real.h (HAVE_mpc_arc): Define.
3436 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
3438 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
3439 (struct builtin_description): Add fndecl field.
3440 (bdesc): Remove const qualifier. Update initializer.
3441 (sh_media_init_builtins): Remove const qualifier for d. Record
3442 the result of add_builtin_function to the fndecl field.
3443 (sh_builtin_decl): New.
3444 (sh_media_builtin_decl): New.
3446 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
3449 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
3450 requests between special registers.
3452 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
3454 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
3456 2009-10-13 Richard Henderson <rth@redhat.com>
3458 PR tree-optimization/41377
3459 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
3460 (cleanup_empty_eh_merge_phis): New change_region parameter;
3461 pass it on to redirect_eh_edge_1. Update callers.
3462 (cleanup_empty_eh_unsplit): Don't require an existing EH label
3463 at the destination block.
3465 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
3467 * passes.c (register_pass): Replaced gcc_unreachable by
3468 fatal_error on failure. Mentions plugins in comments & messages.
3470 2009-10-13 Jakub Jelinek <jakub@redhat.com>
3473 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
3474 * sched-vis.c (print_value): Use it.
3475 * cselib.c (cselib_hash_rtx): Likewise.
3476 * print-rtl.c (print_rtx): Likewise.
3477 * cfgexpand.c (expand_debug_rtx): Likewise.
3478 * var-tracking.c (vt_expand_loc_callback): Likewise.
3480 2009-10-13 Richard Guenther <rguenther@suse.de>
3483 * opts.c (handle_option): Split out code to handle setting
3484 the options flag var ...
3485 (set_option): ... here.
3486 * opts.h (set_option): Declare.
3487 * lto-opts.c (register_user_option_p): Include -fexceptions
3488 and all position independent code variants.
3489 (handle_common_option): Remove.
3490 (lto_reissue_options): Use set_option.
3492 2009-10-13 Martin Jambor <mjambor@suse.cz>
3494 PR tree-optimization/41661
3495 * ipa-prop.c (compute_complex_pass_through): Allow only operations
3496 that are tcc_comparisons or do not change the type in any
3498 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
3499 folding tcc_comparison operations.
3501 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3503 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
3506 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
3512 * tree.def (DEBUG_EXPR_DECL): New.
3513 * rtl.def (DEBUG_EXPR): New.
3514 * gengtype.c (adjust_field_rtx_def): Handle it.
3515 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
3516 (insert_debug_temp_for_var_def): ... this. Drop support for
3517 moving. Take iterator for def stmt; insert debug stmt before it.
3518 Scan early for use count and kind in debug stmts.
3519 (propagate_defs_into_debug_stmts): Rename to...
3520 (insert_debug_temps_for_defs): ... this. Likewise.
3521 * tree.h (DEBUG_TEMP_UID): New.
3522 * tree.c (next_debug_decl_uid): New.
3523 (make_node_stat): Count debug decls separately.
3524 (copy_node_stat): Likewise.
3525 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
3526 * var-tracking.c (dv_is_decl_p): Recognize it.
3527 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
3528 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
3529 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
3530 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
3531 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
3532 (cselib_hash_rtx): Likewise.
3533 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
3534 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
3536 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
3537 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
3538 * rtl.c (copy_rtx): Likewise.
3539 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
3540 * print-rtl.c (print_rtx): Likewise.
3541 * sched-vis.c (print_value): Likewise.
3542 (print_insn): Handle DEBUG_EXPR_DECL.
3543 * tree-dump.c (dequeue_and_dump): Likewise.
3544 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
3545 * gimple-iterator (gsi_replace): Check for same lhs.
3546 (gsi_remove): Insert debug temps.
3547 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
3548 (move_computations_stmt): Drop explicit propagation into debug stmts.
3549 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
3550 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
3551 * tree-ssa-sink.c (statement_sink_location): Likewise.
3552 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
3553 * tree-ssanames.c (release_ssa_name): Adjust for rename.
3554 * tree-flow.h: Likewise.
3555 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
3556 debug temps without values.
3557 (eliminate_unnecessary_stmts): Don't discard just-inserted
3560 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
3563 * config/cris/cris.md (andu): Check that operand 1 is one of the
3564 general registers. Fix typo in head comment.
3566 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
3568 * config/i386/i386.md (vswapmov): New.
3569 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
3570 (ix86_function_ms_hook_prologue): New.
3571 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
3572 * configure.ac: Test for swap suffix support in as.
3573 * configure: Rebuild.
3575 2009-10-12 Jakub Jelinek <jakub@redhat.com>
3578 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
3579 paradoxical subregs to prevent partial register stalls if the inner
3580 mode is integer mode.
3582 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
3584 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
3586 2009-10-12 Dodji Seketeli <dodji@redhat.com>
3589 * gcc/dwarf2out.c (template_parameter_pack_die,
3590 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
3592 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
3595 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
3597 (maybe_register_def): Likewise. Take stmt iterator.
3598 (rewrite_update_stmt): Take stmt iterator and pass it on.
3599 (rewrite_update_enter_block): Pass stmt iterator.
3601 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3603 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
3604 (spu_builtin_decl): New function.
3606 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
3608 * config/i386/i386.md (SWIM): New mode iterator.
3609 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
3610 using SWIM mode iterator.
3611 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
3612 patterns using SWI48 mode iterator.
3613 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
3614 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
3615 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
3616 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
3617 patterns using SWI248 mode iterator.
3618 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
3619 gen_x86_movdicc_0_m1_rex64 for renamed function
3621 2009-10-11 Jose Ruiz <ruiz@adacore.com>
3622 Eric Botcazou <ebotcazou@adacore.com>
3625 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
3626 * config/sparc/sol2-unwind.h: New file.
3628 2009-10-11 Olivier Hainque <hainque@adacore.com>
3629 Eric Botcazou <ebotcazou@adacore.com>
3632 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
3633 * config/i386/sol2-unwind.h: New file.
3635 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
3638 * config/i386/i386.md (addsi_1_zext): Get the proper second
3641 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
3643 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
3644 all OLD_RTXes, not just REGs. Use copy_rtx to create the
3647 2009-10-11 Richard Guenther <rguenther@suse.de>
3649 * gimple.c (iterative_hash_type_name): Do not handle special
3652 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
3654 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
3655 (*setcc_si_1_and): Ditto.
3656 (*setcc_si_1_movzbl): Ditto.
3657 (*setcc_<mode>_2): Ditto.
3658 (*setcc_qi): Rename from *setcc_1.
3659 (*setcc_qi_slp): Rename from *setcc_2.
3661 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
3662 (*zero_extendqisi2_movzbw_and splitter): Ditto.
3664 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
3665 "if" condition, there is already assert with reload_completed present.
3667 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
3669 * plugin.c (try_init_one_plugin): Improve constness of variable err.
3671 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
3673 * doc/install.texi (Final install): Refer to
3674 http://gcc.gnu.org/bugs/ for bug reporting.
3676 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
3678 * configure.ac: Add test for dci instruction.
3679 * configure: Regenerate.
3680 * config.in: Likewise.
3681 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
3682 * doc/invoke.texi: Add cpu_type 476 and 476fp.
3683 (-mmulhw): Add 476 to description.
3684 (-mdlmzb): Likewise.
3685 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
3686 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
3687 (processor_target_table): Add 476 and 476fp entries.
3688 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
3689 (rs6000_issue_rate): Add CPU_PPC476.
3690 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
3691 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
3692 (processor_type): Add PROCESSOR_PPC476.
3693 (EXTRA_SPECS): Add asm_cpu_476 string.
3694 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
3695 (define_attr "cpu"): Add ppc476.
3697 Update comments for 476.
3698 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
3699 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
3700 Update copyright year.
3701 * config/rs6000/476.md: New file.
3702 * config/rs6000/40x.md: Add description for "isel" attribute.
3703 Update copyright year.
3704 * config/rs6000/440.md: Likewise.
3705 * config/rs6000/603.md: Likewise.
3706 * config/rs6000/6xx.md: Likewise.
3707 * config/rs6000/7450.md: Likewise.
3708 * config/rs6000/7xx.md: Likewise.
3709 * config/rs6000/8540.md: Likewise.
3710 * config/rs6000/cell.md: Likewise.
3711 * config/rs6000/e300c2c3.md: Likewise.
3712 * config/rs6000/e500mc.md: Likewise.
3713 * config/rs6000/mpc.md: Likewise.
3714 * config/rs6000/power4.md: Likewise.
3715 * config/rs6000/power5.md: Likewise.
3716 * config/rs6000/power6.md: Likewise.
3717 * config/rs6000/power7.md: Likewise.
3718 * config/rs6000/rios1.md: Likewise.
3719 * config/rs6000/rios2.md: Likewise.
3720 * config/rs6000/rs64.md: Likewise.
3722 2009-10-10 Richard Guenther <rguenther@suse.de>
3724 PR tree-optimization/41654
3725 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
3726 a cond expr before calling gimple_cond_set_condition_from_tree.
3727 (ifcombine_iforif): Likewise.
3729 2009-10-09 Ian Lance Taylor <iant@google.com>
3731 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
3732 * configure: Rebuild.
3734 2009-10-09 Neil Vachharajani <nvachhar@google.com>
3736 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
3739 2009-10-09 Richard Guenther <rguenther@suse.de>
3742 * target-def.h (TARGET_BUILTIN_DECL): Define.
3743 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
3744 * target.h (struct gcc_target): Add builtin_decl target hook.
3745 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
3746 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
3748 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
3749 not gcc_unreachable.
3750 (lto_output_builtin_tree): Sorry if the target does not support
3751 streaming target builtins.
3752 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
3753 (rs6000_builtin_decl): New function.
3754 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
3755 (ix86_builtin_decl): New function.
3757 2009-10-09 Jakub Jelinek <jakub@redhat.com>
3759 PR preprocessor/41445
3760 * c-ppoutput.c (do_line_change): New function.
3761 (cb_line_change): Use it.
3762 (scan_translation_unit): Call do_line_change if
3763 avoid_paste or PREV_WHITE and token location is on a different line
3764 than print.src_line.
3767 * dwarf2out.c (dwarf2out_init): Test whether
3768 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
3771 PR rtl-optimization/41646
3772 * calls.c (expand_call): For BLKmode types returned in registers
3773 avoid likely spilled hard regs in copy_blkmode_from_reg generated
3776 2009-10-09 Richard Guenther <rguenther@suse.de>
3778 PR tree-optimization/41634
3779 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
3780 we remove the correct elements.
3781 (optimize_stmt): Make sure to update stmt operands before
3782 optimizing redundancies.
3784 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3786 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
3788 2009-10-09 Richard Guenther <rguenther@suse.de>
3791 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
3793 (lto_wrapper_exit): New function.
3795 (fatal_perror): Likewise.
3796 (fork_execute): Use global args_name, do not free it.
3797 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
3798 * lto-streamer.h: Remove duplicate prototypes.
3800 2009-10-09 Richard Guenther <rguenther@suse.de>
3802 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
3803 before calling stmt_can_throw_external.
3805 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
3807 PR tree-optimization/40071
3808 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
3809 pointer if the original data reference doesn't conflict with the
3810 created vector data reference. Fix long line.
3812 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
3814 * config/i386/i386.md (any_div): New code iterator.
3815 (u): Handle div and udiv.
3817 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
3819 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
3820 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
3821 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
3822 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
3824 2009-10-08 Joseph Myers <joseph@codesourcery.com>
3826 * gcc.c (main): Remove trailing "." from diagnostics.
3828 2009-10-08 Cary Coutant <ccoutant@google.com>
3830 Add support for debugging with ICF (Identical Code Folding).
3831 * calls.c (debug.h): New #include.
3832 (emit_call_1): Call virtual_call_token debug hook.
3833 * common.opt (-fenable-icf-debug): New option.
3834 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
3835 locations in the source).
3836 (poc_label_num): New variable.
3837 (dcall_entry, vcall_entry): New typedefs.
3838 (dcall_table, vcall_table): New variables.
3839 (struct vcall_insn): New type.
3840 (vcall_insn_table): New variable.
3841 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
3842 (size_of_dcall_table): New function.
3843 (output_dcall_table): New function.
3844 (size_of_vcall_table): New function.
3845 (output_vcall_table): New function.
3846 (dwarf2out_direct_call): New function.
3847 (vcall_insn_table_hash): New function.
3848 (vcall_insn_table_eq): New function.
3849 (dwarf2out_virtual_call_token): New function.
3850 (dwarf2out_virtual_call): New function.
3851 (dwarf2out_init): Allocate new tables and sections.
3852 (prune_unused_types): Mark DIEs referenced from direct call table.
3853 (dwarf2out_finish): Output direct and virtual call tables.
3854 * final.c (final_scan_insn): Call direct_call and virtual_call
3856 * debug.h (struct gcc_debug_hooks): Add direct_call,
3857 virtual_call_token, virtual_call hooks.
3858 (debug_nothing_uid): New function.
3859 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
3860 (debug_nothing_uid): New function.
3861 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
3862 (xcoff_debug_hooks): Likewise.
3863 * sdbout.c (sdb_debug_hooks): Likewise.
3864 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3865 * doc/invoke.texi (-fenable-icf-debug): New option.
3867 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
3870 * regmove.c (regmove_backward_pass): Replace src with dst in the
3871 debug insn, and check for dst before rather than after.
3873 2009-10-08 Janis Johnson <janis187@us.ibm.com>
3875 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
3876 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
3878 2009-10-08 Jan Hubicka <jh@suse.cz>
3881 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
3882 do not mark cgraph nodes as needed.
3883 (record_references_in_initializer): Add new only_vars parameter.
3884 * cgraph.h (record_references_in_initializer): New parameter.
3885 * varasm.c (assemble_variable): Update call.
3886 * varpool.c (varpool_analyze_pending_decls): Always look for
3889 2009-10-08 Anatoly Sokolov <aesok@post.ru>
3891 * config/avr/avr.c (last_insn_address) Remove variable.
3892 (expand_prologue): Don't initialise last_insn_address variable.
3893 (final_prescan_insn): Don't output insn size.
3894 * config/avr/avr.opt (msize): Remove switch.
3895 * doc/invoke.texi (AVR Options): Remove documentation of -msize
3898 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
3900 * combine.c (label_tick_ebb_start): Fix comment.
3901 (combine_instructions): Set label_tick and label_tick_ebb_start before
3902 calling setup_incoming_promotions. Start them from 1. Increment
3903 label_tick instead of deriving it from the BB index. Rather than
3904 comparing ticks use the block from the previous iteration to decide
3905 whether to start a new EBB. Remove empty lines before function.
3907 2009-10-08 Michael Matz <matz@suse.de>
3910 * builtins.c (fold_builtin_isascii): Use fold_build2.
3911 (fold_builtin_isdigit): Ditto.
3912 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
3913 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
3914 remove_useless_stmts_cond, remove_useless_stmts_tf,
3915 remove_useless_stmts_tc, remove_useless_stmts_bind,
3916 remove_useless_stmts_goto, remove_useless_stmts_label,
3917 remove_useless_stmts_1, remove_useless_stmts,
3918 pass_remove_useless_stmts): Remove.
3919 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
3920 * passes.c (init_optimization_passes): Don't add
3921 pass_remove_useless_stmts.
3922 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
3923 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
3925 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
3926 for static constants.
3927 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
3928 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
3930 2009-10-08 Richard Guenther <rguenther@suse.de>
3932 * gimple.c (free_gimple_type_tables): New function.
3933 * gimple.h (free_gimple_type_tables): Declare.
3935 2009-10-07 Mark Heffernan <meheff@google.com>
3937 * ipa-prop.c (ipa_print_node_params) Only print
3938 names of named arguments.
3940 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
3942 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
3943 being statically linked.
3945 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3947 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
3949 2009-10-08 Jan Hubicka <jh@suse.cz>
3952 * ipa.c (cgraph_externally_visible_p,
3953 function_and_variable_visibility,
3954 whole_program_function_and_variable_visibility): Skip non-finalized
3957 2009-10-08 Nick Clifton <nickc@redhat.com>
3959 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
3962 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
3965 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
3967 2009-10-07 Joseph Myers <joseph@codesourcery.com>
3970 * c-common.c (c_fully_fold_internal): Strip nops from the result
3971 of recursive calls to c_fully_fold_internal.
3972 (c_wrap_maybe_const): New.
3973 (c_save_expr): Use c_wrap_maybe_const.
3974 * c-common.h (c_wrap_maybe_const): Declare.
3975 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
3976 build_binary_op): Use c_wrap_maybe_const.
3978 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3980 * real.c: Fix comment to reflect actual exponent size.
3982 2009-10-08 Ben Elliston <bje@au.ibm.com>
3984 * config/rs6000/a2.md: Add FSF comment header.
3986 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
3988 * config/i386/i386.md (any_extend): New code iterator.
3989 (u, s): New code attributes.
3991 (DWIH): Rewrite as code iterator for SI and DI modes.
3992 (DWI): Rewrite as mode attribute.
3993 (dwi): New mode attribute.
3994 (di): Depend on SI mode and DI mode.
3995 (doubleint_general_operand): Remove mode attribute.
3997 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
4000 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
4001 (*sub<mode>3_doubleword): Ditto.
4003 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
4004 using SWIM248 mode iterator.
4005 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
4006 using SWI48 mode iterator.
4007 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
4008 patterns using DWIH mode iterator and any_extend code iterator.
4009 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
4010 using any_extend code iterator.
4011 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
4012 patterns using DWIH mode iterator and any_extend code iterator.
4013 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
4014 using any_extend code iterator.
4015 (<s>mul<mode>3_highpart): Macroize expander from
4016 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
4017 and any_extend code iterator.
4018 (*<s>muldi3_highpart_1): Macroize insn from
4019 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
4020 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
4021 patterns using any_extend code iterator.
4022 (*<s>mulsi3_highpart_zext): Macroize insn from
4023 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
4025 2009-10-07 Jakub Jelinek <jakub@redhat.com>
4027 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
4028 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
4029 refering to a DIE with DW_AT_const_value.
4031 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
4034 * ira-lives.c (check_and_make_def_conflict): Process all operands.
4036 2009-10-06 Jan Hubicka <jh@suse.cz>
4038 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
4041 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4043 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
4044 *lea_2_rex64): Move before *add<mode>_1 pattern.
4046 2009-10-07 Jan Hubicka <jh@suse.cz>
4048 * collect2.c (main): Add -fno-whole-program.
4049 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
4051 2009-10-07 Jan Hubicka <jh@suse.cz>
4053 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
4054 has no address taken.
4055 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
4057 (cgraph_clone_node): Clear externally_visible flag for clones.
4058 * cgraph.h (cgraph_only_called_directly_p,
4059 cgraph_can_remove_if_no_direct_calls_p): New predicates.
4060 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
4061 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
4062 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
4063 ipcp_insert_stage): Likwise.
4064 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
4065 externally_visible flag.
4066 (verify_cgraph_node): Verify that inline clones look right.
4067 (process_function_and_variable_attributes): Do not set
4068 externally_visible flags.
4069 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
4071 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
4073 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
4074 clear externally_visible when turning into inline clones
4075 (cgraph_mark_inline_edge): Use new predicates.
4076 (cgraph_estimate_growth): Likewise.
4077 (cgraph_decide_inlining): Likewise.
4078 * ipa.c (cgraph_postorder): Likewise.
4079 (cgraph_remove_unreachable_nodes): Likewise; sanity check
4080 that inline clones are not needed.
4081 (cgraph_externally_visible_p): New predicate.
4082 (function_and_variable_visibility): Add whole_program parameter;
4083 always set externally_visible flag; handle COMDAT function
4085 (local_function_and_variable_visibility): New function.
4086 (gate_whole_program_function_and_variable_visibility): New function.
4087 (whole_program_function_and_variable_visibility): New function.
4088 (pass_ipa_whole_program_visibility): New function.
4089 * passes.c (init_optimization_passes): Add whole program visibility
4091 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
4092 not care about needed/reachable flags.
4093 * varpool.c: Include flags.h
4094 (decide_is_variable_needed): When doing LTO assume whole-program mode.
4095 (varpool_finalize_decl): When we are in LTO read-back, all variables
4097 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
4099 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4101 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
4104 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4106 * config.gcc: Don't include the makefile fragments intended for
4108 * config/s390/fixdfdi.h: File removed.
4109 * config/s390/libgcc-glibc.ver: File removed.
4110 * config/s390/s390.h: Remove the fixdfdi.h hack.
4111 * config/s390/t-crtstuff: File moved to libgcc dir.
4112 * config/s390/t-linux: Likewise.
4113 * config/s390/t-tpf: libgcc specific parts removed.
4114 * config/s390/t-linux64: Likewise.
4116 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
4118 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
4119 (lto-compress.o): Likewise.
4121 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4124 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
4125 dllexport to class members here.
4126 (i386_pe_determine_dllimport_p): Only check static class data for
4128 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
4129 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
4130 functions for vague linkage.
4131 (i386_pe_type_dllexport_p): Fix formatting.
4132 (maybe_add_dllexport) New function.
4133 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
4136 2009-10-07 Ben Elliston <bje@au.ibm.com>
4138 * config/rs6000/a2.md: Remove duplicated lines.
4140 2009-10-07 Ben Elliston <bje@au.ibm.com>
4142 * config.gcc (powerpc*-*-*): Handle a2.
4143 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
4144 * config/rs6000/a2.md: New file.
4145 * config/rs6000/rs6000.opt (mno-update): New.
4146 (mupdate): Return to using a mask, not a var.
4147 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
4148 (enum processor_type): Add PROCESSOR_PPCA2.
4149 * config/rs6000/rs6000.c (ppca2_cost): New costs.
4150 (rs6000_override_options): Add "a2" to processor_target_table.
4151 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
4152 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
4154 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4156 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4157 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
4158 reference to nonexistent gen_truncxfxf2 function.
4160 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
4162 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
4163 (DWIH, g, di, doubleint_general_operand): New mode attributes.
4164 (general_operand): Handle TI mode.
4165 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
4166 using SDWIM mode iterator.
4167 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
4168 pattern from *add{di,ti}3_1 patterns and corresponding splitters
4169 using DWI mode iterator.
4170 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
4171 patterns using SWI mode iterator.
4172 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
4173 using SWI48 mode iterator.
4174 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
4175 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
4176 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
4177 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
4178 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
4179 using SDWIM mode iterator.
4180 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
4181 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
4182 using DWI mode iterator.
4183 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
4184 patterns using SWI mode iterator.
4185 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
4186 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
4187 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
4188 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
4189 patterns using plusminus code iterator.
4190 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
4191 sub<mode>3 patterns using plusminus code iterator.
4192 * config/i386/i386.c (override_options): Update the call to
4193 gen_subdi_carry_rex64 for renamed function.
4194 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
4195 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
4196 calls to instruction expanders.
4198 2009-10-06 Martin Jambor <mjambor@suse.cz>
4201 * opts.c (decode_options): Run IPA-SRA at -O2.
4203 2009-10-06 Richard Guenther <rguenther@suse.de>
4205 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
4207 2009-10-06 Tobias Burnus <burnus@net-b.de>
4210 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
4211 -flto and -fwhole-program flags can be combined.
4213 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
4216 * gcc.c (process_command): Check that -o argument was specified.
4218 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
4220 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
4222 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4224 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
4225 * doc/invoke.texi (Warning Options): Annotate allowed languages
4226 for -Wunsuffixed-float-constants.
4228 2009-10-05 Jakub Jelinek <jakub@redhat.com>
4230 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
4231 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
4232 same name and isn't the main variant.
4235 * dwarf2out.c (loc_by_reference): Removed.
4236 (dw_loc_list_1): New function.
4237 (dw_loc_list): Remove toplev argument, add want_address argument.
4238 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
4239 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
4240 want_address == 2 to dw_loc_list. For successful dw_loc_list
4241 set have_address to 1 only if want_address is not 0.
4243 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
4245 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
4246 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
4247 a code block followed by two pointers.
4248 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
4249 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
4250 (MIPS_MOVE): Likewise.
4251 (MIPS_LUI): Likewise.
4252 (MIPS_JR): Likewise.
4253 (MIPS_BAL): Likewise.
4254 (MIPS_NOP): Likewise.
4255 (mips_asm_trampoline_template): Delete.
4256 (mips_trampoline_code_size): New function.
4257 (mips_trampoline_init): Add shorter sequences for all cases
4258 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
4259 Calculate the opcodes directly, rather than copying from a template.
4260 Only flush the code part of the trampoline.
4261 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
4263 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
4265 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
4266 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
4267 (INCOMING_RETURN_ADDR_RTX): Likewise.
4268 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
4270 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
4271 with RETURN_ADDR_REGNUM.
4272 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
4273 * config/mips/mips.c (mips16_build_call_stub): Replace
4274 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
4275 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
4276 (mips_print_operand_punctuation): Likewise.
4277 (mips_frame_set): Likewise.
4278 (mips16e_output_save_restore): Likewise.
4279 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
4280 (mips_save_reg_p): Likewise.
4281 (mips_return_addr): Likewise.
4282 (mips_set_return_address): Likewise.
4283 (mips_direct_save_slot_move_p): Likewise.
4284 (mips_output_function_prologue): Likewise.
4285 (mips_restore_reg): Likewise.
4286 (mips_expand_epilogue): Likewise.
4287 (mips_epilogue_uses): Likewise.
4288 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
4289 (*mov<mode>_ra): Use it instead of a hard-coded 31.
4290 (clear_hazard_<mode>): Likewise.
4291 (call_internal): Likewise.
4292 (call_internal_direct): Likewise.
4293 (call_direct_split): Likewise.
4294 (call_value_internal): Likewise.
4295 (call_value_split): Likewise.
4296 (call_value_internal_direct): Likewise.
4297 (call_value_direct_split): Likewise.
4298 (call_value_multiple_internal): Likewise.
4299 (call_value_multiple_split): Likewise.
4301 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
4302 Jakub Jelinek <jakub@redhat.com>
4304 PR rtl-optimization/41511
4305 * combine.c (record_value_for_reg): Pass explicit values as argument
4306 to get_last_value_validate.
4307 (get_last_value_validate): Document INSN parameter.
4308 For non-readonly MEMs, assume they might have been modified if INSN
4309 was in another basic block.
4310 (get_last_value): Minor reformatting.
4312 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
4315 * final.c (asm_str_count): Split out from asm_insn_count.
4316 * rtl.h (asm_str_count): New prototype.
4317 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
4320 2009-10-05 Sriraman Tallam <tmsriram@google.com>
4322 * doc/plugins.texi: Change plugin_pass to register_pass_info.
4324 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
4325 Rafael Espindola <espindola@google.com>
4327 * gengtype.c (write_types): Moved call to write_func_for_structure
4328 into seperate loops.
4330 2009-10-05 Richard Guenther <rguenther@suse.de>
4333 * lto-cgraph.c (output_cgraph): Output toplevel asms.
4334 (input_cgraph_1): Input toplevel asms.
4336 2009-10-05 Richard Guenther <rguenther@suse.de>
4339 * lto-symtab.c (lto_compatible_attributes_p): Remove.
4340 (external_aggregate_decl_p): Likewise.
4341 (lto_symtab_compatible): Re-structure. Remove dead code.
4342 For variables ignore toplevel qualifiers when comparing types.
4343 Issue warnings, not errors for mismatched user-alignment.
4345 2009-10-05 Richard Guenther <rguenther@suse.de>
4349 * lto-symtab.c (struct lto_symtab_base_def): Remove.
4350 (struct lto_symtab_identifier_def): Likewise.
4351 (struct lto_symtab_decl_def): Likewise.
4352 (struct lto_symtab_entry_def): New.
4353 (lto_symtab_identifier_t): Rename to ...
4354 (lto_symtab_entry_t): ... this.
4355 (lto_symtab_decls): Remove.
4356 (lto_symtab_base_hash): Rename to ...
4357 (lto_symtab_entry_hash): ... this.
4358 (lto_symtab_base_eq): Rename to ...
4359 (lto_symtab_entry_eq): ... this.
4360 (lto_symtab_base_marked_p): Rename to ...
4361 (lto_symtab_entry_marked_p): ... this.
4362 (lto_symtab_identifier_marked_p): Remove.
4363 (lto_symtab_decl_marked_p): Likewise.
4364 (lto_symtab_maybe_init_hash_tables): Rename to ...
4365 (lto_symtab_maybe_init_hash_table): ... this.
4366 (lto_symtab_set_resolution_and_file_data): Remove.
4367 (lto_symtab_register_decl): New function.
4368 (lto_symtab_get_identifier): Remove.
4369 (lto_symtab_get): New function.
4370 (lto_symtab_get_resolution): Adjust.
4371 (lto_symtab_get_identifier_decl): Remove.
4372 (lto_symtab_set_identifier_decl): Likewise.
4373 (lto_symtab_merge_decl): Rename to ...
4374 (lto_symtab_merge): ... this. Rewrite.
4375 (lto_symtab_merge_var): Remove.
4376 (lto_symtab_merge_fn): Likewise.
4377 (lto_symtab_prevailing_decl): Adjust.
4378 (lto_cgraph_replace_node): New function.
4379 (lto_symtab_merge_decls_2): Likewise.
4380 (lto_symtab_merge_decls_1): Likewise.
4381 (lto_symtab_fixup_var_decls): Likewise.
4382 (lto_symtab_resolve_symbols): Likewise.
4383 (lto_symtab_merge_decls): Likewise.
4384 (lto_symtab_prevailing_decl): Adjust.
4385 (lto_symtab_get_symtab_def): Remove.
4386 (lto_symtab_get_file_data): Likewise.
4387 (lto_symtab_clear_resolution): Adjust.
4388 (lto_symtab_clear_resolution): Likewise.
4389 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
4390 (input_cgraph_1): Likewise.
4391 * lto-streamer-in.c (get_resolution): Do not provide fake
4392 symbol resolutions here.
4393 (deferred_global_decls): Remove.
4394 (lto_register_deferred_decls_in_symtab): Likewise.
4395 (lto_register_var_decl_in_symtab): Change signature, register
4396 variable via lto_symtab_register_decl.
4397 (lto_register_function_decl_in_symtab): Likewise.
4398 (lto_read_tree): Adjust.
4399 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
4400 (lto_symtab_merge_var): Likewise.
4401 (lto_symtab_merge_fn): Likewise.
4402 (lto_symtab_register_decl): Declare.
4403 (lto_symtab_merge_decls): Likewise.
4405 2009-10-05 Richard Guenther <rguenther@suse.de>
4407 PR tree-optimization/23821
4408 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
4409 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
4410 simple IV increments.
4412 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4414 * config/arm/arm.c (arm_override_options): Really initialize
4415 flag_dwarf2_cfi_asm to 0.
4417 2009-10-05 Doug Kwan <dougkwan@google.com>
4419 PR rtl-optimization/41574
4420 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
4421 floating point and we are not doing unsafe math optimizations.
4423 2009-10-03 Simon Baldwin <simonb@google.com>
4424 Cary Coutant <ccoutant@google.com>
4425 Rafael Espindola <espindola@google.com>
4426 Richard Guenther <rguenther@suse.de>
4427 Jan Hubicka <jh@suse.cz>
4428 Doug Kwan <dougkwan@google.com>
4429 H.J. Lu <hongjiu.lu@intel.com>
4430 Bill Maddox <maddox@google.com>
4431 Ryan Mansfield <rmansfield@qnx.com>
4432 Diego Novillo <dnovillo@google.com>
4433 Ollie Wild <aaw@google.com>
4434 Kenneth Zadeck <zadeck@naturalbridge.com>
4436 * lto-cgraph.c: New file.
4437 * lto-compress.c: New file.
4438 * lto-compress.h: New file.
4439 * lto-opts.c: New file.
4440 * lto-section-in.c: New file.
4441 * lto-section-out.c: New file.
4442 * lto-streamer-in.c: New file.
4443 * lto-streamer-out.c: New file.
4444 * lto-streamer.c: New file.
4445 * lto-streamer.h: New file.
4446 * lto-symtab.c: New file.
4447 * lto-wpa-fixup.c: New file.
4448 * lto-wrapper.c: New file.
4450 2009-10-03 Simon Baldwin <baldwin@google.com>
4451 Ben Elliston <bje@au.ibm.com>
4452 Rafael Espindola <espindola@google.com>
4453 Nathan Froyd <froydnj@codesourcery.com>
4454 Jan Hubicka <jh@suse.cz>
4455 Doug Kwan <dougkwan@google.com>
4456 Diego Novillo <dnovillo@google.com>
4457 Kenneth Zadeck <zadeck@naturalbridge.com>
4459 * Makefile.in (enable_lto): New.
4460 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
4461 (LINKER_PLUGIN_API_H): Define.
4462 (LTO_SYMTAB_H): Define.
4463 (LTO_STREAMER_H): Define.
4464 (TREE_VECTORIZER_H): Define.
4465 (INCLUDES): Add LIBELFINC.
4466 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
4467 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
4468 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
4469 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
4470 (native): Add lto-wrapper$(exeext)
4471 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
4472 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
4473 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
4474 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
4475 (varasm.o): Add dependency on tree-iterator.h.
4476 (cgraph.o): Add dependency on cif-code.def.
4477 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
4478 (ipa-pure-const.o): Likewise.
4479 (GTFILES): Add lto-symtab.c.
4480 (install-lto-wrapper): New.
4481 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
4482 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
4483 * config.in: Regenerate.
4485 2009-10-03 Rafael Espindola <espindola@google.com>
4486 Diego Novillo <dnovillo@google.com>
4488 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
4489 ipa_write_summaries.
4490 Call execute_ipa_summary_passes for all_regular_ipa_passes and
4492 (cgraph_optimize): Make extern.
4494 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
4495 Kenneth Zadeck <zadeck@naturalbridge.com>
4497 * toplev.c (in_lto_p): Declare.
4498 * collect2.c (scan_prog_file): Read all the output when reading
4499 information for LTO.
4500 (enum lto_mode_d): Declare.
4502 2009-10-03 Richard Guenther <rguenther@suse.de>
4503 Diego Novillo <dnovillo@google.com>
4505 * gimple.c: Include target.h and alias.h.
4506 (gimple_types): Declare.
4507 (type_hash_cache): Declare.
4508 (gimple_alloc_stat): Make extern.
4509 (gimple_build_eh_must_not_throw): Call
4510 gimple_eh_must_not_throw_set_fndecl.
4511 (struct type_pair_d): Declare.
4512 (type_pair_t): Declare.
4513 (type_pair_hash): New.
4514 (type_pair_eq): New.
4515 (lookup_type_pair): New.
4516 (gimple_force_type_merge): New.
4517 (compare_type_names_p): New.
4518 (compare_field_offset): New.
4519 (gimple_types_compatible_p): New.
4520 (struct sccs): Declare.
4521 (next_dfs_num): Declare.
4522 (iterative_hash_gimple_type): New.
4524 (iterative_hash_type_name): New.
4525 (iterative_hash_gimple_type): New.
4526 (gimple_type_hash): New.
4527 (gimple_type_eq): New.
4528 (gimple_register_type): New.
4529 (print_gimple_types_stats): New.
4530 (gimple_signed_or_unsigned_type): New.
4531 (gimple_unsigned_type): New.
4532 (gimple_signed_type): New.
4533 (gimple_get_alias_set): New.
4534 (gimple_decl_printable_name): Do not use DMGL_TYPES.
4535 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
4536 (gimple_force_type_merge): Declare.
4537 (gimple_types_compatible_p): Declare.
4538 (gimple_register_type): Declare.
4539 (print_gimple_types_stats): Declare.
4540 (gimple_unsigned_type): Declare.
4541 (gimple_signed_type): Declare.
4542 (gimple_get_alias_set): Declare.
4543 (gimple_eh_must_not_throw_set_fndecl): New.
4545 2009-10-03 Jan Hubicka <jh@suse.cz>
4546 Kenneth Zadeck <zadeck@naturalbridge.com>
4548 * ipa-pure-const.c: Include lto-streamer.h.
4549 (register_hooks): Factor out of ...
4550 (generate_summary): ... here.
4551 (pure_const_write_summary): New.
4552 (pure_const_read_summary): New.
4553 (pass_ipa_pure_const): Add pure_const_write_summary and
4554 pure_const_read_summary.
4555 * ipa-reference.c: Include lto-streamer.h.
4556 (add_new_function): New.
4557 (remove_node_data): New.
4558 (duplicate_node_data): New.
4559 (ipa_init): Guard against multiple calls.
4560 Move hook setup from analyze_function.
4561 (write_node_summary_p): New.
4562 (ipa_reference_write_summary): New.
4563 (ipa_reference_read_summary): New.
4564 (pass_ipa_reference): Add ipa_reference_write_summary and
4565 ipa_reference_read_summary.
4566 * cgraph.h (cgraph_local_info): Add field lto_file_data.
4567 (struct cgraph_edge): Add fields lto_stmt_uid and
4568 call_stmt_cannot_inline_p.
4569 (cgraph_optimize): Declare.
4570 (cgraph_decide_is_function_needed): Declare.
4571 (reset_inline_failed): Declare.
4572 (enum LTO_cgraph_tags): Declare.
4573 (LTO_cgraph_tag_names): Declare.
4574 (LCC_NOT_FOUND): Define.
4576 2009-10-03 Doug Kwan <dougkwan@google.com>
4577 Rafael Espindola <espindola@google.com>
4578 Jan Hubicka <jh@suse.cz>
4579 Diego Novillo <dnovillo@google.com>
4580 Kenneth Zadeck <zadeck@naturalbridge.com>
4582 * passes.c (all_regular_ipa_passes): New.
4583 (all_ipa_passes): Rename to all_small_ipa_passes.
4584 (init_optimization_passes): Init all_regular_ipa_passes.
4585 * tree-pass.h (all_regular_ipa_passes): New.
4586 (all_ipa_passes): Rename to all_small_ipa_passes.
4587 * passes.c (all_lto_gen_passes): New.
4588 (init_optimization_passes): Initialize all_lto_gen_passes.
4589 (execute_ipa_summary_passes): Make non-static.
4590 (ipa_write_summaries_1): New.
4591 (ipa_write_summaries_2): New.
4592 (ipa_write_summaries): New.
4593 (ipa_write_summaries_of_cgraph_node_set): New.
4594 (ipa_read_summaries_1): New.
4595 (ipa_read_summaries): New.
4596 (execute_ipa_pass_list): Call cgraph_process_new_functions.
4597 (execute_regular_ipa_pass_list): Remove.
4598 (init_optimization_passes): Schedule
4599 pass_rebuild_cgraph_edges and pass_early_inline outside
4600 of pass_all_early_optimizations. Document reason.
4601 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
4602 pass_ipa_lto_finish_out): New pass.
4603 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
4604 (execute_all_ipa_transforms): New.
4605 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
4606 (dump_properties, debug_properties): New.
4607 * tree-optimize.c (gate_all_early_local_passes): Return
4608 false if we are in lto1.
4609 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
4610 * tree-pass.h (execute_all_ipa_transforms): Declare.
4611 (pass_ipa_function_and_variable_visibility): Declare.
4612 (pass_ipa_early_inline): Declare.
4613 (pass_ipa_lto_gimple_out): Declare.
4614 (pass_ipa_lto_wpa_fixup): Declare.
4615 (pass_ipa_lto_finish_out): Declare.
4616 (all_small_ipa_passes, all_regular_ipa_passes,
4617 all_lto_gen_passes): Declare.
4618 (execute_ipa_summary_passes): Declare.
4619 (execute_all_ipa_transforms): Declare.
4620 (ipa_write_summaries): Declare
4621 (ipa_write_summaries_of_cgraph_node_set): Declare.
4622 (ipa_read_summaries): Declare.
4624 2009-10-03 Doug Kwan <dougkwan@google.com>
4625 Ollie Wild <aaw@google.com>
4627 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
4629 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
4630 (lto_mode): New variable.
4631 (maybe_run_lto_and_relink): Handle the -fwpa option.
4632 (main): Handle the -fwpa option.
4633 (maybe_unlink_list): New function.
4634 * gcc.c (link_lto_options): Replace -flto with -fwpa.
4635 * common.opt (flto): New flag.
4636 * toplev.c (flag_generate_lto): Declare.
4638 2009-10-03 Simon Baldwin <simonb@google.com>
4640 * common.opt (flto-compression-level): New flag.
4642 * opts.c: Include lto-opts.h.
4643 (handle_option): Call lto_register_user_option for each
4644 valid option handled.
4645 (decode_options): Clear registered options before the options
4648 2009-10-03 Cary Coutant <ccoutant@google.com>
4650 * collect2.c (is_elf): New function.
4651 (scan_prog_file): Require LTO object to be in ELF format.
4653 2009-10-03 Rafael Espindola <espindola@google.com>
4655 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
4656 libgcc to the linker.
4658 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
4660 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
4661 (collect_execute): Add flags argument. Pass flags to pex_run. Update
4663 * collect2.h (collect_execute): Add flags argument.
4664 * tlink.c (tlink_execute): Update call to collect_execute.
4665 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
4666 (use_linker_plugin): New.
4667 (use_linker_plugin_spec_function): New.
4668 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
4669 (linker_plugin_file_spec): New.
4670 (lto_wrapper_spec): New.
4671 (lto_gcc_spec): New.
4672 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
4673 (static_spec_functions): Add use-linker-plugin.
4674 (process_command): Handle -use-linker-plugin.
4675 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
4676 linker_plugin_file_spec and lto_gcc_spec.
4677 (use_linker_plugin_spec_function): New.
4679 2009-10-03 Richard Guenther <rguenther@suse.de>
4683 * tree.h (is_lang_specific): Include LANG_TYPE.
4684 * tree.c (find_decls_types_r): Manually add interesting parts
4685 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
4687 * gimple.c (type_pair_hash): Make symmetric.
4688 (type_pair_eq): Likewise.
4689 (lookup_type_pair): Increase initial hashtable size.
4690 (gimple_force_type_merge): Rely on type-pair symmetry.
4691 (visit): Remove excessive checking code.
4692 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
4693 (gimple_register_type): Remove getenv calls, shrink initial
4697 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
4698 inline functions if not generating lto output.
4701 * toplev.c (finalize): In WPA mode remove the asm file.
4703 2009-10-03 Doug Kwan <dougkwan@google.com>
4705 * ipa-inline.c (cgraph_mark_inline): Check
4706 edge->call_stmt_cannot_inline_p instead of calling
4707 gimple_call_cannot_inline_p.
4708 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
4709 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
4710 (inline_generate_summary): Do nothing in LTRANS.
4711 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
4712 exists before calling gimple_call_cannot_inline_p.
4713 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
4714 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
4715 Update new_edge->lto_stmt_uid.
4716 * cgraphbuild.c (reset_inline_failed): New.
4718 * common.opt (fwpa): New flag.
4719 (fltrans): New option.
4720 * gcc.c (gcc_lto_option_t): New type.
4721 (current_lto_option): New variable.
4722 (lto_single_spec_function): Remove and is replaced by ..
4723 (lto_option_spec_function): New function.
4724 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
4725 passing the -flto flag.
4726 (cc1_options): Separate non-LTO related parts into ..
4727 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
4728 (lto1_options): New spec for lto FE.
4729 (link_lto_options): New spec for handling LTO flags in linker.
4730 (invoke_lto_single): Re-format to fit in 80 column. Replace
4731 lto-single with lto-option.
4732 (static_specs): Add cc1_non_lto_options, lto1_options and
4734 (static_spec_function): Replace lto-single with lto-option.
4735 (process_command): Handle -flto, -fwpa and -fltran by setting
4736 current_lto_option and not passing it to subprocess unconditionally.
4738 2009-10-03 Bill Maddox <maddox@google.com>
4740 Add `gcc' driver support for link-time code generation (LTO).
4742 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
4743 (lto_flag, lto_objects, lto_o_file): New variables.
4744 (struct lto_object, struct lto_object_list): New structures.
4745 (collect_exit, handler): Remove LTO temporary output file on exit.
4746 (add_lto_object): New function.
4747 (maybe_run_lto_and_relink): New function. Perform link time code
4748 generation and relinking for object files containing LTO information.
4749 (main): Invoke maybe_run_lto_and_relink().
4750 (dump_argv): New function. For debugging, currently disabled.
4751 (scan_prog_file): Add LTO information pass.
4752 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
4754 * toplev.c (compile_file): Emit assembler directive to create
4755 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
4757 2009-10-03 Diego Novillo <dnovillo@google.com>
4759 * c.opt: Add LTO to warn_abi and warn_psabi.
4761 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
4762 inline function. Ignore language-specific nodes. Update all users.
4763 (find_decls_types_r): Do not traverse the subtrees of
4764 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
4765 * tree.h (is_lang_specific): New.
4766 * langhooks.h (struct lang_hooks_for_decls): Remove
4767 may_need_assembler_name_p. Update all users.
4769 * c-common.c (set_builtin_user_assembler_name): Move ...
4770 * builtins.c (set_builtin_user_assembler_name): ... here.
4771 (is_builtin_name): Add comment
4772 (is_builtin_fn): New.
4773 * except.c (output_ttype): Only call
4774 lookup_type_for_runtime if TYPE is not a runtime type.
4776 * passes.c (register_pass): Call position_pass on
4777 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
4778 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
4779 (TV_IPA_LTO_DECL_IO): Define.
4780 (TV_IPA_LTO_CGRAPH_IO): Define.
4782 (TV_WHOPR_WPA): Define.
4783 (TV_WHOPR_WPA_IO): Define.
4784 (TV_WHOPR_LTRANS): Define.
4785 (TV_WHOPR_WPA_FIXUP): Define.
4786 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
4787 * tree-cfg.c (tree_node_can_be_shared): Make extern.
4788 * tree-flow.h (tree_node_can_be_shared): Declare.
4789 * tree-inline.c (tree_can_inline_p): Check that E has a
4790 statement associated with it.
4791 * tree.c (free_lang_data_in_binf): Factor out of ...
4792 (free_lang_data_in_type): ... here.
4793 Call RECORD_OR_UNION_TYPE_P.
4794 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
4795 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
4796 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
4797 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
4798 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
4799 (gate_free_lang_data): Return true if flag_generate_lto is set.
4800 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
4801 * c-common.h (set_builtin_user_assembler_name): Move ...
4802 * tree.h (set_builtin_user_assembler_name): ... here.
4804 * common.opt (flto-report): New flag.
4805 * opts.c (complain_wrong_lang): Do not complain if running lto1.
4806 * collect2.c (scan_prog_file): Send the error output of
4807 'nm' to HOST_BIT_BUCKET.
4809 2009-10-03 Ollie Wild <aaw@google.com>
4811 * langhooks-def.h (lhd_begin_section): New function declaration.
4812 (lhd_write_section): New function declaration.
4813 (lhd_end_section): New function declaration.
4814 (LANG_HOOKS_BEGIN_SECTION): New macro.
4815 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
4816 (LANG_HOOKS_END_SECTION): New macro.
4817 (LANG_HOOKS_LTO): New macro.
4818 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
4819 * langhooks.c (output.h): Add include.
4820 (saved_section): New static variable.
4821 (lhd_begin_section): New function.
4822 (lhd_write_section_data): New function.
4823 (lhd_end_section): New function.
4824 * langhooks.h (struct lang_hooks_for_lto): New structure.
4825 (struct lang_hooks): Add member lto.
4826 * Makefile.in (langhooks.o): Add dependency on output.h.
4828 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
4830 2009-10-03 Richard Guenther <rguenther@suse.de>
4832 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
4835 2009-10-03 Simon Baldwin <simonb@google.com>
4836 Richard Guenther <rguenther@suse.de>
4837 Janis Johnson <janis187@us.ibm.com>
4838 Doug Kwan <dougkwan@google.com>
4839 Diego Novillo <dnovillo@google.com>
4840 Ramana Radhakrishnan <ramana.r@gmail.com>
4841 Ollie Wild <aaw@google.com>
4843 * doc/install.texi: Add documentation for libelf and --enable-lto.
4844 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
4845 -flto-report, -flto-compression-level and -use-linker-plugin.
4846 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
4847 Add section for LTO Testing.
4849 2009-10-02 Cary Coutant <ccoutant@google.com>
4851 Add support for comdat type sections for DWARF v4.
4852 Merge from dwarf4 branch.
4854 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
4855 (dw_die_ref): Define vector type.
4856 (enum dw_val_class): Add dw_val_class_data8.
4857 (struct dw_val_struct): Add v.val_data8.
4858 (comdat_type_node_ref): New type.
4859 (struct die_struct): Move die_symbol into a union; add new field
4860 die_type_node. Change all uses.
4861 (comdat_type_node): New type.
4862 (skeleton_chain_node): New type.
4863 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
4864 (comdat_type_list): New variable.
4865 (dwarf_tag_name): Add DW_TAG_type_unit.
4866 (dwarf_attr_name): Add DW_AT_signature.
4867 (add_AT_data8): New function.
4868 (replace_child): New function.
4869 (move_all_children): New function.
4870 (print_signature): New function.
4871 (print_die): Print signature information; add dw_val_class_data8.
4872 (attr_checksum): Support dw_val_class_data8.
4873 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
4874 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
4875 (checksum_sleb128, checksum_uleb128): New functions.
4876 (checksum_die_context): New function.
4877 (loc_checksum_ordered): New function.
4878 (attr_checksum_ordered): New function.
4879 (struct checksum_attributes): New structure.
4880 (collect_checksum_attributes): New function.
4881 (die_checksum_ordered): New function.
4882 (generate_type_signature): New function.
4883 (same_dw_val_p): Add dw_val_class_data8.
4884 (is_symbol_die): Use new is_declaration_die function.
4885 (is_declaration_die): New function.
4886 (should_move_die_to_comdat): New function.
4887 (clone_die): New function.
4888 (clone_tree): New function.
4889 (clone_as_declaration): New function.
4890 (copy_declaration_context): New function.
4891 (generate_skeleton_ancestor_tree): New function.
4892 (generate_skeleton_bottom_up): New function.
4893 (generate_skeleton): New function.
4894 (remove_child_or_replace_with_skeleton): New function.
4895 (break_out_comdat_types): New function.
4896 (struct decl_table_entry): New type.
4897 (htab_decl_hash): New function.
4898 (htab_decl_eq): New function.
4899 (htab_decl_del): New function.
4900 (copy_ancestor_tree): New function.
4901 (copy_decls_walk): New function.
4902 (copy_decls_for_unworthy_types): New function.
4903 (build_abbrev_table): Don't assert on missing die_symbol when doing
4904 comdat type sections.
4905 (size_of_die): Use DW_FORM_sig8 for external references. Add
4907 (unmark_dies): Don't assert for unmarked dies when doing comdat
4909 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
4910 (output_signature): New function.
4911 (output_die): Likewise.
4912 (output_compilation_unit_header): Mark output as DWARF version 3
4913 even if generating DWARF 4.
4914 (output_comdat_type_unit): New function.
4915 (output_line_info): Mark output as DWARF version 3 even if generating
4917 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
4919 (dwarf2out_end_source_file): Likewise.
4920 (prune_unused_types_walk_attribs): Don't follow references into
4921 comdat type sections.
4922 (prune_unused_types_mark): When generating type units, do not mark
4923 children of non-defining declarations of types; do mark children of
4925 (prune_unused_types): Process comdat type sections.
4926 (htab_ct_hash): New function.
4927 (htab_ct_eq): New function.
4928 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
4929 Add a pointer to the line table from type unit entries so
4930 DW_AT_decl_file has meaning.
4931 * varasm.c (default_elf_asm_named_section): Use identifier name as
4932 comdat key instead of lang hook.
4934 2009-10-02 Neil Vachharajani <nvachhar@google.com>
4936 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
4938 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
4940 * config/i386/i386.md (SWIM248): New mode iterator.
4941 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
4942 divmodhi4 patterns using SWIM248 macro.
4943 (*divmod<mode>4): Macroize insn_and_split pattern from
4944 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
4945 and their corresponding splitters usign SWIM248 macro. Split SImode
4946 insn to generate cltd and DImode insn to generate cqto instead of
4947 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
4948 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
4949 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
4950 *divmodsi_noext patterns using SWIM248 macro.
4951 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
4952 udivmodhi4 patterns using SWIM248 macro.
4953 (*udivmod<mode>4): Macroize insn_and_split pattern from
4954 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
4955 corresponding splitters using SWIM248 macro.
4956 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
4957 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
4959 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
4961 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
4962 of zero-sized element is zero-sized regardless of its extent.
4964 2009-10-02 Jakub Jelinek <jakub@redhat.com>
4967 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
4968 * configure: Regenerated.
4969 * config.in: Regenerated.
4970 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
4971 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
4972 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
4973 not emitting .eh_frame, emit .cfi_sections .debug_frame
4978 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
4979 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
4981 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
4982 vars use DECL_RTL with resetting it back to NULL afterwards.
4983 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
4984 rtx_equal_p instead of asserting it is a SYMBOL_REF.
4985 (value_format): For dw_val_class_addr only use DW_FORM_addr if
4986 the attribute type allows it, otherwise use DW_FORM_dataN.
4987 (mem_loc_descriptor): Handle CONST_STRING.
4988 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
4989 Handle MEM with CONST_STRING address using add_AT_string.
4990 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
4991 CONST_STRING for const arrays initialized with a string literal.
4992 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
4993 (dwarf2out_finish): Call resolve_addr.
4995 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
4996 Maxim Kuvyrkov <maxim@codesourcery.com>
4998 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
5000 2009-10-02 Nick Clifton <nickc@redhat.com>
5002 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
5003 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
5005 2009-10-01 Jan Hubicka <jh@suse.cz>
5007 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
5008 (cgraph_create_virtual_clone): Just pass redirect_callers
5010 * cgraph.h (cgraph_clone_node): Update prototype.
5011 * ipa-pure-const.c (self_recursive_p): New function.
5012 (propagate): Use it.
5013 * ipa-inline.c (cgraph_clone_inlined_nodes,
5014 cgraph_decide_recursive_inlining): Update.
5016 2009-10-01 David Daney <ddaney@caviumnetworks.com>
5018 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
5019 instructions for TARGET_OCTEON.
5021 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5023 * config/arm/arm.c (arm_override_options): Turn off
5024 flag_dwarf2_cfi_asm for AAPCS variants.
5026 2009-10-01 Martin Jambor <mjambor@suse.cz>
5029 * tree-sra.c (convert_callers): Do not call
5030 compute_inline_parameters on one caller more than once.
5032 2009-10-01 Nick Clifton <nickc@redhat.com>
5034 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
5035 an empty string if not already defined.
5037 2009-10-01 Martin Jambor <mjambor@suse.cz>
5040 * tree-sra.c (is_va_list_type): New function.
5041 (find_var_candidates): Call is_va_list_type.
5042 (find_param_candidates): Check that the type or the type pointed
5043 to are not va_list types.
5045 2009-10-01 Martin Jambor <mjambor@suse.cz>
5048 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
5049 DECL_ARTIFICIAL (param_decl) is true.
5051 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
5053 * tree.h (tree_decl_common::lang_flag_8): New.
5054 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
5056 * c-common.h (RID_CONSTEXPR): New.
5058 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
5060 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
5061 Use ref-all pointers.
5062 (alpha_gimplify_va_arg): Ditto.
5064 2009-09-30 Jakub Jelinek <jakub@redhat.com>
5067 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
5068 before insn counting loop now that BB_END (bb) is counted. Ensure
5069 the return value isn't zero.
5071 2009-09-30 Nick Clifton <nickc@redhat.com>
5073 * config.gcc (sh-symbianelf): Replace definition of extra_objs
5074 with separate definitions of c_target_objs and cxx_target_objs.
5075 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
5077 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
5078 sh_symbian_import_export_class.
5079 * config/sh/sh-protos.h: Fix names of exported symbian functions.
5080 * config/sh/symbian.c: Delete, moving code into...
5081 * config/sh/symbian-base.c: ... here
5082 * config/sh/symbian-c.c: ... and here
5083 * config/sh/symbian-cxx.c: ... and here.
5085 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
5088 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
5089 of plus RTX into register.
5091 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5093 * doc/install.texi: Linguistic and markup fixes.
5094 (Configuration) <--disable-cpp>: Remove description.
5095 <--enable-maintainer-mode>: Autotools files are affected, too.
5096 <--with-sysroot>: Improve description.
5097 (Building): Bump required GNU make version.
5099 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
5101 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
5102 (x86_64-*-*): Ditto.
5104 * config/i386/fma4intrin.h: New file, provide common x86 compiler
5105 intrinisics for FMA4.
5106 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
5107 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
5108 Add FMA4 check and fma4intrin.h.
5109 * config/i386/i386-c.c(ix86_target_macros_internal): Check
5111 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
5112 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
5113 constant for FMA4 support.
5114 (UNSPEC_FMA4_FMADDSUB): Ditto.
5115 (UNSPEC_FMA4_FMSUBADD): Ditto.
5116 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
5117 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
5118 (ix86_expand_fma4_multiple_memory): Ditto.
5119 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
5120 (OPTION_MASK_ISA_FMA4_UNSET): New.
5121 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
5122 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
5123 (ix86_handle_option): Handle -mfma4.
5124 (isa_opts): Handle -mfma4.
5125 (enum pta_flags): Add PTA_FMA4.
5126 (override_options): Add FMA4 support.
5127 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
5128 (IX86_BUILTIN_VFMADDSD): Ditto.
5129 (IX86_BUILTIN_VFMADDPS): Ditto.
5130 (IX86_BUILTIN_VFMADDPD): Ditto.
5131 (IX86_BUILTIN_VFMSUBSS): Ditto.
5132 (IX86_BUILTIN_VFMSUBSD): Ditto.
5133 (IX86_BUILTIN_VFMSUBPS): Ditto.
5134 (IX86_BUILTIN_VFMSUBPD): Ditto.
5135 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
5136 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
5137 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
5138 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
5139 (IX86_BUILTIN_VFNMADDSS): Ditto.
5140 (IX86_BUILTIN_VFNMADDSD): Ditto.
5141 (IX86_BUILTIN_VFNMADDPS): Ditto.
5142 (IX86_BUILTIN_VFNMADDPD): Ditto.
5143 (IX86_BUILTIN_VFNMSUBSS): Ditto.
5144 (IX86_BUILTIN_VFNMSUBSD): Ditto.
5145 (IX86_BUILTIN_VFNMSUBPS): Ditto.
5146 (IX86_BUILTIN_VFNMSUBPD): Ditto.
5147 (IX86_BUILTIN_VFMADDPS256): Ditto.
5148 (IX86_BUILTIN_VFMADDPD256): Ditto.
5149 (IX86_BUILTIN_VFMSUBPS256): Ditto.
5150 (IX86_BUILTIN_VFMSUBPD256): Ditto.
5151 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
5152 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
5153 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
5154 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
5155 (IX86_BUILTIN_VFNMADDPS256): Ditto.
5156 (IX86_BUILTIN_VFNMADDPD256): Ditto.
5157 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
5158 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
5159 (enum multi_arg_type): New enum for describing the various FMA4
5160 intrinsic argument types.
5161 (bdesc_multi_arg): New table for FMA4 intrinsics.
5162 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
5163 (ix86_expand_multi_arg_builtin): New function for creating FMA4
5165 (ix86_expand_builtin): Add FMA4 intrinsic support.
5166 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
5167 operand instructions.
5168 (ix86_expand_fma4_multiple_memory): New function to split the
5169 second memory reference from FMA4 instructions.
5170 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
5171 (ssemodesuffixf2s): Ditto.
5172 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
5174 (fma4_fmsub<mode>4): Ditto.
5175 (fma4_fnmadd<mode>4): Ditto.
5176 (fma4_fnmsub<mode>4): Ditto.
5177 (fma4_vmfmadd<mode>4): Ditto.
5178 (fma4_vmfmsub<mode>4): Ditto.
5179 (fma4_vmfnmadd<mode>4): Ditto.
5180 (fma4_vmfnmsub<mode>4): Ditto.
5181 (fma4_fmadd<mode>4256): Ditto.
5182 (fma4_fmsub<mode>4256): Ditto.
5183 (fma4_fnmadd<mode>4256): Ditto.
5184 (fma4_fnmsub<mode>4256): Ditto.
5185 (fma4_fmaddsubv8sf4): Ditto.
5186 (fma4_fmaddsubv4sf4): Ditto.
5187 (fma4_fmaddsubv4df4): Ditto.
5188 (fma4_fmaddsubv2df4): Ditto.
5189 (fma4_fmsubaddv8sf4): Ditto.
5190 (fma4_fmsubaddv4sf4): Ditto.
5191 (fma4_fmsubaddv4df4): Ditto.
5192 (fma4_fmsubaddv2df4): Ditto.
5193 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
5194 instructions for intrinsics.
5195 (fma4i_fmsub<mode>4): Ditto.
5196 (fma4i_fnmadd<mode>4): Ditto.
5197 (fma4i_fnmsub<mode>4): Ditto.
5198 (fma4i_vmfmadd<mode>4): Ditto.
5199 (fma4i_vmfmsub<mode>4): Ditto.
5200 (fma4i_vmfnmadd<mode>4): Ditto.
5201 (fma4i_vmfnmsub<mode>4): Ditto.
5202 (fma4i_fmadd<mode>4256): Ditto.
5203 (fma4i_fmsub<mode>4256): Ditto.
5204 (fma4i_fnmadd<mode>4256): Ditto.
5205 (fma4i_fnmsub<mode>4256): Ditto.
5206 (fma4i_fmaddsubv8sf4): Ditto.
5207 (fma4i_fmaddsubv4sf4): Ditto.
5208 (fma4i_fmaddsubv4df4): Ditto.
5209 (fma4i_fmaddsubv2df4): Ditto.
5210 (fma4i_fmsubaddv8sf4): Ditto.
5211 (fma4i_fmsubaddv4sf4): Ditto.
5212 (fma4i_fmsubaddv4df4): Ditto.
5213 (fma4i_fmsubaddv2df4): Ditto.
5215 * doc/invoke.texi (-mfma4): Add documentation.
5216 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
5218 2009-09-29 Richard Henderson <rth@redhat.com>
5220 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
5221 an edge to the new destination block.
5223 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5226 * pa.c (hppa_profile_hook): Use
5227 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
5229 2009-09-29 Steve Ellcey <sje@cup.hp.com>
5230 Alexander Monakov <amonakov@ispras.ru>
5233 * config/ia64/predicates.md (not_postinc_destination_operand): New.
5234 (not_postinc_memory_operand): New.
5235 (not_postinc_move_operand): New.
5236 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
5237 (*cmovsi_internal): Ditto.
5239 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
5241 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
5242 restrict issue_rate in first pass when scheduling for register
5245 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
5246 Rafael Avila de Espindola <espindola@google.com>
5248 * gengtype.c (plugin_output): New.
5249 (get_output_file_with_visibility): Return plugin_output for plugins.
5250 (main): Parse and use the -P option.
5251 * gty.texi: Update the command line format.
5253 2009-09-29 Jakub Jelinek <jakub@redhat.com>
5256 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
5258 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
5259 out if !const_ok_for_output.
5262 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
5263 case VAR_LOCATION>: Remove gcc_unreachable ().
5265 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
5267 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
5268 (x86_64-*-*): Ditto.
5269 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
5270 back to smmintrin.h.
5271 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
5272 * config/i386/x86intrin.h: Remove SSE5.
5273 * config/i386/mmintrin-common.h: Delete file.
5274 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
5276 2009-09-29 Richard Guenther <rguenther@suse.de>
5278 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
5279 resulting from stack temporaries on STRICT_ALIGNMENT targets.
5281 2009-09-29 Nick Clifton <nickc@redhat.com>
5283 * function.c (current_function_name): If there is no current
5284 function just return "<none>".
5286 2009-09-28 Sriraman Tallam <tmsriram@google.com>
5288 * tree-pass.h (register_pass_info): New structure.
5289 (pass_positioning_ops): Move enum from gcc-plugin.h.
5290 (register_pass): New function.
5291 * gcc-plugin.h (plugin_pass): Delete structure.
5292 (pass_positioning_ops): Delete enum.
5293 * plugin.c (regsiter_pass): Delete function.
5294 (position_pass): Delete function.
5295 (added_pass_nodes): Delete variable.
5296 (prev_added_pass_nodes): Delete variable.
5297 (pass_list_node): Delete structure.
5298 * passes.c (make_pass_instance): New function.
5299 (next_pass_1): Change to call make_pass_instance.
5300 (pass_list_node): Move structure from gcc-plugin.h.
5301 (added_pass_nodes): Move variable from plugin.c.
5302 (prev_added_pass_nodes): Move variable from plugin.c.
5303 (position_pass): New function.
5304 (register_pass): New function.
5306 2009-09-28 Easwaran Raman <eraman@google.com>
5308 * ifcvt.c (noce_try_abs): Recognize pattern and call
5309 expand_one_cmpl_abs_nojump.
5310 * optabs.c (expand_one_cmpl_abs_nojump): New function.
5311 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
5313 2009-09-28 Ian Lance Taylor <iant@google.com>
5316 * c-opts.c (c_common_handle_option): Don't set
5317 warn_jump_misses_init for -Wall.
5318 * doc/invoke.texi (Warning Options): Update documentation.
5320 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5322 * Makefile.in ($(out_object_file)): Depend on
5323 gt-$(basename $(notdir $(out_file))).h.
5325 2009-09-28 Richard Henderson <rth@redhat.com>
5327 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
5328 * except.c (gen_eh_region): Set it.
5329 (duplicate_eh_regions_1): Copy it.
5330 * tree-eh.c (lower_resx): Use it to determine which function
5333 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
5334 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
5335 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
5336 * tree.c (build_common_builtin_nodes): Remove parameter. Build
5337 BUILT_IN_CXA_END_CLEANUP if necessary.
5339 * c-common.c (c_define_builtins): Update call to
5340 build_common_builtin_nodes.
5342 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
5344 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
5346 2009-09-28 Michael Matz <matz@suse.de>
5348 * builtins.c (interclass_mathfn_icode): New helper.
5349 (expand_builtin_interclass_mathfn): Use it here, and split folding
5351 (fold_builtin_interclass_mathfn): ... this new folder.
5352 (build_call_nofold_loc): New static helper.
5353 (build_call_nofold): New wrapper macro for above.
5354 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
5355 (expand_builtin_pow): Ditto.
5356 (expand_builtin_memset_args): Ditto.
5357 (expand_builtin_printf): Ditto.
5358 (expand_builtin_fprintf): Ditto.
5359 (expand_builtin_sprintf): Ditto.
5360 (expand_builtin_memory_chk): Ditto.
5361 (expand_builtin_mempcpy_args): Ditto and don't call folders.
5362 (expand_builtin_stpcpy): Ditto.
5363 (expand_builtin_strcmp): Ditto.
5364 (expand_builtin_strncmp): Ditto.
5365 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
5366 (expand_builtin_strcpy_args): Don't call folders.
5367 (expand_builtin_memcmp): Ditto.
5368 (expand_builtin_strncpy): Ditto, and use target.
5369 (expand_builtin_memcpy): Ditto.
5370 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
5371 expand_builtin_strpbrk, expand_builtin_memmove,
5372 expand_builtin_memmove_args, expand_builtin_bcopy,
5373 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
5374 expand_builtin_strspn, expand_builtin_strcspn,
5375 expand_builtin_fputs): Remove these.
5376 (expand_builtin): Don't call the above, change calls to other
5377 expanders that changed prototype.
5378 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
5379 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
5380 fold_builtin_interclass_mathfn.
5381 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
5382 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
5384 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
5385 * passes.c (init_optimization_passes): Move pass_fold_builtins
5386 after last phiopt pass.
5387 * tree-inline.c (fold_marked_statements): When folding builtins
5388 iterate over all instruction potentially generated.
5389 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
5391 (fold_gimple_call): Use it to always fold calls (into potentially
5392 multiple instructions).
5393 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
5394 calls into zero at this time.
5395 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
5396 statements generated by builtin folding.
5398 2009-09-28 Nick Clifton <nickc@redhat.com>
5400 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
5402 2009-09-28 Duncan Sands <baldrick@free.fr>
5404 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
5405 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
5406 (register_callback): Dispatch it.
5407 (invoke_plugin_callbacks): Incorporate in sanity check.
5408 * ggc.h (ggc_register_cache_tab): Add declaration.
5409 * ggc-common.c (ggc_register_root_tab): Simplify.
5410 (const_ggc_cache_tab_t): New typedef.
5411 (extra_cache_vec): New vector of dynamically added cache tables.
5412 (ggc_register_cache_tab): New function.
5413 (ggc_scan_cache_tab): New function.
5414 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
5415 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
5417 2009-09-27 Richard Henderson <rth@redhat.com>
5419 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
5420 which we remove __builtin_stack_restore.
5422 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
5424 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
5425 to test for GRD_INVARIANT.
5426 (simple_rhs_p): Anything that's function_invariant_p is fine.
5428 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
5430 * gengtype.c (main): Use plunge_files instead of plugin_output.
5432 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
5433 Rafael Avila de Espindola <espindola@google.com>
5435 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
5436 Don't print pch related info if it is false.
5437 (main): Don't print pch info in plugin mode.
5439 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
5441 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
5442 with dw_val_class_const_double.
5443 (struct dw_val_struct): Replace val_long_long with val_double and
5444 adjust for above change.
5445 (output_loc_operands): Likewise.
5446 (add_AT_long_long): Rename into...
5447 (add_AT_double): ...this.
5448 (print_die): Replace dw_val_class_long_long with
5449 dw_val_class_const_double and adjust.
5450 (attr_checksum): Likewise.
5451 (same_dw_val_p): Likewise.
5452 (size_of_die): Likewise.
5453 (value_format): Likewise.
5454 (output_die): Likewise.
5455 (loc_descriptor) <CONST_DOUBLE>: Likewise.
5456 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
5457 instead of add_AT_long_long.
5458 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
5459 value with the precision of its type.
5461 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
5464 * c-typeck.c (build_conditional_expr): Use the readonly and
5465 volatile flags of the operand types, not of the operands itself.
5467 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
5469 * collect2.c (main): Look for -brtl before adding libraries.
5471 2009-09-27 Jonathan Gray <jsg@openbsd.org>
5473 * config.gcc: Update OpenBSD targets.
5474 * config/openbsd-stdint.h: New file.
5475 * config/openbsd-libpthread.h: New file.
5476 * config/openbsd.h: Update and break out LIB_SPEC definition.
5477 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
5478 * config/i386/openbsdelf.h: Correct types.
5479 * config/m68k/openbsd.h: Likewise.
5480 * config/mips/openbsd.h: Likewise.
5481 * config/vax/openbsd.h: Likewise.
5483 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
5485 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
5486 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
5487 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
5488 of the length and zero.
5490 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5492 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
5493 (FLAGS_H): Add options.h $(REAL_H).
5494 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
5495 (TREE_VECTORIZER_H): New.
5496 (EBITMAP_H): Renamed from EBIMAP_H.
5497 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
5498 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
5499 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
5500 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
5501 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
5502 (graphite-clast-to-gimple.o, graphite-dependences.o)
5503 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
5504 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
5505 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
5506 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
5507 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
5508 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
5509 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
5510 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
5511 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
5512 updated and fixed as per above changes and per
5513 check_makefile_deps.sh output.
5516 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
5517 * configure: Regenerate.
5519 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5521 * doc/install.texi: Update minimum MPC version to 0.7.
5523 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
5525 * doc/install.texi (Binaries): Remove reference to the binary
5526 distribution CD-ROM from the FSF.
5528 2009-09-26 Michael Matz <matz@suse.de>
5532 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
5533 that are mentioned in the body.
5535 2009-09-26 Michael Matz <matz@suse.de>
5537 PR tree-optimization/41454
5538 * tree-ssa-dom (stmts_to_rescan): Remove variable.
5539 (tree_ssa_dominator_optimize): Don't allocate and free it.
5540 (dom_opt_leave_block): Don't iterate over it.
5541 (eliminate_redundant_computations): Don't return a value.
5542 (cprop_operand, cprop_into_stmt): Ditto.
5543 (optimize_stmt): Don't defer updating stmts.
5545 2009-09-25 Dodji Seketeli <dodji@redhat.com>
5547 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
5548 generic_parameter_die, template_parameter_pack_die,
5549 gen_formal_parameter_die, gen_subprogram_die): Adjust after
5550 renaming DW_TAG_formal_parameter_pack and
5551 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
5552 and DW_TAG_GNU_template_parameter_pack.
5554 2009-09-25 Anatoly Sokolov <aesok@post.ru>
5556 * config/v850/v850.h (FUNCTION_VALUE): Remove.
5557 * config/v850/v850.c (v850_function_value): New function.
5558 (TARGET_FUNCTION_VALUE): Define.
5560 2009-09-25 Jakub Jelinek <jakub@redhat.com>
5562 * tree-vect-stmts.c (vectorizable_call): Call
5563 mark_symbols_for_renaming after vect_finish_stmt_generation.
5565 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
5566 to loc_descriptor_from_tree.
5567 (add_location_or_const_value_attribute): Pass 0 instead of 2
5568 for decl_by_reference_p decls.
5570 2009-09-25 Richard Guenther <rguenther@suse.de>
5573 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
5576 2009-09-25 Ben Elliston <bje@au.ibm.com>
5578 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
5581 2009-09-25 Alan Modra <amodra@bigpond.net.au>
5583 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
5584 form of instruction.
5586 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5589 * fold-const.c (const_binop): Handle complex int division.
5590 * tree-complex.c (expand_complex_div_straight,
5591 expand_complex_div_wide): Update comments.
5593 2009-09-24 DJ Delorie <dj@redhat.com>
5596 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
5597 (reg_class): Likewise.
5598 (REG_CLASS_NAMES): Likewise.
5599 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
5600 (m32c_override_options): Disable -fivopts for M32C.
5602 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5604 * config/rs6000/predicates.md (indexed_or_indirect_operand):
5605 Delete VSX load/store with update support.
5606 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
5607 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
5611 (VStype_load_update): Ditto.
5612 (VStype_store_update): Ditto.
5613 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
5614 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
5616 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
5617 load/store with update builtins.
5619 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
5621 * libgcc2.c (L_trampoline): Prototype for getpagesize
5622 and mprotect in WINNT case.
5624 2009-09-24 Anatoly Sokolov <aesok@post.ru>
5626 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
5627 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
5628 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
5629 'outgoing' argument.
5630 (TARGET_FUNCTION_VALUE): Define.
5632 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5634 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
5636 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5639 * common.opt: Initialize dwarf_strict to -1.
5640 * toplev.c (process_options): Catch unset dwarf_strict
5641 and set to 0 for all targets not overriding.
5642 * config/darwin.c (darwin_override_options): Catch unset
5643 dwarf_strict and override to 1.
5645 2009-09-24 Jeff Law <law@redhat.com>
5647 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
5649 2009-09-24 Richard Guenther <rguenther@suse.de>
5651 PR tree-optimization/36143
5652 PR tree-optimization/38747
5653 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
5654 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
5656 2009-09-24 Jakub Jelinek <jakub@redhat.com>
5659 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
5660 return false instead of gcc_unreachable (). For CONST return the
5661 value returned by recursive call instead of always returning true.
5662 (tree_add_const_value_attribute): Return the value returned by
5663 add_const_value_attribute instead of always returning true if rtl
5666 2009-09-23 Justin Seyster <jrseys@gmail.com>
5668 * Makefile.in (PLUGIN_HEADERS): Include real.h.
5670 2009-09-24 Jakub Jelinek <jakub@redhat.com>
5672 * cgraphunit.c (cgraph_lower_function): Revert last change.
5673 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
5674 instead of DECL_NO_STATIC_CHAIN.
5675 * tree-cfg.c (verify_gimple_call): Likewise.
5676 * tree-nested.c (get_chain_decl, get_chain_field,
5677 convert_tramp_reference_op, convert_gimple_call): Likewise.
5678 (convert_all_function_calls): Likewise. Always set or clear
5679 DECL_STATIC_CHAIN initially, for !n->outer clear it.
5680 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
5681 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
5683 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
5684 DECL_NO_STATIC_CHAIN.
5685 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
5686 instead of DECL_NO_STATIC_CHAIN.
5687 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
5688 decl_function_context.
5689 * varasm.c (initializer_constant_valid_p): Likewise.
5690 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
5691 (DECL_STATIC_CHAIN): ... this.
5692 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
5693 instead of DECL_NO_STATIC_CHAIN.
5695 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
5696 Rafael Avila de Espindola <espindola@google.com>
5698 * gengtype.c (nb_plugin_files): Make it unsigned to match
5699 num_gt_files. Adjust other variables to avoid warnings.
5700 (main): Allocate an all zero lang_bitmap before each plugin file name
5701 to match regular file names.
5703 2009-09-23 Richard Henderson <rth@redhat.com>
5705 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
5706 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
5707 static chain passed in memory.
5708 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
5709 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
5710 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
5711 STATIC_CHAIN_REGNUM defined.
5713 * config/picochip/picochip-protos.h: s/class/klass/.
5714 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
5715 (picochip_static_chain): New.
5716 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
5717 (STATIC_CHAIN_INCOMING): Remove.
5719 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
5720 (xtensa_static_chain): New.
5721 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
5722 (STATIC_CHAIN_INCOMING): Remove.
5724 2009-09-23 Anatoly Sokolov <aesok@post.ru>
5726 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
5727 * config/pa/pa-protos.h (function_value): Remove.
5728 * config/pa/pa.c (pa_function_value): Rename from function_value.
5729 Make static, add 'outgoing' argument.
5730 (TARGET_FUNCTION_VALUE): Define.
5732 2009-09-23 Anatoly Sokolov <aesok@post.ru>
5734 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
5735 instead of cfun->machine->is_leaf.
5736 * config/avr/avr.h (machine_function): Remove is_leaf field.
5738 2009-09-23 Jakub Jelinek <jakub@redhat.com>
5741 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
5742 DW_OP_piece after DW_OP_stack_value, adjust size calculations
5743 for it, when DW_OP_stack_value and DW_OP_implicit_value has
5744 the same size, prefer DW_OP_stack_value.
5745 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
5746 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
5748 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
5751 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
5753 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
5756 * cfgexpand.c (convert_debug_memory_address): New.
5757 (expand_debug_expr): Convert base address and offset to the same
5758 mode. Use it to convert addresses to other modes. Accept
5761 2009-09-23 Dodji Seketeli <dodji@redhat.com>
5764 * function.h (types_used_by_vars_hash): Declare new hash table.
5765 (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
5766 equality and hash function for the hash table.
5767 (types_used_by_cur_var_decl): Declare a new global chained list.
5768 (types_used_by_var_decl_insert): Declare new function.
5769 * function.c (types_used_by_vars_hash): Define the hashtable ...
5770 (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
5771 its equality and hash functions.
5772 (hash_types_used_by_vars_entry): New hash helper.
5773 (types_used_by_cur_var_decl): Define the global chained list.
5774 (used_types_insert): Update the list of types used by the global
5775 variable being parsed.
5776 (types_used_by_var_decl_insert): Define new function.
5777 * c-common.h (record_types_used_by_current_var_decl): Declare ...
5778 * c-common.c (record_types_used_by_current_var_decl): ... new
5780 * c-decl.c (finish_decl): Record the types used by the global
5781 variable declaration we've just parsed.
5782 * dwarf2out.c (premark_used_types): Insert a new line between
5783 comment and function.
5784 (premark_used_types_helper): Fix comment.
5785 (premark_types_used_by_global_vars_helper,
5786 premark_types_used_by_global_vars): New functions.
5787 (prune_unused_types): Do not prune types used by global variables.
5789 2009-09-23 Richard Guenther <rguenther@suse.de>
5791 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
5792 produced for bigendian targets with promoted subregs.
5794 2009-09-23 Richard Guenther <rguenther@suse.de>
5796 * value-prof.c (gimple_ic): Purge old EH edges only after building
5799 2009-09-23 Nick Clifton <nickc@redhat.com>
5801 * config/arc/arc.c (arc_trampoline_init): Fix typo.
5803 2009-09-23 Jakub Jelinek <jakub@redhat.com>
5806 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
5809 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
5810 on non-nested functions.
5812 2009-09-23 Jakub Jelinek <jakub@redhat.com>
5813 Jan Hubicka <jh@suse.cz>
5815 * dwarf2out.c (loc_list_plus_const): Only define if
5816 DWARF2_DEBUGGING_INFO.
5817 (address_of_int_loc_descriptor): Likewise.
5820 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
5822 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
5825 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
5826 constant is more than zero.
5828 2009-09-23 Alan Modra <amodra@bigpond.net.au>
5831 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5832 call final to emit non-scheduled prologue, instead insert at entry.
5834 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
5835 Joseph S. Myers <joseph@codesourcery.com>
5837 * doc/install.texi (*-*-freebsd*): Add proper format codes.
5839 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
5840 Rafael Avila de Espindola <espindola@google.com>
5842 * gengtype.c (is_file_equal): New function.
5843 (close_output_files): Use is_file_equal. Free of->buf.
5845 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
5846 Rafael Avila de Espindola <espindola@google.com>
5848 * gengtype.c (write_types, write_local): Add the output_header
5849 argument. Update all callers.
5851 2009-09-22 Dodji Seketeli <dodji@redhat.com>
5853 * dwarf2out.c (template_parameter_pack_die,
5854 gen_formal_parameter_pack_die ): New functions.
5855 (make_ith_pack_parameter_name): Remove this function.
5856 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
5857 DW_TAG_formal_parameter_pack.
5858 (gen_generic_params_dies): Represent each template parameter pack
5859 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
5860 represented by usual DW_TAG_template_*_parameter DIEs that are
5861 children of the DW_TAG_template_parameter_pack element DIE.
5862 (generic_parameter_die): This doesn't deal with parameter pack
5863 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
5864 of parameter pack DIEs.
5865 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
5866 in certain cases, e.g. for pack elements.
5867 (gen_formal_types_die, gen_decl_die): Adjust usage of
5868 gen_formal_parameter_die.
5869 (gen_subprogram_die): Represent each function parameter pack by a
5870 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
5871 represented by usual DW_TAG_formal_parameter DIEs that are children
5872 of the DW_TAG_formal_parameter_pack DIE. Remove references to
5873 ____builtin_va_alist decls as no part of the compiler uses those
5875 * langhooks.h (struct lang_hooks_for_decls): Add
5876 function_parm_expanded_from_pack_p, get_generic_function_decl
5877 and function_parameter_pack_p hooks. Fix comment for
5878 get_innermost_generic_parms hook.
5879 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
5880 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
5881 macros and use them to initialize lang_hook.
5883 2009-09-22 Richard Henderson <rth@redhat.com>
5885 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
5886 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
5887 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
5888 on TRAMPOLINE_TEMPLATE.
5889 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
5890 TRAMPOLINE_ADJUST_ADDRESS.
5891 * targhooks.c (default_asm_trampoline_template): Remove.
5892 (default_trampoline_adjust_address): Remove.
5893 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
5894 * targhooks.h: Update decls.
5896 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
5898 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
5899 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
5900 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
5902 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
5905 * reload1.c (reload): Reset debug insns with pseudos without
5908 2009-09-22 Janis Johnson <janis187@us.ibm.com>
5910 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
5911 unconditional true for decimal float modes.
5912 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
5913 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
5915 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
5917 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
5918 Enable a new case for __FreeBSD__ >= 7.
5919 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
5920 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
5921 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
5922 and USE_LD_AS_NEEDED.
5924 * doc/install.texi (*-*-freebsd*): Update target information.
5926 2009-09-22 Richard Guenther <rguenther@suse.de>
5929 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
5930 arrays really properly.
5932 2009-09-22 Richard Henderson <rth@redhat.com>
5935 * target.h (struct gcc_target): Add asm_out.trampoline_template,
5936 calls.static_chain, calls.trampoline_init,
5937 calls.trampoline_adjust_address.
5938 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5939 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5940 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5941 * builtins.c (expand_builtin_setjmp_receiver): Use
5942 targetm.calls.static_chain; only clobber registers.
5943 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
5944 set up memory attributes properly for the trampoline block.
5945 (expand_builtin_adjust_trampoline): Use
5946 targetm.calls.trampoline_adjust_address.
5947 * calls.c (prepare_call_address): Add fndecl argument. Use
5948 targetm.calls.static_chain.
5949 * df-scan.c (df_need_static_chain_reg): Remove.
5950 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
5951 consolodate static chain handling.
5952 * doc/tm.texi: Document new hooks.
5953 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
5954 (init_emit_regs): Don't initialize them.
5955 * expr.h (prepare_call_address): Update decl.
5956 * final.c (profile_function): Use targetm.calls.static_chain.
5957 * function.c (expand_function_start): Likewise.
5958 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
5959 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
5960 only clobber registers.
5961 * targhooks.c (default_static_chain): New.
5962 (default_asm_trampoline_template, default_trampoline_init): New.
5963 (default_trampoline_adjust_address): New.
5964 * targhooks.h: Declare them.
5965 * varasm.c (assemble_trampoline_template): Use
5966 targetm.asm_out.trampoline_template. Make the memory block const
5969 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
5970 alpha_initialize_trampoline. Make static. Merge VMS parameter
5971 differences into the TARGET_ABI_OPEN_VMS code block.
5972 (TARGET_TRAMPOLINE_INIT): New.
5973 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
5974 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
5975 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
5976 (INITIALIZE_TRAMPOLINE): Remove.
5978 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
5979 (TRAMPOLINE_TEMPLATE): Merge with ...
5980 (INITIALIZE_TRAMPOLINE): ... this and move ...
5981 * config/arc/arc.c (arc_trampoline_init): ... here.
5982 (TARGET_TRAMPOLINE_INIT): New.
5984 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5985 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5986 (arm_asm_trampoline_template): New.
5987 (arm_trampoline_init, arm_trampoline_adjust_address): New.
5988 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
5989 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
5990 code to arm_asm_trampoline_template.
5991 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
5992 arm_trampoline_adjust_address.
5993 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
5994 adjust for target hook parameters.
5996 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
5999 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
6000 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
6001 (bfin_trampoline_init): Rename from initialize_trampoline;
6002 make static; update for target hook parameters.
6003 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
6004 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
6005 bfin_asm_trampoline_template.
6006 (INITIALIZE_TRAMPOLINE): Remove.
6008 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6009 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
6010 cris_trampoline_init): New.
6011 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
6012 cris_asm_trampoline_template.
6013 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
6014 adjust for target hook parameters.
6016 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
6018 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6019 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
6020 fr30_trampoline_init): New.
6021 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
6022 fr30_asm_trampoline_template.
6023 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
6024 adjust for target hook parameters.
6026 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
6027 (frv_trampoline_init): Rename from frv_initialize_trampoline;
6028 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
6029 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
6030 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
6032 * config/h8300/h8300.c (h8300_trampoline_init): New.
6033 (TARGET_TRAMPOLINE_INIT): New.
6034 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
6035 to h8300_trampoline_init and adjust for hook parameters.
6037 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
6038 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
6039 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
6040 make static; adjust for hook parameters.
6041 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
6043 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6044 (TARGET_TRAMPOLINE_INIT): New.
6045 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
6046 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
6047 iq2000_asm_trampoline_template.
6048 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
6049 (TRAMPOLINE_CODE_SIZE): New.
6050 (TRAMPOLINE_SIZE): Use it.
6051 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
6053 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
6054 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
6055 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
6056 adjust for hook parameters.
6057 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
6059 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
6060 (m32r_trampoline_init): New.
6061 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
6062 m32r_trampoline_init.
6064 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
6065 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
6066 make static; update for hook parameters.
6067 * config/m68hc11/m68hc11-protos.h: Update.
6068 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
6070 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6071 (TARGET_TRAMPOLINE_INIT): New.
6072 (mcore_function_value): Fix typo.
6073 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
6074 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
6075 to mcore_asm_trampoline_template.
6076 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
6078 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
6079 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
6080 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
6081 update for hook parameters.
6082 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
6084 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6085 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6086 mips_trampoline_init): New.
6087 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
6088 mips_asm_trampoline_template.
6089 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
6090 update for hook parameters.
6092 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6093 (TARGET_TRAMPOLINE_INIT): New.
6094 (mmix_trampoline_size): Remove.
6095 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
6096 make static. Remove out-of-date tetra vs octa comment.
6097 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
6098 make static; update for hook parameters.
6099 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
6100 (INITIALIZE_TRAMPOLINE): Remove.
6101 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
6102 (TRAMPOLINE_ALIGNMENT): New.
6103 * gcc/config/mmix/mmix-protos.h: Update.
6105 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6106 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6107 mn10300_trampoline_init): New.
6108 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
6109 mn10300_asm_trampoline_template.
6110 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
6112 * config/moxie/moxie.c (moxie_static_chain,
6113 moxie_asm_trampoline_template, moxie_trampoline_init,
6114 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
6115 TARGET_TRAMPOLINE_INIT): New.
6116 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
6117 moxie_trampoline_init.
6118 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
6119 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
6121 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
6122 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
6123 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
6124 pa_trampoline_adjust_address): New.
6125 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
6126 pa_asm_trampoline_template.
6127 (TRAMPOLINE_ALIGNMENT): New.
6128 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
6129 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
6130 adjust for hook parameters.
6131 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
6133 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
6134 (TARGET_TRAMPOLINE_INIT): New.
6135 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
6136 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
6138 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
6140 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
6141 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
6142 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
6143 make static; adjust parameters for the hook.
6144 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
6146 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
6147 s390_trampoline_template; make static.
6148 (s390_trampoline_init): Rename from s390_initialize_trampoline;
6149 make static; adjust for target hook.
6150 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
6151 * config/s390/s390-protos.h: Remove trampoline decls.
6152 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
6153 (TRAMPOLINE_TEMPLATE): Remove.
6154 (TRAMPOLINE_ALIGNMENT): New.
6156 * config/score/score-protos.h (score_initialize_trampoline): Remove.
6157 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6158 (TARGET_TRAMPOLINE_INIT): New.
6159 (score_asm_trampoline_template): New.
6160 (score_trampoline_init): Rename from score_initialize_trampoline;
6161 make static; adjust for hook parameters.
6162 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
6163 score[37]_asm_trampoline_template.
6164 (INITIALIZE_TRAMPOLINE): Remove.
6165 * config/score/score3.c (score3_asm_trampoline_template): New.
6166 (score3_trampoline_init): Rename from score3_initialize_trampoline;
6167 adjust for target hook.
6168 * config/score/score7.c (score7_asm_trampoline_template): New.
6169 (score7_trampoline_init): Rename from score7_initialize_trampoline;
6170 adjust for target hook.
6171 * config/score/score3.h, config/score/score7.h: Update.
6173 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
6174 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
6175 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
6176 (sh_trampoline_init): Rename from sh_initialize_trampoline;
6177 make static; adjust for target hook parameters.
6178 (sh_trampoline_adjust_address): New.
6179 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
6180 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
6182 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
6183 (sparc32_initialize_trampoline): Rename from
6184 sparc_initialize_trampoline; make static; replace tramp parameter
6185 with m_tramp and update memory accesses.
6186 (sparc64_initialize_trampoline): Similarly.
6187 (sparc_trampoline_init): New.
6188 * config/sparc/sparc-protos.h: Remove trampoline decls.
6189 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
6190 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
6192 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
6193 (array_to_constant): Make ARR parameter const.
6194 (spu_trampoline_init): Rename from spu_initialize_trampoline;
6195 make static; update for hook parameters.
6196 * config/spu/spu-protos.h: Update decls.
6197 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
6199 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
6200 from xstormy16_initialize_trampoline; make static; update for
6202 (TARGET_TRAMPOLINE_INIT): New.
6203 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
6205 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6206 (TARGET_TRAMPOLINE_INIT): New.
6207 (v850_can_eliminate): Make static.
6208 (v850_asm_trampoline_template, v850_trampoline_init): New.
6209 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
6210 v850_asm_trampoline_template.
6211 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
6212 and adjust for target hook parameters.
6214 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6215 (TARGET_TRAMPOLINE_INIT): New.
6216 (vax_asm_trampoline_template, vax_trampoline_init): New.
6217 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
6218 vax_asm_trampoline_template.
6219 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
6221 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
6222 (TARGET_TRAMPOLINE_INIT): New.
6223 (xtensa_asm_trampoline_template): Rename from
6224 xtensa_trampoline_template; make static.
6225 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
6226 make static; update for hook parameters.
6227 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
6228 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
6229 (INITIALIZE_TRAMPOLINE): Remove.
6231 * config/i386/i386.c (ix86_function_regparm): Do not issue an
6232 error for nested functions with regparm=3.
6233 (ix86_compute_frame_layout): Adjust frame pointer offset for
6234 ix86_static_chain_on_stack.
6235 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
6236 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
6237 don't reset to UNITS_PER_WORD.
6238 (ix86_emit_leave): Adjust ix86_cfa_state.
6239 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
6240 (ix86_static_chain): New.
6241 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
6242 make static; update for target hook parameters; use ix86_static_chain.
6243 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
6244 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
6245 (INITIALIZE_TRAMPOLINE): Remove.
6246 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
6247 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
6248 to the end. Add static_chain_on_stack.
6249 (ix86_static_chain_on_stack): New.
6251 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
6252 (m68k_output_mi_thunk): Don't use static_chain_rtx.
6253 (m68k_trampoline_init): New.
6254 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
6255 m68k_trampoline_init and adjust for hook parameters.
6256 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
6257 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
6259 2009-09-22 Jakub Jelinek <jakub@redhat.com>
6261 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
6262 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
6264 * reload1.c (reload): Call wrap_constant when substituting
6265 reg for equiv inside of DEBUG_INSNs.
6268 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
6269 add_call_src_coords_attributes, add_high_low_attributes,
6270 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
6271 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
6272 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
6273 when -gdwarf-2 -gstrict-dwarf.
6274 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
6275 -gdwarf-[23] -gstrict-dwarf.
6276 (address_of_int_loc_descriptor, loc_descriptor,
6277 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
6278 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
6279 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
6281 2009-09-22 Richard Guenther <rguenther@suse.de>
6283 PR tree-optimization/41428
6284 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
6285 (ccp_finalize): Pass it to substitute_and_fold.
6287 2009-09-22 Richard Guenther <rguenther@suse.de>
6289 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
6290 (substitute_and_fold): Adjust prototype.
6291 * tree-vrp.c (vrp_evaluate_conditional): Make static.
6292 (simplify_stmt_using_ranges): Likewise.
6293 (fold_predicate_in): Move here from tree-ssa-propagate.c.
6294 (vrp_fold_stmt): New function.
6295 (vrp_finalize): Pass it to substitute_and_fold.
6296 * tree-flow.h (vrp_evaluate_conditional): Remove.
6297 (simplify_stmt_using_ranges): Likewise.
6298 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
6299 * tree-ssa-copy.c (fini_copy_prop): Likewise.
6300 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
6302 (fold_predicate_in): Move to tree-vrp.c.
6303 (substitute_and_fold): Use the callback instead of calling into
6304 tree-vrp.c functions directly.
6306 2009-09-22 Jakub Jelinek <jakub@redhat.com>
6308 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
6309 comparison warning on rs6000.
6312 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
6313 GIMPLE_EH_MUST_NOT_THROW cleanup.
6314 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
6316 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
6319 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
6320 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
6321 LIB_SPEC for darwin10 and later since it always uses the unwinder in
6322 libSystem which is derived from the gcc 4.2.1 unwinder.
6324 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
6327 * varasm.c (default_encode_section_info): Copy TLS model into
6328 sym_ref flags regardless of backend support for TLS, for all
6329 model types except TLS_MODEL_EMULATED.
6331 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
6334 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
6335 we can handle it correctly.
6337 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
6339 * doc/install.texi (os2): Remove section.
6341 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
6343 * doc/standards.texi (Objective-C): Adjust two URLs.
6345 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
6347 * tree-tailcall.c (process_assignment): Don't check if a
6348 multiplication or an addition are already present.
6349 (find_tail_calls): Combine multiple additions and multiplications.
6350 (adjust_accumulator_values): Emit accumulators.
6352 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
6354 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
6355 xmm register restore.
6357 2009-09-21 Jan Hubicka <jh@suse.cz>
6359 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
6360 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
6363 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
6365 * stor-layout.c (layout_type): Remove obsolete code.
6367 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
6370 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
6372 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6375 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
6376 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
6377 (fold_builtin_2, do_mpc_arg1): Update accordingly.
6378 * fold-const.c (const_binop): Likewise.
6379 * real.h (do_mpc_arg2): Update prototype.
6381 2009-09-20 Jan Hubicka <jh@suse.cz>
6383 * dwarf2out.c (add_const_value_attribute): Return true if successful.
6384 (add_location_or_const_value_attribute): Rewrite using
6386 (tree_add_const_value_attribute): Return true if successful.
6387 (tree_add_const_value_attribute_for_decl): Likewise.
6389 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
6390 (loc_descriptor): ... here;
6391 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
6392 (cst_pool_loc_descr): Break out from ...; do not reffer constant
6393 pool items that was not marked for output.
6394 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
6395 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
6396 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
6397 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
6398 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
6399 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
6400 DW_OP_stack_value to get address of items that are not available
6402 (dw_loc_list): Handle single element lists correctly.
6404 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
6405 Pascal Obry <obry@adacore.com>
6407 * unwind-dw2-fde.c (classify_object_over_fdes):
6408 Cast the constant 1 to _Unwind_Ptr.
6409 (add_fdes): Likewise.
6410 (linear_search_fdes): Likewise.
6412 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
6414 * stor-layout.c (set_sizetype): Avoid useless type copy.
6416 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
6418 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
6420 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
6421 * configure, config.in: Regenerate.
6422 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
6424 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
6425 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
6426 for global data if the output could be used in a shared library.
6427 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6428 to 0 if TARGET_WRITABLE_EH_FRAME.
6430 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
6432 PR rtl-optimization/39886
6433 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
6434 just when insn is equal to BB_END (bb).
6436 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
6438 * config/mips/mips.opt (mrelax-pic-calls): New option.
6439 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
6441 (mips_unspec_call): Change "unspec_call" expander into this.
6442 (mips_strip_unspec_call): New function.
6443 (mips_got_load): Call mips_unspec_call instead of
6444 gen_unspec_call<mode>.
6445 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
6447 (mips_cfg_in_reorg): New function.
6448 (mips16_lay_out_constants): Use it to decide whether to call
6449 CFG-aware insn splitting.
6450 (r10k_insert_cache_barriers): Move CFG set-up code from here to
6451 mips_reorg. Move DF set-up code from here ...
6452 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
6454 (mips_reorg): Call mips_df_reorg instead of
6455 r10k_insert_cache_barriers. Move CFG set-up code here from
6456 r10k_insert_cache_barriers.
6457 (mips_call_expr_from_insn): New function.
6458 (mips_pic_call_symbol_from_set): Likewise.
6459 (mips_find_pic_call_symbol): Likewise.
6460 (mips_annotate_pic_call_expr): Likewise.
6461 (mips_get_pic_call_symbol): Likewise.
6462 (mips_annotate_pic_calls): Likewise.
6463 (mips_override_options): Disable -mrelax-pic-calls unless PIC
6465 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
6466 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
6467 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
6469 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
6470 (unspec_call<mode>): Remove it.
6471 (sibcall_internal, sibcall_value_internal,
6472 sibcall_value_multiple_internal, call_internal, call_split,
6473 call_value_internal, call_value_split,
6474 call_value_multiple_internal, call_value_multiple_split): Pass
6475 SIZE_OPNO to MIPS_CALL.
6476 (call_internal_direct, call_direct_split,
6477 call_value_internal_direct, call_value_direct_split): Pass -1 as
6478 SIZE_OPNO to MIPS_CALL.
6479 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
6480 * configure: Regenerate.
6481 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
6482 and -mno-relax-pic-calls.
6483 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
6485 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6488 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
6489 in the directory this rule is called from, rather than the
6490 toplevel 'gcc' directory, to fix in-tree build.
6492 2009-09-19 Chris Demetriou <cgd@google.com>
6494 PR preprocessor/28435:
6495 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
6496 to cpplib that the preprocessor output is needed.
6498 2009-09-19 Jakub Jelinek <jakub@redhat.com>
6500 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
6501 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
6502 *return_and_restore_fpregs_<mode>,
6503 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
6506 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
6507 instead of assuming it has always a REG inside of it.
6509 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
6511 * config/freebsd.h: Update comment on types.
6512 (WINT_TYPE): Define.
6514 2009-09-18 Jason Merrill <jason@redhat.com>
6516 * c.opt: Add -fno-deduce-init-list.
6518 2009-09-18 Neil Vachharajani <nvachhar@google.com>
6520 * value-prof.c (interesting_stringop_to_profile_p): Added output
6521 argument to indicate which parameter is the size parameter.
6522 * value-prof.c (gimple_stringop_fixed_value): Use
6523 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
6524 * value-prof.c (gimple_stringops_transform): Update call sites to
6525 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
6527 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
6530 From David Binderman <dcb314@hotmail.com>:
6531 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
6532 local variable f. Remove stale comments.
6533 (ix86_compute_frame_layout): Remove useless local variable total_size.
6534 Remove #if 0'd code.
6535 (legitimate_address_p): Remove useless local variables
6536 reason_rtx and reason.
6537 (ix86_split_copysign_const): Remove useless local variable op1.
6538 (scale_counter): Remove useless local variable piece_size_mask.
6540 2009-09-18 Jakub Jelinek <jakub@redhat.com>
6542 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
6545 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6548 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
6550 2009-09-17 Jakub Jelinek <jakub@redhat.com>
6552 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
6555 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
6557 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
6558 DW_OP_implicit_value even without dwarf_version 4.
6560 2009-09-17 Jan Hubicka <jh@suse.cz>
6562 * dwarf2out.c: Include tree-pass.h and gimple.h.
6563 (loc_list_plus_const): New function.
6564 (loc_descriptor_from_tree_1): Rename to ...
6565 (loc_descriptor_from_tree): ... remove original.
6566 (loc_list_from_tree): New function.
6567 (add_AT_location_description): Accept location list.
6568 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
6569 (concatn_mem_loc_descriptor): Remove.
6570 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
6572 (secname_for_decl): Move up.
6573 (hidden_reference_p): New function; break out from ...
6574 (loc_by_refernece): ... here; move up.
6575 (dw_loc_list): New function.
6576 (single_element_loc_list): New function.
6577 (single_element_loc_list_p): New function.
6578 (add_loc_descr_to_each): New function.
6579 (add_loc_list): New function.
6580 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
6581 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
6582 add diagnostics why expansion failed.
6583 (add_location_or_const_value_attribute): Support location lists.
6584 (add_bound_info): Likewise.
6585 (descr_info_loc): Update call of loc_descriptor_from_tree.
6586 (gen_variable_die): Work on location lists.
6587 * final.c (pass_final): Add dump file.
6588 * Makefile.in (dwarf2out.o): Add new dependencies.
6590 2009-09-17 Janis Johnson <janis187@us.ibm.com>
6593 * real.c decimal_from_integer, decimal_integer_string): New.
6594 (real_from_integer): Use them as special case for decimal float.
6595 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
6596 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
6597 Do not append zero after the decimal point in string to convert.
6599 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
6601 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
6602 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
6604 2009-09-17 Martin Jambor <mjambor@suse.cz>
6606 * common.opt (fipa-sra): New switch.
6607 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
6608 * timevar.def (TV_IPA_SRA): New timevar.
6609 * params.def (ipa-sra-ptr-growth-factor): New parameter.
6610 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
6611 * tree-sra.c: Include cgraph.c.
6612 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
6613 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
6614 and grp_not_necessarilly_dereferenced.
6615 (func_param_count): New variable.
6616 (encountered_apply_args): New variable.
6617 (bb_dereferences): New variable.
6618 (final_bbs): New variable.
6619 (no_accesses_representant): New variable.
6620 (no_accesses_p): New function.
6621 (dump_access): Dump the new fields.
6622 (sra_initialize): Set encountered_apply_args to false.
6623 (get_ssa_base_param): New function.
6624 (mark_parm_dereference): New function.
6625 (create_access): Caring for INIDRECT_REFs and different handling of
6626 varialble length accesses in early IPA SRA. Store the stmt - a new
6627 parameter - to the new access.
6628 (build_access_from_expr_1): New parameter stmt, passed to
6629 create_access. Handle INDIRECT_REFs.
6630 (build_access_from_expr): Pass the current statement to
6631 build_access_from_expr_1.
6632 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
6634 (build_accesses_from_assign): Pass the current statement to
6635 build_access_from_expr_1. Do not create assign links in IPA-SRA.
6636 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
6637 final_bbs when necessary. Check for calls to __builtin_apply_args.
6638 Fixup EH info if anythng was changed.
6639 (is_unused_scalar_param): New function.
6640 (ptr_parm_has_direct_uses): New function.
6641 (find_param_candidates): New function.
6642 (mark_maybe_modified): New function.
6643 (analyze_modified_params): New function.
6644 (propagate_dereference_distances): New function.
6645 (dump_dereferences_table): New function.
6646 (analyze_caller_dereference_legality): New function.
6647 (unmodified_by_ref_scalar_representative): New function.
6648 (splice_param_accesses): New function.
6649 (decide_one_param_reduction): New function.
6650 (enum ipa_splicing_result): New type.
6651 (splice_all_param_accesses): New function.
6652 (get_param_index): New function.
6653 (turn_representatives_into_adjustments): New function.
6654 (analyze_all_param_acesses): New function.
6655 (get_replaced_param_substitute): New function.
6656 (get_adjustment_for_base): New function.
6657 (replace_removed_params_ssa_names): New function.
6658 (sra_ipa_reset_debug_stmts): New function.
6659 (sra_ipa_modify_expr): New function.
6660 (sra_ipa_modify_assign): New function.
6661 (convert_callers): New function.
6662 (modify_function): New function.
6663 (ipa_sra_preliminary_function_checks): New function.
6664 (ipa_early_sra): New function.
6665 (ipa_early_sra_gate): New function.
6666 (pass_early_ipa_sra): New variable.
6667 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
6669 2009-09-17 Michael Matz <matz@suse.de>
6672 * tree.c (build_type_attribute_qual_variant): Export.
6673 * tree.h (build_type_attribute_qual_variant): Declare.
6674 * tree-inline.c (remap_type_1): Use it to build variants with
6675 the original qualifiers and attributes.
6677 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6679 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
6680 without a fallthrough edge.
6682 2009-09-16 DJ Delorie <dj@redhat.com>
6684 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
6685 chip and ignore the "fast_interrupt" attribute if so.
6687 2009-09-16 Richard Henderson <rth@redhat.com>
6690 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
6693 2009-09-16 Richard Henderson <rth@redhat.com>
6696 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
6697 is set only if DECL_NO_STATIC_CHAIN is unset.
6698 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
6699 (FOR_EACH_NEST_INFO): New.
6700 (walk_all_functions): Use it.
6701 (finalize_nesting_tree): Likewise.
6702 (unnest_nesting_tree): Likewise.
6703 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
6704 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
6705 (convert_gimple_call): Early out if gimple_call_chain already set.
6706 (convert_all_function_calls): Iterate until no new functions
6707 require a static chain.
6708 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
6709 when building a trampoline. Use dump_function_to_file instead
6711 (lower_nested_functions): Open dump_file. Validate that decls
6712 that have DECL_NO_STATIC_CHAIN from the front end don't have that
6713 bit reset by this pass.
6715 2009-09-16 Michael Matz <matz@suse.de>
6718 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
6719 shorten decl_common_unused.
6720 (DECL_RESTRICTED_P): New accessor.
6721 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
6722 to disambiguate marked decls and restrict pointers.
6724 2009-09-16 Richard Henderson <rth@redhat.com>
6727 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
6729 2009-09-16 Jakub Jelinek <jakub@redhat.com>
6731 * integrate.c (set_block_abstract_flags): Call
6732 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
6734 2009-09-16 Richard Guenther <rguenther@suse.de>
6737 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
6740 2009-09-16 DJ Delorie <dj@redhat.com>
6741 Kaz Kojima <kkojima@gcc.gnu.org>
6743 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
6744 (sh_expand_prologue): Update calls to output_stack_adjust.
6745 (sh_expand_epilogue): Likewise.
6747 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
6750 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
6751 trying to limit the extent of searches in the insn stream.
6753 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
6754 Jakub Jelinek <jakub@redhat.com>
6758 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
6760 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
6761 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
6762 (rs6000_savres_strategy): Always save FP registers inline if the
6763 target doesn't support hardware double-precision. Set the above
6764 bits in return value when needed.
6765 (rs6000_savres_routine_sym): Fix computation for cache selector.
6766 Mark the generated symbol as a function. Rename exitp argument to
6767 lr. Move code for determining the name of the symbol...
6768 (rs6000_savres_routine_name): ...here. New function. Add cases for
6769 getting the names right on AIX and 64-bit Linux.
6770 (savres_routine_name): New variable.
6771 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
6772 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
6773 on what the target routine uses as a base register. If savep && lr
6774 describe saving of r0 into memory slot.
6775 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
6776 line calls for AIX ABI.
6777 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
6778 determine FP save/restore functions.
6779 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
6780 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
6782 (rs6000_emit_epilogue): Adjust computation of restore_lr.
6783 Duplicate restoration of LR and execute the appropriate one
6784 depending on whether GPRs are being restored inline. Set r11 from
6785 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
6786 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
6787 Fix out of line calls for AIX ABI.
6788 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
6790 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
6792 (*restore_gpregs_spe): Likewise.
6793 (*return_and_restore_gpregs_spe): Likewise.
6794 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
6795 Define to empty string unconditionally.
6796 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
6797 Define to empty string unconditionally.
6798 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
6801 2009-09-15 Jan Hubicka <jh@suse.cz>
6803 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
6804 * params.def (inline-insns-auto): Likewise.
6806 2009-09-15 Martin Jambor <mjambor@suse.cz>
6808 * ipa-inline.c (estimate_function_body_sizes): Dump info about
6809 individual statements only at TDF_DETAILS dump level. Format
6810 source for 80 characters per line.
6812 2009-09-15 Christian Bruel <christian.bruel@st.com>
6814 * regrename.c (do_replace): Update REG_DEAD notes.
6816 2009-09-15 Revital Eres <eres@il.ibm.com>
6818 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
6819 * targhooks.c (default_builtin_support_vector_misalignment):
6820 New builtin function.
6821 * targhooks.h (default_builtin_support_vector_misalignment):
6823 * target.h (builtin_support_vector_misalignment):
6824 New field in struct gcc_target.
6825 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
6826 new builtin function.
6827 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
6829 * config/rs6000/rs6000.c
6830 (rs6000_builtin_support_vector_misalignment): New function.
6831 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
6833 2009-09-15 Jie Zhang <jie.zhang@analog.com>
6835 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
6837 (bfin_optimize_loop): Likewise.
6838 (bfin_gen_bundles): Likewise.
6839 (workaround_speculation): Likewise.
6840 (find_load): Return NULL_RTX for debug_insn.
6842 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
6844 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
6847 2009-09-14 DJ Delorie <dj@redhat.com>
6849 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
6850 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
6853 2009-09-14 Richard Henderson <rth@redhat.com>
6854 Jakub Jelinek <jakub@redhat.com>
6856 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
6857 * cfgbuild.c (make_edges): Handle asm goto.
6858 * cfglayout.c (fixup_reorder_chain): Likewise.
6859 * cfgrtl.c (patch_jump_insn): Likewise.
6860 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
6861 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
6862 (gimple_build_asm_vec): Add and use labels parameter.
6863 (gimple_build_asm): Remove.
6864 (walk_gimple_asm): Walk labels too.
6865 * gimple.def (GIMPLE_ASM): Update docs.
6866 * gimple.h: Update decls.
6867 (struct gimple_statement_asm): Change nc to use unsigned char;
6869 (gimple_asm_nlabels): New.
6870 (gimple_asm_label_op, gimple_asm_set_label_op): New.
6871 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
6872 into gimple_build_asm_vec.
6873 * jump.c (mark_jump_label_asm): New.
6874 (mark_jump_label): Use it.
6875 (redirect_jump_1): Handle asm goto.
6876 (invert_jump_1): Soft fail if X is null.
6877 * recog.c (extract_asm_operands): New.
6878 (asm_noperands): Use it; handle asm labels.
6879 (decode_asm_operands): Use extract_asm_operands.
6880 (asm_operand_ok): Properly handle empty string.
6881 * reg-stack.c (get_asm_operands_in_out): Rename from
6882 get_asm_operand_n_inputs; use extract_asm_operands; return both
6883 inputs and outputs by reference; update all callers.
6884 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
6885 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
6886 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
6887 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
6888 (extract_asm_operands): Declare.
6889 * stmt.c (expand_asm_operands): Add and use labels parameter.
6890 (check_unique_operand_names): Likewise.
6891 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
6892 (expand_asm_stmt): Handle asm labels.
6893 * tree-cfg.c (make_gimple_asm_edges): New.
6894 (make_edges): Use it.
6895 (cleanup_dead_labels): Handle asm labels.
6896 (is_ctrl_altering_stmt): Likewise.
6897 (gimple_redirect_edge_and_branch): Likewise.
6898 * tree.def (ASM_EXPR): Add 5th operand.
6899 * tree.h (ASM_LABELS): New.
6900 (resolve_asm_operand_names): Update decl.
6902 * c-parser.c (c_parser_asm_statement): Parse asm goto.
6903 (c_parser_asm_goto_operands): New.
6904 * c-tree.h (build_asm_expr): Update decl.
6905 * c-typeck.c (build_asm_expr): Add and use labels parameter.
6906 * doc/extend.texi: Document asm goto.
6908 2009-09-14 Richard Henderson <rth@redhat.com>
6910 * except.h: Update declarations.
6911 (struct pointer_map_t): Forward declare.
6912 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
6913 (struct eh_landing_pad_d, eh_landing_pad): New.
6914 (struct eh_catch_d, eh_catch): New.
6915 (struct eh_region_d): Remove next_region_sharing_label, aka,
6916 label, tree_label, landing_pad, post_landing_pad, resume,
6917 may_contain_throw. Rename region_number to index. Remove
6918 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
6919 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
6920 (VEC(eh_landing_pad,gc)): New.
6921 (struct eh_status): Remove last_region_number. Add lp_array,
6922 throw_stmt_table, ttype_data, ehspec_data.
6923 (ehr_next, FOR_ALL_EH_REGION_AT): New.
6924 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
6925 * except.c (lang_protect_cleanup_actions): Return tree.
6926 (struct ehl_map_entry): Remove.
6927 (init_eh_for_function): Push zero entries for region and lp_array.
6928 (gen_eh_region): Add to region_array immediately.
6929 (gen_eh_region_catch): Operate on eh_catch objects.
6930 (gen_eh_landing_pad): New.
6931 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
6932 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
6933 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
6934 (get_eh_landing_pad_from_number_fn): New.
6935 (get_eh_landing_pad_from_number): New.
6936 (get_eh_region_from_lp_number_fn): New.
6937 (get_eh_region_from_lp_number): New.
6938 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
6939 (get_exception_pointer, get_exception_filter): Remove.
6940 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
6941 (current_function_has_exception_handlers): Simplify.
6942 (bring_to_root, eh_region_replaceable_by_p): Remove.
6943 (replace_region, hash_type_list, hash_eh_region): Remove.
6944 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
6945 (label_to_region_map, num_eh_regions): Remove.
6946 (get_next_region_sharing_label, must_not_throw_labels): Remove.
6947 (find_exception_handler_labels): Remove.
6948 (duplicate_eh_regions_0, find_prev_try): Remove.
6949 (struct duplicate_eh_regions_data): New.
6950 (duplicate_eh_regions_1): Rewrite.
6951 (duplicate_eh_regions): Return a pointer map instead of an
6953 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
6954 (redirect_eh_edge_to_label): Remove.
6955 (eh_region_outermost): Rewrite using eh_region pointers
6956 instead of integers.
6957 (add_ttypes_entry): Update for ttype_data move to eh_status.
6958 (add_ehspec_entry): Rewrite with VEC instead of varray.
6959 (assign_filter_values): Likewise. Export.
6960 (build_post_landing_pads, connect_post_landing_pads): Remove.
6961 (dw2_build_landing_pads): Rewrite to use lp_array.
6962 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
6963 (sjlj_assign_call_site_values): Rewrite to use lp_array.
6964 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
6965 (sjlj_mark_call_sites): Update for landing pad numbers.
6966 (finish_eh_generation): Rewrite.
6967 (gate_handle_eh): Do nothing for no eh tree.
6968 (pass_rtl_eh): Move up near finish_eh_generation.
6969 (remove_eh_landing_pad): New.
6970 (remove_eh_handler): Export.
6971 (remove_eh_region, remove_eh_handler_and_replace): Remove.
6972 (for_each_eh_label): Rewrite to use lp_array.
6973 (make_reg_eh_region_note): New.
6974 (make_reg_eh_region_note_nothrow_nononlocal): New.
6975 (insn_could_throw_p): New.
6976 (copy_reg_eh_region_note_forward): New.
6977 (copy_reg_eh_region_note_backward): New.
6978 (check_handled, add_reachable_handler): Remove.
6979 (reachable_next_level, foreach_reachable_handler): Remove.
6980 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
6981 (get_eh_region_and_lp_from_rtx): New.
6982 (get_eh_region_from_rtx): New.
6983 (can_throw_internal_1, can_throw_external_1): Remove.
6984 (can_throw_internal): Use get_eh_region_from_rtx.
6985 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
6986 (insn_nothrow_p, can_nonlocal_goto): New.
6987 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
6988 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
6989 (add_action_record): Use VEC not varray.
6990 (collect_one_action_chain): Update for eh_region changes.
6991 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
6992 Use get_eh_region_and_lp_from_rtx.
6993 (gate_convert_to_eh_region_ranges): New.
6994 (pass_convert_to_eh_region_ranges): Use it.
6995 (push_uleb128, push_sleb128): Use VEC not varray.
6996 (output_one_function_exception_table): Likewise.
6997 (dump_eh_tree): Update for eh_region changes.
6998 (verify_eh_tree): Likewise.
6999 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
7000 * tree-eh.c: Include target.h.
7001 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
7002 Don't disallow GIMPLE_RESX; adjust argument check.
7003 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
7004 (record_stmt_eh_region): Update for landing pad numbers;
7005 generate a landing pad if necessary.
7006 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
7007 (remove_stmt_from_eh_lp_fn): Similarly.
7008 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
7009 Update for lp numbers; don't special case missing throw_stmt_table.
7010 (lookup_expr_eh_lp): Similarly.
7011 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
7012 (eh_seq, eh_region_may_contain_throw): New.
7013 (struct leh_state): Add ehp_region.
7014 (struct leh_tf_state): Remove eh_label.
7015 (emit_post_landing_pad): New.
7016 (emit_resx, emit_eh_dispatch): New.
7017 (note_eh_region_may_contain_throw): New.
7018 (frob_into_branch_around): Take eh_region not eh label;
7019 emit eh code into eh_seq.
7020 (honor_protect_cleanup_actions): Early exit for no actions. Don't
7021 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
7022 lower_eh_must_not_throw. Emit code to eh_seq.
7023 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
7024 (lower_try_finally_onedest): Likewise.
7025 (lower_try_finally_copy): Likewise.
7026 (lower_try_finally_switch): Likewise.
7027 (lower_try_finally): Initialize ehp_region.
7028 (lower_catch): Update for eh_catch objects.
7029 (lower_eh_filter): Don't handle must_not_throw.
7030 (lower_eh_must_not_throw): New.
7031 (lower_cleanup): Don't set eh_label.
7032 (lower_eh_constructs_2): Resolve eh builtins.
7033 Handle GIMPLE_EH_MUST_NOT_THROW.
7034 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
7035 Add eh_seq to the end of the function body.
7036 (make_eh_dispatch_edges): New.
7037 (make_eh_edge): Remove.
7038 (make_eh_edges): Simplify for landing pads.
7039 (redirect_eh_edge_1): New.
7040 (redirect_eh_edge): Use it.
7041 (redirect_eh_dispatch_edge): New.
7042 (stmt_could_throw_p): Use a switch. Allow RESX.
7043 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
7044 (stmt_can_throw_internal): Likewise.
7045 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
7046 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
7047 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
7048 (gate_refactor_eh): New.
7049 (pass_refactor_eh): Use it.
7050 (lower_resx, execute_lower_resx, pass_lower_resx): New.
7051 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
7052 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
7053 (remove_unreachable_handlers): Rename from
7054 tree_remove_unreachable_handlers; rewrite for landing pads;
7055 call remove_eh_handler directly.
7056 (remove_unreachable_handlers_no_lp): New.
7057 (unsplit_eh, unsplit_all_eh): New.
7058 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
7059 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
7060 (cleanup_empty_eh_unsplit): New.
7061 (cleanup_empty_eh): Rewrite.
7062 (cleanup_all_empty_eh): New.
7063 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
7064 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
7065 (gate_cleanup_eh): New.
7066 (pass_cleanup_eh): Use it.
7067 (verify_eh_edges): Move later in file. Expect one EH edge.
7068 (verify_eh_dispatch_edge): New.
7070 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
7071 (gtype-desc.o): Add TARGET_H.
7072 (tree.o): Use EXCEPT_H, not except.h.
7073 (cfgbuild.o): Add EXPR_H.
7074 (GTFILES): Add vecprim.h.
7075 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
7076 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
7077 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
7078 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
7079 * calls.c (emit_call_1): Use make_reg_eh_region_note.
7080 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
7081 calls to can_throw_internal.
7082 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
7083 (make_edges): Don't handle RESX; use can_nonlocal_goto.
7084 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
7085 (expand_gimple_stmt): Use make_reg_eh_region_note.
7086 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
7087 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
7088 or find_exception_handler_labels.
7089 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
7090 there is exacly one EH edge. Use can_nonlocal_goto and
7092 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
7093 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
7094 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
7095 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
7096 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
7097 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
7098 * dse.c (scan_insn): Use insn_could_throw_p.
7099 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
7100 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
7101 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
7102 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
7103 EXC_PTR_EXPR or FILTER_EXPR.
7104 (tree_expr_nonzero_warnv_p): Likewise.
7105 * function.h: Include vecprim.h, not varray.h
7106 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
7107 move ttype_data and ehspec_data members to struct eh_status; change
7108 action_record_data member to a VEC.
7109 * gcse.c (hash_scan_set): Use can_throw_internal.
7110 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
7111 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
7112 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
7113 (block_may_fallthru): Don't handle RESX_EXPR.
7114 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
7115 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
7116 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
7117 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
7118 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
7119 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
7120 (gimple_size): Likewise.
7121 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
7122 (gimple_build_resx): Use gimple_build_with_ops.
7123 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
7124 (is_gimple_val): Likewise.
7125 (is_gimple_stmt): Remove RESX_EXPR.
7126 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
7127 (GIMPLE_RESX): Reorder with other EH constructs.
7128 * gimple.h (struct gimple_statement_eh_mnt): New.
7129 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
7130 (gimple_eh_filter_must_not_throw): Remove.
7131 (gimple_eh_filter_set_must_not_throw): Remove.
7132 (gimple_eh_must_not_throw_fndecl): New.
7133 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
7134 (is_gimple_resx): New.
7135 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
7136 Don't copy EH_FILTER_MUST_NOT_THROW.
7137 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
7138 * ipa-inline.c (estimate_function_body_sizes): Don't try to
7139 handle must_not_throw_labels specially.
7140 * ipa-pure-const.c (check_call): Update debug statement for LP.
7141 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
7142 * ipa-utils.c (get_base_var): Likewise.
7143 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
7144 * lower-subreg.c (move_eh_region_note): Remove.
7145 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
7146 * omp-low.c (new_omp_context): Update for eh_lp_nr.
7147 (create_task_copyfn): Likewise.
7148 (maybe_catch_exception): Use gimple_build_eh_filter.
7149 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
7150 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
7151 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
7152 and pass_lower_resx.
7153 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
7154 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
7155 can_throw_internal, can_nonlocal_goto.
7156 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
7157 copy_reg_eh_region_note_forward.
7158 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
7159 (emit_output_reload_insns): Likewise.
7160 (copy_eh_notes): Remove.
7161 * rtl.def (RESX): Remove.
7162 * rtl.h: Update declarations.
7163 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
7164 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
7165 (update_eh_label): Remove.
7166 (cleanup_dead_labels_eh): New.
7167 (cleanup_deal_labels): Use it instead of update_eh_label.
7168 (gimple_merge_blocks): Update landing pad data structure when
7169 removing a landing pad label.
7170 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
7171 test; handle GIMPLE_EH_MUST_NOT_THROW.
7172 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
7173 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
7174 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
7175 (verify_stmt): Likewise. Verify landing pads.
7176 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
7177 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
7178 (struct move_stmt_d): Add eh_map.
7179 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
7180 (move_stmt_r): Remap eh region numbers in builtin calls,
7181 resx and eh_dispatch.
7182 (move_block_to_fn): Remove eh_offset parameter. Use
7183 maybe_duplicate_eh_stmt_fn.
7184 (find_outermost_region_in_block): Operate on eh_region pointers
7185 instead of region numbers.
7186 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
7187 duplicate_eh_regions.
7188 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
7189 test earlier. Disallow EH landing pads.
7190 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
7191 * tree-flow.h: Update declarations.
7192 (struct tree_ann_common_d): Replace rn with lp_nr.
7193 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
7194 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
7195 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
7196 resx and eh_dispatch.
7197 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
7198 (copy_edges_for_bb): Use make_eh_dispatch_edges.
7199 (copy_cfg_body): Expect eh_map instead of eh_region_offset
7200 from duplicate_eh_regions.
7201 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
7202 update RESX; handle EH_DISPATCH.
7203 (expand_call_inline): Set eh_lp_nr, not eh_region.
7204 (maybe_inline_call_in_expr): Likewise.
7205 * tree-inline.h (struct copy_body_data): Replace eh_region with
7206 eh_lp_nr, eh_region_offset with eh_map.
7207 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
7208 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
7209 * tree-pretty-print.c (dump_generic_node): Don't handle
7210 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
7211 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
7212 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
7213 EXC_PTR_EXPR, FILTER_EXPR.
7214 * tree-ssa-operands.c (get_expr_operands): Likewise.
7215 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
7216 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7217 (ao_ref_init_from_vn_reference): Likewise.
7218 * tree-ssa-sink.c (statement_sink_location): Likewise.
7219 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7220 (mark_virtual_phi_result_for_renaming): Export. Tidy.
7221 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
7222 EXC_PTR_EXPR, FILTER_EXPR.
7223 (is_exception_related): Remove.
7224 (compute_avail): Don't call it.
7225 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
7226 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
7227 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
7228 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
7230 (build_resx): Remove.
7231 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
7232 * tree.h: Update declarations.
7233 (EH_FILTER_MUST_NOT_THROW): Remove.
7234 (struct tree_label_decl): Add eh_landing_pad_nr.
7235 (EH_LANDING_PAD_NR): New.
7236 * value-prof.c (gimple_ic): Tidy variable names. Update for
7237 landing pad numbers.
7238 (gimple_stringop_fixed_value): Tidy variable names. Assert
7239 that neither call stmt can throw.
7240 * vecprim.h (uchar): New.
7241 (VEC(uchar,heap), VEC(uchar,gc)): New.
7243 * c-common.c (c_define_builtins): Update call to
7244 build_common_builtin_nodes.
7245 * c-parser.c (c_parse_file): Don't call
7246 default_init_unwind_resume_libfunc.
7248 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
7250 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
7251 (mips_cprestore_address_p): Likewise.
7252 (mips_save_gp_to_cprestore_slot): Likewise.
7253 (mips_restore_gp): Rename to...
7254 (mips_restore_gp_from_cprestore_slot): ...this.
7255 (mips_must_initialize_gp_p): Declare.
7256 (mips_emit_save_slot_move): Likewise.
7257 (mips_output_load_label): Return nothing.
7258 (mips_eh_uses): Declare.
7259 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
7260 (TARGET_CPRESTORE_DIRECTIVE): New macro.
7261 (TARGET_ABSOLUTE_JUMPS): Likewise.
7262 (EH_USES): Likewise.
7263 (FIRST_PSEUDO_REGISTER): Update comment.
7264 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
7265 (MIPS_CALL): ...here.
7266 (REGISTER_NAMES): Add $cprestore.
7267 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
7268 Add load_label_length, has_inflexible_gp_insn_p,
7269 has_flexible_gp_insn_p, must_initialize_gp_p and
7270 must_restore_gp_when_clobbered_p.
7271 (mips_expand_call): Don't generate split instructions here.
7272 (mips_split_call): Update the call to mips_restore_gp after
7273 the above name change.
7274 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
7275 (mips_find_gp_ref): New function.
7276 (mips_insn_has_inflexible_gp_ref_p): Likewise.
7277 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
7278 (mips_insn_has_flexible_gp_ref_p): Likewise.
7279 (mips_cfun_has_flexible_gp_ref_p): Likewise.
7280 (mips_function_has_gp_insn): Delete.
7281 (mips_global_pointer): Drop the df_regs_ever_live_p check.
7282 Use the new functions above. Only return INVALID_REGNUM
7283 for TARGET_ABSOLUTE_JUMPS.
7284 (mips_must_initialize_gp_p): New function.
7285 (mips_get_cprestore_base_and_offset): New function, extracted from...
7286 (mips_cprestore_slot): ...here. Take a bool parameter.
7287 (mips_cfun_has_cprestore_slot_p): New function.
7288 (mips_cprestore_address_p): Likewise.
7289 (mips_save_gp_to_cprestore_slot): Likewise.
7290 (mips_restore_gp): Rename to...
7291 (mips_restore_gp_from_cprestore_slot): ...this. Assert
7292 epilogue_completed. Update the call to mips_cprestore_slot.
7293 Test cfun->machine->must_restore_gp_when_clobbered_p.
7294 (mips_direct_save_slot_move_p): New function.
7295 (mips_emit_save_slot_move): Likewise.
7296 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
7297 of cfun->machine->global_pointer.
7298 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
7299 (mips_save_reg): Use mips_emit_save_slot_move.
7300 (mips_expand_prologue): Set must_initialize_gp_p.
7301 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
7302 for all cprestore saves. Emit a use_cprestore instruction after
7303 setting up the cprestore slot.
7304 (mips_restore_reg): Use mips_emit_save_slot_move.
7305 (mips_process_load_label): New function.
7306 (mips_load_label_length): Likewise.
7307 (mips_output_load_label): Don't return asm: output it here instead.
7308 Use mips_process_load_label.
7309 (mips_adjust_insn_length): Adjust the length of branch instructions
7310 that have length MAX_PIC_BRANCH_LENGTH.
7311 (mips_output_conditional_branch): Update the call to
7312 mips_output_load_label. Assume the branch target is OPERANDS[0]
7313 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
7314 (mips_output_order_conditional_branch): Swap the meaning of
7315 OPERANDS[0] and OPERANDS[1].
7316 (mips_variable_issue): Don't count ghost instructions.
7317 (mips_expand_ghost_gp_insns): New function.
7318 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
7319 (mips_output_mi_thunk): Set must_initialize_gp_p.
7320 (mips_eh_uses): New function.
7321 * config/mips/predicates.md (cprestore_save_slot_operand)
7322 (cprestore_load_slot_operand): New predicates.
7323 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
7324 (UNSPEC_MOVE_GP): Likewise.
7325 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
7326 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
7327 (CPRESTORE_SLOT_REGNUM): New register.
7328 (MAX_PIC_BRANCH_LENGTH): New constant.
7329 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
7330 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
7331 branches. Fix commentary.
7332 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
7333 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
7334 Change type to "ghost".
7335 (loadgp_absolute_<mode>): Likewise.
7336 (loadgp_rtp_<mode>): Likewise.
7337 (copygp_mips16): Likewise.
7338 (loadgp_blockage): Remove redundant mode attribute.
7339 (potential_cprestore): New instruction.
7340 (cprestore): Turn into an unspec set.
7341 (use_cprestore): New instruction.
7342 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
7343 (*branch_fp_inverted): Likewise.
7344 (*branch_order<mode>): Likewise.
7345 (*branch_order<mode>_inverted): Likewise.
7346 (*branch_equality<mode>): Likewise.
7347 (*branch_equality<mode>_inverted): Likewise.
7348 (*branch_bit<bbv><mode>): Likewise.
7349 (*branch_bit<bbv><mode>_inverted): Likewise.
7350 (*branch_equality<mode>_mips16): Remove redundant mode.
7351 (jump): Turn into a define_expand.
7352 (*jump_absolute): New instruction.
7353 (*jump_pic): Likewise.
7354 (*jump_mips16): Rename previously-unnamed pattern. Remove
7355 redundant mode attribute.
7356 (restore_gp): Split on epilogue_completed rather than
7357 reload_completed. Change type to "ghost".
7358 (move_gp<mode>): New instruction.
7359 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
7360 Remove redundant mode attribute.
7361 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
7362 (bc1any4f, bc1any2t, bc1any2f): Likewise.
7363 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
7365 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7368 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
7369 are returned in the same register (vs34 or v2) that Altivec vector
7370 types are returned in.
7371 (rs6000_libcall_value): Ditto.
7374 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
7375 instead of explicit addsi3/adddi3 calls.
7376 (rs6000_split_multireg_move): Ditto.
7377 (rs6000_emit_allocate_stack): Ditto.
7378 (rs6000_emit_prologue): Ditto.
7379 (rs6000_output_mi_thunk): Ditto.
7381 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
7382 size is 64 bits if we can use 64-bit registers.
7384 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
7386 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
7389 From Jie Zhang <jie.zhang@analog.com>:
7390 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
7391 save FP and RETS with saveall attribute.
7392 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
7393 with saveall attribute.
7395 * config/bfin/bfin.c (bfin_expand_builtin,
7396 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
7399 From Jie Zhang <jie.zhang@analog.com>:
7400 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
7401 before use in two places.
7402 * config/bfin/bfin.md (AREG): Define mode iterator.
7403 (reload_in, reload_out): Use mode iterator AREG.
7405 2009-09-14 Richard Guenther <rguenther@suse.de>
7408 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
7409 EH personality path.
7411 2009-09-13 Richard Guenther <rguenther@suse.de>
7412 Rafael Avila de Espindola <espindola@google.com>
7414 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
7415 (LANG_HOOKS_EH_PERSONALITY): Likewise.
7416 (LANG_HOOKS_INITIALIZER): Adjust.
7417 (lhd_pass_through_t): Declare.
7418 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
7420 * langhooks.c (lhd_pass_through_t): New function.
7421 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
7422 dwarf2out_begin_prologue): Use personality from current_function_decl.
7423 * expr.h (get_personality_function): Declare.
7424 * expr.c (get_personality_function): New function.
7425 (build_personality_function): Likewise.
7426 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
7427 (eh_personality_libfunc): Remove.
7428 * optabs.c (build_libfunc_function): New function split out from ...
7429 (init_one_libfunc): ... here.
7430 * tree.h (DECL_FUNCTION_PERSONALITY): New.
7431 (tree_function_decl): Add personality.
7432 (lhd_gcc_personality): Declare.
7433 (build_personality_function): Likewise.
7434 * tree.c (gcc_eh_personality_decl): New.
7435 (lhd_gcc_personality): New function.
7436 * except.h (lang_eh_runtime_type): Remove.
7437 (enum eh_personality_kind): New.
7438 (build_personality_function): Declare.
7439 (function_needs_eh_personality): Declare.
7440 * except.c (lang_eh_runtime_type): Remove.
7441 (function_needs_eh_personality): New function.
7442 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
7443 (sjlj_emit_function_enter, output_function_exception_table):
7444 Use personality from current_function_decl.
7445 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
7446 * tree-inline.c (tree_can_inline_p): Do not inline across different
7448 (expand_call_inline): Likewise. Adjust the callers EH personality.
7449 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
7450 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
7451 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
7452 (c-parser.o): Likewise
7453 * c-tree.h (c_eh_initialized_p): Remove.
7454 (c_maybe_initialize_eh): Likewise.
7455 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
7456 (finish_decl): Don't call c_maybe_initialize_eh.
7457 (c_eh_initialized_p): Remove.
7458 (c_maybe_initialize_eh): Likewise.
7459 * c-parser.c (c_parser_omp_construct): Likewise.
7460 (c_parse_file): Initialize exception handling.
7462 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
7464 * config.gcc (tm_file): Remove i386/biarch32.h
7465 for i?86-w64-mingw* case.
7466 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
7468 * config.host: Set for x64 mingw the option
7469 use_long_long_for_widest_fast_int to yes.
7471 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
7473 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
7474 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
7475 (dbxout_begin_function): Likewise.
7476 * final.c (dwarf2_debug_info_emitted_p): New predicate.
7477 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
7478 set on the function.
7479 (final_end_function): Likewise.
7480 (final_scan_insn): Likewise.
7481 (rest_of_handle_final): Likewise.
7482 * varasm.c (assemble_start_function): Likewise.
7483 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7485 2009-09-12 Jason Merrill <jason@redhat.com>
7487 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
7488 * opts.c (common_handle_option): constify.
7490 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
7492 * doc/install.texi (avr): Remove obsolete reference site.
7494 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
7496 * doc/install.texi (Binaries): Adjust AIX link.
7498 2009-09-12 Akim Demaille <demaille@gostai.com>
7500 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
7501 Use an imperative sentence.
7503 2009-09-11 Richard Henderson <rth@redhat.com>
7505 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
7506 structure-name and has-tree-operands arguments; update all entries.
7507 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
7509 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
7510 (gsstruct_code_size): New.
7511 (gss_for_code_): New.
7512 (gss_for_code): Remove.
7513 (gimple_size): Rewrite using gsstruct_code_size.
7514 (gimple_statement_structure): Move to gimple.h.
7515 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
7516 (gss_for_code, gimple_statement_structure): New.
7517 (gimple_ops): Use new arrays; tidy.
7519 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7521 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
7522 operand to be a PLUS expression.
7523 * config/pa/pa.c (pa_secondary_reload): Likewise.
7525 2009-09-11 Jakub Jelinek <jakub@redhat.com>
7527 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
7529 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
7532 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
7534 From Jie Zhang <jie.zhang@analog.com>:
7535 * doc/extend.texi (node Function Attributes): Document l2
7537 (node Blackfin Variable Attributes): Document l2 variable attributes.
7539 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
7541 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
7542 to match the system compiler's configuration at inflection point.
7543 Add comment to remark a remaining difference with system compiler.
7545 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
7546 * configure: Regenerate.
7548 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
7550 From Jie Zhang <jie.zhang@analog.com>:
7551 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
7552 (bfin_handle_l2_attribute): New.
7553 (bfin_attribute_table): Add l2 attribute.
7555 2009-09-11 Michael Matz <matz@suse.de>
7558 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
7559 on the local_decls list.
7561 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
7565 * cselib.c (cselib_expand_value_rtx_cb): Document callback
7567 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
7568 for VALUEs, to implement the documented interface.
7569 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
7570 Adjust for VALUEs and anything else, to implement the
7571 documented interface.
7573 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
7575 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
7576 with actual SPE/paired vector modes before using 64-bit alignment.
7577 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
7579 2009-09-10 DJ Delorie <dj@redhat.com>
7581 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
7584 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
7585 * config/mep/mep.c (mep_legitimate_constant_p): New.
7586 * config/mep/mep-protos.h: Prototype it.
7588 2009-09-10 Richard Henderson <rth@redhat.com>
7590 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
7592 2009-09-10 Jason Merrill <jason@redhat.com>
7594 * tree.c (chain_index): New fn.
7595 * tree.h: Declare it.
7597 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7599 * config/sol2-c.c (cmn_err_length_specs): Initialize
7600 scalar_identity_flag.
7602 2009-09-10 Richard Henderson <rth@redhat.com>
7604 * tree.h (struct tree_decl_common): Move align member earlier;
7605 move label_decl_uid member ...
7606 (struct tree_label_decl): ... here.
7607 (LABEL_DECL_UID): Update to match.
7609 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
7612 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
7613 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
7615 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
7616 dest_prev if the edge is complex.
7618 * tree-cfg.c (is_ctrl_stmt): Use a switch.
7620 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
7621 loop latch tests earlier.
7623 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
7624 before GIMPLE_RETURN, not after its predecessor; insert
7627 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
7628 gimple_seq_empty_p to test for no PHI nodes.
7629 * tree-cfg.c (split_critical_edges): Likewise.
7631 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
7633 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
7635 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
7636 introduced by the VTA branch merge.
7638 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
7640 * ira-conflicts.c: Use fputs or putc instead of fprintf
7644 * tree-switch-conversion.c: Ditto.
7646 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
7648 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
7649 introduced by the VTA branch merge.
7651 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
7654 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
7656 PR rtl-optimization/39779
7657 * expr.c (convert_modes): Return when mode == oldmode after
7658 CONST_INTs are processed.
7660 2009-09-10 Nick Clifton <nickc@redhat.com>
7662 * config/mep/mep.c (mep_encode_section_info): Copy weakness
7663 attribute and referring decl when creating renamed symbol.
7665 2009-09-10 Richard Guenther <rguenther@suse.de>
7668 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
7670 (cgraph_finalize_compilation_unit): Compute reachability
7671 before emitting thunks. Properly process aliases before
7672 possibly removing unreachable nodes.
7674 2009-09-10 Richard Guenther <rguenther@suse.de>
7677 * tree.c (struct free_lang_data_d): Add worklist member.
7678 (find_decls_types_r): Push onto the worklist instead of recursing.
7679 Handle TREE_BINFOs properly.
7680 (find_decls_types): New function wrapped around find_decls_types_r
7681 to process the worklist.
7682 (find_decls_types_in_eh_region): Use it.
7683 (find_decls_types_in_node): Likewise.
7684 (find_decls_types_in_var): Likewise.
7685 (free_lang_data_in_cgraph): Likewise. Free the worklist.
7686 * tree.h (RECORD_OR_UNION_TYPE_P): New.
7687 (AGGREGATE_TYPE_P): Adjust.
7689 2009-09-09 Jason Merrill <jason@redhat.com>
7691 * configure.ac: Check glibc version even if we have an in-tree
7694 2009-09-09 Anthony Green <green@moxielogic.com>
7696 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
7697 the constant 0 when appropriate.
7698 * config/moxie/constraints.md: Add constraint O.
7700 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
7701 to pass up to 6 32-bit argument values in registers.
7702 (moxie_function_arg): Ditto.
7703 (moxie_arg_partial_bytes): Ditto.
7704 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
7705 (REG_PARM_STACK_SPACE): Ditto.
7706 (FUNCTION_ARG_REGNO_P): Ditto.
7708 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
7709 instruction to allocate stack space.
7711 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
7713 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
7714 unnecessarily stringent constraints. Fix address
7715 calculation in the splitters.
7717 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
7719 PR rtl-optimization/39779
7720 * expr.c (convert_modes): Return when mode == oldmode after
7721 CONST_INTs are processed.
7723 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
7726 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
7727 (ix86_expand_prologue): Take frame.padding0 into logic of
7729 (ix86_expand_epilogue): Likewise.
7731 2009-09-09 Jakub Jelinek <jakub@redhat.com>
7733 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
7735 (SHLIB_LINK, SHLIB_INSTALL): Use them.
7736 * config/t-slibgcc-libgcc: New file.
7737 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
7739 2009-09-09 Martin Jambor <mjambor@suse.cz>
7741 PR tree-optimization/41089
7742 * tree-sra.c (find_var_candidates): Do not consider va_lists in
7745 2009-09-09 Richard Henderson <rth@redhat.com>
7747 * gimple.h (CASE_GIMPLE_OMP): New.
7748 (is_gimple_omp): Use it.
7749 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
7750 (verify_gimple_debug): Likewise.
7752 2009-09-09 Richard Guenther <rguenther@suse.de>
7754 PR tree-optimization/41101
7755 * tree-ssa-pre.c (maximal_set): Remove.
7756 (compute_antic_aux): Treat the maximal set as implicitly all ones.
7757 Defer all blocks we didn't visit at least one successor.
7758 (add_to_exp_gen): Do not add to the maximal set.
7759 (make_values_for_phi): Likewise.
7760 (compute_avail): Likewise.
7761 (init_pre): Do not allocate the maximal set.
7762 (execute_pre): Do not dump it.
7764 2009-09-09 Martin Jambor <mjambor@suse.cz>
7766 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
7767 an SSA_NAME rather than a is_gimple_variable.
7769 2009-09-09 Richard Guenther <rguenther@suse.de>
7772 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
7773 code dealing with plain pointer bases.
7774 (maybe_fold_offset_to_reference): Likewise.
7775 (maybe_fold_stmt_addition): Adjust.
7777 2009-09-09 Richard Guenther <rguenther@suse.de>
7779 * tree.c (free_lang_data_in_type): Do not free the type variant
7781 (free_lang_data): Merge char_type_node with its properly signed
7783 (pass_ipa_free): Collect after freeing language specific data.
7785 2009-09-09 Michael Matz <matz@suse.de>
7788 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
7789 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
7790 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
7793 2009-09-08 DJ Delorie <dj@redhat.com>
7795 * config/mep/mep.c (conversions[]): Add "ml" pattern.
7797 2009-09-04 Jason Merrill <jason@redhat.com>
7799 * tree.c (tree_find_value): Remove.
7800 * tree.h: Remove prototype.
7801 * varasm.c (assemble_external): Use value_member instead.
7803 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7805 * toplev.c (process_options): Choose default debugging type when
7806 gtoggle enables debug info and type is unset.
7808 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7812 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
7815 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7817 * configure: Rebuilt with modified libtool.m4.
7819 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7824 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
7826 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7828 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
7829 (remove_statement): Likewise.
7830 (rewrite_use_nonlinear_expr): Adjust.
7831 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
7832 * tree-ssa.c (release_defs_bitset): ... this. New.
7833 * tree-flow.h (release_defs_bitset): Declare.
7835 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
7838 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
7839 in the middle block.
7841 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
7843 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
7844 via intptr_t to long type.
7845 (insert_operand_rank): Cast long type via intptr_t to
7847 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
7849 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
7850 from pointer to unsigned via uintptr_t.
7852 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
7853 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
7855 * configure: Regenerated.
7856 * config.in: Regenerated
7857 * system.h (stdint.h): Add include.
7858 (inttypes.h): Likewise.
7859 * Makefile.in (aclocal): Add config/stdint.m4.
7860 * aclocal.m4: Regenerated.
7862 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
7864 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
7866 (note_np_check_stores): New function.
7867 (harmless_null_pointer_p): New function.
7868 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
7869 changed. Take into account whether we're in the shadow of a condjump
7870 that tested NP_REG for NULL.
7871 Lose all code that tested for SEQUENCEs.
7872 (workaround_speculation): Avoid inserting NOPs for loads that are
7873 either always executed or a NULL pointer.
7875 2009-09-08 Jan Hubicka <jh@suse.cz>
7877 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
7878 * params.def (early-inlining-insns): Likewise.
7880 2009-09-08 Jakub Jelinek <jakub@redhat.com>
7882 PR rtl-optimization/41239
7883 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
7884 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
7886 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
7887 across calls, as the calls might not always return normally.
7888 (call_may_noreturn_p): New function.
7889 (deps_analyze_insn): Update last_function_call_may_noreturn list.
7890 (init_deps): Initialize it.
7891 (remove_from_deps): Also remove calls from
7892 last_function_call_may_noreturn list.
7894 2009-09-07 Richard Henderson <rth@redhat.com>
7896 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
7897 more VR->OPERANDS than LHS operands. Free LHS before returning.
7899 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
7901 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
7902 (attr "addrtype"): New member "spreg".
7903 Use it if mem_spfp_address_operand is true for the address.
7904 (attr "type"): New entry "stall".
7905 (cpu_unit "load"): New.
7906 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
7908 (insn_reservation "loadsp"): New.
7909 (insn_reservation "load_stall1"): New.
7910 (insn_reservation "load_stall3"): New.
7912 * config/bfin/predicates.md (const1_operand, const3_operand): New.
7913 (mem_p_address_operand): Exclude stack and frame pointer based
7915 (mem_spfp_address_operand): New; match them here.
7916 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
7917 (bfin_reorg): Call it if scheduling insns.
7918 (bfin_gen_bundles): Remove dummy insns created by
7919 add_sched_insns_for_speculation.
7921 From Jie Zhang <jie.zhang@analog.com>:
7922 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
7923 bfin_si_revision, bfin_workarounds): Move these ...
7924 * config/bfin/bfin.h: ... here.
7926 From Mike Frysinger <michael.frysinger@analog.com>
7927 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
7928 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
7929 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
7930 bf547m, bf548m, and bf549m.
7931 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
7932 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
7933 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
7934 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
7935 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7936 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
7937 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7938 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7939 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
7940 bf542m, bf544m, bf547m, bf548m, and bf549m.
7942 From Jie Zhang <jie.zhang@analog.com>:
7943 * config/bfin/predicates.md (p_register_operand): New predicate.
7944 (dp_register_operand): New predicate.
7945 * config/bfin/bfin-protos.h (WA_05000074): Define.
7946 (ENABLE_WA_05000074): Define.
7947 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
7948 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
7949 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
7950 (define_attr addrtype): Allow load/store register to be P register.
7951 (define_attr storereg): New.
7952 (define_cpu_unit anomaly_05000074): New.
7953 (define_insn_reservation dsp32shiftimm): New.
7954 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
7955 (define_insn_reservation loadp): Cannot use slot2.
7956 (define_insn_reservation loadsp): Cannot use slot2.
7957 (define_insn_reservation storep): Cannot use slot2. Does not
7958 apply when working around 05000074.
7959 (define_insn_reservation storep_anomaly_05000074): New.
7960 (define_insn_reservation storei): Does not apply when working
7962 (define_insn_reservation storei_anomaly_05000074): New.
7963 (define_attr length): Add dsp32shiftimm case.
7964 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
7965 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
7966 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
7967 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
7968 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
7970 2009-09-07 Martin Jambor <mjambor@suse.cz>
7973 * tree-sra.c (create_artificial_child_access): Return NULL if
7974 build_ref_for_offset fails.
7975 (propagate_subacesses_accross_link): Allow build_ref_for_offset
7976 and create_artificial_child_access to fail.
7978 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
7981 * unwind-dw2.c (uw_init_context_1): Mark noinline.
7982 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
7983 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
7985 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
7987 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
7988 block, ensure it has an exit edge. Emit a barrier after a jump.
7990 2009-09-07 Nick Clifton <nickc@redhat.com>
7992 * gcc.c (this_is_linker_script): New variable. Like
7993 this_is_library_file but for the %T constructor.
7994 (end_going_arg): If this_is_linker_script is set then locate the
7995 script and insert a --script switch before it
7996 (do_spec_2): Initialise this_is_linker_script.
7997 (do_spec_1): Likewise. Handle %T construct.
7998 (eval_spec_function): Preserve this_is_linker_script.
7999 * doc/invoke.texi: Document %T construct in spec files.
8000 * config/m32c/m32c.h (LIB_SPEC): Use it.
8002 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8004 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
8005 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
8006 when volatile flag is set.
8007 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
8009 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
8012 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
8013 (combine_stack_adjustments_for_block): Allow insns between stack
8014 adjustments and stores with corresponding pre-(dec|inc)rement or
8015 pre-modify operation.
8017 2009-09-06 Jakub Jelinek <jakub@redhat.com>
8020 * combine-stack-adj.c (struct csa_memlist): Rename to...
8021 (struct csa_reflist): ... this. Rename mem field to ref.
8022 (free_csa_memlist): Rename to...
8023 (free_csa_reflist): ... this.
8024 (record_one_stack_memref): Rename to...
8025 (record_one_stack_ref): ... this. Handle also REG_P.
8026 (try_apply_stack_adjustment): Handle also REG_P.
8027 (struct record_stack_memrefs_data): Rename to...
8028 (struct record_stack_refs_data): ... this. Rename memlist field to
8030 (record_stack_memrefs): Rename to...
8031 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
8032 subexpressions instead of failing when a MEM contains SP references.
8033 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
8034 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
8036 2009-09-06 Richard Guenther <rguenther@suse.de>
8039 * tree.c (build_array_type): Do not record types marked
8040 with structural equality in the canonical type hashtable.
8042 2009-09-06 Richard Guenther <rguenther@suse.de>
8045 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
8047 2009-09-05 Richard Guenther <rguenther@suse.de>
8050 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
8052 2009-09-05 Richard Guenther <rguenther@suse.de>
8055 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
8057 2009-09-05 Richard Guenther <rguenther@suse.de>
8060 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
8061 before comparing function argument types.
8063 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8066 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
8069 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
8072 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
8074 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
8075 locators before emit_insn is called.
8077 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
8080 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
8081 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
8082 (reginfo_init): Don't call allocate_reg_info.
8084 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
8087 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
8088 NONDEBUG_INSN_P instead of INSN_P.
8090 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8093 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
8095 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8098 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
8099 pattern of the split.
8101 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8103 * toplev.c (process_options): Move setter of flag_var_tracking
8104 before other tests that depend on it. Move down setter of
8105 flag_rename_registers. Don't enable var-tracking-assignments
8106 by default if selective scheduling is enabled. Warn if both
8109 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
8111 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
8112 comment. Use switch statement to catch overlaps between rtx
8113 and tree codes. Accept FUNCTION_DECLs in addition to those in...
8114 (IS_DECL_CODE): ... here. Remove.
8115 (check_value_is_not_decl): Remove.
8116 (dv_from_decl, dv_from_value): Check after conversion.
8118 2009-09-04 Richard Guenther <rguenther@suse.de>
8121 * (cgraph_finalize_compilation_unit): Move finalizing aliases
8122 after emitting tunks. Move emitting thunks and ctors from ...
8123 (cgraph_optimize): ... here. Remove redundant
8124 cgraph_analyze_functions.
8125 * varasm.c (find_decl_and_mark_needed): Remove no longer
8127 (finish_aliases_1): Adjust check for thunk aliases.
8129 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
8131 * config/arm/arm.md (ctzsi2): Added braces
8132 to avoid warning that broke booststrap.
8134 2009-09-04 Martin Jambor <mjambor@suse.cz>
8136 PR tree-optimization/41112
8137 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
8138 handle variable-bounded arrays.
8139 (expr_with_var_bounded_array_refs_p): New function.
8140 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
8142 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
8144 * config/s390/2097.md: Removed two incorrect bypasses.
8145 (z10_fsimpdf): Fixed latency.
8146 (z10_fhex): New insn_reservation.
8147 (z10_floaddf): Fixed latency.
8148 (z10_floadsf): Fixed latency.
8149 (z10_ftrunctf): Fixed latency.
8150 (z10_ftruncdf): Fixed latency.
8151 * config/s390/s390.c (z10_cost): Fixed values.
8152 (s390_adjust_priority): Added z10 path.
8153 * config/s390/s390.md (type): Added fhex.
8154 (*mov<mode>_64dfp): Updated type attribute.
8155 (*mov<mode>_64): Updated type attribute.
8156 (*mov<mode>_31): Updated type attribute.
8157 (*mov<mode>"): Likewise.
8158 * config/s390/2084.md (x_fsimpdf): Updated condition.
8160 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
8162 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
8163 RTXs in the predicate for operand 1.
8165 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
8167 * config/arm/arm.md (UNSPEC_RBIT): New constant.
8168 (rbitsi2): New insn.
8169 (ctzsi2): New expand.
8170 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
8172 2009-09-03 Martin Jambor <mjambor@suse.cz>
8174 * tree-sra.c (duplicate_expr_for_different_base): Removed.
8175 (create_artificial_child_access): Use build_ref_for_offset instead
8176 of duplicate_expr_for_different_base.
8177 (propagate_subacesses_accross_link): Likewise.
8179 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
8181 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
8183 (mips16e_collect_argument_saves): Skip debug instructions.
8184 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
8185 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
8186 (r10k_insert_cache_barriers): Likewise.
8187 (mips_reorg_process_insns): Likewise.
8189 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
8192 * ira.c (update_equiv_reg): Remove check on class likely spill.
8194 2009-09-03 Jakub Jelinek <jakub@redhat.com>
8197 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
8198 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
8202 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
8203 the stack slot if it is passed by invisible reference.
8204 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
8205 by invisible reference.
8207 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
8209 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
8210 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
8211 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
8213 * config/bfin/sync.md: New file.
8214 * config/bfin/bfin.md: Include it.
8215 (UNSPEC_ATOMIC): New.
8216 (UNSPEC_ONES): Provide a unique number.
8218 From Jie Zhang <jie.zhang@analog.com>:
8219 * config/bfin/bfin.c (ret_regs): New.
8220 (must_save_fp_p): Don't return true because of frame_pointer_needed.
8221 (must_save_rets_p): New.
8222 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
8223 current_function_is_leaf.
8224 (do_link): Likewise.
8225 (do_unlink): Likewise.
8226 (expand_interrupt_handler_prologue): Use ret_regs array.
8227 (expand_interrupt_handler_epilogue): Use ret_regs array and
8228 pass return register to gen_return_internal.
8229 (bfin_expand_epilogue): Pass return register to
8230 gen_return_internal.
8231 (bfin_expand_call): Explicitly clobber RETS.
8232 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
8233 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
8234 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
8235 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
8237 (return_internal): Take a reg rtx rather than the register number.
8239 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
8241 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
8242 when comparing against estimated_loop_iterations_int return.
8244 2009-09-03 Richard Guenther <rguenther@suse.de>
8246 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
8247 eh_personality_libfunc.
8249 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
8251 * tree-parloops.c (separate_decls_in_region): Add space.
8253 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
8255 * tree-parloops.c (separate_decls_in_region): Change the condition
8256 checking if there are reductions in the loop.
8258 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
8260 PR tree-optimization/38275
8261 * tree-parloops.c (parallelize_loops): Replace profitability condition
8262 for expected number of iterations.
8264 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
8266 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
8267 (bootstrap-debug): Explain conditions in which it becomes default.
8268 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
8271 2009-09-03 Namhyung Kim <namhyung@gmail.com>
8273 * doc/invoke.texi (Optimize Options): Move
8274 -finline-small-functions to the -O2 list.
8276 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
8278 * toplev.c (process_options): Enable var-tracking-assignments
8279 by default if var-tracking is enabled.
8281 2009-09-02 David Daney <ddaney@caviumnetworks.com>
8283 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
8285 * emit-rtl.c (prev_nonnote_insn_bb): New function.
8286 * rtl.h (prev_nonnote_insn_bb): Declare it.
8288 2009-09-03 Diego Novillo <dnovillo@google.com>
8290 * cgraph.c (cgraph_node_for_decl): New.
8291 * cgraph.h (cgraph_node_for_decl): Declare.
8292 * tree.c (host_integerp): Return 0 if T is NULL.
8294 2009-09-03 Diego Novillo <dnovillo@google.com>
8296 * tree.h (struct alias_pair): Move from varasm.c.
8297 (alias_pairs): Likewise.
8298 (TYPE_MAXVAL): Define.
8299 (TYPE_MINVAL): Define.
8300 (iterative_hash_host_wide_int): Declare.
8301 (remove_unreachable_alias_pairs): Declare.
8302 * tree-pass.h (pass_ipa_free_lang_data): Declare.
8303 * diagnostic.c (default_diagnostic_starter): Make extern.
8304 (default_diagnostic_finalizer): Make extern.
8305 * diagnostic.h (default_diagnostic_starter): Declare.
8306 (default_diagnostic_finalizer): Declare.
8307 (default_tree_printer): Declare.
8308 * toplev.c (default_tree_printer): Make extern.
8310 2009-09-03 Richard Guenther <rguenther@suse.de>
8311 Diego Novillo <dnovillo@google.com>
8313 * cgraph.c (cgraph_add_new_function): Remove gimplification.
8314 * cgraphunit.c (cgraph_expand_function): Do not emit
8315 associated thunks from here.
8316 (cgraph_emit_thunks): New.
8317 (cgraph_optimize): Call it.
8318 Return if any IPA pass finds an error.
8319 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
8322 2009-09-03 Simon Baldwin <simonb@google.com>
8323 Rafael Espindola <espindola@google.com>
8324 Richard Guenther <rguenther@suse.de>
8325 Doug Kwan <dougkwan@google.com>
8326 Diego Novillo <dnovillo@google.com>
8328 * tree.c: Include tree-pass.h, langhooks-def.h,
8329 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
8330 (free_lang_data_in_type): New.
8331 (need_assembler_name_p): New.
8332 (free_lang_data_in_block): New.
8333 (free_lang_data_in_decl): New.
8334 (struct free_lang_data_d): New.
8335 (add_tree_to_fld_list): New.
8336 (find_decls_types_r): New.
8337 (get_eh_types_for_runtime): New.
8338 (find_decls_types_in_eh_region): New.
8339 (find_decls_types_in_node): New.
8340 (find_decls_types_in_var): New.
8341 (free_lang_data_in_cgraph): New.
8342 (free_lang_data): New.
8343 (gate_free_lang_data): New.
8344 (pass_ipa_free_lang_data): New.
8346 2009-09-03 Diego Novillo <dnovillo@google.com>
8348 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
8349 * langhooks.h (struct lang_hooks): Add field free_lang_data.
8350 (lang_hooks): Remove const qualifier.
8351 * ipa.c (cgraph_remove_unreachable_nodes): Call
8352 remove_unreachable_alias_pairs.
8353 * except.c (add_type_for_runtime): Check if TYPE has
8354 already been converted.
8355 (lookup_type_for_runtime): Likewise.
8356 (check_handled): Handle converted types.
8357 * varasm.c (remove_unreachable_alias_pairs): New.
8358 * gimple.c: Include demangle.h.
8359 (gimple_decl_printable_name): New.
8360 (gimple_fold_obj_type_ref): New.
8361 * gimple.h (gimple_decl_printable_name): Declare.
8362 (gimple_fold_obj_type_ref): Declare.
8363 * passes.c (init_optimization_passes): Add pass
8364 pass_ipa_free_lang_data.
8365 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
8366 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
8368 2009-09-03 Diego Novillo <dnovillo@google.com>
8370 * c-lang.c (lang_hooks): Remove const qualifier.
8372 2009-09-02 Loren James Rittle <ljrittle@acm.org>
8374 * doc/install.texi (*-*-freebsd*): Update target information.
8376 2009-09-02 Anatoly Sokolov <aesok@post.ru>
8378 * hard-reg-set.h (call_fixed_regs): Remove.
8379 * reginfo.c (call_fixed_regs): Remove.
8380 (init_reg_sets_1): Remove initialization of call_fixed_regs.
8381 (globalize_reg): Don't use call_fixed_regs.
8382 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
8385 2009-09-01 Michael Matz <matz@suse.de>
8387 * expr.h (emit_storent_insn, expand_expr_real_1,
8388 expand_expr_real_2): Declare.
8389 * expr.c (emit_storent_insn, expand_expr_real_1,
8390 expand_expr_real_2): Export.
8391 (store_expr): Setting and evaluating dont_return_target is useless.
8392 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
8393 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
8394 * except.c (expand_resx_expr): Rename to ...
8395 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
8396 * except.h (expand_resx_stmt): Declare.
8397 * stmt.c: Add include gimple.h
8398 (expand_asm_expr): Rename to ...
8399 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
8400 (expand_case): Rewrite to take gimple statement.
8401 * tree.h (expand_asm_stmt): Declare.
8402 (expand_case): Change prototype.
8403 * Makefile.in (stmt.o): Depend on gimple.h.
8404 * builtins.c (expand_builtin_synchronize): Build gimple asm
8405 statement, not an ASM_EXPR.
8406 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
8407 gimple_to_tree, release_stmt_tree): Remove.
8408 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
8409 ggc_free, but hold comparison code and operands separately.
8410 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
8411 (expand_call_stmt, expand_gimple_stmt_1,
8412 expand_gimple_stmt): New helpers.
8413 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
8414 release_stmt_tree. Call expand_gimple_stmt instead.
8415 (expand_gimple_basic_block): Ditto.
8417 * calls.c (emit_call_1): Don't look at EH regions here, make
8418 fntree parameter useless.
8419 (expand_call): New local rettype for TREE_TYPE(exp), use it
8420 throughout. Remove local p, use addr instead.
8421 Don't look at EH regions here.
8423 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
8425 * doc/invoke.texi (-fsched-pressure): Document it.
8426 (-fsched-reg-pressure-heuristic): Remove it.
8428 * reload.c (ira.h): Include.
8429 (find_reloads): Add choosing reload on number of small spilled
8432 * haifa-sched.c (ira.h): Include.
8433 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
8434 saved_reg_pressure, curr_reg_live, saved_reg_live,
8435 region_ref_regs): New variables.
8436 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
8437 initiate_reg_pressure_info, setup_ref_regs,
8438 initiate_bb_reg_pressure_info, save_reg_pressure,
8439 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
8441 (setup_insn_reg_pressure_info): New function.
8442 (rank_for_schedule): Add pressure checking and insn issue time.
8443 Remove comparison of insn reg weights.
8444 (ready_sort): Set insn reg pressure info.
8445 (update_register_pressure, setup_insn_max_reg_pressure,
8446 update_reg_and_insn_max_reg_pressure,
8447 sched_setup_bb_reg_pressure_info): New functions.
8448 (schedule_insn): Add code for printing and updating reg pressure info.
8449 (find_set_reg_weight, find_insn_reg_weight): Remove.
8450 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
8451 (debug_ready_list): Print reg pressure info.
8452 (schedule_block): Ditto. Check insn issue time.
8453 (sched_init): Set up sched_pressure_p. Allocate and set up some
8454 reg pressure related info.
8455 (sched_finish): Free some reg pressure related info.
8456 (fix_tick_ready): Make insn always ready if pressure_p.
8457 (init_h_i_d): Don't call find_insn_reg_weight.
8458 (haifa_finish_h_i_d): Free insn reg pressure info.
8460 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
8461 ira_memory_move_cost, ira_class_hard_regs,
8462 ira_class_hard_regs_num, ira_no_alloc_regs,
8463 ira_available_class_regs, ira_reg_class_cover_size,
8464 ira_reg_class_cover, ira_class_translate): Move to ira.h.
8466 * ira-lives.c (single_reg_class): Check mode to find how many
8467 registers are necessary for operand.
8468 (ira_implicitly_set_insn_hard_regs): New.
8470 * common.opt (fsched-pressure): New options.
8471 (fsched-reg-pressure-heuristic): Remove.
8473 * ira.c (setup_eliminable_regset): Rename to
8474 ira_setup_eliminable_regset. Make it external.
8475 (expand_reg_info): Pass cover class to setup_reg_classes.
8476 (ira): Call resize_reg_info instead of allocate_reg_info.
8478 * sched-deps.c: Include ira.h.
8479 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
8480 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
8481 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
8482 mark_insn_hard_regno_birth, mark_insn_reg_birth,
8483 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
8484 mark_insn_reg_store, mark_insn_reg_clobber,
8485 setup_insn_reg_pressure_info): New.
8486 (sched_analyze_1): Update implicit_reg_pending_uses.
8487 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
8488 Use them to create dependencies. Set insn reg uses and pressure
8489 info. Process reg_pending_uses in one place.
8490 (free_deps): Free implicit sets.
8491 (remove_from_deps): Remove implicit sets if necessary. Check
8492 implicit sets when clearing reg_last_in_use.
8493 (init_deps_global): Clear implicit_reg_pending_clobbers and
8494 implicit_reg_pending_uses.
8496 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
8497 ira_memory_move_cost, ira_class_hard_regs,
8498 ira_class_hard_regs_num, ira_no_alloc_regs,
8499 ira_available_class_regs, ira_reg_class_cover_size,
8500 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
8501 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
8502 ira_implicitly_set_insn_hard_regs): New prototypes.
8504 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
8505 cost_elements_num): New variables.
8506 (allocno_costs, total_costs): Rename to costs and
8507 total_allocno_costs.
8508 (COSTS_OF_ALLOCNO): Rename to COSTS.
8509 (allocno_pref): Rename to pref.
8510 (allocno_pref_buffer): Rename to pref_buffer.
8511 (common_classes): Rename to regno_cover_class.
8513 (record_reg_classes): Set allocno attributes only if allocno_p.
8514 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
8515 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
8516 and COSTS_OF_ALLOCNO.
8517 (print_costs): Rename to print_allocno_costs.
8518 (print_pseudo_costs): New.
8519 (process_bb_node_for_costs): Split into 2 functions with new
8520 function process_bb_for_costs. Pass BB to process_bb_for_costs.
8521 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
8522 new parameter dump_file. Use cost_elements_num instead of
8523 ira_allocnos_num. Make one iteration if preferred classes were
8524 already calculated for scheduler. Make 2 versions of code
8525 depending on allocno_p.
8526 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
8527 regno_cover_class and COSTS instead of common_classes and
8529 (init_costs, finish_costs): New.
8530 (ira_costs): Set up allocno_p and cost_elements_num. Call
8531 init_costs and finish_costs.
8532 (ira_set_pseudo_classes): New.
8534 * rtl.h (allocate_reg_info): Remove.
8535 (resize_reg_info): Change return type.
8536 (reg_cover_class): New.
8537 (setup_reg_classes): Add new parameter.
8539 * sched-int.h (struct deps_reg): New member implicit_sets.
8540 (sched_pressure_p, sched_regno_cover_class): New external definitions.
8541 (INCREASE_BITS): New macro.
8542 (struct reg_pressure_data, struct reg_use_data): New.
8543 (struct _haifa_insn_data): Remove reg_weight. Add members
8544 reg_pressure, reg_use_list, reg_set_list, and
8545 reg_pressure_excess_cost_change.
8546 (struct deps): New member implicit_sets.
8547 (pressure_p): New variable.
8548 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
8549 (struct reg_pressure_data, struct reg_use_data): New.
8550 (INSN_REG_WEIGHT): Remove.
8551 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
8552 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
8553 (sched_init_region_reg_pressure_info,
8554 sched_setup_bb_reg_pressure_info): New prototypes.
8556 * reginfo.c (struct reg_pref): New member coverclass.
8557 (reg_cover_class): New function.
8558 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
8559 (reg_info_size): New variable.
8560 (allocate_reg_info): Make static. Setup reg_info_size.
8561 (resize_reg_info): Use reg_info_size. Return flag of resizing.
8562 (setup_reg_classes): Add a new parameter. Setup cover class too.
8564 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
8567 * sched-rgn.c (deps_join): Set up implicit_sets.
8568 (schedule_region): Set up region and basic blocks pressure
8571 * passes.c (init_optimization_passes): Move
8572 pass_subregs_of_mode_init before pass_sched.
8574 2009-09-02 Martin Jambor <mjambor@suse.cz>
8576 * tree-sra.c (struct access): New field grp_hint.
8577 (dump_access): Dump grp_hint.
8578 (sort_and_splice_var_accesses): Set grp_hint if a group is read
8580 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
8581 those which have been specifically read and somehow written to.
8582 (propagate_subacesses_accross_link): Set grp_hint of right child and
8583 also possibly of the left child.
8585 2009-09-02 Jakub Jelinek <jakub@redhat.com>
8587 * tree-object-size.c (addr_object_size): Always use object_size_type
8588 0 or 2 when determining the pointer pointed object size.
8590 2009-09-02 Richard Guenther <rguenther@suse.de>
8593 2009-08-31 Richard Guenther <rguenther@suse.de>
8595 * builtins.c (fold_builtin_memory_op): Use the alias oracle
8596 to query if the memory regions for memmove overlap.
8597 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8598 asserts on pointers, instead deal with odd trees.
8599 (ptr_derefs_may_alias_p): Likewise.
8600 (refs_may_alias_p_1): Constructor bases also never alias.
8602 2009-08-01 Christian Bruel <christian.bruel@st.com>
8605 2009-07-31 Christian Bruel <christian.bruel@st.com>
8606 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8608 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
8610 * doc/invoke.texi (-fvar-tracking-assignments): New.
8611 (-fvar-tracking-assignments-toggle): New.
8612 (-fdump-final-insns=file): Mark filename as optional.
8613 (--param min-nondebug-insn-uid): New.
8614 (-gdwarf-@{version}): Mention version 4.
8615 * opts.c (common_handle_option): Accept it.
8616 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
8617 * regrename.c (regrename_optimize): Drop last. Don't count debug
8618 insns as uses. Don't reject change because of debug insn.
8619 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
8620 from the chain starter, and check for inexact matches in DEBUG_INSNS.
8621 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
8622 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
8623 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
8624 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
8625 * doc/gimple.texi (is_gimple_debug): New.
8626 (gimple_debug_bind_p): New.
8627 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
8628 * doc/install.texi (bootstrap-debug): More details.
8629 (bootstrap-debug-big, bootstrap-debug-lean): Document.
8630 (bootstrap-debug-lib): More details.
8631 (bootstrap-debug-ckovw): Update.
8632 (bootstrap-time): New.
8633 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
8634 (insert_phi_nodes_for): Insert debug stmts.
8635 (rewrite_stmt): Take iterator. Insert debug stmts.
8636 (rewrite_enter_block): Adjust.
8637 (maybe_replace_use_in_debug_stmt): New.
8638 (rewrite_update_stmt): Use it.
8639 (mark_use_interesting): Return early for debug stmts.
8640 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
8641 stmts before replacing stmt.
8642 (move_computations_stmt): Likewise.
8643 * ira-conflicts.c (add_copies): Skip debug insns.
8644 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
8645 (regstat_bb_compute_ri): Skip debug insns.
8646 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
8647 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
8648 check_loop_closed_ssa_stmt): Skip debug stmts.
8649 * tree-tailcall.c (find_tail_calls): Likewise.
8650 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8651 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
8652 (build_var_debug_value_stat): Declare.
8653 (build_var_debug_value): Define.
8654 (target_for_debug_bind): Declare.
8655 * reload.c (find_equiv_reg): Skip debug insns.
8656 * rtlanal.c (reg_used_between_p): Skip debug insns.
8657 (side_effects_p): Likewise.
8658 (canonicalize_condition): Likewise.
8659 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
8660 insns never depend on debug insns.
8661 (create_ddg_dep_no_link): Likewise.
8662 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
8663 Don't add inter-loop dependencies for debug insns.
8664 (build_intra_loop_deps): Likewise.
8665 (create_ddg): Count debug insns.
8666 * ddg.h (struct ddg::num_debug): New.
8667 (num_backargs): Pair up with previous int field.
8668 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
8669 -fcompare-debug-second.
8670 * final.c (get_attr_length_1): Skip debug insns.
8671 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
8672 * gcc.c (invoke_as): Call compare-debug-dump-opt.
8673 (driver_self_specs): Map -fdump-final-insns to
8674 -fdump-final-insns=..
8675 (get_local_tick): New.
8676 (compare_debug_dump_opt_spec_function): Test for . argument and
8677 compute output name. Compute temp output spec without flag name.
8678 Compute -frandom-seed.
8679 (OPT): Undef after use.
8680 * cfgloopanal.c (num_loop_insns): Skip debug insns.
8681 (average_num_loop_insns): Likewise.
8682 * params.h (MIN_NONDEBUG_INSN_UID): New.
8683 * gimple.def (GIMPLE_DEBUG): New.
8684 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
8685 * auto-inc-dec.c (merge_in_block): Skip debug insns.
8686 (merge_in_block): Fix whitespace.
8687 * toplev.c (flag_var_tracking): Update comment.
8688 (flag_var_tracking_assignments): New.
8689 (flag_var_tracking_assignments_toggle): New.
8690 (process_options): Don't open final insns dump file if we're not
8691 going to write to it. Compute defaults for var_tracking.
8692 * df-scan.c (df_insn_rescan_debug_internal): New.
8693 (df_uses_record): Handle debug insns.
8694 * haifa-sched.c (ready): Initialize n_debug.
8695 (contributes_to_priority): Skip debug insns.
8696 (dep_list_size): New.
8698 (rank_for_schedule): Likewise. Schedule debug insns as soon as
8699 they're ready. Disregard previous debug insns to make decisions.
8700 (queue_insn): Never queue debug insns.
8701 (ready_add, ready_remove_first, ready_remove): Count debug insns.
8702 (schedule_insn): Don't reject debug insns because of issue rate.
8703 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
8704 (queue_to_ready): Skip and discount debug insns.
8705 (choose_ready): Let debug insns through.
8706 (schedule_block): Check boundary debug insns. Discount debug
8707 insns, schedule them early. Adjust whitespace.
8708 (set_priorities): Check for boundary debug insns.
8709 (add_jump_dependencies): Use dep_list_size.
8710 (prev_non_location_insn): New.
8711 (check_cfg): Use it.
8712 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
8714 (remove_unused_ivs): Reset debug stmts.
8715 * modulo-sched.c (const_iteration_count): Skip debug insns.
8716 (res_MII): Discount debug insns.
8717 (loop_single_full_bb_p): Skip debug insns.
8718 (sms_schedule): Likewise.
8719 (sms_schedule_by_order): Likewise.
8720 (ps_has_conflicts): Likewise.
8721 * caller-save.c (refmarker_fn): New.
8722 (save_call_clobbered_regs): Replace regs with saved mem in
8724 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
8725 Call refmarker_fn mark for hardregnos.
8726 (mark_reg_as_referenced): New.
8727 (replace_reg_with_saved_mem): New.
8728 * ipa-pure-const.c (check_stmt): Skip debug stmts.
8729 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
8731 (cse_extended_basic_block): Skip debug insns.
8732 (count_reg_usage): Likewise.
8733 (is_dead_reg): New, split out of...
8734 (set_live_p): ... here.
8735 (insn_live_p): Use it for debug insns.
8736 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
8737 (execute_optimize_stdarg): Likewise.
8738 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8739 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
8740 changes in debug stmts as changes.
8741 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
8742 (moveup_expr): Don't move across debug insns. Don't move
8743 debug insn if it would create a bookkeeping block.
8744 (moveup_expr_cached): Don't use cache for debug insns that
8745 are heads of blocks.
8746 (compute_av_set_inside_bb): Skip debug insns.
8747 (sel_rank_for_schedule): Schedule debug insns first. Remove
8749 (block_valid_for_bookkeeping_p); Support lax searches.
8750 (create_block_for_bookkeeping): Adjust block numbers when
8751 encountering debug-only blocks.
8752 (find_place_for_bookkeeping): Deal with debug-only blocks.
8753 (generate_bookkeeping_insn): Accept no place to insert.
8754 (remove_temp_moveop_nops): New argument full_tidying.
8755 (prepare_place_to_insert): Deal with debug insns.
8756 (advance_state_on_fence): Debug insns don't start cycles.
8757 (update_boundaries): Take fence as argument. Deal with
8759 (schedule_expr_on_boundary): No full_tidying on debug insns.
8760 (fill_insns): Deal with debug insns.
8761 (track_scheduled_insns_and_blocks): Don't count debug insns.
8762 (need_nop_to_preserve_insn_bb): New, split out of...
8763 (remove_insn_from_stream): ... this.
8764 (fur_orig_expr_not_found): Skip debug insns.
8765 * rtl.def (VALUE): Move up.
8767 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
8768 (nearest_common_dominator_of_uses): Take debug_stmts argument.
8769 Set it if debug stmts are found.
8770 (statement_sink_location): Skip debug stmts. Propagate
8771 moving defs into debug stmts.
8772 * ifcvt.c (first_active_insn): Skip debug insns.
8773 (last_active_insns): Likewise.
8774 (cond_exec_process_insns): Likewise.
8775 (noce_process_if_block): Likewise.
8776 (check_cond_move_block): Likewise.
8777 (cond_move_convert_if_block): Likewise.
8778 (block_jumps_and_fallthru_p): Likewise.
8779 (dead_or_predicable): Likewise.
8780 * dwarf2out.c (debug_str_hash_forced): New.
8781 (find_AT_string): Add comment.
8782 (gen_label_for_indirect_string): New.
8783 (get_debug_string_label): New.
8784 (AT_string_form): Use it.
8785 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
8786 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
8787 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
8788 several operations that cannot be represented with DWARF opcodes.
8789 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
8790 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
8791 (dwarf2out_var_location): Take during-call mark into account.
8792 (output_indirect_string): Update comment. Output if there are
8793 label and references.
8794 (prune_indirect_string): New.
8795 (prune_unused_types): Call it if debug_str_hash_forced.
8796 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
8797 (dw_long_long_const): Remove.
8798 (struct dw_val_struct): Change val_long_long type to rtx.
8799 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
8800 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
8801 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
8802 component instead of HOST_BITS_PER_LONG.
8803 (output_loc_operands): Likewise. For const8* assert
8804 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
8805 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
8806 rather than HOST_BITS_PER_LONG is >= 64.
8807 (add_AT_long_long): Remove val_hi and val_lo arguments, add
8809 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
8810 HOST_BITS_PER_LONG for dw_val_class_long_long.
8811 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
8812 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
8813 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
8815 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
8816 Handle DW_OP_implicit_value.
8817 (extract_int): Move prototype earlier.
8818 (mem_loc_descriptor): For SUBREG punt if inner
8819 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
8820 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
8821 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
8822 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
8823 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
8824 instead of Pmode size.
8825 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
8826 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
8827 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
8828 (concat_loc_descriptor, concatn_loc_descriptor,
8829 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
8830 (add_location_or_const_value_attribute): Likewise. For single
8831 location loc_lists attempt to use add_const_value_attribute
8832 for constant decls. Add DW_AT_const_value even if
8833 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
8835 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
8836 (control_flow_insn_p): Likewise.
8837 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
8838 (separate_decls_in_region_debug_bind): New.
8839 (separate_decls_in_region): Process debug bind stmts afterwards.
8840 * recog.c (verify_changes): Handle debug insns.
8841 (extract_insn): Likewise.
8842 (peephole2_optimize): Skip debug insns.
8843 * dse.c (scan_insn): Skip debug insns.
8844 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
8846 (setup_id_for_insn): Handle debug insns.
8847 (maybe_tidy_empty_bb): Adjust whitespace.
8848 (tidy_control_flow): Skip debug insns.
8849 (sel_remove_insn): Adjust for debug insns.
8850 (sel_estimate_number_of_insns): Skip debug insns.
8851 (create_insn_rtx_from_pattern): Handle debug insns.
8852 (create_copy_of_insn_rtx): Likewise.
8853 * sel-sched-.h (sel_bb_end): Declare.
8854 (sel_bb_empty_or_nop_p): New.
8855 (get_all_loop_exits): Use it.
8856 (_eligible_successor_edge_p): Likewise.
8857 (return_nop_to_pool): Adjust.
8858 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
8859 * ira-lives.c (process_bb_node_lives): Skip debug insns.
8860 * gimple-pretty-print.c (dump_gimple_debug): New.
8861 (dump_gimple_stmt): Use it.
8862 (dump_bb_header): Skip gimple debug stmts.
8863 * regmove.c (optimize_reg_copy_1): Discount debug insns.
8864 (fixup_match_2): Likewise.
8865 (regmove_backward_pass): Likewise. Simplify combined
8866 replacement. Handle debug insns.
8867 * function.c (instantiate_virtual_regs): Handle debug insns.
8868 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
8869 * print-rtl.h: Include cselib.h.
8870 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
8871 * df.h (df_inns_rescan_debug_internal): Declare.
8872 * gcse.c (alloc_hash_table): Estimate n_insns.
8873 (cprop_insn): Don't regard debug insns as changes.
8874 (bypass_conditional_jumps): Skip debug insns.
8875 (one_pre_gcse_pass): Adjust.
8876 (one_code_hoisting_pass): Likewise.
8877 (compute_ld_motion_mems): Skip debug insns.
8878 (one_cprop_pass): Adjust.
8879 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
8880 (if_convertible_stmt_p): Handle debug stmts.
8881 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
8882 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
8883 * ira-build.c (create_bb_allocnos): Skip debug insns.
8884 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
8885 (has_single_use): Likewise.
8886 (single_imm_use): Likewise.
8887 (num_imm_uses): Likewise.
8888 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
8889 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
8890 (create_outofssa_var_map): Likewise.
8891 * lower-subreg.c (adjust_decomposed_uses): New.
8892 (resolve_debug): New.
8893 (decompose_multiword_subregs): Use it.
8894 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
8895 * emit-rtl.c: Include params.h.
8896 (cur_debug_insn_uid): Define.
8897 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
8898 (copy_rtx_if_shared_1): Handle debug insns.
8899 (reset_used_flags): Likewise.
8900 (set_used_flags): LIkewise.
8901 (get_max_insn_count): New.
8902 (next_nondebug_insn): New.
8903 (prev_nondebug_insn): New.
8904 (make_debug_insn_raw): New.
8905 (emit_insn_before_noloc): Handle debug insns.
8906 (emit_jump_insn_before_noloc): Likewise.
8907 (emit_call_insn_before_noloc): Likewise.
8908 (emit_debug_insn_before_noloc): New.
8909 (emit_insn_after_noloc): Handle debug insns.
8910 (emit_jump_insn_after_noloc): Likewise.
8911 (emit_call_insn_after_noloc): Likewise.
8912 (emit_debug_insn_after_noloc): Likewise.
8913 (emit_insn_after): Take loc from earlier non-debug insn.
8914 (emit_jump_insn_after): Likewise.
8915 (emit_call_insn_after): Likewise.
8916 (emit_debug_insn_after_setloc): New.
8917 (emit_debug_insn_after): New.
8918 (emit_insn_before): Take loc from later non-debug insn.
8919 (emit_jump_insn_before): Likewise.
8920 (emit_call_insn_before): Likewise.
8921 (emit_debug_insn_before_setloc): New.
8922 (emit_debug_insn_before): New.
8923 (emit_insn): Handle debug insns.
8924 (emit_debug_insn): New.
8925 (emit_jump_insn): Handle debug insns.
8926 (emit_call_insn): Likewise.
8928 (init_emit): Take min-nondebug-insn-uid into account.
8929 Initialize cur_debug_insn_uid.
8930 (emit_copy_of_insn_after): Handle debug insns.
8931 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
8932 location of single rhs in place.
8933 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
8934 (floor_sdiv_adjust): New.
8935 (cell_sdiv_adjust): New.
8936 (cell_udiv_adjust): New.
8937 (round_sdiv_adjust): New.
8938 (round_udiv_adjust): New.
8939 (wrap_constant): Moved from cselib.
8940 (unwrap_constant): New.
8941 (expand_debug_expr): New.
8942 (expand_debug_locations): New.
8943 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
8945 (gimple_expand_cfg): Expand debug locations.
8946 * cselib.c: Include tree-pass.h.
8947 (struct expand_value_data): New.
8948 (cselib_record_sets_hook): New.
8949 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
8950 (cselib_clear_table): Move, and implemnet in terms of...
8951 (cselib_reset_table_with_next_value): ... this.
8952 (cselib_get_next_unknown_value): New.
8953 (discard_useless_locs): Don't discard preserved values.
8954 (cselib_preserve_value): New.
8955 (cselib_preserved_value_p): New.
8956 (cselib_preserve_definitely): New.
8957 (cselib_clear_preserve): New.
8958 (cselib_preserve_only_values): New.
8959 (new_cselib_val): Take rtx argument. Dump it in details.
8960 (cselib_lookup_mem): Adjust.
8961 (expand_loc): Take regs_active in struct. Adjust. Silence
8962 dumps unless details are requested.
8963 (cselib_expand_value_rtx_cb): New.
8964 (cselib_expand_value_rtx): Rename and reimplment in terms of...
8965 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
8966 without details. Copy more subregs. Try to resolve values
8967 using a callback. Wrap constants.
8968 (cselib_subst_to_values): Adjust.
8969 (cselib_log_lookup): New.
8970 (cselib_lookup): Call it.
8971 (cselib_invalidate_regno): Don't count preserved values as useless.
8972 (cselib_invalidate_mem): Likewise.
8973 (cselib_record_set): Likewise.
8974 (struct set): Renamed to cselib_set, moved to cselib.h.
8975 (cselib_record_sets): Adjust. Call hook.
8976 (cselib_process_insn): Reset table when it would be cleared.
8977 (dump_cselib_val): New.
8978 (dump_cselib_table): New.
8979 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
8980 (remove_forwarder_block): Support moving debug stmts.
8981 * cselib.h (cselib_record_sets_hook): Declare.
8982 (cselib_expand_callback): New type.
8983 (cselib_expand_value_rtx_cb): Declare.
8984 (cselib_reset_table_with_next_value): Declare.
8985 (cselib_get_next_unknown_value): Declare.
8986 (cselib_preserve_value): Declare.
8987 (cselib_preserved_value_p): Declare.
8988 (cselib_preserve_only_values): Declare.
8989 (dump_cselib_table): Declare.
8990 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
8991 (try_crossjump_to_edge): Likewise.
8992 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
8993 dominated blocks when debug stmts are present.
8994 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
8995 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
8996 (set_var_live_on_entry): Likewise.
8997 * loop-invariant.c (find_invariants_bb): Skip debug insns.
8998 * cfglayout.c (curr_location, last_location): Make static.
8999 (set_curr_insn_source_location): Don't avoid bouncing.
9000 (get_curr_insn_source_location): New.
9001 (get_curr_insn_block): New.
9002 (duplicate_insn_chain): Handle debug insns.
9003 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
9005 * common.opt (fcompare-debug): Move to sort order.
9006 (fdump-unnumbered-links): Likewise.
9007 (fvar-tracking-assignments): New.
9008 (fvar-tracking-assignments-toggle): New.
9009 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
9010 because of debug stmts.
9011 (mark_stmt_if_obviously_necessary): Mark debug stmts.
9012 (eliminate_unnecessary_stmts): Walk dominated blocks before
9014 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
9015 * ira.c (memref_used_between_p): Skip debug insns.
9016 (update_equiv_regs): Likewise.
9017 * sched-deps.c (sd_lists_size): Accept empty list.
9018 (sd_init_insn): Mark debug insns.
9019 (sd_finish_insn): Unmark them.
9020 (sd_add_dep): Reject non-debug deps on debug insns.
9021 (fixup_sched_groups): Give debug insns group treatment.
9023 (sched_analyze_reg): Don't mark debug insns for sched before call.
9024 (sched_analyze_2): Handle debug insns.
9025 (sched_analyze_insn): Compute next non-debug insn. Handle debug
9027 (deps_analyze_insn): Handle debug insns.
9028 (deps_start_bb): Skip debug insns.
9029 (init_deps): Initialize last_debug_insn.
9030 * tree-ssa.c (target_for_debug_bind): New.
9031 (find_released_ssa_name): New.
9032 (propagate_var_def_into_debug_stmts): New.
9033 (propagate_defs_into_debug_stmts): New.
9034 (verify_ssa): Skip debug bind stmts without values.
9035 (warn_uninialized_vars): Skip debug stmts.
9036 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
9037 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
9038 (rtx_equal_p): Likewise.
9039 * ira-costs.c (scan_one_insn): Skip debug insns.
9040 (process_bb_node_for_hard_reg_moves): Likewise.
9041 * rtl.h (DEBUG_INSN_P): New.
9042 (NONDEBUG_INSN_P): New.
9043 (MAY_HAVE_DEBUG_INSNS): New.
9044 (INSN_P): Accept debug insns.
9045 (RTX_FRAME_RELATED_P): Likewise.
9046 (INSN_DELETED_P): Likewise
9047 (PAT_VAR_LOCATION_DECL): New.
9048 (PAT_VAR_LOCATION_LOC): New.
9049 (PAT_VAR_OCATION_STATUS): New.
9050 (NOTE_VAR_LOCATION_DECL): Reimplement.
9051 (NOTE_VAR_LOCATION_LOC): Likewise.
9052 (NOTE_VAR_LOCATION_STATUS): Likewise.
9053 (INSN_VAR_LOCATION): New.
9054 (INSN_VAR_LOCATION_DECL): New.
9055 (INSN_VAR_LOCATION_LOC): New.
9056 (INSN_VAR_LOCATION_STATUS): New.
9057 (gen_rtx_UNKNOWN_VAR_LOC): New.
9058 (VAR_LOC_UNKNOWN_P): New.
9059 (NOTE_DURING_CALL_P): New.
9060 (SCHED_GROUP_P): Accept debug insns.
9061 (emit_debug_insn_before): Declare.
9062 (emit_debug_insn_before_noloc): Declare.
9063 (emit_debug_insn_beore_setloc): Declare.
9064 (emit_debug_insn_after): Declare.
9065 (emit_debug_insn_after_noloc): Declare.
9066 (emit_debug_insn_after_setloc): Declare.
9067 (emit_debug_insn): Declare.
9068 (make_debug_insn_raw): Declare.
9069 (prev_nondebug_insn): Declare.
9070 (next_nondebug_insn): Declare.
9071 (delegitimize_mem_from_attrs): Declare.
9072 (get_max_insn_count): Declare.
9073 (wrap_constant): Declare.
9074 (unwrap_constant): Declare.
9075 (get_curr_insn_source_location): Declare.
9076 (get_curr_insn_block): Declare.
9077 * tree-inline.c (insert_debug_decl_map): New.
9078 (processing_debug_stmt): New.
9079 (remap_decl): Don't create new mappings in debug stmts.
9080 (remap_gimple_op_r): Don't add references in debug stmts.
9081 (copy_tree_body_r): Likewise.
9082 (remap_gimple_stmt): Handle debug bind stmts.
9083 (copy_bb): Skip debug stmts.
9084 (copy_edges_for_bb): Likewise.
9085 (copy_debug_stmt): New.
9086 (copy_debug_stmts): New.
9087 (copy_body): Copy debug stmts at the end.
9088 (insert_init_debug_bind): New.
9089 (insert_init_stmt): Take id. Skip and emit debug stmts.
9090 (setup_one_parameter): Remap variable earlier, register debug mapping.
9091 (estimate_num_insns): Skip debug stmts.
9092 (expand_call_inline): Preserve debug_map.
9093 (optimize_inline_calls): Check for no debug_stmts left-overs.
9094 (unsave_expr_now): Preserve debug_map.
9095 (copy_gimple_seq_and_replace_locals): Likewise.
9096 (tree_function_versioning): Check for no debug_stmts left-overs.
9097 Init and destroy debug_map as needed. Split edges unconditionally.
9098 (build_duplicate_type): Init and destroy debug_map as needed.
9099 * tree-inline.h: Include gimple.h instead of pointer-set.h.
9100 (struct copy_body_data): Add debug_stmts and debug_map.
9101 * sched-int.h (struct ready_list): Add n_debug.
9102 (struct deps): Add last_debug_insn.
9103 (DEBUG_INSN_SCHED_P): New.
9104 (BOUNDARY_DEBUG_INSN_P): New.
9105 (SCHEDULE_DEBUG_INSN_P): New.
9106 (sd_iterator_cond): Accept empty list.
9107 * combine.c (create_log_links): Skip debug insns.
9108 (combine_instructions): Likewise.
9109 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
9110 return value is always unshared.
9111 (struct rtx_subst_pair): New.
9112 (auto_adjust_pair): New.
9113 (propagate_for_debug_subst): New.
9114 (propagate_for_debug): New.
9115 (try_combine): Skip debug insns. Propagate removed defs into
9117 (next_nonnote_nondebug_insn): New.
9118 (distribute_notes): Use it. Skip debug insns.
9119 (distribute_links): Skip debug insns.
9120 * tree-outof-ssa.c (set_location_for_edge): Likewise.
9121 * resource.c (mark_target_live_regs): Likewise.
9122 * var-tracking.c: Include cselib.h and target.h.
9123 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
9125 (micro_operation_type_name): New.
9126 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
9127 (struct micro_operation_def): Update comments.
9128 (decl_or_value): New type. Use instead of decls.
9129 (struct emit_note_data_def): Add vars.
9130 (struct attrs_def): Use decl_or_value.
9131 (struct variable_tracking_info_def): Add permp, flooded.
9132 (struct location_chain_def): Update comment.
9133 (struct variable_part_def): Use decl_or_value.
9134 (struct variable_def): Make var_part a variable length array.
9136 (scratch_regs): New.
9137 (cselib_hook_called): New.
9138 (dv_is_decl_p): New.
9139 (dv_is_value_p): New.
9142 (dv_as_opaque): New.
9143 (dv_onepart_p): New.
9145 (IS_DECL_CODE): New.
9146 (check_value_is_not_decl): New.
9147 (dv_from_decl): New.
9148 (dv_from_value): New.
9149 (dv_htab_hash): New.
9150 (variable_htab_hash): Use it.
9151 (variable_htab_eq): Support values.
9152 (variable_htab_free): Free from the right pool.
9153 (attrs_list_member, attrs_list_insert): Use decl_or_value.
9154 (attrs_list_union): Adjust.
9155 (attrs_list_mpdv_union): New.
9156 (tie_break_pointers): New.
9157 (canon_value_cmp): New.
9158 (unshare_variable): Return possibly-modified slot.
9159 (vars_copy_1): Adjust.
9160 (var_reg_decl_set): Adjust. Split out of...
9161 (var_reg_set): ... this.
9162 (get_init_value): Adjust.
9163 (var_reg_delete_and_set): Adjust.
9164 (var_reg_delete): Adjust.
9165 (var_regno_delete): Adjust.
9166 (var_mem_decl_set): Split out of...
9167 (var_mem_set): ... this.
9168 (var_mem_delete_and_set): Adjust.
9169 (var_mem_delete): Adjust.
9173 (variable_union): Adjust. Speed up merge of 1-part vars.
9174 (variable_canonicalize): Use unshared slot.
9175 (VALUED_RECURSED_INTO): New.
9176 (find_loc_in_1pdv): New.
9177 (struct dfset_merge): New.
9178 (insert_into_intersection): New.
9179 (intersect_loc_chains): New.
9181 (canonicalize_loc_order_check): New.
9182 (canonicalize_values_mark): New.
9183 (canonicalize_values_star): New.
9184 (variable_merge_over_cur): New.
9185 (variable_merge_over_src): New.
9186 (dataflow_set_merge): New.
9187 (dataflow_set_equiv_regs): New.
9188 (remove_duplicate_values): New.
9189 (struct dfset_post_merge): New.
9190 (variable_post_merge_new_vals): New.
9191 (variable_post_merge_perm_vals): New.
9192 (dataflow_post_merge_adjust): New.
9193 (find_mem_expr_in_1pdv): New.
9194 (dataflow_set_preserve_mem_locs): New.
9195 (dataflow_set_remove_mem_locs): New.
9196 (dataflow_set_clear_at_call): New.
9197 (onepart_variable_different_p): New.
9198 (variable_different_p): Use it.
9199 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
9200 (track_expr_p): Add need_rtl parameter. Don't generate rtl
9202 (track_loc_p): Pass it true.
9203 (struct count_use_info): New.
9204 (find_use_val): New.
9205 (replace_expr_with_values): New.
9207 (use_type): New, partially split out of...
9208 (count_uses): ... this. Count new micro-ops.
9209 (count_uses_1): Adjust.
9210 (count_stores): Adjust.
9211 (count_with_sets): New.
9212 (VAL_NEEDS_RESOLUTION): New.
9213 (VAL_HOLDS_TRACK_EXPR): New.
9214 (VAL_EXPR_IS_COPIED): New.
9215 (VAL_EXPR_IS_CLOBBERED): New.
9216 (add_uses): Adjust. Generate new micro-ops.
9217 (add_uses_1): Adjust.
9218 (add_stores): Generate new micro-ops.
9219 (add_with_sets): New.
9220 (find_src_status): Adjust.
9221 (find_src_set_src): Adjust.
9222 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
9223 Handle new micro-ops. Canonicalize value equivalances.
9224 (vt_find_locations): Compute total size of hash tables for
9225 dumping. Perform merge for var-tracking-assignments. Don't
9226 disregard single-block loops.
9227 (dump_attrs_list): Handle decl_or_value.
9228 (dump_variable): Take variable. Deal with decl_or_value.
9229 (dump_variable_slot): New.
9230 (dump_vars): Use it.
9231 (dump_dataflow_sets): Adjust.
9232 (set_slot_part): New, extended to support one-part variables
9233 after splitting out of...
9234 (set_variable_part): ... this.
9235 (clobber_slot_part): New, split out of...
9236 (clobber_variable_part): ... this.
9237 (delete_slot_part): New, split out of...
9238 (delete_variable_part): .... this.
9239 (check_wrap_constant): New.
9240 (vt_expand_loc_callback): New.
9241 (vt_expand_loc): New.
9242 (emit_note_insn_var_location): Adjust. Handle values. Handle
9243 EMIT_NOTE_AFTER_CALL_INSN.
9244 (emit_notes_for_differences_1): Adjust. Handle values.
9245 (emit_notes_for_differences_2): Likewise.
9246 (emit_notes_for_differences): Adjust.
9247 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
9248 Adjust. Handle new micro-ops.
9249 (vt_add_function_parameters): Adjust. Create and bind values.
9250 (vt_initialize): Adjust. Initialize scratch_regs and
9251 valvar_pool, flooded and perm.. Initialize and use cselib. Log
9252 operations. Move some code to count_with_sets and add_with_sets.
9253 (delete_debug_insns): New.
9254 (vt_debug_insns_local): New.
9255 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
9257 (var_tracking_main): If var-tracking-assignments is enabled
9258 but var-tracking isn't, delete debug insns and leave. Likewise
9259 if we exceed limits or fail the stack adjustments tests, and
9260 after all var-tracking processing.
9261 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
9262 (dataflow_set): Add traversed_vars.
9263 (value_chain, const_value_chain): New typedefs.
9264 (value_chain_pool, value_chains): New variables.
9265 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
9266 add_value_chains, add_cselib_value_chains, remove_value_chain,
9267 remove_value_chains, remove_cselib_value_chains): New functions.
9268 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
9269 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
9271 (shared_hash_find_slot_unshare, shared_hash_find_slot,
9272 shared_hash_find_slot_noinsert, shared_hash_find): Update.
9273 (dst_can_be_shared): New variable.
9274 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
9275 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
9276 different from set->vars, look up slot again instead of using the
9278 (dataflow_set_init): Initialize traversed_vars.
9279 (variable_union): Use shared_hash_*. Use initially NO_INSERT
9280 lookup if set->vars is shared. Don't keep slot cleared before
9281 calling unshare_variable. Unshare set->vars if needed. Adjust
9282 unshare_variable callers. Clear dst_can_be_shared if needed.
9283 Even ->refcount == 1 vars must be unshared if set->vars is shared
9284 and var needs to be modified.
9285 (dataflow_set_union): Set traversed_vars during canonicalization.
9286 (VALUE_CHANGED, DECL_CHANGED): Define.
9287 (set_dv_changed, dv_changed_p): New static inlines.
9288 (track_expr_p): Clear DECL_CHANGED.
9289 (dump_dataflow_sets): Set it.
9290 (variable_was_changed): Call set_dv_changed.
9291 (emit_note_insn_var_location): Likewise.
9292 (changed_variables_stack): New variable.
9293 (check_changed_vars_1, check_changed_vars_2): New functions.
9294 (emit_notes_for_changes): Do nothing if changed_variables is
9295 empty. Traverse changed_variables with check_changed_vars_1,
9296 call check_changed_vars_2 on each changed_variables_stack entry.
9297 (emit_notes_in_bb): Add SET argument. Just clear it at the
9298 beginning, use it instead of local &set, don't destroy it at the end.
9299 (vt_emit_notes): Call dataflow_set_clear early on all
9300 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
9301 computed set, dataflow_set_clear also VTI(bb)->in when we are
9302 done with the basic block. Initialize changed_variables_stack,
9303 free it afterwards. If ENABLE_CHECKING verify that after noting
9304 differences to an empty set value_chains hash table is empty.
9305 (vt_initialize): Initialize value_chains and value_chain_pool.
9306 (vt_finalize): Delete value_chains htab, free value_chain_pool.
9307 (variable_tracking_main): Call dump_dataflow_sets before calling
9308 vt_emit_notes, not after it.
9309 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
9310 (propagate_var_def_into_debug_stmts): Declare.
9311 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
9312 (df_set_note): Reject debug insns.
9313 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
9314 add notes to debug insns.
9315 (df_note_bb_compute): Adjust. Likewise.
9316 (df_simulate_uses): Skip debug insns.
9317 (df_simulate_initialize_backwards): Likewise.
9318 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
9319 (subst_stack_regs_pat): Reject debug insns.
9320 (convert_regs_1): Handle debug insns.
9321 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
9322 (print-rtl.o): Depend on cselib.h.
9323 (cselib.o): Depend on TREE_PASS_H.
9324 (var-tracking.o): Depend on cselib.h and TARGET_H.
9325 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
9326 (init_ready_list): Skip boundary debug insns.
9327 (add_branch_dependences): Skip debug insns.
9328 (free_block_dependencies): Check for blocks with only debug insns.
9329 (compute_priorities): Likewise.
9330 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
9331 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
9333 (gimple_build_debug_bind_stat): New.
9334 (empty_body_p): Skip debug stmts.
9335 (gimple_has_side_effects): Likewise.
9336 (gimple_rhs_has_side_effects): Likewise.
9337 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
9338 (gimple_build_debug_bind_stat): Declare.
9339 (gimple_build_debug_bind): Define.
9340 (is_gimple_debug): New.
9341 (gimple_debug_bind_p): New.
9342 (gimple_debug_bind_get_var): New.
9343 (gimple_debug_bind_get_value): New.
9344 (gimple_debug_bind_get_value_ptr): New.
9345 (gimple_debug_bind_set_var): New.
9346 (gimple_debug_bind_set_value): New.
9347 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
9348 (gimple_debug_bind_reset_value): New.
9349 (gimple_debug_bind_has_value_p): New.
9350 (gsi_next_nondebug): New.
9351 (gsi_prev_nondebug): New.
9352 (gsi_start_nondebug_bb): New.
9353 (gsi_last_nondebug_bb): New.
9354 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
9355 (print_insn): Handle DEBUG_INSN.
9356 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
9357 of first insn prevail.
9358 (first_stmt): Skip debug stmts.
9359 (first_non_label_stmt): Likewise.
9360 (last_stmt): Likewise.
9361 (has_zero_uses_1): New.
9362 (single_imm_use_1): New.
9363 (verify_gimple_debug): New.
9364 (verify_types_in_gimple_stmt): Handle debug stmts.
9365 (verify_stmt): Likewise.
9366 (debug_loop_num): Skip debug stmts.
9367 (remove_edge_and_dominated_blocks): Remove dominators last.
9368 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
9369 (linearize_expr): Likewise.
9370 * config/i386/i386.c (ix86_delegitimize_address): Call
9371 default implementation.
9372 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
9373 (group_barrier_needed): Skip debug insns.
9374 (emit_insn_group_barriers): Likewise.
9375 (emit_all_insn_group_barriers): Likewise.
9376 (ia64_variable_issue): Handle debug insns.
9377 (ia64_dfa_new_cycle): Likewise.
9378 (final_emit_insn_group_barriers): Skip debug insns.
9379 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
9380 def cfa without frame.
9381 (process_set): Likewise.
9382 (process_for_unwind_directive): Pass frame on.
9383 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9384 (rs6000_delegitimize_address): New.
9385 (rs6000_debug_adjust_cost): Handle debug insns.
9386 (is_microcoded_insn): Likewise.
9387 (is_cracked_insn): Likewise.
9388 (is_nonpipeline_insn): Likewise.
9389 (insn_must_be_first_in_group): Likewise.
9390 (insn_must_be_last_in_group): Likewise.
9391 (force_new_group): Likewise.
9392 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
9393 contains only debug insns.
9394 (rtl_merge_blocks): Skip debug insns.
9395 (purge_dead_edges): Likewise.
9396 (rtl_block_ends_with_call_p): Skip debug insns.
9397 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
9398 (mark_reg_dependencies): Skip debug insns.
9399 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
9400 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
9401 * tree-ssa-threadedge.c
9402 (record_temporary_equivalences_from_stmts): Skip debug stmts.
9403 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
9404 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
9405 (copyprop_hardreg_forward_1): Handle debug insns.
9406 * reload1.c (reload): Skip debug insns. Replace unassigned
9407 pseudos in debug insns with their equivalences.
9408 (eliminate_regs_in_insn): Skip debug insns.
9409 (emit_input_reload_insns): Skip debug insns at first, adjust
9411 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
9412 (get_indirect_ref_operands): Pass opf_no_vops on.
9413 (get_expr_operands): Likewise. Skip debug stmts.
9414 (parse_ssa_operands): Scan debug insns with opf_no_vops.
9416 2009-09-01 Richard Henderson <rth@redhat.com>
9418 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
9419 stmt_ends_pp_p statements at least once.
9420 * tree-vrp.c (vrp_initialize): Likewise.
9421 (vrp_visit_stmt): Be prepared for non-interesting stmts.
9423 2009-09-01 Dodji Seketeli <dodji@redhat.com>
9426 Fix AIX bootstrap after PR debug/30161
9427 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
9428 that is a GNU extension.
9429 (tmpl_value_parm_die_table): Move the definition of this global
9430 outside #ifdef DWARF2_DEBUGGING_INFO region.
9432 2009-09-01 Richard Guenther <rguenther@suse.de>
9434 * tree.c (tree_expr_size): New function.
9435 * tree.h (tree_expr_size): Declare.
9436 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
9437 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
9438 * langhooks.c (lhd_expr_size): Remove.
9439 * langhooks.h (struct lang_hooks): Remove expr_size.
9440 * explow.c (expr_size): Use tree_expr_size.
9441 (int_expr_size): Likewise.
9442 * langhooks-def.h (lhd_expr_size): Remove.
9443 (LANG_HOOKS_EXPR_SIZE): Likewise.
9444 (LANG_HOOKS_INITIALIZER): Adjust.
9446 2009-09-01 Richard Guenther <rguenther@suse.de>
9448 * tree-flow.h (mark_addressable): Move declaration ...
9449 * tree.h (mark_addressable): ... here.
9450 * stmt.c (expand_asm_operands): Use mark_addressable, not
9451 lang_hooks.mark_addressable.
9452 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
9453 LANG_HOOKS_MARK_ADDRESSABLE.
9454 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
9455 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
9457 2009-08-31 Chris Demetriou <cgd@google.com>
9459 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
9460 vectorize if not TARGET_SSE2.
9462 2009-08-31 DJ Delorie <dj@redhat.com>
9464 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
9465 registers if no coprocessor is enabled.
9467 2009-08-31 Dodji Seketeli <dodji@redhat.com>
9470 * cgraph.h (cgraph_get_node): Declare ...
9471 * cgraph.c (cgraph_get_node): ... new function.
9472 * dwarf2out.c (gen_generic_params_dies,
9473 generic_parameter_die, tree_add_const_value_attribute_for_decl,
9474 make_ith_pack_parameter_name,
9475 append_entry_to_tmpl_value_parm_die_table,
9476 gen_remaining_tmpl_value_param_die_attribute): New functions.
9477 (gen_subprogram_die): Generate debug info for template parameters
9478 if debug info level is higher than DINFO_LEVEL_TERSE.
9479 Use tree_add_const_value_attribute_for_decl instead of
9480 tree_add_const_value_attribute.
9481 (gen_const_die): Use tree_add_const_value_attribute_for_decl
9482 instead of tree_add_const_value_attribute.
9483 (gen_struct_or_union_type_die): Generate debug
9484 info for template parameters if debug info level is higher than
9486 (tree_add_const_value_attribute): Handle integral and pointer
9487 constants. Update comment.
9488 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
9489 (dwarf_attr_name): Support DW_AT_GNU_template_name.
9490 (reference_to_unused): Fix thinko. Remove redundant predicates from
9492 (tree_add_const_value_attribute): Make this work for constant
9494 tree_add_const_value_attribute_for_decl is to be used for variable
9496 (add_location_or_const_value_attribute): Use
9497 tree_add_const_value_attribute_for_decl now.
9498 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
9499 DW_TAG_template_value_param DIEs after function DIEs have been
9501 * langhooks.h (lang_hooks_for_types): Add
9502 get_argument_pack_elems.
9503 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
9504 (lang_hooks): Added get_innermost_generic_parms,
9505 get_innermost_generic_args.
9506 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
9507 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
9508 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
9509 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
9511 2009-08-31 DJ Delorie <dj@redhat.com>
9513 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
9514 it once we start generating the prologue or epilogue.
9515 (mep_call_saves_register): If the frame is locked, re-use
9517 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
9518 (mep_expand_prologue): Call it.
9519 (mep_expand_epilogue): Likewise.
9520 (mep_start_function): Use the same logic as mep_expand_prologue.
9521 (mep_pass_by_reference): Make logic more readable.
9522 (mep_return_in_memory): Zero-sized objects are passed in memory.
9523 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
9525 2009-08-31 Richard Guenther <rguenther@suse.de>
9527 * builtins.c (fold_builtin_memory_op): Use the alias oracle
9528 to query if the memory regions for memmove overlap.
9529 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
9530 asserts on pointers, instead deal with odd trees.
9531 (ptr_derefs_may_alias_p): Likewise.
9532 (refs_may_alias_p_1): Constructor bases also never alias.
9534 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
9536 * doc/install.texi (Final install): Adjust reference on where to
9537 order printed manuals.
9539 2009-08-30 Olivier Hainque <hainque@adacore.com>
9541 * dwarf2out.c (switch_to_frame_table_section): Move
9542 definition prior to first use.
9544 2009-08-30 Richard Guenther <rguenther@suse.de>
9546 PR tree-optimization/41186
9547 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
9548 (ao_ref_init_from_ptr_and_size): New function.
9549 (ref_maybe_used_by_call_p_1): Be more precise tracking
9550 used ranges for builtin functions.
9551 (ref_maybe_used_by_call_p): Adjust.
9552 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
9553 ranges for builtin functions.
9554 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
9556 2009-08-30 Alan Modra <amodra@bigpond.net.au>
9559 * fwprop.c (get_reg_use_in): Delete.
9560 (free_load_extend): New function.
9561 (forward_propagate_subreg): Use it.
9563 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
9565 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
9567 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
9570 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
9573 2009-08-29 Douglas B Rupp <rupp@gnat.com>
9575 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
9576 fini or fini_array section.
9578 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9580 * graphite-dependences.c (graphite_legal_transform_bb): Call
9581 pbb_remove_duplicate_pdrs.
9582 * graphite-poly.c (can_collapse_pdr): Removed.
9583 (pdr_find_duplicate): Removed.
9584 (can_collapse_pdrs): New.
9585 (pbb_remove_duplicate_pdrs): New.
9586 (new_poly_dr): Do not look for duplicates.
9587 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
9588 (PBB_PDR_DUPLICATES_REMOVED): New.
9589 (pbb_remove_duplicate_pdrs): Declared.
9591 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9593 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
9594 the strides by multiplying by PDR_NB_REFS.
9595 * graphite-poly.c (can_collapse_pdr): New.
9596 (pdr_find_duplicate): New.
9597 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
9598 Initialize PDR_NB_REFS.
9599 * graphite-poly.h (struct poly_dr): Add field nb_refs.
9601 (new_poly_dr): Number of subscripts is a graphite_dim_t.
9603 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9606 * graphite-poly.c (apply_poly_transforms): Remove legality test before
9609 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9611 * graphite-dependences.c (pddr_original_scattering): Return NULL
9612 for read-read dependence relations.
9613 * graphite-poly.h (enum poly_dr_type): Fix comment.
9616 (pdr_may_write_p): New.
9618 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9620 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
9621 (struct poly_dr): Same.
9622 (new_poly_dr): Same.
9623 * graphite-poly.c (new_poly_dr): Same.
9624 * graphite-dependences.c (dot_deps): Disable call to system.
9626 2009-08-28 Cary Coutant <ccoutant@google.com>
9629 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
9630 struct/union/enum types local to a function.
9632 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9633 Sebastian Pop <sebastian.pop@amd.com>
9635 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
9636 pbb_strip_mine_time_depth. Changed the implementation so that
9637 transformation is expressed as a transformation on
9638 time (scatttering) dimensions. Also, ensures that the 2d+1
9639 scheduling format is preserved.
9640 (pbb_strip_mine_profitable_p): Profitability is based on the
9641 iteration number of a given time (scattering) dimension,
9642 and not on a original loop depth dimension.
9643 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
9644 (pbb_do_strip_mine): Call psct_dynamic_dim.
9645 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
9646 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
9647 (pbb_nb_dynamic_scattering_transform): New.
9648 (psct_dynamic_dim): New.
9650 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9652 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
9653 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
9654 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
9655 * graphite-interchange.c (build_linearized_memory_access): Same.
9656 (memory_stride_in_loop): Same.
9658 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9660 * graphite-dependences.c (pddr_original_scattering): New.
9661 (graphite_legal_transform_dr): Call pddr_original_scattering.
9664 * graphite-dependences.h (dot_deps): Declared.
9665 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
9666 (print_pdr): Print PDR_ID.
9667 * graphite-poly.h (struct poly_dr): Add field id.
9670 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
9672 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9674 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
9675 not delete the original dependence relation.
9677 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9679 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
9680 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
9681 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
9682 (free_poly_ddr): New.
9683 (pddr_is_empty): New.
9684 (dependence_polyhedron_1): Now returns a poly_ddr_p.
9685 (dependence_polyhedron): Same. Remove useless gcc_assert.
9687 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
9688 (graphite_carried_dependence_level_k): Call pddr_is_empty.
9689 * graphite-dependences.h (enum poly_dependence_kind): New.
9690 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
9691 (PDRP_SOURCE): Renamed PDDR_SOURCE.
9692 (PDRP_SINK): Renamed PDDR_SINK.
9693 (PDRP_DDP): Renamed PDDR_DDP.
9695 (free_poly_ddr): Declared.
9696 * graphite-poly.c (new_scop): Use the new hash function names.
9697 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
9698 into original_pddrs.
9699 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
9701 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9703 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
9704 bounds with LT_EXPR to make niter analysis more precise on code
9705 generated by Graphite.
9707 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
9709 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
9710 (graphite_legal_transform_bb): Same.
9711 (poly_drs_may_alias_p): Same.
9713 2009-08-28 Richard Guenther <rguenther@suse.de>
9715 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
9717 2009-08-28 Jan Beulich <jbeulich@novell.com>
9719 * config/i386/netware.c: Include langhooks.h.
9720 (i386_nlm_encode_section_info): Simplify.
9721 (netware_override_options): Delete.
9722 * config/i386/netware.h (netware_override_options): Delete
9724 (OVERRIDE_OPTIONS): Delete definition.
9725 (SUBTARGET_OVERRIDE_OPTIONS): Define.
9726 (ASM_COMMENT_START): Define.
9727 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
9729 2009-08-28 Jan Beulich <jbeulich@novell.com>
9731 * configure.ac: For in-tree ld, do a plain version check to
9732 determine whether comdat groups are supported.
9733 * configure: Regenerate.
9735 2009-08-28 Olivier Hainque <hainque@adacore.com>
9737 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
9738 always defined. Reflect definition or absence of such for
9739 COLLECT_EXPORT_LIST. Readability helper.
9740 (scanfilter): New enum, to help control what symbols
9741 are to be considered or ignored by scan_prog_file.
9742 (enum pass): Rename as "scanpass", moved together with scanfilter
9743 prior to scan_prog_file's prototype.
9744 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
9745 Group prototype with the scanpass/scanfilter definitions, factorize
9746 head comments for the several implementations at the prototype.
9747 (main): Reorganize the first pass link control to let AIX
9748 drag only the needed frame tables in executables. Prevent
9749 frame tables collection during the scan aimed at static ctors.
9750 Pre-link and scan for frame tables later to compensate.
9751 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
9752 A C statement to issue assembly directives that create a reference
9753 to the given DWARF table identifier label from the current function
9755 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
9756 to differentiate first time section entry. Only emit a .data
9757 tables start identifier label the first time around.
9758 (switch_to_frame_table_section): New function. Helper for
9759 output_call_frame_info to switch possibly BACK into the eh_frame
9760 or the debug_frame section depending on FOR_EH.
9761 (output_call_frame_info): Use helper to first enter the proper
9763 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
9764 emit a link to the frame table start label from each function
9766 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
9767 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
9768 * config/rs6000/rs6000-protos.h: Declare it.
9769 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
9771 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9773 * config/sh/sh.c (split_branches): Check the result of
9776 2009-08-27 Steve Ellcey <sje@cup.hp.com>
9778 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
9779 using -pthread -fopenmp
9781 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
9783 * doc/service.texi (service directory): Update URL.
9785 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
9787 PR rtl-optimization/40861
9788 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
9789 extract word from a multi-word subreg for negative byte positions.
9791 2009-08-27 Tristan Gingold <gingold@adacore.com>
9792 Douglas B Rupp <rupp@gnat.com>
9794 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
9795 (SECTION_VMS_OVERLAY): Define.
9796 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
9798 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
9800 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
9801 common_object declarations.
9802 (ia64_section_type_flags): Set section flag for common_object.
9803 * config/ia64/ia64-protos.h
9804 (ia64_vms_output_aligned_decl_common): Declare.
9805 (ia64_vms_elf_asm_named_section): Declare.
9807 2009-08-27 Michael Matz <matz@suse.de>
9809 * expr.c (expand_expr_real_2): New function taking exploded
9810 unary or binary expression, split out from ...
9811 (expand_expr_real_1): ... here. Move over all unary/binary
9812 switch parts to above function, in particular these codes:
9813 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
9814 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
9815 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
9816 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
9817 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
9818 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
9819 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
9820 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
9821 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
9822 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
9823 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
9824 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
9825 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
9826 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
9827 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
9828 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
9829 VEC_PACK_FIX_TRUNC_EXPR.
9830 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
9833 2009-08-27 Richard Guenther <rguenther@suse.de>
9835 * gengtype.c (main): Handle uint64_t.
9836 * ipa-utils.c (get_base_var): Indent properly.
9837 * tree-ssa-live.c (debug_scope_block): New function.
9838 * tree-flow.h (debug_scope_block): Declare.
9839 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
9840 * basic-block.h (enum profile_status): Rename to
9841 enum profile_status_d.
9842 (x_profile_status): Adjust type.
9844 2009-08-27 Dodji Seketeli <dodji@redhat.com>
9847 * dwarf2out.c (get_context_die): Declare this static function.
9848 (gen_type_die_with_usage): Make sure a DIE is a generated for
9849 the context of a typedef.
9851 2009-08-26 Anatoly Sokolov <aesok@post.ru>
9853 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
9856 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9858 * config/mips/mips-protos.h (mips_output_sync): Declare.
9859 (mips_sync_loop_insns): Likewise.
9860 (mips_output_sync_loop): Replace first two parameters with an rtx.
9861 * config/mips/mips.c (mips_multi_member): New structure.
9862 (mips_multi_members): New variable.
9863 (mips_multi_start): New function.
9864 (mips_multi_add): Likewise.
9865 (mips_multi_add_insn): Likewise.
9866 (mips_multi_add_label): Likewise.
9867 (mips_multi_last_index): Likewise.
9868 (mips_multi_copy_insn): Likewise.
9869 (mips_multi_set_operand): Likewise.
9870 (mips_multi_write): Likewise.
9871 (mips_print_operand_punctuation): Remove '%|' and '%-'.
9872 (mips_init_print_operand_punct): Update accordingly.
9873 (mips_start_ll_sc_sync_block): New function.
9874 (mips_end_ll_sc_sync_block): Likewise.
9875 (mips_output_sync): Likewise.
9876 (mips_sync_insn1_template): Likewise.
9877 (mips_sync_insn2_template): Likewise.
9878 (mips_get_sync_operand): Likewise.
9879 (mips_process_sync_loop): Likewise.
9880 (mips_output_sync_loop): Use mips_process_sync_loop.
9881 (mips_sync_loop_insns): New function.
9882 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
9883 (MIPS_COMPARE_AND_SWAP_12): Likewise.
9884 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
9885 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
9886 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
9887 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
9888 (MIPS_SYNC_OLD_OP_12): Likewise.
9889 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
9890 (MIPS_SYNC_NEW_OP_12): Likewise.
9891 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
9892 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
9893 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
9894 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
9895 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
9896 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
9897 * config/mips/mips.md (sync_mem): New attribute.
9898 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
9899 (sync_exclusive_mask, sync_required_oldval): Likewise.
9900 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
9901 (sync_release_barrier): Likewise.
9902 (length): Handle sync loops.
9903 (sync): Use mips_output_sync.
9904 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
9905 (sync_compare_and_swap<mode>): Set the new sync_* attributes
9906 and use mips_output_sync_loop.
9907 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
9908 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9909 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
9910 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
9911 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
9912 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
9913 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
9914 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
9915 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
9917 2009-08-26 Richard Guenther <rguenther@suse.de>
9920 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
9921 the types to not match.
9922 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
9924 * tree-ssa.c (useless_type_conversion_p): Conversions to
9925 pointers to unprototyped functions are useless.
9927 2009-08-26 Richard Guenther <rguenther@suse.de>
9929 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
9930 whole-program condition, prepare to be called for non-globals.
9931 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
9932 params build a representative with known type and track its fields.
9934 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
9936 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
9937 clearing by a taken branch.
9938 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
9939 effectively after bbro pass.
9940 (sync_nand<mode>): Ditto.
9941 (sync_old_<fetchop_name><mode>): Ditto.
9942 (sync_old_nand<mode>): Ditto.
9943 (sync_new_<fetchop_name><mode>): Dito.
9944 (sync_new_nand<mode>): Ditto.
9945 (sync_compare_and_swap<mode>_1): Ditto.
9946 (*sync_compare_and_swap<mode>): Ditto.
9947 (sync_lock_test_and_set<mode>_1): Ditto.
9948 ("sync_lock_test_and_set<mode>): Ditto.
9950 2009-08-25 Douglas B Rupp <rupp@gnat.com>
9952 * hwint.h (HOST_LONG_FORMAT): New macro
9953 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
9954 Use HOST_PTR_PRINTF.
9955 * system.h (HOST_PTR_PRINTF): Resurrect old macro
9956 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
9957 (HOST_PTR_PRINTF): Document.
9959 2009-08-25 Jan Hubicka <jh@suse.cz>
9961 * config/i386/bmmintrin.h: Replace by #error.
9964 Michael Meissner <michael.meissner@amd.com>
9965 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
9966 Tony Linthicum <tony.linthicum@amd.com>
9968 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
9969 (TARGET_ROUND): New macro for the round/ptest instructions which
9970 are shared between SSE4.1 and SSE5.
9971 (OPTION_MASK_ISA_ROUND): Ditto.
9972 (OPTION_ISA_ROUND): Ditto.
9973 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
9974 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
9976 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
9977 (-mfused-madd): New switch to give users control over whether the
9978 compiler optimizes to use the multiply/add SSE5 instructions.
9980 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
9981 (ix86_handle_option): Turn off 3dnow if -msse5.
9982 (override_options): Add SSE5 support.
9983 (print_operand): %Y prints comparison codes for SSE5 com/pcom
9985 (ix86_expand_sse_movcc): Add SSE5 support.
9986 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
9987 vector type to the next largest size.
9988 (ix86_expand_sse5_pack): New function to use pperm to pack a
9989 vector type to the next smallest size.
9990 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
9991 (IX86_BUILTIN_FMADDSD): Ditto.
9992 (IX86_BUILTIN_FMADDPS): Ditto.
9993 (IX86_BUILTIN_FMADDPD): Ditto.
9994 (IX86_BUILTIN_FMSUBSS): Ditto.
9995 (IX86_BUILTIN_FMSUBSD): Ditto.
9996 (IX86_BUILTIN_FMSUBPS): Ditto.
9997 (IX86_BUILTIN_FMSUBPD): Ditto.
9998 (IX86_BUILTIN_FNMADDSS): Ditto.
9999 (IX86_BUILTIN_FNMADDSD): Ditto.
10000 (IX86_BUILTIN_FNMADDPS): Ditto.
10001 (IX86_BUILTIN_FNMADDPD): Ditto.
10002 (IX86_BUILTIN_FNMSUBSS): Ditto.
10003 (IX86_BUILTIN_FNMSUBSD): Ditto.
10004 (IX86_BUILTIN_FNMSUBPS): Ditto.
10005 (IX86_BUILTIN_FNMSUBPD): Ditto.
10006 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
10007 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
10008 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
10009 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
10010 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
10011 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
10012 (IX86_BUILTIN_PPERM): Ditto.
10013 (IX86_BUILTIN_PERMPS): Ditto.
10014 (IX86_BUILTIN_PERMPD): Ditto.
10015 (IX86_BUILTIN_PMACSSWW): Ditto.
10016 (IX86_BUILTIN_PMACSWW): Ditto.
10017 (IX86_BUILTIN_PMACSSWD): Ditto.
10018 (IX86_BUILTIN_PMACSWD): Ditto.
10019 (IX86_BUILTIN_PMACSSDD): Ditto.
10020 (IX86_BUILTIN_PMACSDD): Ditto.
10021 (IX86_BUILTIN_PMACSSDQL): Ditto.
10022 (IX86_BUILTIN_PMACSSDQH): Ditto.
10023 (IX86_BUILTIN_PMACSDQL): Ditto.
10024 (IX86_BUILTIN_PMACSDQH): Ditto.
10025 (IX86_BUILTIN_PMADCSSWD): Ditto.
10026 (IX86_BUILTIN_PMADCSWD): Ditto.
10027 (IX86_BUILTIN_PHADDBW): Ditto.
10028 (IX86_BUILTIN_PHADDBD): Ditto.
10029 (IX86_BUILTIN_PHADDBQ): Ditto.
10030 (IX86_BUILTIN_PHADDWD): Ditto.
10031 (IX86_BUILTIN_PHADDWQ): Ditto.
10032 (IX86_BUILTIN_PHADDDQ): Ditto.
10033 (IX86_BUILTIN_PHADDUBW): Ditto.
10034 (IX86_BUILTIN_PHADDUBD): Ditto.
10035 (IX86_BUILTIN_PHADDUBQ): Ditto.
10036 (IX86_BUILTIN_PHADDUWD): Ditto.
10037 (IX86_BUILTIN_PHADDUWQ): Ditto.
10038 (IX86_BUILTIN_PHADDUDQ): Ditto.
10039 (IX86_BUILTIN_PHSUBBW): Ditto.
10040 (IX86_BUILTIN_PHSUBWD): Ditto.
10041 (IX86_BUILTIN_PHSUBDQ): Ditto.
10042 (IX86_BUILTIN_PROTB): Ditto.
10043 (IX86_BUILTIN_PROTW): Ditto.
10044 (IX86_BUILTIN_PROTD): Ditto.
10045 (IX86_BUILTIN_PROTQ): Ditto.
10046 (IX86_BUILTIN_PROTB_IMM): Ditto.
10047 (IX86_BUILTIN_PROTW_IMM): Ditto.
10048 (IX86_BUILTIN_PROTD_IMM): Ditto.
10049 (IX86_BUILTIN_PROTQ_IMM): Ditto.
10050 (IX86_BUILTIN_PSHLB): Ditto.
10051 (IX86_BUILTIN_PSHLW): Ditto.
10052 (IX86_BUILTIN_PSHLD): Ditto.
10053 (IX86_BUILTIN_PSHLQ): Ditto.
10054 (IX86_BUILTIN_PSHAB): Ditto.
10055 (IX86_BUILTIN_PSHAW): Ditto.
10056 (IX86_BUILTIN_PSHAD): Ditto.
10057 (IX86_BUILTIN_PSHAQ): Ditto.
10058 (IX86_BUILTIN_FRCZSS): Ditto.
10059 (IX86_BUILTIN_FRCZSD): Ditto.
10060 (IX86_BUILTIN_FRCZPS): Ditto.
10061 (IX86_BUILTIN_FRCZPD): Ditto.
10062 (IX86_BUILTIN_CVTPH2PS): Ditto.
10063 (IX86_BUILTIN_CVTPS2PH): Ditto.
10064 (IX86_BUILTIN_COMEQSS): Ditto.
10065 (IX86_BUILTIN_COMNESS): Ditto.
10066 (IX86_BUILTIN_COMLTSS): Ditto.
10067 (IX86_BUILTIN_COMLESS): Ditto.
10068 (IX86_BUILTIN_COMGTSS): Ditto.
10069 (IX86_BUILTIN_COMGESS): Ditto.
10070 (IX86_BUILTIN_COMUEQSS): Ditto.
10071 (IX86_BUILTIN_COMUNESS): Ditto.
10072 (IX86_BUILTIN_COMULTSS): Ditto.
10073 (IX86_BUILTIN_COMULESS): Ditto.
10074 (IX86_BUILTIN_COMUGTSS): Ditto.
10075 (IX86_BUILTIN_COMUGESS): Ditto.
10076 (IX86_BUILTIN_COMORDSS): Ditto.
10077 (IX86_BUILTIN_COMUNORDSS): Ditto.
10078 (IX86_BUILTIN_COMFALSESS): Ditto.
10079 (IX86_BUILTIN_COMTRUESS): Ditto.
10080 (IX86_BUILTIN_COMEQSD): Ditto.
10081 (IX86_BUILTIN_COMNESD): Ditto.
10082 (IX86_BUILTIN_COMLTSD): Ditto.
10083 (IX86_BUILTIN_COMLESD): Ditto.
10084 (IX86_BUILTIN_COMGTSD): Ditto.
10085 (IX86_BUILTIN_COMGESD): Ditto.
10086 (IX86_BUILTIN_COMUEQSD): Ditto.
10087 (IX86_BUILTIN_COMUNESD): Ditto.
10088 (IX86_BUILTIN_COMULTSD): Ditto.
10089 (IX86_BUILTIN_COMULESD): Ditto.
10090 (IX86_BUILTIN_COMUGTSD): Ditto.
10091 (IX86_BUILTIN_COMUGESD): Ditto.
10092 (IX86_BUILTIN_COMORDSD): Ditto.
10093 (IX86_BUILTIN_COMUNORDSD): Ditto.
10094 (IX86_BUILTIN_COMFALSESD): Ditto.
10095 (IX86_BUILTIN_COMTRUESD): Ditto.
10096 (IX86_BUILTIN_COMEQPS): Ditto.
10097 (IX86_BUILTIN_COMNEPS): Ditto.
10098 (IX86_BUILTIN_COMLTPS): Ditto.
10099 (IX86_BUILTIN_COMLEPS): Ditto.
10100 (IX86_BUILTIN_COMGTPS): Ditto.
10101 (IX86_BUILTIN_COMGEPS): Ditto.
10102 (IX86_BUILTIN_COMUEQPS): Ditto.
10103 (IX86_BUILTIN_COMUNEPS): Ditto.
10104 (IX86_BUILTIN_COMULTPS): Ditto.
10105 (IX86_BUILTIN_COMULEPS): Ditto.
10106 (IX86_BUILTIN_COMUGTPS): Ditto.
10107 (IX86_BUILTIN_COMUGEPS): Ditto.
10108 (IX86_BUILTIN_COMORDPS): Ditto.
10109 (IX86_BUILTIN_COMUNORDPS): Ditto.
10110 (IX86_BUILTIN_COMFALSEPS): Ditto.
10111 (IX86_BUILTIN_COMTRUEPS): Ditto.
10112 (IX86_BUILTIN_COMEQPD): Ditto.
10113 (IX86_BUILTIN_COMNEPD): Ditto.
10114 (IX86_BUILTIN_COMLTPD): Ditto.
10115 (IX86_BUILTIN_COMLEPD): Ditto.
10116 (IX86_BUILTIN_COMGTPD): Ditto.
10117 (IX86_BUILTIN_COMGEPD): Ditto.
10118 (IX86_BUILTIN_COMUEQPD): Ditto.
10119 (IX86_BUILTIN_COMUNEPD): Ditto.
10120 (IX86_BUILTIN_COMULTPD): Ditto.
10121 (IX86_BUILTIN_COMULEPD): Ditto.
10122 (IX86_BUILTIN_COMUGTPD): Ditto.
10123 (IX86_BUILTIN_COMUGEPD): Ditto.
10124 (IX86_BUILTIN_COMORDPD): Ditto.
10125 (IX86_BUILTIN_COMUNORDPD): Ditto.
10126 (IX86_BUILTIN_COMFALSEPD): Ditto.
10127 (IX86_BUILTIN_COMTRUEPD): Ditto.
10128 (IX86_BUILTIN_PCOMEQUB): Ditto.
10129 (IX86_BUILTIN_PCOMNEUB): Ditto.
10130 (IX86_BUILTIN_PCOMLTUB): Ditto.
10131 (IX86_BUILTIN_PCOMLEUB): Ditto.
10132 (IX86_BUILTIN_PCOMGTUB): Ditto.
10133 (IX86_BUILTIN_PCOMGEUB): Ditto.
10134 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
10135 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
10136 (IX86_BUILTIN_PCOMEQUW): Ditto.
10137 (IX86_BUILTIN_PCOMNEUW): Ditto.
10138 (IX86_BUILTIN_PCOMLTUW): Ditto.
10139 (IX86_BUILTIN_PCOMLEUW): Ditto.
10140 (IX86_BUILTIN_PCOMGTUW): Ditto.
10141 (IX86_BUILTIN_PCOMGEUW): Ditto.
10142 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
10143 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
10144 (IX86_BUILTIN_PCOMEQUD): Ditto.
10145 (IX86_BUILTIN_PCOMNEUD): Ditto.
10146 (IX86_BUILTIN_PCOMLTUD): Ditto.
10147 (IX86_BUILTIN_PCOMLEUD): Ditto.
10148 (IX86_BUILTIN_PCOMGTUD): Ditto.
10149 (IX86_BUILTIN_PCOMGEUD): Ditto.
10150 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
10151 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
10152 (IX86_BUILTIN_PCOMEQUQ): Ditto.
10153 (IX86_BUILTIN_PCOMNEUQ): Ditto.
10154 (IX86_BUILTIN_PCOMLTUQ): Ditto.
10155 (IX86_BUILTIN_PCOMLEUQ): Ditto.
10156 (IX86_BUILTIN_PCOMGTUQ): Ditto.
10157 (IX86_BUILTIN_PCOMGEUQ): Ditto.
10158 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
10159 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
10160 (IX86_BUILTIN_PCOMEQB): Ditto.
10161 (IX86_BUILTIN_PCOMNEB): Ditto.
10162 (IX86_BUILTIN_PCOMLTB): Ditto.
10163 (IX86_BUILTIN_PCOMLEB): Ditto.
10164 (IX86_BUILTIN_PCOMGTB): Ditto.
10165 (IX86_BUILTIN_PCOMGEB): Ditto.
10166 (IX86_BUILTIN_PCOMFALSEB): Ditto.
10167 (IX86_BUILTIN_PCOMTRUEB): Ditto.
10168 (IX86_BUILTIN_PCOMEQW): Ditto.
10169 (IX86_BUILTIN_PCOMNEW): Ditto.
10170 (IX86_BUILTIN_PCOMLTW): Ditto.
10171 (IX86_BUILTIN_PCOMLEW): Ditto.
10172 (IX86_BUILTIN_PCOMGTW): Ditto.
10173 (IX86_BUILTIN_PCOMGEW): Ditto.
10174 (IX86_BUILTIN_PCOMFALSEW): Ditto.
10175 (IX86_BUILTIN_PCOMTRUEW): Ditto.
10176 (IX86_BUILTIN_PCOMEQD): Ditto.
10177 (IX86_BUILTIN_PCOMNED): Ditto.
10178 (IX86_BUILTIN_PCOMLTD): Ditto.
10179 (IX86_BUILTIN_PCOMLED): Ditto.
10180 (IX86_BUILTIN_PCOMGTD): Ditto.
10181 (IX86_BUILTIN_PCOMGED): Ditto.
10182 (IX86_BUILTIN_PCOMFALSED): Ditto.
10183 (IX86_BUILTIN_PCOMTRUED): Ditto.
10184 (IX86_BUILTIN_PCOMEQQ): Ditto.
10185 (IX86_BUILTIN_PCOMNEQ): Ditto.
10186 (IX86_BUILTIN_PCOMLTQ): Ditto.
10187 (IX86_BUILTIN_PCOMLEQ): Ditto.
10188 (IX86_BUILTIN_PCOMGTQ): Ditto.
10189 (IX86_BUILTIN_PCOMGEQ): Ditto.
10190 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
10191 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
10192 (enum multi_arg_type): New enum for describing the various SSE5
10193 intrinsic argument types.
10194 (bdesc_multi_arg): New table for SSE5 intrinsics.
10195 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
10196 (ix86_expand_multi_arg_builtin): New function for creating SSE5
10198 (ix86_expand_builtin): Add SSE5 intrinsic support.
10199 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
10200 operand instructions.
10201 (ix86_expand_sse5_multiple_memory): New function to split the
10202 second memory reference from SSE5 instructions.
10203 (type_has_variadic_args_p): Delete in favor of stdarg_p.
10204 (ix86_return_pops_args): Use stdarg_p to determine if the function
10205 has variable arguments.
10206 (ix86_setup_incoming_varargs): Ditto.
10207 (x86_this_parameter): Ditto.
10209 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
10211 (ix86_expand_sse5_pack): Ditto.
10212 (ix86_sse5_valid_op_p): Ditto.
10213 (ix86_expand_sse5_multiple_memory): Ditto.
10215 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
10216 constant for SSE5 support.
10217 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
10218 (UNSPEC_SSE5_TRUEFALSE): Ditto.
10219 (UNSPEC_SSE5_PERMUTE): Ditto.
10220 (UNSPEC_SSE5_ASHIFT): Ditto.
10221 (UNSPEC_SSE5_LSHIFT): Ditto.
10222 (UNSPEC_FRCZ): Ditto.
10223 (UNSPEC_CVTPH2PS): Ditto.
10224 (UNSPEC_CVTPS2PH): Ditto.
10225 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
10226 (PCOM_TRUE): Ditto.
10227 (COM_FALSE_S): Ditto.
10228 (COM_FALSE_P): Ditto.
10229 (COM_TRUE_S): Ditto.
10230 (COM_TRUE_P): Ditto.
10231 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
10232 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
10234 (memory attribute): Ditto.
10235 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
10236 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
10237 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
10238 (floor<mode>2): Ditto.
10239 (ceil<mode>2): Ditto.
10240 (btrunc<mode>2): Ditto.
10241 (nearbyintdf2): Ditto.
10242 (nearbyintsf2): Ditto.
10243 (sse_setccsf): Disable if SSE5.
10244 (sse_setccdf): Ditto.
10245 (sse5_setcc<mode>): New support for SSE5 conditional move.
10246 (sse5_pcmov_<mode>): Ditto.
10248 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
10249 (SSEMODEF4): Ditto.
10250 (SSEMODEF2P): Ditto.
10251 (ssemodesuffixf4): New mode attribute for SSE5.
10252 (ssemodesuffixf2s): Ditto.
10253 (ssemodesuffixf2c): Ditto.
10254 (sserotatemax): Ditto.
10255 (ssescalarmode): Ditto.
10256 (sse_maskcmpv4sf3): Disable if SSE5.
10257 (sse_maskcmpv2df3): Ditto.
10258 (sse_vmmaskcmpv4sf3): Ditto.
10259 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
10260 (sse5_vmfmadd<mode>4): Ditto.
10261 (sse5_fmsub<mode>4): Ditto.
10262 (sse5_vmfmsub<mode>4): Ditto.
10263 (sse5_fnmadd<mode>4): Ditto.
10264 (sse5_vmfnmadd<mode>4): Ditto.
10265 (sse5_fnmsub<mode>4): Ditto.
10266 (sse5_vmfnmsub<mode>4): Ditto.
10267 (sse5i_fmadd<mode>4): Ditto.
10268 (sse5i_fmsub<mode>4): Ditto.
10269 (sse5i_fnmadd<mode>4): Ditto.
10270 (sse5i_fnmsub<mode>4): Ditto.
10271 (sse5i_vmfmadd<mode>4): Ditto.
10272 (sse5i_vmfmsub<mode>4): Ditto.
10273 (sse5i_vmfnmadd<mode>4): Ditto.
10274 (sse5i_vmfnmsub<mode>4): Ditto.
10275 (mulv16qi3): Add SSE5 support.
10277 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
10278 (sse2_mulv4si3): Disable if SSE5.
10279 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
10280 (sse4_1_roundps): Ditto.
10281 (sse4_1_roundsd): Ditto.
10282 (sse4_1_roundss): Ditto.
10283 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
10285 (sse_maskcmpsf3): Ditto.
10286 (sse_vmmaskcmpv4sf3): Ditto.
10287 (sse2_maskcmpv2df3): Ditto.
10288 (sse2_maskcmpdf3): Ditto.
10289 (sse2_vmmaskcmpv2df3): Ditto.
10290 (sse2_eq<mode>3): Ditto.
10291 (sse2_gt<mode>3): Ditto.
10292 (sse5_pcmov_<mode>): Add SSE5 support.
10293 (vec_unpacku_hi_v16qi): Ditto.
10294 (vec_unpacks_hi_v16qi): Ditto.
10295 (vec_unpacku_lo_v16qi): Ditto.
10296 (vec_unpacks_lo_v16qi): Ditto.
10297 (vec_unpacku_hi_v8hi): Ditto.
10298 (vec_unpacks_hi_v8hi): Ditto.
10299 (vec_unpacku_lo_v8hi): Ditto.
10300 (vec_unpacks_lo_v8hi): Ditto.
10301 (vec_unpacku_hi_v4si): Ditto.
10302 (vec_unpacks_hi_v4si): Ditto.
10303 (vec_unpacku_lo_v4si): Ditto.
10304 (vec_unpacks_lo_v4si): Ditto.
10305 (sse5_pmacsww): New SSE5 intrinsic insn.
10306 (sse5_pmacssww): Ditto.
10307 (sse5_pmacsdd): Ditto.
10308 (sse5_pmacssdd): Ditto.
10309 (sse5_pmacssdql): Ditto.
10310 (sse5_pmacssdqh): Ditto.
10311 (sse5_pmacsdqh): Ditto.
10312 (sse5_pmacsswd): Ditto.
10313 (sse5_pmacswd): Ditto.
10314 (sse5_pmadcsswd): Ditto.
10315 (sse5_pmadcswd): Ditto.
10316 (sse5_pcmov_<move>): Conditional move support on SSE5.
10317 (sse5_phaddbw): New SSE5 intrinsic insn.
10318 (sse5_phaddbd): Ditto.
10319 (sse5_phaddbq): Ditto.
10320 (sse5_phaddwd): Ditto.
10321 (sse5_phaddwq): Ditto.
10322 (sse5_phadddq): Ditto.
10323 (sse5_phaddubw): Ditto.
10324 (sse5_phaddubd): Ditto.
10325 (sse5_phaddubq): Ditto.
10326 (sse5_phadduwd): Ditto.
10327 (sse5_phadduwq): Ditto.
10328 (sse5_phaddudq): Ditto.
10329 (sse5_phsubbw): Ditto.
10330 (sse5_phsubwd): Ditto.
10331 (sse5_phsubdq): Ditto.
10332 (sse5_pperm): Ditto.
10333 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
10334 (sse5_pperm_zero_v16qi_v8hi): Ditto.
10335 (sse5_pperm_sign_v8hi_v4si): Ditto.
10336 (sse5_pperm_zero_v8hi_v4si): Ditto.
10337 (sse5_pperm_sign_v4si_v2di): Ditto.
10338 (sse5_pperm_sign_v4si_v2di): Ditto.
10339 (sse5_pperm_pack_v2di_v4si): Ditto.
10340 (sse5_pperm_pack_v4si_v8hi): Ditto.
10341 (sse5_pperm_pack_v8hi_v16qi): Ditto.
10342 (sse5_perm<mode>): New SSE5 intrinsic insn.
10343 (rotl<mode>3): Ditto.
10344 (sse5_rotl<mode>3): Ditto.
10345 (sse5_ashl<mode>3): Ditto.
10346 (sse5_lshl<mode>3): Ditto.
10347 (sse5_frcz<mode>2): Ditto.
10348 (sse5s_frcz<mode>2): Ditto.
10349 (sse5_cvtph2ps): Ditto.
10350 (sse5_cvtps2ph): Ditto.
10351 (sse5_vmmaskcmp<mode>3): Ditto.
10352 (sse5_com_tf<mode>3): Ditto.
10353 (sse5_maskcmp<mode>3): Ditto.
10354 (sse5_maskcmp_uns<mode>3): Ditto.
10355 (sse5_maskcmp_uns2<mode>3): Ditto.
10356 (sse5_pcom_tf<mode>3): Ditto.
10358 * config/i386/predicates.md (sse5_comparison_float_operator):
10359 New predicate to match the comparison operators supported by
10360 the SSE5 com instruction.
10361 (ix86_comparison_int_operator): New predicate to match just the
10362 signed int comparisons.
10363 (ix86_comparison_uns_operator): New predicate to match just the
10364 unsigned int comparisons.
10366 * doc/invoke.texi (-msse5): Add documentation.
10367 (-mfused-madd): Ditto.
10369 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
10371 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
10373 (x86_64-*-*): Ditto.
10375 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
10377 * config/i386/bmmintrin.h: New file, provide common x86 compiler
10378 intrinisics for SSE5.
10380 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
10383 * config/i386/mmintrin-common.h: New file, to contain common
10384 instructions between SSE4.1 and SSE5.
10386 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
10387 FOREACH_FUNCTION_ARGS to iterate over the argument list.
10388 (gen_regparm_prefix): Ditto.
10390 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
10391 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
10392 prototype_p to determine if a function is prototyped.
10394 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
10396 * c-common.c (c_common_reswords) add the alignof keyword,
10397 with same RID as __alignof and __alignof__
10399 2009-08-25 Anatoly Sokolov <aesok@post.ru>
10401 * hooks.h (hook_bool_const_int_const_int_true): Declare.
10402 * hooks.c (hook_bool_const_int_const_int_true): New function.
10403 * target.h (struct gcc_target): Add can_eliminate field.
10404 * target-def.h (TARGET_CAN_ELIMINATE): Define.
10405 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
10406 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
10407 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
10408 (elim_table): Revise comment.
10409 * system.h (CAN_ELIMINATE): Poison.
10410 * defaults.h (CAN_ELIMINATE): Remove.
10411 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
10413 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
10414 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
10416 (alpha_vms_can_eliminate): Declare as static, change return type to
10418 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
10420 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
10421 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
10422 (arm_can_eliminate): New function.
10424 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
10425 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
10426 (avr_can_eliminate): Declare as static.
10427 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
10429 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
10430 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
10431 (bfin_can_eliminate): New function.
10433 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
10434 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
10435 (crx_can_eliminate): New function.
10437 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
10438 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
10439 (fr30_can_eliminate): New function.
10441 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
10442 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
10443 (frv_can_eliminate): New function.
10445 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
10446 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
10447 (h8300_can_eliminate): New function.
10449 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
10450 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
10451 (i386_can_eliminate): Declare as static, change return type to bool.
10452 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
10454 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
10455 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
10456 (ia64_can_eliminate): New function.
10458 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
10459 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
10460 (iq2000_can_eliminate): New function.
10462 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
10463 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
10464 (m32r_can_eliminate): New function.
10466 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
10467 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
10468 (m68hc11_can_eliminate): New function.
10470 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
10471 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
10472 (m68k_can_eliminate): New function.
10474 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
10475 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
10476 (mep_can_eliminate): New function.
10478 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
10479 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
10480 (mips_can_eliminate): New function.
10482 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
10483 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
10484 (rs6000_can_eliminate): New function.
10486 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
10487 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
10488 (s390_can_eliminate): Declare as static.
10489 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
10491 * config/score/score.h (CAN_ELIMINATE): Remove macro.
10492 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
10493 (score_can_eliminate): New function.
10495 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
10496 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
10497 (sparc_can_eliminate): Declare as static.
10498 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
10500 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
10501 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
10502 (xstormy16_can_eliminate): New function.
10504 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
10505 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
10506 (v850_can_eliminate): New function.
10508 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
10510 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
10511 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
10512 (*movdfcc_ext[1234]): Disable for IEEE mode.
10514 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
10516 * gimplify.c (prepare_gimple_addressable): New static function.
10517 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
10519 (gimplify_addr_expr): Invoke it similarly on the operand instead of
10520 manually fiddling with it.
10522 2009-08-25 Michael Matz <matz@suse.de>
10524 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
10525 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
10527 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
10528 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
10529 (do_jump): Split out code for simple binary comparisons into ...
10530 (do_jump_1): ... this, taking the individual operands and code.
10531 Change callers to helper function above accordingly.
10532 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
10535 2009-08-25 Michael Matz <matz@suse.de>
10537 * expr.h (struct separate_ops, sepops): New type for passing
10538 around an exploded simple expression.
10539 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
10540 Use this structure instead of expression tree.
10541 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
10542 expression, only its type.
10543 (expand_vec_cond_expr): Take type and individual operands instead
10544 of full expression.
10545 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
10546 expand_vec_shift_expr): Change prototype accordingly.
10547 * tree-vect-stmts.c (vectorizable_condition): Change call of
10548 expand_vec_cond_expr_p to pass only type.
10549 * expr.c (do_store_flags): Change prototype and implementation
10550 to take an exploded expression.
10551 (expand_expr_real_1): New local ops initialized with details
10552 of the full expression. Use it instead of full
10553 expression in calls to do_store_flags, expand_vec_cond_expr,
10554 expand_widen_pattern_expr and expand_vec_shift_expr.
10556 2009-08-25 Michael Matz <matz@suse.de>
10558 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
10559 treeop2 initialized with first three operands of the full expression.
10560 Substitute all TREE_OPERAND (exp, [012]) calls with them.
10562 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
10564 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
10565 (__gthread_objc_condition_allocate): Mark arguments as unused.
10566 (__gthread_objc_condition_deallocate): Likewise.
10567 (__gthread_objc_condition_wait): Likewise.
10568 (__gthread_objc_condition_broadcast): Likewise.
10569 (__gthread_objc_condition_signal): Likewise.
10570 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
10571 (__gthread_objc_thread_id): Likewise.
10573 2009-08-25 Janus Weil <janus@gcc.gnu.org>
10575 PR middle-end/41149
10576 * tree-pretty-print.c (print_call_name): Print the correct call name
10577 for procedure pointer components.
10579 2009-08-24 Steve Ellcey <sje@cup.hp.com>
10581 * config/ia64/ia64.c (ia64_promote_function_mode): Call
10582 default_promote_function_mode when not VMS.
10584 2009-08-24 Olivier Hainque <hainque@adacore.com>
10586 * convert.c (convert_to_integer): Don't assume an input pointer is
10587 POINTER_SIZE wide. Fetch from the type instead.
10589 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10591 * configure.ac (AC_PREREQ): Bump to 2.64.
10593 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
10595 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
10596 (process_command): Don't search standard_exec_prefix_1 and
10597 standard_exec_prefix_2.
10599 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10601 * config/arm/arm.c (output_return_instruction): Handle for
10604 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10606 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
10608 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10610 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
10611 (*arm_movdf_vfp): Likewise.
10613 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10615 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
10616 (vashr<mode>3): Rename from ashr<mode>3.
10617 (vlshr<mode>3): Rename from lshr<mode>3.
10619 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
10622 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
10623 (check_format_info_main): Use scalar_identify_flag.
10624 (check_format_types): Check for scalar size identity if
10625 scalar_identify_flag is set.
10626 (printf_length_specs): Extend by new field.
10627 (asm_fprintf_length_specs): Likewise.
10628 (gcc_diag_length_specs): Likewise.
10629 (scanf_length_specs): Likewise.
10630 (strfmon_length_specs): Likewise.
10631 (gcc_gfc_length_specs): Likewise.
10632 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
10633 (ms_printf_flag_specs): Likewise.
10634 * c-format.h (format_length_info): Add new member scalar_identity_flag.
10636 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
10639 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
10640 (*call_value_pop_1): Ditto.
10641 (*sibcall_pop_1): New insn pattern.
10642 (*sibcall_value_pop_1): Ditto.
10644 2009-08-23 Alan Modra <amodra@bigpond.net.au>
10647 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
10650 2009-08-23 Alan Modra <amodra@bigpond.net.au>
10653 * fwprop.c (try_fwprop_subst): Allow multiple sets.
10654 (get_reg_use_in): New function.
10655 (forward_propagate_subreg): Propagate through subreg of zero_extend
10658 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
10660 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
10661 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
10663 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10665 * configure.ac: Remove --with-datarootdir, --with-docdir,
10666 --with-htmldir switches. No need to call AC_SUBST for
10667 datarootdir, docdir, htmldir any more.
10668 * configure: Regenerate.
10669 * doc/install.texi (Configuration): Document --datarootdir,
10670 --docdir, --htmldir, --pdfdir; update documentation for
10671 --infodir, --mandir.
10672 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
10675 * aclocal.m4: Regenerate.
10676 * config.in: Regenerate.
10677 * configure: Regenerate.
10679 2009-08-21 Douglas B Rupp <rupp@gnat.com>
10680 Olivier Hainque <hainque@adacore.com>
10682 * config/ia64/ia64.c: Include libfuncs.h.
10683 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
10684 (ia64_expand_call): Use reg 25 on VMS.
10685 (ia64_initialize_trampoline): Fix for VMS ABI.
10686 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
10687 (ia64_function_arg): Initialize reg 25 on VMS.
10688 Fix OpenVMS ABI issues for varargs.
10689 For OpenVMS, emit the Argument Information register set in the
10690 incoming/sibcall case as well.
10691 (ia64_arg_type): New function.
10692 (ia64_function_arg_advance): Keep track of cum->words.
10693 Fix OpenVMS ABI issues for varargs.
10694 (ia64_function_value): On VMS, promote mode of non-aggregate types.
10695 (ia64_override_options): Set flag_no_common on VMS.
10696 (ia64_init_builtins): Disable FWRITE builtin.
10697 (ia64_asm_output_external): Call DO_CRTL_NAMES.
10698 (ia64_vms_init_libfuncs): Add decc$ routines.
10699 (ia64_vms_valid_pointer_mode): New function.
10700 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
10701 (ia64_promote_function_mode): New function
10702 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
10703 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
10704 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
10705 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
10706 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
10707 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
10708 Suppress trailing '#' if VALUE is numeric.
10709 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
10710 ia64_promote_function_mode.
10711 (TARGET_VALID_POINTER_MODE): Define.
10713 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10716 * config/rs6000/rs6000.c (rs6000_override_options): Use
10717 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
10720 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
10721 reporting of vector + decimal/boolean/complex error.
10723 2009-08-21 Jakub Jelinek <jakub@redhat.com>
10725 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
10726 __vector double TYPE_DECL.
10728 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
10730 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
10731 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
10732 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
10733 to pointer to enum machine_mode. Update all callers as needed.
10735 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
10737 * config/alpha/alpha.md (exception_receiver): Emit alternative
10738 GP load sequence if flag_reorder_blocks_and_partition is set.
10739 (*exception_receiver_2): Also enable when
10740 flag_reorder_blocks_and_partition is set.
10742 2009-08-20 Matt Rice <ratmice@gmail.com>
10743 Diego Novillo <dnovillo@google.com>
10745 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
10748 2009-08-20 Richard Guenther <rguenther@suse.de>
10750 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
10751 * c-tree.h (c_dup_lang_specific_decl): Remove.
10752 (struct lang_decl, struct lang_type): Move definitions ...
10753 * c-lang.h: ... here. New file.
10754 * c-decl.c: Include c-lang.h.
10755 (c_dup_lang_specific_decl): Remove.
10756 * c-typeck.c: Include c-lang.h.
10757 * Makefile.in (c-decl.o): Add c-lang.h dependency.
10758 (c-typeck.o): Likewise.
10759 * c-config-lang.in (gtfiles): Add c-lang.h.
10760 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
10763 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
10765 * config/alpha/alpha.c (alpha_end_function): Do not clear
10766 crtl->emit structure and free insn locators if cfun->is_thunk is true,
10767 this is now handled in generic code.
10769 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
10771 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
10772 (s390_z10_fix_long_loop_prediction): New function.
10773 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
10774 (s390_reorg): Walk over the INSNs and invoke
10775 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
10777 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
10779 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
10780 "*brx_64bit", "*brx_31bit"): New patterns.
10781 * config/s390/s390.c ('E'): New output modifier.
10783 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10784 Richard Earnshaw <richard.earnshaw@arm.com>
10786 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
10787 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
10789 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10791 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
10793 * pa.c (emit_move_sequence): Check if address of operand1 is valid
10794 for mode mode of operand0 when doing secondary reload for SAR.
10796 2009-08-19 Jakub Jelinek <jakub@redhat.com>
10798 PR middle-end/41123
10799 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
10800 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
10802 2009-08-19 Jason Merrill <jason@redhat.com>
10804 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
10805 supported template depth in C++0x.
10807 2009-08-19 Jakub Jelinek <jakub@redhat.com>
10809 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
10810 free_after_compilation.
10811 * config/score/score7.c (score7_output_mi_thunk): Likewise.
10812 * config/score/score3.c (score3_output_mi_thunk): Likewise.
10813 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10814 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10815 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10816 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10817 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10819 2009-08-19 Ian Lance Taylor <iant@google.com>
10821 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
10822 of (plus (mult (neg B) C) A).
10824 2009-08-18 Michael Matz <matz@suse.de>
10826 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
10827 instead of comparing TYPE_MAIN_VARIANT for equality.
10828 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
10829 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
10830 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
10831 * gimplify.c (goa_lhs_expr_p): Ditto and use
10832 STRIP_USELESS_TYPE_CONVERSION.
10834 2009-08-18 Michael Matz <matz@suse.de>
10836 * tree-ssa-structalias.c (create_variable_info_for): Also mark
10837 first field in a struct.
10838 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
10840 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
10842 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10843 locators before emit_insn is called. Remove assert that
10845 (alpha_end_function): Clear crtl->emit structure and free insn
10846 locators if cfun->is_thunk is true.
10848 2009-08-18 Jason Merrill <jason@redhat.com>
10850 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10852 * configure.ac: Test for it.
10853 * configure, config.in: Regenerate.
10854 * doc/install.texi: Document --enable-gnu-unique-object.
10856 2009-08-18 Richard Guenther <rguenther@suse.de>
10858 PR middle-end/41094
10859 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
10860 pow(x,y*z) only if x is nonnegative.
10862 2009-08-18 Jakub Jelinek <jakub@redhat.com>
10864 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
10868 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
10869 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
10871 2009-08-17 DJ Delorie <dj@redhat.com>
10873 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
10874 * config/m32c/prologue.md (epilogue_freit): New.
10876 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
10877 (bank_switch_p): Likewise.
10878 (fast_interrupt_p): Likewise.
10879 (interrupt_p): Likewise.
10880 (m32c_conditional_register_usage): Round memregs size up.
10881 (need_to_save): We only need to save $a0 when we use ENTER.
10882 (interrupt_p): Check for fast_interrupt too.
10883 (bank_switch_p): New.
10884 (fast_interrupt_p): New.
10885 (m32c_attribute_table): Add bank_switch and fast_interrupt.
10886 (m32c_emit_prolog): Support bank switching and fast interrupts.
10887 * doc/extend.texi (Function Attributes): Add bank_switch and
10890 2009-08-17 Douglas B Rupp <rupp@gnat.com>
10892 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
10893 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
10895 2009-08-16 Douglas B Rupp <rupp@gnat.com>
10897 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
10898 (menu): Add IA-64/VMS Options.
10899 (IA-64/VMS Options): Likewise.
10901 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
10904 * config/mips/mips.md (*lwxs): Use :P for pointer values.
10906 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
10908 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
10909 (mips_pop_asm_switch): Likewise.
10910 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
10912 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10913 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
10914 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
10915 (mips_print_operand_punctuation): Use them. Check mips_noreorder
10916 instead of set_noreorder.
10917 (mips_output_function_prologue): Use the new functions.
10918 (mips_output_function_epilogue): Likewise.
10919 (mips_need_noat_wrapper_p): New function, split out from...
10920 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
10921 Use mips_push_asm_switch and mips_pop_asm_switch.
10922 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
10923 and mips_pop_asm_switch.
10924 (ASM_OUTPUT_REG_POP): Likewise.
10925 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
10926 Use mips_pop_asm_switch.
10927 (mips_asm_switch): New structure.
10928 (set_noreorder, set_nomacro): Replace with...
10929 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10930 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
10931 instead of set_nomacro.
10932 (fix_truncsfsi2_macro): Likewise.
10933 (cprestore): Likewise.
10934 (hazard): Use mips_noreorder instead of set_noreorder.
10935 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
10937 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
10939 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
10940 from prev_active_insn.
10942 2009-08-16 Anatoly Sokolov <aesok@post.ru>
10944 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
10945 * config/avr/avr.c (avr_override_options): Initialize
10946 avr_current_arch variable.
10947 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
10948 __AVR_HAVE_16BIT_SP__ according to the device type.
10949 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
10951 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
10952 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
10954 2009-08-16 Dodji Seketeli <dodji@redhat.com>
10957 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
10958 generating inlined subroutine die only. We shouldn't be
10959 called for anything else.
10960 (gen_block_die): Don't generate inline subroutine debug info for
10963 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
10965 * graphite-poly.c (print_pbb): Print PBB index.
10967 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
10969 PR middle-end/40981
10970 * graphite-interchange.c (ppl_max_for_le): Moved...
10971 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
10972 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
10973 ppl_Pointset_Powerset_C_Polyhedron_maximize.
10974 * graphite-ppl.h (ppl_max_for_le): Declared.
10976 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
10978 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
10979 supported on all platforms.
10980 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
10981 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
10982 * c-pragma.c: Likewise.
10983 * target-def.h (TARGET_INITIALIZER): Remove
10984 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10985 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10987 2009-08-14 Douglas B Rupp <rupp@gnat.com>
10989 * config/ia64/fde-vms.c: New file.
10990 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
10991 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
10992 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
10993 (uw_frame_state_for): Only register a personality routine if it is
10994 known to be compatible with our expectations.
10995 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
10996 Declare unw_table_entry stack variable and
10997 mod all calls to _Unwind_FindTableEntry to add arg.
10998 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
10999 (_Unwind_FindTableEntry): Add arg to prototype.
11001 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
11003 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
11004 field 'signal_pfs_loc'.
11005 (uw_frame_state_for): Remove duplicate code dealing with leaf
11006 procedures without unwind info.
11007 If in the frame after unwinding through a signal handler, restore
11008 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
11009 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
11010 'pfs_loc' to the AR.PFS location in the signal context; instead
11011 set 'signal_pfs_loc'.
11012 Manually generate the unwind info for the AR.PFS register.
11013 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
11014 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
11015 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
11016 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
11017 instead set 'signal_pfs_loc'.
11018 Remove code preventing the AR.PFS register from being restored
11019 from the signal context.
11021 2009-08-14 Douglas B Rupp <rupp@gnat.com>
11022 Tristan Gingold <gingold@adacore.com>
11024 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
11025 * config/ia64/t-vms: New file.
11026 * config/ia64/vms64.h: New file.
11027 * config/ia64/vms.h: New file.
11028 * config/ia64/vms-crtinit.asm: New file.
11029 * config/ia64/vms_symvec_libgcc_s.opt: New file.
11030 * config/ia64/vms-unwind.h: New file.
11032 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
11034 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
11037 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11039 PR middle-end/30789
11040 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
11041 Move declaration...
11042 * real.h (do_mpc_arg2): ... here.
11043 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
11046 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
11048 * final.c (add_debug_prefix_map): Don't use GC memory for
11049 old_prefix and new_prefix.
11051 2009-08-14 Richard Guenther <rguenther@suse.de>
11053 * ipa-prop.c (compute_complex_pass_through): If we cannot
11054 compute a non-varying offset for IPA_JF_ANCESTOR punt.
11056 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11058 * c-lex.c (c_lex_with_flags): Increase size of local variable
11059 to avoid memory clobber.
11061 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
11064 * config/i386/i386.c (ix86_fp_comparison_strategy):
11065 Only enable/disable sahf at function granularity.
11067 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
11069 PR rtl-optimization/41064
11070 * reload1.c (reload_as_needed): Don't call extract_insn
11071 for known invalid replacements after calling
11072 validate_replace_rtx_group and verify_changes.
11074 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
11077 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
11078 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
11079 ix86_expand_fp_vcond.
11080 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
11081 Assert that operation is supported by ix86_expand_int_vcond.
11082 (vcondu<SSEMODE124C8:mode>): Ditto.
11084 2009-08-13 DJ Delorie <dj@redhat.com>
11086 * config/i386/djgpp-stdint.h: New.
11087 * config.gcc (djgpp): Use it.
11089 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
11091 * config/sh/sh.c (sh_override_options): When flag_exceptions or
11092 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
11094 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
11096 * tree-ssa-loop-prefetch.c
11097 (prune_ref_by_group_reuse): Enhance probabilistic analysis
11098 for long-stride pruning.
11099 (compute_miss_rate): New function to compute the probability
11100 that two memory references access different cache lines.
11102 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
11104 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
11106 2009-08-13 Richard Guenther <rguenther@suse.de>
11108 PR middle-end/41047
11109 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
11110 use the constant pointer type.
11111 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
11112 of CV qualifiers on the target pointer type.
11113 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
11114 conversion check before restrict check.
11116 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
11119 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
11121 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
11123 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
11125 2009-08-12 Richard Guenther <rguenther@suse.de>
11127 PR tree-optimization/41011
11128 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
11129 and reference constructing.
11131 2009-08-12 Xinliang David Li <davidxl@google.com>
11133 PR tree-optimization/41012
11134 * tree-flow.h : New external interface.
11135 * gimple-low.c (check_call_arg): Change to public function.
11136 Remove argument mismatch check in lowering.
11137 * tree-inline.h (tree_can_inline_p): Interface change.
11138 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
11139 into this function.
11140 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
11141 Call change to tree_can_inline_p function.
11142 (cgraph_decide_inlining_incrementally): Ditto.
11144 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
11146 PR tree-optimization/41031
11147 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
11148 on the partition variable rather than promote_mode on the source
11149 type. Assert that the partition variable's type has the same
11150 mode as the source value's.
11152 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
11154 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
11155 for for_return == 2.
11156 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
11158 * calls.c (expand_call): Fix typo.
11159 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
11161 * stmt.c (expand_value_return): Use promote_function_mode to copy out
11163 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
11164 * config/cris/cris.c (cris_promote_function_mode): Likewise.
11165 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
11166 * config/pa/pa.c (pa_promote_function_mode): Likewise.
11168 2009-08-12 Andrew Haley <aph@redhat.com>
11170 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
11172 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11175 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
11177 2009-08-12 Richard Guenther <rguenther@suse.de>
11179 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
11180 * gimplify.c (gimplify_modify_expr): Do not use
11181 lang_hooks.types_compatible_p.
11182 * tree-ssa.c (useless_type_conversion_p): For aggregates
11183 just return false if the canonical types differ.
11185 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11187 PR middle-end/40980
11188 * sese.c (convert_for_phi_arg): New.
11189 (add_guard_exit_phis): Use convert_for_phi_arg.
11191 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11193 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
11194 unknown subscript upper bounds.
11196 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11197 Pranav Garg <pranav.garg2107@gmail.com>
11199 * graphite-interchange.c (gather_access_strides): Removed.
11200 (ppl_max_for_le): New.
11201 (build_linearized_memory_access): New.
11202 (memory_stride_in_loop): New.
11203 (pbb_interchange_profitable_p): Reimplemented.
11204 * graphite-ppl.h (ppl_new_id_map): New.
11205 (ppl_interchange): New.
11207 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11209 * graphite-interchange.c (compute_subscript): Removed.
11210 (compute_array_size_cstr): Removed.
11211 (compute_array_size_poly): Removed.
11212 (compute_array_size): Removed.
11213 (gather_access_strides_poly): Removed.
11214 (gather_access_strides): Empty.
11216 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11218 * graphite-dependences.c (dependence_polyhedron_1): Replace
11219 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
11220 (graphite_legal_transform_dr): Same.
11221 (graphite_carried_dependence_level_k): Same.
11222 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
11223 Initialize PDR_NB_SUBSCRIPTS.
11224 (print_pdr_access_layout): Replace pdr_nb_subscripts with
11226 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
11227 (PDR_NB_SUBSCRIPTS): New.
11228 (pdr_nb_subscripts): Removed.
11229 (pdr_dim): Simplified.
11230 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
11231 with PDR_NB_SUBSCRIPTS.
11233 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11235 * graphite-interchange.c (compute_array_size): Remove use of
11236 PDR_DATA_CONTAINER.
11237 * graphite-poly.c (new_poly_dr): Remove argument data_container.
11238 Do not initialize PDR_DATA_CONTAINER.
11239 (print_pdr): Do not print PDR_DATA_CONTAINER.
11240 * graphite-poly.h (struct poly_dr): Remove data_container field.
11241 (PDR_DATA_CONTAINER): Removed.
11242 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
11243 PDR_DATA_CONTAINER.
11244 (build_poly_dr): Same.
11246 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
11247 Sebastian Pop <sebastian.pop@amd.com>
11249 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
11250 copy of the dependence polyhedron. Free the temporary objects.
11251 (graphite_carried_dependence_level_k): Free unused objects before
11254 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11256 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
11257 Early return without analyzing the data dependences if no
11258 transform has been done. Call restore_scattering if the transform
11260 (graphite-interchange.c): Same.
11261 * graphite-poly.c (print_scattering_function): Test for
11263 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
11264 (apply_poly_transforms): Do not gcc_assert that
11265 the transform is legal.
11266 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
11267 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
11268 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
11269 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
11270 * graphite-poly.h (struct poly_scattering): New.
11271 (struct poly_bb): Add original, transformed, and saved fields.
11272 Remove transformed_scattering, original_scattering,
11273 nb_local_variables and nb_scattering_transform fields.
11274 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
11275 (poly_scattering_new): New.
11276 (poly_scattering_free): New.
11277 (poly_scattering_copy): New.
11278 (store_scattering_pbb): New.
11279 (store_scattering): New.
11280 (restore_scattering_pbb): New.
11281 (restore_scattering): New.
11282 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
11283 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
11285 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11287 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
11288 (print_scop): Same.
11290 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11292 * Makefile.in (graphite.o): Depends on PREDICT_H.
11293 * graphite.c: Include predict.h.
11294 (graphite_finalize): Call tree_estimate_probability.
11295 * predict.c (predict_loops): Do not call scev_initialize and
11297 (tree_estimate_probability_bb): New.
11298 (tree_estimate_probability): Do not initialize loops: move that
11299 code to the driver. Call tree_estimate_probability_bb.
11300 (tree_estimate_probability_driver): New.
11301 (pass_profile): Use tree_estimate_probability_driver.
11302 * predict.h (tree_estimate_probability): Declared.
11304 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
11306 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
11307 * graphite-dependences.c (graphite_legal_transform): Add time to
11308 TV_GRAPHITE_DATA_DEPS.
11309 (dependency_between_pbbs_p): Same.
11310 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
11312 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
11314 PR rtl-optimization/41033
11315 * alias.c (nonoverlapping_component_refs_p): Punt when strict
11316 aliasing is disabled.
11318 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
11320 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
11321 si_mask_operand, and_load_operand, low_bitmask_operand,
11322 and_reg_operand, and_operand): New predicates.
11323 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
11324 * config/mips/mips.c (and_operands_ok): New function.
11325 * config/mips/mips-protos.h (and_operands_ok): Declare it.
11326 * config/mips/mips.md (move_type): Add ext_ins and logical.
11327 (type): Handle them.
11328 (and<mode>3): Use and_reg_operand as the second operand's predicate.
11329 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
11330 shift_shift. Remove commutative constraint modifier.
11331 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
11333 (*clear_upper32_dext): Remove define_insn_and_split.
11334 (*clear_upper32): Turn this define_insn_and_split ...
11335 (splitter for ANDing register with 0xffff_ffff): .. into this.
11337 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
11339 * combine.c (try_widen_shift_mode): Factor out code to check if an
11340 integer constant is a low-order bitmask from here ...
11341 * rtlanal.c (low_bitmask_len): ... to here.
11342 * rtl.h (low_bitmask_len): Declare.
11344 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
11347 * config/alpha/alpha.md (addsi3): Remove expander.
11348 (addsi3): Rename from *addsi3_internal insn pattern.
11349 (subsi3): Remove expander.
11350 (subsi3): Rename from *subsi3_internal insn pattern.
11352 2009-08-11 Douglas B Rupp <rupp@gnat.com>
11354 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
11357 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
11358 Eric Botcazou <botcazou@adacore.com>
11359 Douglas B Rupp <rupp@gnat.com>
11361 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
11362 that records that fit in 64 bits are returned by immediate value,
11363 as required by OpenVMS Calling Standard.
11364 (function_value): Adjust for above modification.
11365 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
11366 virtual_incoming_args_rtx as base object, not next_arg.
11367 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11369 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11371 * reload.c (find_reloads_subreg_address): Check the original
11372 req_equiv_mem address to detect the case where an address is
11373 not valid in the outer mode.
11375 2009-08-11 Richard Guenther <rguenther@suse.de>
11378 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
11380 2009-08-10 Douglas B Rupp <rupp@gnat.com>
11382 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
11383 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
11385 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
11386 Douglas B Rupp <rupp@gnat.com>
11388 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
11389 PT_STACK when frame_pointer_needed on OpenVMS.
11390 (alpha_pv_save_size, alpha_using_fp): Remove.
11391 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
11392 with proper processing for PT_NULL.
11393 (alpha_vms_initial_elimination_offset): New function. Support for
11394 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
11395 (alpha_sa_size): Force procedure type to PT_STACK when
11396 frame_pointer_needed on OpenVMS.
11397 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
11398 (alpha_using_fp): Likewise.
11399 (alpha_vms_can_eliminate): Add prototype.
11400 (alpha_vms_initial_elimination_offset): Likewise.
11401 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
11402 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
11404 2009-08-10 Eric Botcazou <botcazou@adacore.com>
11405 Douglas B Rupp <rupp@gnat.com>
11407 * config/alpha/alpha.c (common_object_handler): New function.
11408 (vms_attribute_table): Declare a single attribute "common_object".
11409 (vms_output_aligned_decl_common): New global function.
11410 (SECTION_VMS_OVERLAY): Delete.
11411 (SECTION_VMS_GLOBAL): Likewise.
11412 (SECTION_VMS_INITIALIZE): Likewise.
11413 (vms_asm_named_section): Remove support for above flags.
11414 (vms_section_type_flags): Delete.
11415 (TARGET_SECTION_TYPE_FLAGS): Likewise.
11416 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
11417 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
11418 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
11420 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11423 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
11424 (sub_ddmmss): Likewise.
11426 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
11429 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
11432 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11435 * reload1.c (reload_as_needed): Use cancel_changes to completely
11436 undo a failed replacement attempt.
11438 2009-08-10 Richard Guenther <rguenther@suse.de>
11440 PR middle-end/41006
11441 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
11442 (useless_type_conversion_p): ... here. Require pointer targets
11445 2009-08-10 Dodji Seketeli <dodji@redhat.com>
11448 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
11449 loose the original type of the statement list.
11451 2009-08-09 Douglas B Rupp <rupp@gnat.com>
11453 * config/alpha/alpha.c: Include libfuncs.h
11454 (avms_asm_output_extern): New function.
11455 (alpha_init_libfuncs): Init some decc libfuncs.
11456 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
11457 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
11458 (DO_CRTL_NAMES): Define.
11459 (LIB_SPEC): Remove.
11460 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
11461 (LONG_TYPE_SIZE): Define.
11462 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
11463 (SUBTARGET_SWITCHES): Define malloc64 switch.
11464 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
11465 (MASK_RETURN_ADDR): Define.
11466 doc/invoke.texi (mmalloc64): Document switch.
11468 2009-08-09 Olivier Hainque <hainque@adacore.com>
11469 Douglas B Rupp <rupp@gnat.com>
11471 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
11472 uses_condition_handler.
11473 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
11474 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
11475 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
11476 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
11477 (code_for_builtin): New insn codes for the new alpha_builtins.
11478 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
11479 (alpha_sa_size): Account for uses_condition_handler.
11480 (alpha_expand_prologue): Likewise.
11481 (alpha_start_function): Likewise.
11482 (alpha_expand_epilogue): Likewise.
11483 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
11484 establish/revert expanders.
11485 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
11486 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
11487 New expander, resorting to the alpha.c associated function.
11488 (builtin_revert_vms_condition_handler): Likewise.
11489 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
11490 __gcc_shell_handler, the static VMS condition handler used as
11491 an indirection wrapper to the current dynamically established
11493 * config/alpha/vms-unwind.h: Complete rewrite.
11494 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
11495 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
11497 2009-08-09 Eric Botcazou <botcazou@adacore.com>
11498 Douglas B Rupp <rupp@gnat.com>
11500 * config/alpha/alpha.c (alpha_links): Add 'target' field.
11501 (alpha_need_linkage): Handle aliases. Return function symbol.
11502 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
11503 Use ultimate alias target for the linkage name.
11504 * config/alpha/alpha.md (movmemdi): Use the symbol returned
11505 by alpha_need_linkage for the function symbol.
11506 (setmemdi): Likewise.
11508 2009-08-09 Douglas B Rupp <rupp@gnat.com>
11510 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
11511 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
11512 (ASM_WEAKEN_LABEL): Define.
11513 (CRT_CALL_STATIC_FUNCTION): Define.
11514 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
11515 (ENDFILE_SPEC): Define.
11516 (INIT_SECTION_ASM_OP): Define.
11517 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
11518 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
11519 crtend.o crtendS.o.
11520 (MULTILIB_OSDIRNAMES): Define.
11521 (shlib_version): Define.
11522 (SHLIB_EXT): Define.
11523 (SHLIB_OBJS): Define.
11524 (SHLIB_NAME): Define.
11525 (SHLIB_MULTILIB): Define.
11526 (SHLIB_INSTALL): Define.
11527 (SHLIB_SYMVEC): Define.
11528 (SHLIB_SYMVECX2): Define.
11529 (SHLIB_LINK): Define.
11531 2009-08-09 Douglas B Rupp <rupp@gnat.com>
11533 * config/alpha/alpha.c (alpha_initialize_trampoline):
11534 Initialize VMS trampoline IAW ABI for bounded procedure calls.
11535 (alpha_start_function): Emit transfer address on nested functions
11536 for VMS trampoline call.
11537 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
11538 since no longer used.
11539 * config/alpha/vms-tramp.asm: Remove.
11540 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
11541 since now only data initialized at runtime.
11543 2009-08-09 Douglas B Rupp <rupp@gnat.com>
11545 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
11546 (LINK_GCC_C_SEQUENCE_SPEC): Define.
11547 (MD_EXEC_PREFIX): Remove, no longer used.
11548 (MD_STARTFILE_PREFIX): Likewise.
11549 (INCLUDE_DEFAULTS): Likewise.
11550 * config/alpha/t-vms:
11551 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
11553 2009-08-09 Richard Guenther <rguenther@suse.de>
11555 PR tree-optimization/41016
11556 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
11557 (operand_precision): Remove.
11558 (integral_operand_p): Likewise.
11559 (recognize_single_bit_test): Adjust.
11561 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
11563 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
11564 operation overflows. Likewise non-cast unary arithmetic.
11565 If one arm of a conditional expression is always taken,
11566 inhibit evaluation warnings for the other arm. Likewise inhibit
11567 evaluation warnings for the second && or || operand if the first
11568 operand is enough to determine the result.
11569 * c-typeck.c (build_conditional_expr): Apply the same inhibition
11571 (build_binary_op): Prevent duplicate evaluation warnings.
11573 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
11575 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
11576 and destination have different modes, Use promote_mode to
11577 determine the signedness of the conversion. Assert that the
11578 promoted source mode matches the destination mode. Don't pass
11579 the destination and destination mode to expand_expr if the source
11580 mode is different. Simplify conversion logic.
11582 2009-08-09 Ira Rosen <irar@il.ibm.com>
11584 PR tree-optimization/41008
11585 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
11586 from condition only in case it's a comparison. Adjust checks.
11588 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
11590 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
11591 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
11592 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
11593 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
11594 (dump_cand): Handle them.
11595 (struct iv_cand): New members COST_STEP and AINC_USE.
11596 (stmt_after_increment): Likewise.
11597 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
11598 callers changed. Use gimple_uid comparison instead of scanning.
11599 (add_candidate_1): When looking for identical candidates, take
11600 AINC_USE into account. Set it for new candidates.
11601 (force_expr_to_var_cost): Cast target_spill_cost to int.
11602 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
11603 All callers changed. Check for availability of autoinc addressing
11604 modes, both in general for a given mode, and in the specific use case.
11605 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
11607 (get_computation_cost): Likewise.
11608 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
11609 add_autoinc_candidates): New static functions.
11610 (add_candidate): Call add_autoinc_candidates for candidates based on
11612 (find_iv_candidates): Call set_autoinc_for_original_candidates.
11613 (determine_use_iv_cost_address): If we have an autoinc candidate at
11614 the matching use, verify autoinc is possible and subtract the cost
11615 of the candidate's step from the cost.
11616 (determine_iv_cost): Record the cost of the increment in the COST_STEP
11617 member of the candidate.
11618 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
11619 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
11621 2009-08-09 Douglas B Rupp <rupp@gnat.com>
11623 * config.build (ia64-hp-*vms*): New target.
11624 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
11625 with ia64-hp-*vms*.
11626 * config.gcc (ia64-hp-*vms*): New target.
11627 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
11628 with ia64-hp-*vms*.
11629 * config.host (ia64-hp-*vms*): New target.
11630 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
11631 with ia64-hp-*vms*.
11633 2009-08-08 Richard Guenther <rguenther@suse.de>
11635 PR tree-optimization/40991
11636 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
11638 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
11640 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
11641 mode check. Do truncations in an integer mode.
11642 (force_to_mode): Handle subregs for all mode types. Only do
11643 arithmetic simplifications on integer modes.
11645 2009-08-07 Richard Guenther <rguenther@suse.de>
11647 PR tree-optimization/40999
11648 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
11649 (maybe_fold_reference): Lookup constant initializers.
11650 (fold_gimple_assign): Likewise.
11652 2009-08-07 Richard Guenther <rguenther@suse.de>
11654 * tree-ssa.c (useless_type_conversion_p_1): Only for types
11655 that require structural equality defer to the langhook.
11657 2009-08-07 Martin Jambor <mjambor@suse.cz>
11659 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
11661 (struct ipa_pass_through_data): New type.
11662 (struct ipa_ancestor_jf_data): New type.
11663 (union jump_func_value): Removed field formal_id, added fields
11664 pass_through and ancestor.
11665 (struct ipa_param_call_note): Changed type of formal_id to int from
11667 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
11668 operations jump functions and ancestor jump functions.
11669 (compute_complex_pass_through): New function.
11670 (compute_scalar_jump_functions): Call compute_complex_pass_through,
11671 reflect changes in the jump function strucutre.
11672 (update_jump_functions_after_inlining): Ignore complex pass-through
11673 and ancestor jump functions.
11674 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
11675 polynomial pass-through with operation jump functions.
11677 2009-08-07 Jakub Jelinek <jakub@redhat.com>
11679 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
11680 fde->dw_fde_begin as begin label instead of hot/cold label.
11681 Use LLSDAC label instead of LLSDA for second section lsda.
11682 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
11683 label instead of LLSDA if it is true.
11684 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
11686 * except.c (add_call_site, dw2_size_of_call_site_table): Add
11687 SECTION argument. Use it as index into crtl->eh.call_site_record
11689 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
11690 use it to determine how to print table entries instead of using
11691 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
11692 label instead of normal begin label as base.
11693 (sjlj_assign_call_site_values): Adjust add_call_site caller.
11694 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
11695 ensure no EH range spans between sections and that landing pads
11696 are always in the corresponding section.
11697 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
11698 for crtl->eh.call_site_record being an array rather than scalar.
11699 (output_one_function_exception_table): New function, copied
11700 from output_function_exception_table. Adjust
11701 dw2_size_of_call_site_table, dw2_output_call_site_table
11702 callers. For SECOND section use *C suffixed labels.
11703 (output_function_exception_table): Call
11704 output_one_function_exception_table and, when doing hot/cold
11705 partitioning, also another time for the second section.
11706 * opts.c: Include except.h.
11707 (decode_options): Allow -freorder-blocks-and-partition with
11708 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
11709 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
11710 * function.h (struct rtl_eh): Change call_site_record from
11711 scalar into array of 2 elements.
11713 2009-08-07 Martin Jambor <mjambor@suse.cz>
11715 * ipa-prop.c (count_formal_params_1): New function.
11716 (ipa_get_vector_of_formal_parms): New function.
11717 (get_vector_of_formal_parm_types): New function.
11718 (ipa_modify_formal_parameters): New function.
11719 (ipa_modify_call_arguments): New function.
11720 (index_in_adjustments_multiple_times_p): New function.
11721 (ipa_combine_adjustments): New function.
11722 (ipa_dump_param_adjustments): New function.
11723 * ipa-prop.h (struct ipa_parm_adjustment): New type.
11724 (ipa_get_vector_of_formal_parms): Declare.
11725 (ipa_modify_formal_parameters): Declare.
11726 (ipa_modify_call_arguments): Declare.
11727 (ipa_combine_adjustments): Declare.
11728 (ipa_dump_param_adjustments): Declare.
11729 (build_ref_for_offset): Declare.
11730 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
11731 * tree-sra.c: Include ipa-prop.c.
11732 (build_ref_for_offset): Make public.
11734 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
11736 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
11738 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
11740 * gcc/doc/extend.texi (__builtin_extract_return_address)
11741 (__builtin_frob_return_address): Document.
11743 2009-08-06 Paul Brook <paul@codesourcery.com>
11745 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
11746 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
11747 implementation on ARMv6-M.
11749 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
11751 * doc/extend.texi (pcs): Document new attribute for ARM.
11753 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
11755 * arm.c (pcs_attribute_args): Comment out unsupported attribute
11758 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
11760 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
11763 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
11765 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
11767 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
11769 Merge ARM/hard_vfp_branch to trunk.
11771 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
11773 * arm.c (libcall_eq): New function.
11774 (libcall_hash): New function.
11775 (add_libcall): New function.
11776 (arm_libcall_uses_aapcs_base): New function.
11777 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
11778 libcalls using the base PCS.
11779 (arm_init_cumulative_args): Likewise.
11781 2009-07-20 Joseph Myers <joseph@codesourcery.com>
11783 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
11784 Use base ABI for conversion libfuncs between HFmode and SFmode.
11786 2009-05-12 Joseph Myers <joseph@codesourcery.com>
11788 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
11789 V4SImode as representatives of all 64-bit and 128-bit vector
11790 types. Allow vector types without vector modes.
11791 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
11792 without vector modes like BLKmode.
11793 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
11794 BLKmode. Avoid unsupported vector modes or TImode moves for
11796 (aapcs_vfp_allocate_return_reg): Likewise.
11797 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
11798 V8QImode if TARGET_NEON || TARGET_IWMMXT.
11800 2009-05-12 Joseph Myers <joseph@codesourcery.com>
11802 * config/arm/arm.c (arm_handle_pcs_attribute): New.
11803 (arm_get_pcs_model): Pass attribute arguments to
11804 arm_pcs_from_attribute.
11805 (arm_init_cumulative_args): Use base AAPCS for conversions from
11806 floating-point types to DImode.
11807 (arm_attribute_table): Add pcs attribute.
11808 (arm_handle_pcs_attribute): New.
11809 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
11810 conversions from floating-point types to DImode, also declare them
11811 to use base AAPCS and declare functions they call to use base
11812 AAPCS and their RTABI names.
11814 2009-05-12 Joseph Myers <joseph@codesourcery.com>
11816 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
11817 -mfloat-abi=hard not being supported for VFP.
11819 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
11821 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
11822 SYMBOL_REF to hard_libcall_value.
11824 2009-03-05 Joseph Myers <joseph@codesourcery.com>
11825 Richard Earnshaw <rearnsha@arm.com>
11827 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
11828 has been put on the stack, all remaining co-processory arguments for
11829 that co-processor also go on the stack.
11831 2009-03-05 Joseph Myers <joseph@codesourcery.com>
11833 * config/arm/arm.c (arm_return_in_memory): Handle returning
11834 vectors of suitable size in registers also for AAPCS case.
11836 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
11838 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
11840 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
11842 ARM Hard-VFP calling convention
11843 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
11844 * target.h (gcc_target): Add libcall_value to table of call hooks.
11845 * targhooks.h (default_libcall_value): Default implementation.
11846 * targhooks.c (default_libcall_value): Likewise.
11847 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
11848 * optabs.c (expand_unop): Use it.
11849 * expr.h (hard_libcall_value): Pass the function RTX through.
11850 * calls.c (emit_library_call_value_1): Update call to
11851 hard_libcall_value.
11852 * explow.c (hard_libcall_value): Use new target hook.
11853 * config/arm/arm.c: Include cgraph.h
11854 (TARGET_FUNCTION_VALUE): Override default hook.
11855 (arm_pcs_default): New variable.
11856 (arm_override_options): Don't fault hard calling convention with VFP.
11857 Add support for AAPCS variants.
11858 (arm_function_value): Make static. Handle AAPCS variants.
11859 (arm_libcall_value): New function.
11860 (arm_apply_result_size): Handle VFP registers in results.
11861 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
11863 (pcs_attribute_args): New variable.
11864 (arm_pcs_from_attribute): New function.
11865 (arm_get_pcs_model): New function.
11866 (aapcs_vfp_cum_init): New function.
11867 (aapcs_vfp_sub_candidate): New function.
11868 (aapcs_vfp_is_return_candidate): New function.
11869 (aapcs_vfp_is_call_candidate): New function.
11870 (aapcs_vfp_allocate): New function.
11871 (aapcs_vfp_allocate_return_reg): New function.
11872 (aapcs_vfp_advance): New function.
11873 (aapcs_cp_arg_layout): New variable.
11874 (aapcs_select_call_coproc): New function.
11875 (aapcs_select_return_coproc): New function.
11876 (aapcs_allocate_return_reg): New function.
11877 (aapcs_libcall_value): New function.
11878 (aapcs_layout_arg): New function.
11879 (arm_init_cumulative_args): Initialize AAPCS args data.
11880 (arm_function_arg): Handle AAPCS variants using new interface.
11881 (arm_arg_parital_bytes): Likewise.
11882 (arm_function_arg_advance): New function.
11883 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
11884 calling conventions.
11885 (arm_setup_incoming_varargs): Handle new AAPCS args data.
11886 * arm.h (NUM_VFP_ARG_REGS): Define.
11887 (LIBCALL_VALUE): Update.
11888 (FUNCTION_VALUE): Delete.
11889 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
11890 (arm_pcs): New enum.
11891 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
11892 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
11893 (FUNCTION_ARG_REGNO_P): Add VFP regs.
11894 * arm-protos.h (arm_function_arg_advance): Add.
11895 (aapcs_libcall_value): Add.
11896 (arm_function_value): Delete.
11898 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
11899 H.J. Lu <hongjiu.lu@intel.com>
11902 * config/i386/i386.c (standard_sse_mode_p): Remove.
11903 (standard_sse_constant_p): Return 2 for integer mode
11904 vector_all_ones_operand when SSE2 is enabled.
11905 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
11906 (ix86_expand_vector_move): Do not check for negative values from
11907 standard_sse_constant_p.
11909 2009-08-06 Richard Guenther <rguenther@suse.de>
11911 * tree-ssa.c (useless_type_conversion_p_1): Make function and
11912 array type comparisons frontend independent.
11913 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
11914 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
11915 out array reference lower bound and element size operands.
11916 (ao_ref_init_from_vn_reference): Properly compute the offset
11917 for ARRAY_RANGE_REF.
11918 (vn_reference_fold_indirect): Fill out array reference lower
11919 bound and element size operands.
11920 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
11921 a non gimple valued reference operand which can happen for
11922 array reference lower bound or element size.
11923 (create_component_ref_by_pieces_1): Properly generate the
11924 element size operand for array references.
11926 2009-08-06 Richard Guenther <rguenther@suse.de>
11928 PR tree-optimization/40964
11929 * tree.c (iterative_hash_host_wide_int): Export.
11930 * tree.h (iterative_hash_host_wide_int): Declare.
11931 * tree-ssa-structalias.c (heapvar_map): New struct.
11932 (heapvar_map_eq): New function.
11933 (heapvar_map_hash): Likewise.
11934 (heapvar_lookup): Adjust.
11935 (heapvar_insert): Likewise.
11936 (make_constraint_from_heapvar): Allow multiple heap variables
11937 per decl at different offsets.
11938 (init_alias_heapvars): Adjust.
11940 2009-08-04 David Daney <ddaney@caviumnetworks.com>
11942 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
11943 * mips_output_sync_loop (mips_output_sync_loop): Only emit
11944 trailing sync if TARGET_SYNC_AFTER_SC.
11946 2009-08-05 David Daney <ddaney@caviumnetworks.com>
11948 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
11949 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
11950 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
11951 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
11952 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
11953 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
11954 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11955 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
11956 test_and_set_12): Rewrite calls to mips_output_sync_loop.
11957 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
11958 the prototype declaration match the definition.
11959 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
11960 instructions explicitly. Add barrier_before and operands
11962 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
11963 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
11964 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
11965 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
11966 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
11967 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
11969 2009-08-05 Andrew Pinski <pinskia@gmail.com>
11971 * tree-ssa-alias.c: Fix intervals to use [) syntax.
11973 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
11974 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11977 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
11980 2009-08-05 Jakub Jelinek <jakub@redhat.com>
11982 PR rtl-optimization/40924
11983 * dse.c (canon_address): Before calling cselib_expand_value_rtx
11984 make sure canon_rtx (mem_address) isn't simpler than
11985 canon_rtx (expanded_mem_address).
11987 2009-08-05 Li Feng <nemokingdom@gmail.com>
11989 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
11990 for each poly_bb_p.
11991 (build_scop_drs): Build alias set for each SCoP.
11993 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
11995 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
11996 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
11997 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
11998 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11999 (BASE_DRIVER_SELF_SPECS): Likewise.
12001 2009-08-04 Andrew Pinski <pinskia@gmail.com>
12003 * tree-ssa-alias.c: Fix some comment typos.
12005 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
12007 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
12008 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
12010 2009-08-03 Janis Johnson <janis187@us.ibm.com>
12013 * simplify-rtx.c (simplify_binary_operation_1): Disable
12014 simplifications for decimal float operations.
12016 2009-08-03 Jakub Jelinek <jakub@redhat.com>
12018 PR middle-end/40943
12019 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
12020 operand of INDIRECT_REF.
12022 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
12024 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
12025 constants referencing TLS symbols.
12027 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12029 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
12030 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
12032 2009-08-03 Richard Guenther <rguenther@suse.de>
12034 * tree.c (make_vector_type): Build a main variant first,
12035 get the canonical one and then build the variant.
12036 * tree-ssa.c (useless_type_conversion_p_1): Handle
12038 (useless_type_conversion_p): Conversions to pointers to
12039 incomplete record types are useless.
12041 2009-08-03 Richard Guenther <rguenther@suse.de>
12043 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
12044 file will be created.
12045 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
12046 * toplev.c (compile_file): Adjust comment.
12048 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
12050 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
12051 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
12052 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12053 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12054 (sh_promote_function_mode): Fix typo.
12056 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
12058 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
12060 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12062 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
12063 declaration arguments.
12065 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
12067 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
12068 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
12069 (ix86_split_ashl): Ditto.
12070 (ix86_expand_vector_init_one_nonzero): Ditto.
12071 (ix86_expand_vector_set): Ditto.
12072 (ix86_expand_reduc_v4sf): Ditto.
12074 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12076 * explow.c (promote_function_mode): Remove assert.
12077 * config/sh/sh.c (sh_promote_function_mode): Declare.
12079 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12081 * config/pa/pa.c (pa_promote_function_mode): Declare.
12082 Change to static. Fix promote_mode call.
12084 * gthr-dce.h (CONST_CAST2): Define if not defined.
12085 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
12087 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
12089 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
12091 * expr.c (store_constructor): Use promote_decl_mode. Remove
12092 now write-only variable unsignedp.
12093 (expand_expr_real_1): Use promote_decl_mode.
12094 * expr.h (promote_function_mode, promote_decl_mode): New.
12095 (promote_mode): Remove last argument.
12096 * function.c (assign_temp): Drop last argument of promote_mode.
12097 (assign_parm_find_data_types): Use promote_function_mode.
12098 (assign_parm_setup_reg): Likewise.
12099 (expand_function_end): Use promote_function_mode.
12100 * calls.c (initialize_argument_information): Use promote_function_mode.
12101 (precompute_arguments): Use promote_mode instead of checking if
12102 only PROMOTE_FUNCTION_MODE is defined.
12103 (expand_call): When making sibcall decisions, use promote_function_mode.
12104 Below, remove an if for targetm.calls.promote_function_return and
12105 and use promote_function_mode.
12106 (emit_library_call_value_1): Use promote_function_mode, fix bug
12107 where promote_mode was passed FOR_CALL == 0 for a return value in an
12109 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
12110 * explow.c (promote_function_mode, promote_decl_mode): New.
12111 (promote_mode): Keep only the FOR_CALL == 0 case.
12112 * combine.c (setup_incoming_promotion): Remove test of
12113 promote_function_args. Use promote_function_mode.
12114 * stmt.c (expand_value_return): Use promote_decl_mode.
12115 (expand_decl): Use promote_decl_mode.
12117 * expr.c (store_constructor): Use promote_decl_mode. Remove
12118 now write-only variable unsignedp.
12119 (expand_expr_real_1): Use promote_decl_mode.
12120 * expr.h (promote_function_mode, promote_decl_mode): New.
12121 (promote_mode): Remove last argument.
12122 * function.c (assign_temp): Drop last argument of promote_mode.
12123 (assign_parm_find_data_types): Use promote_function_mode.
12124 (assign_parm_setup_reg): Likewise.
12125 (expand_function_end): Use promote_function_mode.
12126 * calls.c (initialize_argument_information): Use promote_function_mode.
12127 (precompute_arguments): Use promote_mode instead of checking if
12128 only PROMOTE_FUNCTION_MODE is defined.
12129 (expand_call): When making sibcall decisions, use promote_function_mode.
12130 Below, remove an if for targetm.calls.promote_function_return and
12131 and use promote_function_mode.
12132 (emit_library_call_value_1): Use promote_function_mode, fix bug
12133 where promote_mode was passed FOR_CALL == 0 for a return value in an
12135 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
12136 * explow.c (promote_function_mode, promote_decl_mode): New.
12137 (promote_mode): Keep only the FOR_CALL == 0 case.
12138 * combine.c (setup_incoming_promotion): Remove test of
12139 promote_function_args. Use promote_function_mode.
12140 * stmt.c (expand_value_return): Use promote_decl_mode.
12141 (expand_decl): Use promote_decl_mode.
12143 * explow.c (promote_function_mode): Just call the target hook.
12144 * targhooks.c (default_promote_function_mode,
12145 default_promote_function_mode_always_promote): New.
12146 * targhooks.h (default_promote_function_mode,
12147 default_promote_function_mode_always_promote): Declare.
12148 * target.h (promote_function_args, promote_function_return): Remove.
12149 (promote_function_mode): New.
12150 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
12151 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12152 (TARGET_PROMOTE_FUNCTION_MODE): New.
12153 (TARGET_CALLS): Adjust.
12154 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
12155 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
12157 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
12158 * config/s390/s390.c (s390_promote_function_mode): ... here,
12159 with pointer handling.
12160 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12161 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12163 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
12164 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
12165 with pointer handling.
12166 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12167 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12169 * config/sh/sh-protos.h (sh_promote_function_mode): New.
12170 * config/sh/sh.c (sh_promote_function_mode): New.
12171 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12172 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12174 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
12175 * config/cris/cris.c (cris_promote_function_mode): ... here.
12176 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12177 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12179 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
12180 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
12181 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12182 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
12184 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
12185 * config/arm/arm.c (arm_promote_function_mode): ... here, without
12186 complex type handling.
12187 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12188 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12190 * config/pa/pa.c (pa_promote_function_mode): New.
12191 (TARGET_PROMOTE_FUNCTION_MODE): Define.
12192 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12194 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
12195 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
12196 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
12197 * config/xtensa/xtensa.c: Likewise.
12198 * config/stormy16/stormy16.c: Likewise.
12199 * config/iq2000/iq2000.c: Likewise.
12200 * config/rs6000/rs6000.c: Likewise.
12201 * config/picochip/picochip.c: Likewise.
12202 * config/arc/arc.c: Likewise.
12203 * config/mcore/mcore.c: Likewise.
12204 * config/score/score.c: Likewise.
12205 * config/mips/mips.c: Likewise.
12206 * config/bfin/bfin.c: Likewise.
12207 * config/ia64/ia64.c: Likewise (disabled though).
12209 * config/frv/frv.h: Remove pointless remark.
12211 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
12212 TARGET_PROMOTE_FUNCTION_ARGS,
12213 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
12214 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
12216 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
12218 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
12219 -floop-parallelize-all.
12220 * toplev.c (process_options): Rename flag_graphite_force_parallel to
12221 flag_loop_parallelize_all.
12222 * tree-ssa-loop.c (gate_graphite_transforms): Same.
12223 * graphite.c (graphite_transform_loops): Same.
12224 * common.opt: Same.
12225 * graphite-poly.c (apply_poly_transforms): Same.
12227 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
12229 PR tree-optimization/40914
12230 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
12231 if set, then check the delta field of the PMF record.
12232 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
12233 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
12234 call is stored in the delta.
12236 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
12238 * config/mips/mips.md (*clear_upper32_dext): New pattern.
12240 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
12242 * config/i386/bsd.h (ASM_BYTE): New define.
12243 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
12244 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
12245 .byte. Use fputs or putc instead of fprintf where appropriate.
12246 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
12247 fputs or putc instead of fprintf where appropriate.
12248 * config/i386/i386elf.h: Ditto.
12249 * config/i386/sysv4.h: Ditto.
12251 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
12252 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
12253 (*tls_global_dynamic_64): Ditto.
12255 2009-07-31 Christian Bruel <christian.bruel@st.com>
12257 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
12259 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12261 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
12262 Remove dead code for MINUS.
12264 2009-07-31 Anthony Green <green@moxielogic.com>
12266 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
12268 (moxie_expand_epilogue): Ditto for epilogue.
12269 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
12270 incoming arguments.
12271 (moxie_function_arg): Ditto.
12272 (moxie_pass_by_reference): Ditto.
12273 (moxie_arg_partial_bytes): Ditto.
12274 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
12275 (FUNCTION_ARG_ADVANCE) Ditto.
12276 (REG_PARM_STACK_SPACE) Ditto.
12277 (FUNCTION_ARG_REGNO_P) Dito.
12279 * config.gcc: Add moxie linux config support.
12280 * gcc/config/moxie/uclinux.h: New file.
12282 2009-07-31 DJ Delorie <dj@redhat.com>
12284 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12285 (UNSPECV_SP_SWITCH_E): New.
12286 (sp_switch_1): Change to an unspec.
12287 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12289 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
12290 reference the new stack's address
12292 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12294 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
12295 graphite-clast-to-gimple.o, graphite-dependences.o,
12296 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
12297 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
12298 (graphite-blocking.o,
12299 graphite-clast-to-gimple.o, graphite-dependences.o,
12300 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
12301 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
12302 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
12303 * cfgloop.h (struct loop): Add can_be_parallel field.
12304 * common.opt (fgraphite-identity): Moved up.
12305 (fgraphite-force-parallel): New flag.
12306 * graphite.c: Rewrite.
12307 * graphite.h: Rewrite.
12308 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
12310 * toplev.c (graphite_out_file): New file descriptor.
12311 (graphite_in_file): New.
12312 (process_options): flag_graphite_force_parallel cannot be used without
12314 * tree-ssa-loop.c: Include toplev.h.
12315 (gate_graphite_transforms): Enable flag_graphite for
12316 flag_graphite_force_parallel.
12318 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12320 * ChangeLog.graphite: New.
12321 * graphite-blocking.c: New.
12322 * graphite-clast-to-gimple.c: New.
12323 * graphite-clast-to-gimple.h: New.
12324 * graphite-dependences.c: New.
12325 * graphite-dependences.h: New.
12326 * graphite-interchange.c: New.
12327 * graphite-poly.c: New.
12328 * graphite-poly.h: New.
12329 * graphite-ppl.c: New.
12330 * graphite-ppl.h: New.
12331 * graphite-scop-detection.c: New.
12332 * graphite-scop-detection.h: New.
12333 * graphite-sese-to-poly.c: New.
12334 * graphite-sese-to-poly.h: New.
12338 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12340 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
12341 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
12343 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12345 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
12346 (scev_is_linear_expression): Return false if the evolution is not
12347 affine multivariate.
12349 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12351 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
12352 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
12354 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12356 * tree-data-ref.c (debug_data_references): New.
12357 (debug_data_reference): New.
12358 * tree-data-ref.h (debug_data_references): Declared.
12359 (debug_data_reference): Declared.
12361 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12363 * tree-data-ref.c (stmt_simple_memref_p: Removed.
12364 * tree-data-ref.h (scop_p): Removed.
12365 (struct data_reference): Remove field scop.
12366 (DR_SCOP): Removed.
12367 (stmt_simple_memref_p): Removed.
12369 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12371 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
12372 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
12375 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12377 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
12379 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12381 * doc/invoke.texi (-fgraphite-identity): Documented.
12383 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12385 * tree-scalar-evolution.c: Fix comment.
12386 (instantiate_scev_1): Return unknow from scev instantiation if the
12387 result is not above instantiate_below.
12389 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
12391 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
12392 static anymore. Instantiate the symbols that may have been introduced
12394 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
12397 2009-07-30 DJ Delorie <dj@redhat.com>
12399 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
12400 .vliw directive to VLIW sections.
12402 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12404 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
12406 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
12407 (AUTOHEADER): New variable.
12408 ($(srcdir)/cstamp-h.in): Use it.
12410 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
12411 Pat Haugen <pthaugen@us.ibm.com>
12412 Revital Eres <ERES@il.ibm.com>
12414 * config/rs6000/vector.md (VEC_F): Add VSX support.
12417 (mov<mode>): Ditto.
12418 (vector_load_<mode>): Ditto.
12419 (vector_store_<mode>): Ditto.
12420 (vector GPR move split): Ditto.
12421 (vec_reload_and_plus_<mptrsize>): Ditto.
12422 (vec_reload_and_reg_<mptrsize>): Ditto.
12423 (add<mode>3): Ditto.
12424 (sub<mode>3): Ditto.
12425 (mul<mode>3): Ditto.
12426 (neg<mode>2): Ditto.
12427 (abs<mode>2): Ditto.
12428 (smin<mode>3): Ditto.
12429 (smax<mode>3): Ditto.
12430 (vector_eq<mode>): Ditto.
12431 (vector_gt<mode>): Ditto.
12432 (vector_ge<mode>): Ditto.
12433 (vector_gtu<mode>): Ditto.
12434 (vector_select_<mode>_uns): Ditto.
12435 (vector_eq_<mode>_p): Ditto.
12436 (vector_gt_<mode>_p): Ditto.
12437 (vector_ge_<mode>_p): Ditto.
12438 (vector_gtu_<mode>_p): Ditto.
12439 (cr6_test_for_zero): Ditto.
12440 (cr6_test_for_zero_reverse): Ditto.
12441 (cr6_test_for_lt): Ditto.
12442 (cr6_test_for_lt_reverse): Ditto.
12443 (xor<mode>3): Ditto.
12444 (ior<mode>3): Ditto.
12445 (and<mode>3): Ditto.
12446 (one_cmpl<mode>2): Ditto.
12447 (nor<mode>2): Ditto.
12448 (andc<mode>2): Ditto.
12449 (float<VEC_int<mode>2): Ditto.
12450 (unsigned_float<VEC_int><mode>2): Ditto.
12451 (fix_trunc<mode><VEC_int>2): Ditto.
12452 (fixuns_trunc<mode><VEC_int>2): Ditto.
12454 (vec_set<mode>): Ditto.
12455 (vec_extract<mode>): Ditto.
12456 (vec_interleave_highv4sf): Ditto.
12457 (vec_interleave_lowv4sf): Ditto.
12458 (vec_realign_load_<mode>): Ditto.
12459 (vec_shl_<mode>): Ditto.
12460 (vec_shr_<mode>): Ditto.
12461 (div<mode>3): New patterns for VSX.
12462 (vec_interleave_highv2df): Ditto.
12463 (vec_interleave_lowv2df): Ditto.
12464 (vec_pack_trunc_v2df): Ditto.
12465 (vec_pack_sfix_trunc_v2df): Ditto.
12466 (vec_pack_ufix_trunc_v2df): Ditto.
12467 (vec_unpacks_hi_v4sf): Ditto.
12468 (vec_unpacks_lo_v4sf): Ditto.
12469 (vec_unpacks_float_hi_v4si): Ditto.
12470 (vec_unpacks_float_lo_v4si): Ditto.
12471 (vec_unpacku_float_hi_v4si): Ditto.
12472 (vec_unpacku_float_lo_v4si): Ditto.
12473 (movmisalign<mode>): Ditto.
12474 (vector_ceil<mode>2): New patterns for vectorizing math library.
12475 (vector_floor<mode>2): Ditto.
12476 (vector_btrunc<mode>2): Ditto.
12477 (vector_copysign<mode>3): Ditto.
12479 * config/rs6000/predicates.md (easy_vector_constant_msb): New
12480 predicate for setting the high bit in each word, used for copysign.
12482 * config/rs6000/ppc-asm.h (f19): Whitespace.
12483 (f32-f63): Define if VSX.
12484 (v0-v31): Define if Altivec.
12485 (vs0-vs63): Define if VSX.
12487 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
12489 * config/rs6000/power7.md: New file, provide tuning parameters for
12492 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
12493 (rs6000_cpu_cpp_builtins): Ditto.
12494 (altivec_overloaded_builtins): Ditto.
12495 (altivec_resolve_overloaded_builtin): Ditto.
12497 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
12498 debug switch to disable vectorizing simple math builtin
12501 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12502 Vectorize simple math builtin functions.
12503 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
12504 hook to vectorize math builtins.
12505 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
12506 (rs6000_builtin_conversion): Add VSX/power7 support.
12507 (rs6000_builtin_vec_perm): Ditto.
12508 (vsplits_constant): Add support for loading up a vector constant
12509 with just the high bit set in each part.
12510 (rs6000_expand_vector_init): Add VSX/power7 support.
12511 (rs6000_expand_vector_set): Ditto.
12512 (rs6000_expand_vector_extract): Ditto.
12513 (rs6000_emit_move): Ditto.
12514 (bdesc_3arg): Ditto.
12515 (bdesc_2arg): Ditto.
12516 (bdesc_1arg): Ditto.
12517 (rs6000_expand_ternop_builtin): Ditto.
12518 (altivec_expand_builtin): Ditto.
12519 (rs6000_expand_unop_builtin): Ditto.
12520 (rs6000_init_builtins): Ditto.
12521 (altivec_init_builtins): Ditto.
12522 (builtin_function_type): Ditto.
12523 (rs6000_common_init_builtins): Ditto.
12524 (rs6000_handle_altivec_attribute); Ditto.
12525 (rs6000_mangle_type): Ditto.
12526 (rs6000_vector_mode_supported_p): Ditto.
12527 (rs6000_mode_dependent_address): Altivec addresses with AND -16
12528 are mode dependent.
12530 * config/rs6000/vsx.md: New file for VSX support.
12532 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
12533 identifing values with just the most significant bit set.
12534 (enum rs6000_builtins): Add builtins for VSX. Add simple math
12535 vectorized builtins.
12537 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
12538 (UNSPEC_VRFIM): Delete.
12539 (splitter for loading up vector with most significant bit): New
12540 splitter for vectorizing copysign.
12541 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
12542 vectorizing simple math functions.
12543 (altivec_vrfip): Add support for vectorizing simple math functions.
12544 (altivec_vrfim): Ditto.
12545 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
12547 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
12548 (power7.md, vsx.md): Include for power7 support.
12549 (copysigndf3): Use VSX instructions if -mvsx.
12550 (negdf2_fpr): Ditto.
12551 (absdf2_fpr): Ditto.
12552 (nabsdf2_fpr): Ditto.
12553 (adddf3_fpr): Ditto.
12554 (subdf3_fpr): Ditto.
12555 (muldf3_fpr): Ditto.
12556 (divdf3_fpr): Ditto.
12557 (fix_truncdfdi2_fpr): Ditto.
12558 (cmpdf_internal1): Ditto.
12559 (fred, fred_fpr): Convert into expander/insn to add VSX support.
12560 (btruncdf2, btruncdf2_fpr): Ditto.
12561 (ceildf2, ceildf2_fpr): Ditto.
12562 (floordf2, floordf2_fpr): Ditto.
12563 (floatdidf2, floatdidf2_fpr): Ditto.
12564 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
12565 (fmsubdf4_fpr): Ditto.
12566 (fnmadddf4_fpr_1): Ditto.
12567 (fnmadddf4_fpr_2): Ditto.
12568 (fnmsubdf4_fpr_1): Ditto.
12569 (fnmsubdf4_fpr_2): Ditto.
12570 (fixuns_truncdfdi2): Add expander for VSX support.
12571 (fix_truncdfdi2): Ditto.
12572 (fix_truncdfsi2): Ditto.
12573 (ftruncdf2): Ditto.
12574 (btruncsf2): Whitespace.
12575 (movdf_hardfloat32): Add support for VSX registers.
12576 (movdf_softfloat32): Ditto.
12577 (movdf_hardfloat64): Ditto.
12578 (movdf_hardfloat64_mfpgpr): Ditto.
12579 (movdf_softfloat64): Ditto.
12580 (movti splitters): Add check for vector registers supporting
12581 TImode in the future.
12582 (bpermd): Add power7 bpermd instruction.
12584 * config/rs6000/altivec.h (vec_div): Define if VSX.
12587 (vec_nmadd): Ditto.
12588 (vec_nearbyint): Ditto.
12591 (all predicates): Use the generic builtin function, and not the V4SF
12592 specific function so that the predicates will work with VSX's V2DF.
12593 (vec_all_*): Ditto.
12594 (vec_any_*): Ditto.
12596 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
12597 Document new VSX functions and types.
12599 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
12602 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
12603 "wa", and "j" constraints. Modify "v" to talk about Altivec
12604 instead of just vector.
12606 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
12609 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
12610 location for phi arguments.
12611 (rewrite_update_phi_arguments): Find locations for reaching defs.
12612 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
12613 Add location to add_phi_arg calls.
12614 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
12615 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
12616 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
12617 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
12618 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
12619 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
12620 * tree-phinodes.c (make_phi_node): Initialize location.
12621 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
12622 (add_phi_arg): Add location parameter.
12623 (remove_phi_arg_num): Move location when moving phi argument.
12624 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
12626 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
12627 slpeel_update_phi_nodes_for_guard1,
12628 slpeel_update_phi_nodes_for_guard2,
12629 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
12630 vect_loop_versioning): Set locations.
12631 * tree-parloops.c (create_phi_for_local_result,
12632 transform_to_exit_first_loop, create_parallel_loop): Add locations.
12633 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
12634 * tree-vect-loop.c (get_initial_def_for_induction,
12635 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
12637 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
12638 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
12639 (gimple_phi_arg_set_location): New. Set locus.
12640 (gimple_phi_arg_has_location): New. Check for locus.
12641 (redirect_edge_var_map_location): New. Return locus from var_map.
12642 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
12643 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
12644 combining PHI arguments.
12645 (cond_store_replacement): Set location.
12646 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
12647 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
12648 scop_add_exit_phis_edge): Add locations.
12649 * tree-cfgcleanup.c (remove_forwarder_block,
12650 remove_forwarder_block_with_phi): Add locations.
12651 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
12652 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
12654 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
12655 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
12656 flush_pending_stmts): Add source location.
12657 * lambda-code.c (perfect_nestify): Maintain location stack with argument
12658 stack to preserve locations.
12659 * tree-vect-stmts.c (vectorizable_load): Add location.
12660 * tree-inline.c (copy_phis_for_bb): Copy locus.
12661 (setup_one_parameter): Add call locus to inlined parameter stmts.
12662 (initialize_inlined_parameters): Pass in call location as parameter
12664 (tree_function_versioning): Pass location to setup_one_parameter.
12665 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
12666 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
12667 copy and edge lists.
12668 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
12669 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
12670 locus parameter and override the stmt default if provided.
12671 (new_elim_graph, clear_elim_graph, delete_elim_graph,
12672 elim_graph_add_edge, elim_graph_remove_succ_edge,
12673 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
12674 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
12675 eliminate_phi): Add locus info in elimination graph for each edge and
12677 (insert_backedge_copies): Copy locus if present.
12678 * tree-flow.h (struct _edge_var_map): Add locus field.
12679 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
12680 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
12681 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
12683 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
12685 2009-07-30 Martin Jambor <mjambor@suse.cz>
12687 PR tree-optimization/40570
12688 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
12689 use inlining loops.
12691 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
12693 * ssa-loop-manip.c: Include langhooks.h.
12694 (rewrite_phi_with_iv): New.
12695 (rewrite_all_phi_nodes_with_iv): New.
12696 (canonicalize_loop_ivs): Move here from tree-parloops.c.
12697 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
12698 * tree-parloops.c (loop_parallel_p): Move out all conditions
12699 except dependency check.
12700 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
12701 (gen_parallel_loop): Call canonicalize_loop_ivs without
12702 reduction_list argument.
12703 (build_new_reduction): New.
12704 (gather_scalar_reductions): New.
12705 (try_get_loop_niter): New.
12706 (try_create_reduction_list): New.
12707 (parallleize_loops): Change the parallel conditions check.
12708 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
12709 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
12711 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
12713 * opt-functions.awk (opt_args): Allow argument to be enclosed in
12715 * doc/options.texi (Option properties): Mention new quoting syntax.
12717 2009-07-29 Douglas B Rupp <rupp@gnat.com>
12719 * config/alpha/alpha.c (alpha_start_function):
12720 Handle VMS_DEBUG_MAIN_POINTER
12721 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
12722 * doc/invoke.texi: Document -mdebug-main switch.
12724 2009-07-29 Richard Henderson <rth@redhat.com>
12726 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
12727 (cgraph_create_edge_including_clones): Likewise.
12728 * tree-inline.c (copy_bb): Operate on the correct edges
12729 when updating the callgraph.
12731 2009-07-29 Douglas B Rupp <rupp@gnat.com>
12733 * config/alpha/vms-cc.c: Deleted.
12734 * config/alpha/vms-ld.c: Deleted.
12735 * config/alpha/t-vms64: Moved to config/vms
12736 * config/alpha/vms-crt0-64.c: Moved to config/vms
12737 * config/alpha/vms-crt0.c: Moved to config/vms
12738 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
12739 * config/alpha/vms-psxcrt0.c: Moved to config/vms
12740 * config/alpha/xm-vms.h: Moved to config/vms
12741 * config/alpha/x-vms: Moved to config/vms
12742 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
12744 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
12745 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
12747 * config/vms/t-vms64: Moved here from config/alpha
12748 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
12749 (argc,argv,envp): Enforce 32bit malloc'ing.
12750 * config/vms/vms-psxcrt0-64.c: Likewise.
12751 * config/vms/vms-crt0.c: Moved here from config/alpha.
12752 * config/vms/vms-psxcrt0.c: Likewise.
12753 * config/vms/vms-crtl-64.h: New file.
12754 * config/vms/vms-crtl.h: New file.
12755 * config/vms/vms.opt: New file.
12756 * config/vms/xm-vms64.h: New file.
12757 * config/vms/xm-vms.h: Moved here from config/alpha.
12758 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
12760 * config/vms/x-vms: Moved here from config/alpha.
12761 (version, VMS_EXTRA_PARTS): Moved to t-vms.
12762 (vms-ld.o, vms-cc.o): Removed.
12763 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
12765 2009-07-29 Douglas B Rupp <rupp@gnat.com>
12767 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
12768 correct stack (obvious VMS fix).
12770 2009-07-29 Douglas B Rupp <rupp@gnat.com>
12772 * dwarf2out.c (output_file_names): Output VMS style file name, size,
12773 date, version info if VMS_DEBUGGING_INFO defined.
12774 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
12775 size, date calculating code moved here.
12777 2009-07-29 Paul Brook <paul@codesourcery.com>
12779 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
12782 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
12785 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
12786 to DImode when generating insq_le insn.
12788 2009-07-28 Douglas B Rupp <rupp@gnat.com>
12790 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
12791 New macro set for VMS_DEBUGGGING_INFO.
12792 (AT_string_form): Use it.
12794 2009-07-28 DJ Delorie <dj@redhat.com>
12796 * config/mep/mep.c (vtext_section): New.
12797 (vftext_section): New.
12798 (ftext_section): New.
12799 (mep_select_section): Add support for functions.
12800 (mep_unique_section): Likewise.
12801 (mep_asm_init_sections): Likewise.
12802 (mep_encode_section_info): Remove it from here.
12804 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
12806 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
12808 * tree.h (TREE_DEPRECATED): Document it is used for types too.
12809 (TYPE_VECTOR_OPAQUE): Use default_def_flag
12811 2009-07-28 Douglas B Rupp <rupp@gnat.com>
12813 * dwarf2out.c (output_file_names): Test new macro
12814 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
12815 (add_comp_dir_attribute): Likewise.
12817 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
12819 * config/i386/mingw-w64.h (LINK_SPEC): Add
12820 separating space between commands.
12822 2009-07-28 Jan Hubicka <jh@suse.cz>
12824 PR tree-optimization/40759
12825 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
12828 2009-07-27 DJ Delorie <dj@redhat.com>
12830 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
12831 types are dword-aligned.
12832 (mep_expand_va_start): Likewise.
12834 2009-07-27 Olivier Hainque <hainque@adacore.com>
12835 Douglas B Rupp <rupp@gnat.com>
12837 * convert.c (convert_to_pointer): Don't assume the target
12838 pointer type is POINTER_SIZE long. Fetch its precision instead.
12840 2009-07-27 Douglas B Rupp <rupp@gnat.com>
12842 * system.h (fopen): Undefine if macro.
12844 2009-07-27 Jakub Jelinek <jakub@redhat.com>
12846 * dwarf2out.c (output_cfi_p): Removed.
12847 (output_cfis): New function.
12848 (output_fde): New function, split from output_call_frame_info.
12849 (output_call_frame_info): Use it.
12850 (dwarf2out_switch_text_section): Use output_cfis.
12852 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
12854 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
12855 TARGET_BI_ARCH is specified without enabling SJLJ.
12856 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
12857 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
12859 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
12861 * arm.md (negdi2): Use DImode if forcing a value into a register.
12863 2009-07-26 Ira Rosen <irar@il.ibm.com>
12865 PR tree-optimization/40801
12866 * tree-vect-stmts.c (vectorizable_call): Get previous copy
12867 of vector operand from the previous copy of vector statement.
12868 Pass the correct definition type value to
12869 vect_get_vec_def_for_stmt_copy().
12871 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12873 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
12874 const char ** conversion.
12876 2009-07-25 David Daney <ddaney@caviumnetworks.com>
12878 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
12879 fancy_abort() if !ENABLE_ASSERT_CHECKING.
12880 (gcc_unreachable): Invoke __builtin_unreachable() if
12881 !ENABLE_ASSERT_CHECKING.
12883 2009-07-25 David Daney <ddaney@caviumnetworks.com>
12885 PR rtl-optimization/40445
12886 * emit-rtl.c (next_nonnote_insn_bb): New function.
12887 * rtl.h (next_nonnote_insn_bb): Declare new function.
12888 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
12889 with no successors that is the successor of the ENTRY_BLOCK.
12890 Continue from the top after removing an empty fallthrough block.
12891 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
12892 of next_nonnote_insn.
12894 2009-07-25 David Daney <ddaney@caviumnetworks.com>
12896 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
12898 2009-07-25 Martin Jambor <mjambor@suse.cz>
12900 * c-common.c (c_common_attribute_table): New element for noclone.
12901 (handle_noclone_attribute): New function. Forward-declare.
12902 * tree-inline.c (tree_versionable_function_p): Check for noclone
12904 * doc/extend.texi (Labels as Values): Document need for noclone.
12905 (Function Attributes): Document noclone attribute.
12907 2009-07-25 Jakub Jelinek <jakub@redhat.com>
12909 PR rtl-optimization/34999
12910 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
12911 and dw_fde_switched_cold_to_hot fields.
12912 (output_cfi_p): New function.
12913 (output_call_frame_info): If fde->dw_fde_switched_sections,
12914 output 2 FDEs instead of one with corrupted header.
12915 (dwarf2out_do_cfi_startproc): New function.
12916 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
12917 and fde->dw_fde_switched_cold_to_hot.
12918 (dwarf2out_switch_text_section): Compute
12919 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
12920 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
12921 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
12922 Otherwise, compute fde->dw_fde_switch_cfi.
12924 2009-07-24 Cary Coutant <ccoutant@google.com>
12926 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
12928 2009-07-24 Cary Coutant <ccoutant@google.com>
12930 * cfghooks.c (split_block): Copy discriminator to new block.
12931 * tree-cfg.c (assign_discriminator): Check location of last
12932 instruction in block as well as first.
12934 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
12936 * config/i386/linux.c: Use fputs or putc instead of fprintf
12938 * config/i386/gas.h: Ditto.
12939 * config/i386/x86-64.h: Ditto.
12940 * config/i386/att.h: Ditto.
12942 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12944 * expmed.c (emit_store_flag): Use a recursive call to optimize the
12947 2009-07-24 Martin Jambor <mjambor@suse.cz>
12949 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
12950 (ipa_push_func_to_list_1): Declare.
12951 (ipa_push_func_to_list): New function.
12953 * ipa-prop.c (ipa_push_func_to_list_1): New function.
12954 (ipa_init_func_list): Call ipa_push_func_to_list_1.
12955 (ipa_push_func_to_list): Removed.
12956 (ipa_pop_func_from_list): Clear node_enqueued flag.
12958 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
12960 * config/s390/s390.c (override_options): Default
12961 max-unrolled-insns to 100 for z10 tuning.
12963 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
12965 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
12966 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
12967 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
12968 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
12969 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
12970 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
12971 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
12973 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
12975 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
12976 use default set in mingw32.h header.
12977 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
12978 64-bit /mingw/include path.
12979 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
12982 2009-07-23 Neil Vachharajani <nvachhar@google.com>
12984 PR rtl-optimization/40209
12985 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
12987 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
12989 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
12990 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
12991 with the rest of string where appropriate. Use fputs or putc
12992 instead of fprintf where appropriate.
12994 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12995 Pat Haugen <pthaugen@us.ibm.com>
12996 Revital Eres <ERES@il.ibm.com>
12998 * config/rs6000/vector.md: New file. Move most of the vector
12999 expander support here from altivec.md to allow for the VSX vector
13000 unit in the future. Add support for secondary_reload patterns.
13001 Rewrite the patterns for vector comparison, and vector comparison
13002 predicate instructions so that the RTL expresses the desired
13003 behavior, instead of using unspec.
13005 * config/rs6000/constraints.md ("f" constraint): Use
13006 rs6000_constraints to hold the precalculated register class.
13007 ("d" constraint): Ditto.
13008 ("wd" constraint): New constraint for VSX.
13009 ("wf" constraint): Ditto.
13010 ("ws" constraint): Ditto.
13011 ("wa" constraint): Ditto.
13012 ("wZ" constraint): Ditto.
13013 ("j" constraint): Ditto.
13015 * config/rs6000/predicates.md (vsx_register_operand): New
13017 (vfloat_operand): New predicate for vector.md.
13018 (vint_operand): Ditto.
13019 (vlogical_operand): Ditto.
13020 (easy_fp_constant): If VSX, 0.0 is an easy constant.
13021 (easy_vector_constant): Add VSX support.
13022 (altivec_indexed_or_indirect_operand): New predicate for
13023 recognizing Altivec style memory references with AND -16.
13025 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
13026 for vector secondary reload support.
13027 (rs6000_vector_reg_class): Delete, replacing it with
13028 rs6000_constraints.
13029 (rs6000_vsx_reg_class): Ditto.
13030 (rs6000_constraints): New array to hold the register classes of
13031 each of the register constraints that can vary at runtime.
13032 (builtin_mode_to_type): New static array for builtin function type
13034 (builtin_hash_table): New static hash table for builtin function
13036 (TARGET_SECONDARY_RELOAD): Define target hook.
13037 (TARGET_IRA_COVER_CLASSES): Ditto.
13038 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
13039 registers are 128 bits if VSX memory reference instructions are used.
13040 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
13041 unit is being used.
13042 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
13043 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
13044 Print several of the scheduling related parameters.
13045 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
13046 rs6000_constraints instead of rs6000_vector_reg_class. Move
13047 -mdebug=reg code to rs6000_debug_reg_global. Add support for
13048 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
13049 Altivec. Add VSX support. Setup for secondary reload support on
13050 Altivec/VSX registers.
13051 (rs6000_override_options): Make power7 set the scheduling groups
13052 like the power5. Add support for new debug switches to override
13053 the scheduling defaults. Temporarily disable -mcpu=power7 from
13054 setting -mvsx. Add support for debug switches -malways-hint,
13055 -msched-groups, and -malign-branch-targets.
13056 (rs6000_buitlin_conversion): Add support for returning unsigned
13057 vector conversion functions to fix regressions due to stricter
13059 (rs6000_builtin_mul_widen_even): Ditto.
13060 (rs6000_builtin_mul_widen_odd): Ditto.
13061 (rs6000_builtin_vec_perm): Ditto.
13062 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
13063 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
13064 to zero a register.
13065 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
13066 generated upstream.
13067 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
13068 VSX types for bit operations. Changes to accomidate vector.md.
13069 (bdesc_2arg): Ditto.
13070 (bdesc_1arg): Ditto.
13071 (struct builtin_description_predicates): Rewrite predicate
13072 handling so that RTL describes the operation, instead of passing
13073 the instruction to be used as a string argument.
13074 (bdesc_altivec_preds): Ditto.
13075 (altivec_expand_predicate_builtin): Ditto.
13076 (altivec_expand_builtin): Ditto.
13077 (rs6000_expand_ternop_builtin): Use a switch instead of an if
13078 statement for vsldoi support.
13079 (altivec_expand_ld_builtin): Change to use new names from vector.md.
13080 (altivec_expand_st_builtin): Ditto.
13081 (paired_expand_builtin): Whitespace changes.
13082 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
13083 builtin_mode_to_type table for secondary reload. Call
13084 builtin_function_type to build random builtin functions.
13085 (altivec_init_builtins): Change to use builtin_function_type to
13086 create builtin function types dynamically as we need them.
13087 (builtin_hash_function): New support for hashing the tree types
13088 for builtin function as we need it, rather than trying to build
13089 all of the trees that we need. Add initial preliminary VSX support.
13090 (builtin_function_type): Ditto.
13091 (builtin_function_eq): Ditto.
13092 (builtin_hash_struct): Ditto.
13093 (rs6000_init_builtins): Ditto.
13094 (rs6000_common_init_builtins): Ditto.
13095 (altivec_init_builtins): Ditto.
13096 (rs6000_common_init_builtins): Ditto.
13097 (enum reload_reg_type): New enum for simplifing reg classes.
13098 (rs6000_reload_register_type): Simplify register classes into GPR,
13099 Vector, and other registers. Altivec and VSX addresses in reload.
13100 (rs6000_secondary_reload_inner): Ditto.
13101 (rs6000_ira_cover_classes): New target hook, that returns the
13102 appropriate cover classes, based on -mvsx being used or not.
13103 (rs6000_secondary_reload_class): Add VSX support.
13104 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
13105 (get_vsel_insn): Ditto.
13106 (rs6000_emit_vector_compare): Rewrite vector conditional support
13107 so that where we can, we use RTL operators, instead of blindly use
13109 (rs6000_emit_vector_select): Ditto.
13110 (rs6000_emit_vector_cond_expr): Ditto.
13111 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
13112 (create_TOC_reference): Add -mdebug=addr support.
13113 (emit_frame_save): VSX loads/stores need register indexed addressing.
13115 * config/rs6000/rs6000.md: Include vector.md.
13117 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
13119 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13120 support for V2DI, V2DF in logical, permute, select operations.
13122 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
13123 switch for vsx/power7.
13124 (-mvsx-scalar-memory): Ditto.
13125 (-mvsx-align-128): Ditto.
13126 (-mallow-movmisalign): Ditto.
13127 (-mallow-df-permute): Ditto.
13128 (-msched-groups): Ditto.
13129 (-malways-hint): Ditto.
13130 (-malign-branch-targets): Ditto.
13132 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
13134 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
13135 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
13136 (rs6000_vector_reg_class): Delete.
13137 (rs6000_vsx_reg_class): Ditto.
13138 (enum rs6000_reg_class_enum): New enum for the constraints that
13139 vary based on target switches.
13140 (rs6000_constraints): New array to hold the register class for all
13141 of the register constraints that vary based on the switches used.
13142 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
13143 (enum rs6000_builtins): Add unsigned varients for the builtin
13144 declarations returned by target hooks for expanding multiplies,
13145 select, and permute operations. Add VSX builtins.
13146 (enum rs6000_builtin_type_index): Add entries for VSX.
13147 (V2DI_type_node): Ditto.
13148 (V2DF_type_node): Ditto.
13149 (unsigned_V2DI_type_node): Ditto.
13150 (bool_long_type_node): Ditto.
13151 (intDI_type_internal_node): Ditto.
13152 (uintDI_type_internal_node): Ditto.
13153 (double_type_internal_node): Ditto.
13155 * config/rs6000/altivec.md (whole file): Move all expanders to
13156 vector.md from altivec.md. Rename insn matching functions to be
13158 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
13159 (altivec_vcmp*): Ditto.
13160 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
13161 (VM): New iterator for moves that includes the VSX types.
13162 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
13163 (altivec_vperm_<mode>_uns): New, for unsigned types.
13164 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
13165 (altivec_eq<mode>): Ditto.
13166 (altivec_gt<mode>): Ditto.
13167 (altivec_gtu<mode>): Ditto.
13168 (altivec_eqv4sf): Ditto.
13169 (altivec_gev4sf): Ditto.
13170 (altivec_gtv4sf): Ditto.
13171 (altivec_vcmpbfp_p): Ditto.
13173 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
13175 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
13178 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
13181 * config/i386/i386.c (output_387_ffreep): Rewrite to use
13182 ASM_SHORT instead of .word.
13183 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
13184 instead of .word in asm template.
13186 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
13189 * ira-lives.c (bb_has_abnormal_call_pred): New function.
13190 (process_bb_node_lives): Use it.
13192 * ira.c (setup_cover_and_important_classes): Don't setup
13193 ira_important_class_nums. Add cover classes to the end of
13195 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
13197 (find_reg_class_closure): Use reorder_important_classes.
13199 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
13201 * config/i386/i386.c (i386_ira_cover_classes): New function.
13202 (TARGET_IRA_COVER_CLASSES): Redefine.
13204 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
13205 importance of order of cover classes in the array.
13207 2009-07-22 Diego Novillo <dnovillo@google.com>
13209 * tree-pass.h (TDF_EH): Define.
13210 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
13211 contains TDF_EH, print the EH region number holding GS.
13212 * tree-dump.c (dump_options): Add "eh".
13213 * doc/invoke.texi: Document it.
13215 2009-07-22 Doug Kwan <dougkwan@google.com>
13217 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
13219 2009-07-22 Michael Matz <matz@suse.de>
13221 PR tree-optimization/35229
13222 PR tree-optimization/39300
13224 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
13225 (inhibit_phi_insertion): New function.
13226 (insert_into_preds_of_block): Call it for REFERENCEs.
13227 (init_pre): Initialize and finalize scalar evolutions.
13228 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
13230 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
13232 * config/i386/predicates.md (zero_extended_scalar_load_operand):
13233 Use CONST_VECTOR_NUNITS to determine number of elements.
13235 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
13237 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
13238 (U, W): Constraints are now deprecated and will be removed if we
13239 run out of letters.
13240 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
13242 ("prefetch"): Add the stcmh instruction for prefetching.
13243 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
13245 (s390_short_displacement): Return always true if compiling for
13246 machines not providing the long displacement facility.
13247 (s390_mem_constraint): Support the new constraint letter Z.
13248 (s390_check_qrst_address): New function.
13250 2009-07-21 DJ Delorie <dj@redhat.com>
13252 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
13255 2009-07-21 Jason Merrill <jason@redhat.com>
13257 * c-common.c (max_tinst_depth): Increase default to 1024.
13259 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
13261 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
13262 (vec_unpacku_float_lo_v4si): Ditto.
13264 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
13267 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
13268 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
13269 (builtin_description): Add __builtin_ia32_cvtudq2ps.
13270 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
13272 2009-07-21 Jakub Jelinek <jakub@redhat.com>
13274 PR tree-optimization/40813
13275 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
13278 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
13280 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
13281 with a NOP_EXPR if needed.
13283 2009-07-21 Paul Brook <paul@codesourcery.com>
13285 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
13286 Terminate debug dump with newline.
13288 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13290 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
13291 Cast "1" to unsigned HOST_WIDE_INT.
13292 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
13293 deposit length to the maximum length - lsb. Extend length if
13294 HOST_BITS_PER_WIDE_INT is 32.
13296 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
13298 * cgraph.h (constant_pool_htab): New function.
13299 (constant_descriptor_tree): Move from varasm.c.
13300 * varasm.c (constant_pool_htab): New function.
13301 (constant_descriptor_tree): Move to cgraph.h.
13303 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
13305 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
13307 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
13309 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
13312 2009-07-20 Xinliang David Li <davidxl@google.com>
13314 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
13316 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
13318 * config/mips/mips.md (move_type): Add arith.
13319 (type): Handle arith.
13320 (zero_extendsidi2): Rename this into ...
13321 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
13322 (zero_extendsidi2): New expander.
13323 (*zero_extendsidi2_dext): New pattern.
13325 2009-07-20 Nick Clifton <nickc@redhat.com>
13327 * config.gcc (mips64-*-*): Add definition of tm_defines in order
13328 to set MIPS_ABI_DEFAULT.
13329 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
13331 2009-07-20 Jakub Jelinek <jakub@redhat.com>
13333 * tree-object-size.c (addr_object_size): Handle unions with
13334 array in it as last field of structs in __bos (, 1) as __bos (, 0).
13336 PR tree-optimization/40792
13337 * tree.c (build_function_type_skip_args): Remove bogus assert.
13339 2009-07-20 Jan Hubicka <jh@suse.cz>
13340 Martin Jambor <mjambor@suse.cz>
13342 * cgraph.h (combined_args_to_skip): New field.
13343 * cgraph.c (cgraph_create_virtual_clone): Properly handle
13344 combined_args_to_skip and args_to_skip.
13345 * tree-inline.c (update_clone_info): New function.
13346 (tree_function_versioning): Call update_clone_info.
13347 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
13349 (cgraph_materialize_all_clones): More extensive dumping, working
13350 with combined_args_to_skip rather than args_to_skip.
13352 2009-07-20 Ira Rosen <irar@il.ibm.com>
13354 * tree-vectorizer.h (vectorizable_condition): Add parameters.
13355 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
13356 (get_initial_def_for_reduction): Likewise.
13357 (vectorizable_reduction): Skip the check of first operand in case
13358 of COND_EXPR. Add check that it is outer loop vectorization if
13359 nested cycle was detected. Call vectorizable_condition() for
13360 COND_EXPR. If reduction epilogue cannot be created do not fail for
13361 nested cycles (if it is not double reduction). Assert that there
13362 is only one type in the loop in case of COND_EXPR. Call
13363 vectorizable_condition() to vectorize COND_EXPR.
13364 * tree-vect-stmts.c (vectorizable_condition): Update comment.
13365 Add parameters. Allow nested cycles if called from
13366 vectorizable_reduction(). Use reduction vector variable if provided.
13367 (vect_analyze_stmt): Call vectorizable_reduction() before
13368 vectorizable_condition().
13369 (vect_transform_stmt): Update call to vectorizable_condition().
13371 2009-07-20 Christian Bruel <christian.bruel@st.com>
13373 * config/sh/sh.opt (-mfmovd): Resurrect and document.
13374 * doc/invoke.texi (-mfmovd): Likewise.
13375 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
13377 2009-07-20 Jan Hubicka <jh@suse.cz>
13379 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
13380 when handling SSA name.
13382 2009-07-19 Jan Hubicka <jh@suse.cz>
13384 PR tree-optimization/40676
13385 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
13386 virtual PHIs in empty BBs.
13388 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
13390 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
13391 re-expanded the compound use gen_lowpart instead to convert to the
13394 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
13396 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
13397 OUTER_CONST arguments.
13398 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
13399 the new wider mode will be masked off.
13400 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
13402 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
13404 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
13405 high-order bits are zero.
13407 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
13409 * combine.c (simplify_shift_const_1): Split code to determine
13410 shift_mode into ...
13411 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
13412 new bits shifted in are identical to the old sign bit.
13414 2009-07-18 Richard Guenther <rguenther@suse.de>
13417 * gimplify.c (gimplify_call_expr): Reject code using results from
13418 functions returning void.
13420 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
13422 * doc/md.texi: Document the new PowerPC "es" constraint.
13423 Document that "m" can include automodified addresses on this target,
13424 and explain how %U must be used. Extend the "Q" and "Z" documentation
13425 to suggest "es" as well as "m".
13426 * config/rs6000/constraints.md (es): New memory constraint.
13427 (Q, Z): Update strings to match new documentation.
13429 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
13431 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
13432 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
13433 * config/rs6000/predicates.md (volatile_mem_operand): Use
13434 offsettable_nonstrict_memref_p.
13435 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
13436 (*floatunssidf2_internal): Likewise.
13437 (*fix_truncdfsi2_internal): Likewise.
13438 (*fix_trunctfsi2_internal): Likewise.
13440 2009-07-17 Anatoly Sokolov <aesok@post.ru>
13442 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
13443 atmega32u2 devices.
13444 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
13446 2009-07-17 Richard Guenther <rguenther@suse.de>
13449 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
13450 (pass_warn_unused_result): Likewise.
13451 (TODO_set_props): Remove.
13452 * omp-low.c (diagnose_omp_structured_block_errors): Change to
13454 (pass_diagnose_omp_blocks): Define.
13455 * c-decl.c (pop_file_scope): Do not finalize the CU here.
13456 (c_gimple_diagnostics_recursively): Remove.
13457 (finish_function): Do not call it.
13458 (c_write_global_declarations): Continue after errors.
13459 Finalize the CU here.
13460 * c-gimplify.c (c_genericize): Do not gimplify here.
13461 * c-common.c (c_warn_unused_result): Move ...
13462 * tree-cfg.c (do_warn_unused_result): ... here.
13463 (run_warn_unused_result): New function.
13464 (gate_warn_unused_result): New function.
13465 (pass_warn_unused_result): New pass.
13466 * c-common.h (c_warn_unused_result): Remove.
13467 * flags.h (flag_warn_unused_result): Declare.
13468 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
13469 * opts.c (flag_warn_unused_result): Initialize to false.
13470 * toplev.c (compile_file): Add comment.
13471 * omp-low.c (create_omp_child_function): Do not register
13472 the function with the frontend.
13473 (diagnose_omp_structured_block_errors): Prepare to be
13474 called as optimization pass.
13475 (gate_diagnose_omp_blocks): New function.
13476 (pass_diagnose_omp_blocks): New pass.
13477 * cgraph.h (cgraph_optimize): Remove.
13478 (cgraph_analyze_function): Likewise.
13479 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
13480 * cgraphunit.c (cgraph_lower_function): Lower nested functions
13481 before their parents here.
13482 (cgraph_finalize_function): Not here.
13483 (cgraph_analyze_function): Gimplify functions here.
13484 (cgraph_finalize_compilation_unit): Continue after errors.
13485 Optimize the callgraph from here.
13486 (cgraph_optimize): Make static.
13487 * langhooks.c (write_global_declarations): Finalize the CU.
13488 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
13489 (gimplify_function_tree): Assert we gimplify only once.
13490 Set PROP_gimple_any property.
13491 * tree-nested.c (gimplify_all_functions): New function.
13492 (lower_nested_functions): Gimplify all nested functions.
13493 * gimple.h (diagnose_omp_structured_block_errors): Remove.
13494 * passes.c (init_optimization_passes): Add pass_warn_unused_result
13495 and pass_diagnose_omp_blocks after gimplification. Do not
13496 set TODO_set_props on all_lowering_passes.
13497 (execute_one_pass): Do not handle TODO_set_props.
13498 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
13499 (gimplify.o): Add tree-pass.h dependency.
13500 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
13501 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
13502 (unsave_r): Likewise.
13503 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
13504 temporary variable.
13506 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
13508 * doc/service.texi (Service): Restore previously removed link,
13509 which isn't broken after all.
13511 2009-07-17 Richard Guenther <rguenther@suse.de>
13513 PR tree-optimization/40321
13514 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
13515 PHI nodes to the maximal set.
13516 (make_values_for_phi): Add PHI arguments to the maximal set.
13517 (execute_pre): Dump PHI_GEN and the maximal set.
13519 2009-07-17 Jakub Jelinek <jakub@redhat.com>
13522 * gimplify.c (gimplify_conversion): Don't change non-conversions into
13525 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
13527 * doc/extend.texi (Nested Functions): Replace broken link with
13529 * doc/service.texi (Service): Remove broken link.
13531 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
13534 * builtins.c (expand_builtin_memcmp): Use loc instead of
13535 EXPR_LOCATION (exp).
13536 (expand_builtin_strncmp): Likewise.
13538 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
13539 Manuel López-Ibáñez <manu@gcc.gnu.org>
13542 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
13543 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
13544 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
13545 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
13546 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
13547 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
13548 tree-inline.c, c-common.c, c-common.h, gimple.c,
13549 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
13550 convert.c: Add location argument to fold_{unary,binary,ternary},
13551 fold_build[123], build_call_expr, build_size_arg,
13552 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
13553 fold_build1_initializer, fold_build2_initializer,
13554 fold_build3_initializer, fold_build_call_array,
13555 fold_build_call_array_initializer, fold_single_bit_test,
13556 omit_one_operand, omit_two_operands, invert_truthvalue,
13557 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
13558 combine_comparisons, fold_builtin_*, fold_call_expr,
13559 build_range_check, maybe_fold_offset_to_address, round_up,
13562 2009-07-16 Jason Merrill <jason@redhat.com>
13565 * c-common.c (c_common_reswords): Add __is_standard_layout
13567 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
13568 * doc/implement-cxx.texi: New.
13569 * doc/gcc.texi: Include it.
13571 2009-07-16 DJ Delorie <dj@redhat.com>
13573 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
13574 compares that may be indirectly affected by previous instructions.
13576 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13578 * builtins.c (do_mpc_arg2): New.
13579 (fold_builtin_2): Fold builtin cpow.
13580 * real.h (HAVE_mpc_pow): New.
13582 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
13584 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
13585 comparison to skip unprofitable schedule
13587 2009-07-16 Simon Baldwin <simonb@google.com>
13589 * gcc.c (option_map): New flag -no-canonical-prefixes.
13590 * (display_help): Print help text for new flag.
13591 * (process_command): Move options translation and language specifics
13592 and handle new flag early. Use it to set a function pointer to a
13593 prefix builder. Replace make_relative_prefix calls with calls to
13594 the function pointed to. Ignore new flag in regular options handling.
13595 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
13597 2009-07-15 DJ Delorie <dj@redhat.com>
13599 * config/mep/mep.md (sibcall_internal): Change register to avoid
13600 argument registers.
13601 (sibcall_value_internal): Likewise.
13603 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
13605 PR rtl-optimization/40710
13606 * resource.c (mark_target_live_regs): Reset DF problem to LR.
13608 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
13610 * config/mips/mips.md (*extenddi_truncate<mode>,
13611 *extendsi_truncate<mode>): Change type attribute to move_type
13612 with shift_shift. Split out code handling exts from here ...
13613 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
13615 (*extendhi_truncateqi): Change type attribute to move_type with
13616 shift_shift. Split out code handling exts from here ...
13617 (*extendhi_truncateqi_exts): ... to this new pattern.
13619 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
13621 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
13622 instead of "and" with inverted sign bit mask value. Use
13623 "nonimmediate_operand" for operand 1 and operand 2 predicate.
13624 Allocate registers only for operand 4 and operand 5.
13626 2009-07-15 Jakub Jelinek <jakub@redhat.com>
13628 PR middle-end/40747
13629 * fold-const.c (fold_cond_expr_with_comparison): When folding
13630 < and <= to MIN, make sure the MIN uses the same type as the
13631 comparison's operands.
13633 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
13635 * arm.md (ior_xor): New code iterator.
13636 (split for ior/xor with shift and zero-extend): New split pattern.
13637 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
13639 2009-07-15 Richard Guenther <rguenther@suse.de>
13641 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
13644 2009-07-15 Richard Guenther <rguenther@suse.de>
13646 PR middle-end/40753
13647 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
13649 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
13651 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
13652 handle 2.6.30 kernel.
13654 2009-07-15 DJ Delorie <dj@redhat.com>
13656 * config/mep/mep.md (sibcall_internal): Change register to allow
13657 for 24-bit addresses.
13658 (sibcall_value_internal): Likewise.
13660 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
13662 * doc/invoke.texi: Added descriptions of the scheduling heuristics
13663 that are enabled/disabled by the flags introduced by a previous patch.
13665 2009-07-14 DJ Delorie <dj@redhat.com>
13667 * config/mep/mep.md (sibcall_internal): Include non-toggling
13669 (sibcall_value_internal): Likewise.
13671 2009-07-14 Taras Glek <tglek@mozilla.com>
13672 Rafael Espindola <espindola@google.com>
13674 * doc/sourcebuild.texi: Document install-plugin target.
13675 * configure.ac: Added install-plugin target to language makefiles.
13676 * configure: Regenerate.
13677 * Makefile.in (install-plugin): Install more headers,
13678 depend on lang.install-plugin.
13680 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13682 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
13685 2009-07-14 DJ Delorie <dj@redhat.com>
13687 * config/mep/mep.c (mep_vliw_jmp_match): New function.
13688 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
13689 * config/mep/mep.md (sibcall_internal): Change test from
13690 mep_vliw_mode_match to mep_vliw_jmp_match.
13691 (sibcall_value_internal): Likewise.
13693 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
13695 * config/i386/sse.md (copysign<mode>3): New expander.
13696 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
13697 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
13698 Use ix86_build_const_vector.
13699 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
13700 IX86_BUILTIN_CPYSGNPD.
13701 (builtin_description): Add __builtin_ia32_copysignps and
13702 __builtin_ia32_copysignpd.
13703 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
13704 and BUILT_IN_COPYSIGNF.
13706 2009-07-13 Jason Merrill <jason@redhat.com>
13708 * builtins.c (can_trust_pointer_alignment): New fn.
13709 (get_pointer_alignment): Factor it out from here.
13710 * tree.h: Declare it.
13712 2009-07-14 David Edelsohn <edelsohn@gnu.org>
13714 * config/rs6000/predicates.md (offsettable_mem_operand): Test
13717 2009-07-14 Dodji Seketeli <dodji@redhat.com>
13721 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
13723 2009-07-14 Richard Guenther <rguenther@suse.de>
13724 Andrey Belevantsev <abel@ispras.ru>
13726 PR middle-end/40745
13727 * cfgexpand.c (partition_stack_vars): Do not bother to update
13728 alias information when not optimizing.
13730 2009-07-14 Richard Guenther <rguenther@suse.de>
13731 Andrey Belevantsev <abel@ispras.ru>
13733 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
13734 (pt_solution_set): Likewise.
13735 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
13736 * tree-ssa-structalias.c (pt_solution_set): New function.
13737 * final.c (rest_of_clean_state): Free SSA data structures.
13738 * print-rtl.c (print_decl_name): Remove.
13739 (print_mem_expr): Implement in terms of print_generic_expr.
13740 * alias.c (ao_ref_from_mem): New function.
13741 (rtx_refs_may_alias_p): Likewise.
13742 (true_dependence): Query alias-export info.
13743 (canon_true_dependence): Likewise.
13744 (write_dependence_p): Likewise.
13745 * tree-dfa.c (get_ref_base_and_extent): For void types leave
13747 * emit-rtl.c (component_ref_for_mem_expr): Remove.
13748 (mem_expr_equal_p): Use operand_equal_p.
13749 (set_mem_attributes_minus_bitpos): Do not use
13750 component_ref_for_mem_expr.
13751 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
13752 (update_alias_info_with_stack_vars): Likewise.
13753 (partition_stack_vars): Call update_alias_info_with_stack_vars.
13754 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
13755 explicitly nor clear stmt operands.
13756 Free the decl-to-pointer map.
13757 * tree-optimize.c (execute_free_datastructures): Do not free
13758 SSA data structures here.
13759 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
13760 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
13761 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
13763 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
13765 2009-07-13 DJ Delorie <dj@redhat.com>
13767 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
13768 unrolling at the right iteration count.
13770 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
13773 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
13775 * haifa-sched.c (rank_for_schedule): Introduced flags to
13776 enable/disable individual scheduling heuristics.
13777 * common.opt: Introduced flags to enable/disable individual
13778 heuristics in the scheduler.
13779 * doc/invoke.texi: Introduced flags to enable/disable individual
13780 heuristics in the scheduler.
13782 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
13784 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
13785 config/i386/mingw-tls.c.
13786 * config/i386/mingw-tls.c: Removed.
13788 2009-07-13 Ira Rosen <irar@il.ibm.com>
13790 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
13791 checks access only relevant statements.
13792 (vectorizable_reduction): Likewise.
13794 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
13796 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
13797 just for 32-bit case.
13799 2009-07-12 Jan Hubicka <jh@suse.cz>
13801 PR tree-optimization/40585
13802 * except.c (expand_resx_expr): When there already is resume
13803 instruction, produce linked list.
13804 (build_post_landing_pads): Assert that resume is empty.
13805 (connect_post_landing_pads): Handle resume lists.
13806 (dump_eh_tree): Dump resume list.
13808 2009-07-12 Ira Rosen <irar@il.ibm.com>
13810 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13811 with additional argument.
13812 * tree-vectorizer.h (enum vect_def_type): Add
13813 vect_double_reduction_def.
13814 (vect_is_simple_reduction): Add argument.
13815 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
13817 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
13818 vect_is_simple_reduction with additional argument.
13819 (vect_analyze_loop_operations): Handle exit phi nodes in case of
13821 (reduction_code_for_scalar_code): Handle additional codes by
13822 returning ERROR_MARK for them. Fix comment and indentation.
13823 (vect_is_simple_reduction): Fix comment, add argument to specify
13824 double reduction. Detect double reduction.
13825 (get_initial_def_for_induction): Fix indentation.
13826 (get_initial_def_for_reduction): Fix comment and indentation.
13827 Handle double reduction. Create initial definitions that do not
13828 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
13829 (vect_create_epilog_for_reduction): Fix comment, add argument to
13830 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
13831 epilogue result extraction. Create double reduction phi node and
13832 replace relevant uses.
13833 (vectorizable_reduction): Call vect_is_simple_reduction with
13834 additional argument. Fix indentation. Update epilogue code treatment
13835 according to the changes in reduction_code_for_scalar_code. Check
13836 for double reduction. Call vect_create_epilog_for_reduction with
13837 additional argument.
13838 * tree-vect-stmts.c (process_use): Handle double reduction, update
13840 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
13841 (vect_get_vec_def_for_operand): Likewise.
13843 2009-07-12 Danny Smith <dansmister@gmail.com>
13845 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
13846 dllexport if !TREE_PUBLIC.
13847 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
13849 2009-07-11 Anatoly Sokolov <aesok@post.ru>
13851 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
13852 (avr_extra_arch_macro) Remove declatation.
13853 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
13854 (avr_extra_arch_macro) Declare as static.
13855 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
13857 2009-07-11 Jan Hubicka <jh@suse.cz>
13859 PR middle-end/48388
13860 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
13862 2009-07-11 Jakub Jelinek <jakub@redhat.com>
13865 * dwarf2out.c (dw_fde_struct): Add in_std_section and
13866 cold_in_std_section bits.
13867 (dwarf2out_begin_prologue): Initialize them.
13868 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
13869 if already covered by text_section or cold_text_section range.
13871 PR rtl-optimization/40667
13872 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
13873 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
13874 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
13875 * config/i386/i386.c (ix86_minimum_alignment): New function.
13876 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
13877 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
13878 * emit-rtl.c (gen_reg_rtx): Likewise.
13879 * function.c (assign_parms): Likewise. If nominal_type needs
13880 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
13881 rather than passed_type's alignment.
13884 * function.c (assign_parm_setup_stack): Adjust
13885 MEM_OFFSET (data->stack_parm) if promoted_mode is different
13886 from nominal_mode on big endian.
13888 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
13890 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
13892 2009-07-10 DJ Delorie <dj@redhat.com>
13894 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
13896 2009-07-10 Mark Mitchell <mark@codesourcery.com>
13898 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
13900 (thumb2_cbnz): Likewise.
13902 2009-07-10 David Daney <ddaney@caviumnetworks.com>
13905 * config.gcc (supported_defaults): Add synci.
13906 (with_synci): Add validation.
13907 (all_defaults): Add synci.
13908 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
13911 * config/mips/mips.opt (msynci): New option.
13912 * config/mips/mips.c (mips_override_options): Warn on use of
13913 -msynci for targets that do now support it.
13914 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13916 * gcc/doc/invoke.texi (-msynci): Document the new option.
13917 * doc/install.texi (--with-synci): Document the new option.
13919 2009-07-10 Richard Guenther <rguenther@suse.de>
13921 PR tree-optimization/40496
13922 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
13923 the PHI result with a compatible type.
13925 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
13929 * c.opt (Wunused-result): New.
13930 * doc/invoke.texi: Document it.
13931 * c-common.c (c_warn_unused_result): Use it.
13933 2009-07-09 DJ Delorie <dj@redhat.com>
13935 * targhooks.c (default_target_can_inline_p): Rename from
13936 default_target_option_can_inline_p.
13937 * targhooks.h (default_target_can_inline_p): Likewise.
13938 * target-def.h (TARGET_CAN_INLINE_P): Rename from
13939 TARGET_OPTION_CAN_INLINE_P.
13940 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
13941 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
13942 (mep_target_can_inline_p): Rename from
13943 mep_target_option_can_inline_p.
13946 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
13947 registers used to pass vectors.
13949 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
13951 2009-07-09 Tom Tromey <tromey@redhat.com>
13953 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
13954 * config/mmix/mmix.c: Include dwarf2.h.
13955 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
13956 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
13957 * config/sh/sh.c: Include dwarf2.h.
13958 * config/i386/i386.c: Include dwarf2.h.
13959 * Makefile.in (DWARF2_H): Remove 'elf'.
13960 * except.c: Include dwarf2.h.
13961 * unwind-dw2.c: Include dwarf2.h.
13962 * dwarf2out.c: Include dwarf2.h.
13963 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
13964 * unwind-dw2-fde.c: Include dwarf2.h.
13965 * dwarf2asm.c: Include dwarf2.h.
13967 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13969 * haifa-sched.c (insn_finishes_cycle_p): New static function.
13970 (max_issue): Use it.
13971 * sched-int.h (struct sched_info: insn_finishes_block_p): New
13973 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
13974 (region_sched_info): Update.
13975 * sched-ebb.c (ebb_sched_info): Update.
13976 * modulo-sched.c (sms_sched_info): Update.
13977 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
13979 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13981 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
13983 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
13985 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
13987 2009-07-09 Jakub Jelinek <jakub@redhat.com>
13989 PR middle-end/40692
13990 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
13991 arg1 with arg01 if arg1 is already INTEGER_CST.
13993 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
13995 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
13996 Transform (and (truncate)) into (truncate (and)).
13998 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
14000 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
14001 creating LHS paradoxical subregs. Fix surrounding returns to
14002 use NULL_RTX rather than 0.
14004 2009-07-08 DJ Delorie <dj@redhat.com>
14006 * config/mep/mep.c (mep_option_can_inline_p): New.
14007 (TARGET_OPTION_CAN_INLINE_P): Define.
14009 2009-07-08 Mark Wielaard <mjw@redhat.com>
14012 * dwarf2out.c (add_data_member_location_attribute): When we have
14013 only a constant offset don't emit a new location description using
14014 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
14017 2009-07-08 Richard Henderson <rth@redhat.com>
14020 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
14021 (enum reg_class): Add CLOBBERED_REGS.
14022 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
14023 * config/i386/i386.c (ix86_conditional_register_usage): Moved
14024 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
14025 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
14026 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
14027 force 64-bit sibcalls into R11.
14028 * config/i386/constraints.md (U): New constraint.
14029 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
14030 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
14031 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
14033 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
14035 * basic-block.h (dump_regset, debug_regset): Remove duplicate
14037 * c-objc-common.h (c_initialize_diagnostics): Ditto.
14038 * ebitmap.h (dump_ebitmap): Ditto.
14039 * optabs.h (optab_libfunc): Ditto.
14040 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
14041 * tree-flow.h (vect_can_force_dr_alignment_p,
14042 get_vectype_for_scalar_type): Ditto.
14043 (vectorize_loops): Move prototype to ...
14044 * tree-vectorizer.h: ... here. Also, adjust comment.
14045 (vect_set_verbosity_level): Remove duplicate prototype.
14046 * tree-ssa-loop.c: Include tree-vectorizer.h.
14047 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
14049 2009-07-08 Nick Clifton <nickc@redhat.com>
14051 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
14054 2009-07-08 DJ Delorie <dj@redhat.com>
14056 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
14057 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
14058 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
14060 * config/mep/intrinsics.md: Regenerated.
14061 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
14062 registers when asm() or calls are detected.
14064 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14067 * gimplify.c (gimplify_expr): Propagate no_warning flag when
14069 * gimple (gimple_build_call_from_tree): Likewise.
14070 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
14071 no_warning flag before warning.
14073 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14075 * tree.c (set_expr_locus): Remove.
14076 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
14077 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
14079 * gimplify.c (internal_get_tmp_var): Likewise.
14080 (gimplify_call_expr): Likewise.
14081 (gimplify_one_sizepos): Likewise.
14083 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
14086 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
14087 to variables for debugging purposes.
14089 2009-06-23 Mark Loeser <mark@halcy0n.com>
14092 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
14094 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14096 * pretty-print.c (pp_base_format): Remove %J.
14097 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
14098 gcc_cxxdiag_char_table): Likewise.
14099 (init_dynamic_diag_info): Likewise.
14101 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14103 * pretty-print.c (pp_base_format): Remove %H.
14104 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
14105 gcc_cxxdiag_char_table): Likewise.
14106 (init_dynamic_diag_info): Likewise.
14107 * config/mep/mep.c (mep_select_section): Likewise.
14109 2009-07-07 Duncan Sands <baldrick@free.fr>
14111 * final.c (pass_clean_state): Give the pass a name.
14112 * passes.c (pass_rest_of_compilation): Likewise.
14113 * tree-optimize.c (pass_all_optimizations): Likewise.
14115 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
14117 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
14118 an extra 'decl' for error_at.
14120 2009-07-07 Jakub Jelinek <jakub@redhat.com>
14122 PR middle-end/40669
14123 * tree-tailcall.c (adjust_return_value_with_ops,
14124 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
14125 if it has complex or vector type.
14127 2009-07-07 Olivier Hainque <hainque@adacore.com>
14129 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
14132 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
14134 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
14136 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14138 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
14139 * c-decl.c: Likewise.
14140 * function.c: Likewise.
14141 * varasm.c: Likewise.
14142 * tree-ssa.c: Likewise.
14143 * c-common.c: Likewise.
14144 * tree-cfg.c: Likewise.
14145 * config/spu/spu.c: Likewise.
14146 * config/ia64/ia64.c: Likewise.
14147 * config/v850/v850.c: Likewise.
14149 2009-07-06 DJ Delorie <dj@redhat.com>
14151 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
14152 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
14153 unspecified accesses to control registers.
14154 * config/mep/intrinsics.md: Regenerate.
14155 * config/mep/intrinsics.h: Regenerate.
14156 * config/mep/mep-intrin.h: Regenerate.
14158 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
14160 * c-lex.c: Replace %H by an explicit location. Update all calls.
14161 * c-common.c: Likewise.
14162 * c-decl.c: Likewise.
14163 * c-typeck.c: Likewise.
14164 * fold-const.c: Likewise.
14165 * gimplify.c: Likewise.
14166 * stmt.c: Likewise.
14167 * tree-cfg.c: Likewise.
14168 * tree-ssa-loop-niter.c: Likewise.
14169 * tree-vrp.c: Likewise.
14170 * value-prof.c: Likewise.
14172 2009-07-06 Diego Novillo <dnovillo@google.com>
14174 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
14175 if it has one. Handle cases where VAR does not have an
14176 annotation or cfun is NULL.
14178 2009-07-06 Diego Novillo <dnovillo@google.com>
14180 * tree.c: Include debug.h.
14181 (initialize_tree_contains_struct): New.
14182 (init_ttree): Call it.
14183 (tree_node_structure_for_code): Factor out of ...
14184 (tree_node_structure): ... here.
14185 * treestruct.def (TS_PHI_NODE): Remove.
14186 (TS_GIMPLE_STATEMENT): Remove.
14188 2009-07-06 Diego Novillo <dnovillo@google.com>
14190 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
14191 (debug_tree_chain): Handle cycles.
14193 2009-07-06 Nick Clifton <nickc@redhat.com>
14194 DJ Delorie <dj@redhat.com>
14196 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
14197 __FMOVD_ENABLED__ is defined.
14199 (TARGET_FMOVD): Provide a default definition.
14200 (MASK_FMOVD): Likewise.
14201 (TARGET_CPU_CPP_BUILTINS): Define
14202 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
14203 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
14204 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
14205 (split for DF load from memory into register): Also handle
14206 MEMs which consist of REG+DISP addressing.
14207 (split for DF store from register to memory): Likewise.
14208 (movsf_ie): Always use single fp_mode.
14209 * config/sh/sh.c (sh_override_options): Do not automatically
14210 enable TARGET_MOVD for the SH2A when supporting doubles - leave
14211 that to the -mfmovd command line switch.
14212 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
14213 (fldi_ok): Always allow.
14214 * config/sh/sh.opt (mfmovd): Remove this switch.
14215 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
14217 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
14218 Kaz Kojima <kkojima@gcc.gnu.org>
14220 PR rtl-optimization/30807
14221 * postreload.c (reload_combine): For every new use of REG_SUM,
14222 record the use of BASE.
14224 2009-07-06 Jan Hubicka <jh@suse.cz>
14226 * params.def: Revert my accidental commit at 2009-06-30.
14228 2009-07-04 Ian Lance Taylor <iant@google.com>
14231 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
14233 (mingw_format_attribute_overrides): Likewise.
14235 2009-07-04 Jakub Jelinek <jakub@redhat.com>
14238 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
14239 don't check cfa.reg. Instead of cfa.indirect use
14240 fde && fde->drap_reg != INVALID_REGNUM test.
14242 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
14244 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
14246 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
14249 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
14251 2009-07-03 Richard Guenther <rguenther@suse.de>
14253 PR tree-optimization/40640
14254 * tree-switch-conversion.c (build_arrays): Perform arithmetic
14257 2009-07-03 Jan Hubicka <jh@suse.cz>
14259 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
14260 for size, reduce amount of inlining.
14262 2009-07-03 Richard Guenther <rguenther@suse.de>
14264 PR middle-end/34163
14265 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
14266 if t +- x is known to not overflow and the conversion widens the
14268 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
14270 2009-07-03 Jan Hubicka <jh@suse.cz>
14272 * ipa-pure-const.c (analyze): Update loop optimizer init.
14273 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
14274 try_remove_empty_loop, remove_empty_loops): Remove.
14275 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
14276 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
14277 to mark regular loops as neccesary.
14278 (degenerate_phi_p): New function.
14279 (propagate_necessity, remove_dead_phis): Use it.
14280 (forward_edge_to_pdom): Likewise.
14281 (eliminate_unnecessary_stmts): Take care to remove uses of results of
14282 virtual PHI nodes that became unreachable.
14283 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
14284 * tree-flow.h (remove_empty_loops): Remove.
14285 * passes.c (init_optimization_passes): Remove.
14287 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
14289 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
14290 can_create_pseudo_p.
14291 (*fix_trunc<mode>_i387_1): Ditto.
14292 (*floathi<mode>2_1): Ditto.
14293 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
14294 (*fistdi2_1): Ditto.
14295 (*fist<mode>2_1): Ditto.
14296 (frndintxf2_floor): Ditto.
14297 (*fist<mode>2_floor_1): Ditto.
14298 (frndintxf2_ceil): Ditto.
14299 (*fist<mode>2_ceil_1): Ditto.
14300 (frndintxf2_trunc): Ditto.
14301 (frndintxf2_mask_pm): Ditto.
14302 (fxam<mode>2_i387_with_temp): Ditto.
14303 * config/i386/sse.md (mulv16qi3): Ditto.
14304 (*sse2_mulv4si3): Ditto.
14306 (sse4_2_pcmpestr): Ditto.
14307 (sse4_2_pcmpistr): Ditto.
14309 2009-07-03 Jan Hubicka <jh@suse.cz>
14311 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
14312 (mark_stmt_necessary): Set it.
14313 (mark_operand_necessary): Set it.
14314 (mark_control_dependent_edges_necessary): Set it.
14315 (mark_virtual_phi_result_for_renaming): New function.
14316 (get_live_post_dom): New function.
14317 (forward_edge_to_pdom): New function.
14318 (remove_dead_stmt): Fix handling of control dependences.
14319 (tree_dce_init): Init new bitmap.
14320 (tree_dce_done): Free it.
14322 2009-07-02 Richard Guenther <rguenther@suse.de>
14325 * tree-ssa-structalias.c (new_var_info): Initialize
14328 2009-07-02 Jan Hubicka <jh@suse.cz>
14330 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
14333 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
14335 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
14336 instead of recomputing it. Adjust calls.
14337 (emit_store_flag): Adjust recursive calls.
14339 2009-07-02 Richard Guenther <rguenther@suse.de>
14341 * tree-ssa-live.c (remove_unused_locals): Do not remove
14343 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
14344 of DECL_EXTERNAL for HEAP variables.
14345 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
14346 HEAP variables. Do not adjust RESTRICT vars.
14347 (find_what_var_points_to): Nobody cares if something
14348 points to READONLY.
14350 2009-07-02 Ben Elliston <bje@au.ibm.com>
14352 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
14353 pc_low and pc_high declarations to the top of the function.
14355 2009-07-01 DJ Delorie <dj@redhat.com>
14357 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
14358 registers as fixed.
14359 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
14360 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
14361 unspecified accesses to control registers.
14362 * config/mep/intrinsics.md: Regenerate.
14363 * config/mep/intrinsics.h: Regenerate.
14364 * config/mep/mep-intrin.h: Regenerate.
14366 2009-07-01 Anthony Green <green@moxielogic.com>
14368 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
14369 instruction when possible.
14370 (moxie_expand_prologue): Ditto. Also, save an instruction and
14371 some complexity by popping off of $r12 instead of $sp.
14372 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
14375 2009-07-01 Richard Henderson <rth@redhat.com>
14378 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
14379 contained no insns, reposition note before last insn.
14381 2009-07-01 Richard Henderson <rth@redhat.com>
14384 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
14385 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
14387 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14390 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
14391 darwin9 for printing reg addresses with %y.
14393 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
14395 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
14396 truncation from operands in binary operations.
14398 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
14401 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
14402 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
14403 subreg of op0 to the original op0.
14405 * expmed.c (store_bit_field_1): Use a temporary as the destination
14406 instead of a paradoxical subreg when we need to truncate the result.
14408 2009-07-01 DJ Delorie <dj@redhat.com>
14410 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
14411 names to VLIW variants.
14412 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
14413 * config/mep/intrinsics.md: Regenerate.
14414 * config/mep/intrinsics.h: Regenerate.
14415 * config/mep/mep-intrin.h: Regenerate.
14417 2009-07-01 Jakub Jelinek <jakub@redhat.com>
14420 * jump.c (returnjump_p): Revert last patch.
14421 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
14423 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14426 * pa.md (casesi32p): Use jump table label to determine the offset
14428 (casesi64p): Likewise.
14430 * pa.c (forward_branch_p): Return bool type. Use instruction
14431 addresses when available. Assert that INSN has a jump label.
14432 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
14435 2009-07-01 Richard Guenther <rguenther@suse.de>
14437 PR tree-optimization/19831
14438 * tree-ssa-dce.c (propagate_necessity): Calls to functions
14439 that only act as barriers do not make any previous stores necessary.
14440 * tree-ssa-structalias.c (handle_lhs_call): Delay making
14441 HEAP variables global, do not add a constraint from nonlocal.
14442 (find_func_aliases): Handle escapes through return statements.
14443 (compute_points_to_sets): Make escaped HEAP variables global.
14445 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
14448 * expmed.c (emit_store_flag): Perform a conversion if necessary,
14449 after reducing a DImode cstore to SImode.
14451 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
14453 * expr.c (expand_expr_real_1): Reinstate fallthrough to
14454 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
14456 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
14458 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
14459 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
14461 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
14462 and umod_optab if TARGET_BSD_DIVMOD.
14463 * config/vax/lib1funcs.asm: New file.
14464 * config/vax/t-linux: New file.
14465 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
14467 2009-06-30 Jakub Jelinek <jakub@redhat.com>
14470 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
14471 to type arguments that have void type.
14474 * dwarf2out.c (gen_formal_parameter_die): Call
14475 equate_decl_number_to_die if node is different from origin.
14477 2009-06-30 Anthony Green <green@moxielogic.com>
14479 Clean up moxie port for --enable-build-with-cxx.
14480 * config/moxie/moxie.c (moxie_function_value): First two
14481 parameters are const_tree, not tree.
14482 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
14483 (REG_CLASS_NAMES): Ditto.
14484 (REGNO_REG_CLASS): Ditto.
14485 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
14486 (moxie_function_value): Fix constyness of arguments.
14488 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
14490 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
14491 finalize_size_functions before further processing.
14492 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
14493 (variable_size): Call self_referential_size on size expressions
14494 that contain a PLACEHOLDER_EXPR.
14495 (size_functions): New static variable.
14496 (copy_self_referential_tree_r): New static function.
14497 (self_referential_size): Likewise.
14498 (finalize_size_functions): New global function.
14499 * tree.c: Include tree-inline.h.
14500 (push_without_duplicates): New static function.
14501 (find_placeholder_in_expr): New global function.
14502 (substitute_in_expr) <tcc_declaration>: Return the replacement object
14504 <tcc_expression>: Likewise.
14505 <tcc_vl_exp>: If the replacement object is a constant, try to inline
14506 the call in the expression.
14507 * tree.h (finalize_size_functions): Declare.
14508 (find_placeholder_in_expr): Likewise.
14509 (FIND_PLACEHOLDER_IN_EXPR): New macro.
14510 (substitute_placeholder_in_expr): Update comment.
14511 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
14513 (copy_tree_body_r): Likewise.
14514 (copy_tree_body): New static function.
14515 (maybe_inline_call_in_expr): New global function.
14516 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
14517 (maybe_inline_call_in_expr): Declare.
14518 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
14519 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
14522 2009-06-30 Richard Guenther <rguenther@suse.de>
14524 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
14526 (propagate_necessity): Do not mark reaching defs of stores
14529 2009-06-30 Jan Hubicka <jh@suse.cz>
14531 * cfgloopanal.c (check_irred): Move into ...
14532 (mark_irreducible_loops): ... here; return true if ireducible
14534 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
14535 (analyze_function): Try to prove loop finiteness.
14536 * cfgloop.h (mark_irreducible_loops): Update prototype.
14537 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
14539 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
14541 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
14543 2009-06-30 Ira Rosen <irar@il.ibm.com>
14545 PR tree-optimization/40542
14546 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
14549 2009-06-30 Martin Jambor <mjambor@suse.cz>
14551 PR tree-optimization/40582
14552 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
14553 than useless_type_conversion_p.
14554 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
14557 2009-06-30 Martin Jambor <mjambor@suse.cz>
14559 PR middle-end/40554
14560 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
14562 2009-06-30 Richard Guenther <rguenther@suse.de>
14564 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
14565 use ao_ref references.
14566 (walk_aliased_vdefs): Likewise.
14567 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
14568 * tree-ssa-dce.c (struct ref_data): Remove.
14569 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
14570 (mark_aliased_reaching_defs_necessary): Adjust.
14571 (mark_all_reaching_defs_necessary_1): Likewise.
14573 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
14576 * expmed.c (emit_cstore): New name of emit_store_flag_1.
14577 (emit_store_flag_1): Extract from emit_store_flag, adjust
14578 calls to (what now is) emit_cstore.
14579 (emit_store_flag): Call emit_store_flag_1 and also use it
14580 for what used to be recursive calls.
14582 2009-06-30 Wei Guozhi <carrot@google.com>
14585 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
14586 if the target bb post dominates from bb.
14587 * config/i386/i386.c (memory_address_length): Check existence of base
14588 register before using it.
14590 2009-06-30 Nick Clifton <nickc@redhat.com>
14591 DJ Delorie <dj@redhat.com>
14593 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
14594 __FMOVD_ENABLED__ is defined.
14596 (TARGET_FMOVD): Provide a default definition.
14597 (MASK_FMOVD): Likewise.
14598 (TARGET_CPU_CPP_BUILTINS): Define
14599 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
14600 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
14601 two fmov instructions depending upon whether TARGET_FMOVD is
14603 (split for DF load from memory into register): Also handle
14604 MEMs which consist of REG+DISP addressing.
14605 (split for DF store from register to memory): Likewise.
14606 * config/sh/sh.opt (mfmovd): Remove this switch.
14607 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
14608 * config/sh/sh.c (sh_override_options): Do not automatically
14609 enable TARGET_MOVD for the SH2A when supporting doubles - leave
14610 that to the -mfmovd command line switch.
14612 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
14614 (fldi_ok): Always allow.
14615 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
14617 2009-06-29 DJ Delorie <dj@redhat.com>
14619 * doc/install.texi (mep-x-elf): Correct chip's full name.
14621 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
14623 * doc/extend.texi: Fix typo.
14625 2009-06-29 Tom Tromey <tromey@redhat.com>
14627 * dwarf2.h: Remove.
14628 * Makefile.in (DWARF2_H): New variable.
14629 (except.o): Use it.
14630 (dwarf2out.o): Likewise.
14631 (dwarf2asm.o): Likewise.
14632 * config/i386/t-i386: Use DWARF2_H.
14633 * except.c: Include elf/dwarf2.h.
14634 * unwind-dw2.c: Include elf/dwarf2.h.
14635 * dwarf2out.c: Include elf/dwarf2.h.
14636 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
14637 <dtprel>: New field.
14638 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
14639 (size_of_loc_descr): Likewise.
14640 (output_loc_operands_raw): Likewise.
14641 (output_loc_operands): Handle new dtprel field.
14642 (loc_checksum): Update.
14643 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
14644 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
14645 * unwind-dw2-fde.c: Include elf/dwarf2.h.
14646 * dwarf2asm.c: Include elf/dwarf2.h.
14647 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
14648 * config/mmix/mmix.c: Include elf/dwarf2.h.
14649 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
14650 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
14651 * config/sh/sh.c: Include elf/dwarf2.h.
14652 * config/i386/i386.c: Include elf/dwarf2.h.
14654 2009-06-29 DJ Delorie <dj@redhat.com>
14656 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
14658 * doc/extend.texi: Add MeP attributes and pragmas.
14659 * doc/invoke.text: Add MeP Options.
14660 * doc/contrib.texi: Add MeP contribution.
14661 * doc/md.texi: Add MeP constraints.
14662 * doc/install.texi: Add MeP target.
14664 2009-06-30 Anatoly Sokolov <aesok@post.ru>
14666 * target.h (struct gcc_target): Add frame_pointer_required field.
14667 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
14668 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
14669 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
14671 * reload1.c (update_eliminables): (Ditto.).
14672 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
14673 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
14674 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
14676 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
14678 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
14679 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
14680 (arm_frame_pointer_required): New function.
14682 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
14683 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14684 (avr_frame_pointer_required_p): Declare as static.
14685 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
14687 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
14688 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
14689 (bfin_frame_pointer_required): Make as static, change return type
14691 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
14693 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
14694 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14695 (cris_frame_pointer_required): New function.
14697 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
14699 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
14700 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14701 (fr30_frame_pointer_required): New function.
14703 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
14704 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
14705 (frv_frame_pointer_required): Make as static, change return type
14707 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
14709 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
14710 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14711 (ix86_frame_pointer_required): Make as static, change return type to
14713 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
14715 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
14716 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14718 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
14720 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
14722 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
14724 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
14725 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14726 (mips_frame_pointer_required): Make as static.
14727 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
14729 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
14730 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14731 (mmix_frame_pointer_required): Mew function.
14733 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
14734 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14736 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
14738 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
14740 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
14742 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
14743 (CAN_ELIMINATE): Redefine.
14744 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
14745 (sparc_frame_pointer_required): New function.
14746 (sparc_can_eliminate): New function.
14747 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
14749 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
14750 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
14752 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
14753 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
14754 (xtensa_frame_pointer_required): Make as static, change return type
14756 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
14759 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
14761 * doc/plugins.texi: Document PLUGIN_START_UNIT.
14762 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
14763 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
14764 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
14765 (register_callback): Handle PLUGIN_START_UNIT.
14766 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
14768 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
14770 * tree.c (process_call_operands): Propagate TREE_READONLY from the
14772 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
14773 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
14775 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
14777 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
14780 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
14782 * doc/extend.texi (Additional Floating Types): __float128 is also
14783 supported on i386 targets.
14785 2009-06-29 Richard Guenther <rguenther@suse.de>
14787 PR middle-end/14187
14788 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14790 (pt_solutions_same_restrict_base): Declare.
14791 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
14793 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
14794 (make_constraint_from, make_copy_constraint): Move earlier.
14795 (make_constraint_from_heapvar): New function.
14796 (make_constraint_from_restrict): Likewise.
14797 (handle_lhs_call): Use it.
14798 (find_func_aliases): Use it to track conversions to restrict
14799 qualified pointers.
14800 (struct fieldoff): Add only_restrict_pointers flag.
14801 (push_fields_onto_fieldstack): Initialize it.
14802 (create_variable_info_for): Track global restrict qualified pointers.
14803 (intra_create_variable_infos): Use make_constraint_from_heapvar.
14804 Track restrict qualified pointer arguments.
14805 (set_uids_in_ptset): Use varinfo is_global_var flag.
14806 (find_what_var_points_to): Set the vars_contains_restrict flag.
14807 Always create the points-to solution for sets including restrict tags.
14808 (pt_solutions_same_restrict_base): New function.
14809 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
14810 qualified pointers use pt_solutions_same_restrict_base as
14811 additional source for disambiguation.
14813 2009-06-29 Richard Guenther <rguenther@suse.de>
14815 PR middle-end/38212
14816 * alias.c (find_base_decl): Remove.
14817 (get_deref_alias_set_1): Remove restrict handling.
14818 * c-common.c (c_apply_type_quals_to_decl): Do not set
14819 DECL_POINTER_ALIAS_SET.
14820 * gimplify.c (find_single_pointer_decl_1): Remove.
14821 (find_single_pointer_decl): Likewise.
14822 (internal_get_tmp_var): Remove restrict handling.
14823 (gimple_regimplify_operands): Likewise.
14824 * omp-low.c (expand_omp_atomic_pipeline): Do not set
14825 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
14826 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
14827 * tree.c (restrict_base_for_decl): Remove.
14828 (init_ttree): Do not allocate it.
14829 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
14830 LABEL_DECL_UID for label decls.
14831 (copy_node_stat): Do not copy restrict information.
14832 (decl_restrict_base_lookup): Remove.
14833 (decl_restrict_base_insert): Likewise.
14834 (print_restrict_base_statistics): Likewise.
14835 (dump_tree_statistics): Do not call print_restrict_base_statistics.
14836 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
14837 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
14838 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
14839 (LABEL_DECL_UID): Adjust.
14840 (DECL_BASED_ON_RESTRICT_P): Remove.
14841 (DECL_GET_RESTRICT_BASE): Likewise.
14842 (SET_DECL_RESTRICT_BASE): Likewise.
14843 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
14845 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
14846 instead of DECL_POINTER_ALIAS_SET.
14847 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
14848 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14849 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14851 2009-06-29 Richard Guenther <rguenther@suse.de>
14853 PR tree-optimization/40579
14854 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
14855 the IL to simplify has constants that overflowed.
14857 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
14859 PR tree-optimization/40550
14860 * tree-vect-generic.c (expand_vector_operations_1): Compute in
14861 vector_compute_type only when the size of vector_compute_type is
14862 less than the size of type.
14864 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
14866 * fold-const.c (contains_label_1): Fix comments.
14867 (contains_label_p): Do not walk trees multiple time.
14869 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
14871 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
14872 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
14873 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
14874 ix86_fp_comparison_operator.
14875 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
14876 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
14877 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
14878 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
14879 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
14880 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
14881 (related splits): Change predicate to ix86_fp_comparison_operator.
14882 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
14883 instead of ix86_fp_comparison_codes.
14884 (ix86_trivial_fp_comparison_operator,
14885 ix86_fp_comparison_operator): New.
14886 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
14887 (ix86_expand_compare): Eliminate last two parameters.
14888 (ix86_fp_jump_nontrivial_p): Kill.
14889 * config/i386/i386.c (put_condition_code): Eliminate call to
14890 ix86_fp_comparison_codes and subsequent assertion.
14891 (ix86_fp_comparison_codes): Eliminate.
14892 (ix86_fp_swap_condition): New.
14893 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
14894 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
14895 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
14896 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
14897 and ix86_fp_swap_condition.
14898 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
14899 Use ix86_fp_comparison_strategy.
14900 (ix86_expand_compare): Likewise. Eliminate last two arguments.
14901 (ix86_fp_jump_nontrivial_p): Eliminate.
14902 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
14903 call to ix86_expand_compare.
14904 (ix86_split_fp_branch, ix86_expand_setcc,
14905 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
14906 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
14908 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
14910 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
14911 related to jump_clobbers.
14912 * config/arm/arm.md (conds): Remove jump_clob case.
14913 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
14914 splits): Change comparison_operator to arm_comparison_operator.
14915 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
14918 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
14920 * dojump.c (do_compare_rtx_and_jump): Try swapping the
14921 condition for floating point modes.
14922 * expmed.c (emit_store_flag_1): Move here a bigger part
14923 of emit_store_flag.
14924 (emit_store_flag): Try swapping the condition for floating point
14926 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
14928 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
14930 * expr.c (expand_expr_real_1): Just use do_store_flag.
14931 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
14932 emit_store_flag_force.
14933 * expmed.c (emit_store_flag_force): Copy here trick
14934 previously in expand_expr_real_1. Try reversing the comparison.
14935 (emit_store_flag_1): Work if target is NULL.
14936 (emit_store_flag): Work if target is NULL, using the result mode
14937 from the comparison. Use split_comparison, restructure final part
14938 to simplify conditionals.
14940 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
14942 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
14943 * dojump.c (do_jump): Change handling of floating-point
14944 ops to use just do_compare_and_jump.
14945 (split_comparison): New.
14946 (do_compare_rtx_and_jump): Add here logic coming previously
14947 in do_jump, using split_comparison.
14949 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
14952 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
14954 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
14956 * tree-ssa-alias.c: Fix unintentional commit.
14958 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
14960 * passes.c (execute_one_pass): Fix unintentional commit.
14962 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
14964 * df-problems.c (df_set_seen, df_unset_seen): Delete.
14965 (df_rd_local_compute, df_md_local_compute): Inline them.
14967 (df_md_scratch): New.
14968 (df_md_alloc, df_md_free): Allocate/free it.
14969 (df_md_local_compute): Only include live registers in init.
14970 (df_md_transfer_function): Prune the in-set computed by
14971 the confluence function, and the gen-set too.
14973 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
14975 PR rtl-optimization/26854
14976 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
14977 * df-problems.c (df_rd_add_problem): Fix comment.
14978 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
14979 df_md_simulate_artificial_defs_at_top,
14980 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
14981 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
14982 df_md_transfer_function, df_md_init, df_md_confluence_0,
14983 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
14984 problem_MD, df_md_add_problem): New.
14985 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
14986 df_md_get_bb_info): New.
14987 (DF_LAST_PROBLEM_PLUS1): Adjust.
14989 * Makefile.in (fwprop.o): Include domwalk.h.
14990 * fwprop.c: Include domwalk.h.
14991 (reg_defs, reg_defs_stack): New.
14992 (bitmap_only_bit_between): Remove.
14993 (process_defs): New.
14994 (process_uses): Use reg_defs and local_md instead of
14995 bitmap_only_bit_between and local_rd.
14996 (single_def_use_enter_block): New, from build_single_def_use_links.
14997 (single_def_use_leave_block): New.
14998 (build_single_def_use_links): Remove code moved to
14999 single_def_use_enter_block, invoke domwalk.
15000 (use_killed_between): Adjust comment.
15002 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15004 * bitmap.h (bitmap_ior_and_into): New.
15005 * bitmap.c (bitmap_ior_and_into): New.
15007 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
15009 * domwalk.h (struct dom_walk_data): Remove all callbacks except
15010 before_dom_children_before_stmts and after_dom_children_after_stmts.
15011 Rename the two remaining callbacks to just before_dom_children and
15012 after_dom_children. Remove other GIMPLE statement walking bits.
15013 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
15014 * graphite.c: Do not include domwalk.h.
15015 * tree-into-ssa.c (interesting_blocks): New global.
15016 (struct mark_def_sites_global_data): Remove it and names_to_rename.
15017 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
15018 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
15019 now that they're not domwalk callbacks.
15020 (rewrite_initialize_block): Rename to...
15021 (rewrite_enter_block): ... this, place after called functions. Test
15022 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
15023 (rewrite_finalize_block): Rename to...
15024 (rewrite_leave_block): ... this, place after called functions.
15025 (rewrite_update_init_block): Rename to...
15026 (rewrite_update_enter_block): ... this, place after called functions.
15027 Test interesting_blocks, call rewrite_update_stmt and
15028 rewrite_update_phi_arguments.
15029 (rewrite_update_fini_block): Rename to...
15030 (rewrite_leave_block): ... this, place after called functions.
15031 (rewrite_blocks): Remove last argument, simplify initialization of
15033 (mark_def_sites_initialize_block): Rename to...
15034 (mark_def_sites_block): ... this, call mark_def_sites.
15035 (mark_def_sites_blocks): Remove argument, simplify initialization of
15037 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
15038 (update_ssa): Likewise.
15039 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
15041 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
15042 (dom_opt_initialize_block): Rename to...
15043 (dom_opt_enter_block): ... this, place after called functions. Walk
15044 statements here, inline propagate_to_outgoing_edges.
15045 (dom_opt_finalize_block): Rename to...
15046 (dom_opt_leave_block): ... this, place after called functions.
15047 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
15049 (dse_enter_block, dse_record_phi): New.
15050 (dse_record_phis): Delete.
15051 (dse_finalize_block): Rename to...
15052 (dse_leave_block): ... this.
15053 (tree_ssa_dse): Simplify initialization of walk_data.
15054 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
15055 Adjust initialization of walk_data.
15056 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
15057 * tree-ssa-loop-phiopt.c (get_non_trapping):
15058 Adjust initialization of walk_data.
15059 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
15060 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
15061 it's not a domwalk callback.
15062 (uncprop_initialize_block): Rename to...
15063 (dse_enter_block): ... this, call uncprop_into_successor_phis.
15064 (dse_finalize_block): Rename to...
15065 (dse_leave_block): ... this.
15066 (tree_ssa_uncprop): Simplify initialization of walk_data.
15067 * Makefile.in: Adjust dependencies.
15069 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
15071 * arm.md (casesi): Fix test for Thumb1.
15072 (thumb1_casesi_internal_pic): Likewise.
15073 (thumb1_casesi_dispatch): Likewise.
15075 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
15077 * config/arm/arm-cores.def: Added core cortex-m0.
15078 * config/arm/arm-tune.md: Regenerated.
15079 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
15081 2009-06-26 DJ Delorie <dj@redhat.com>
15083 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
15085 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
15086 the scheduler doesn't tag jump insns.
15088 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
15090 * c-decl.c (merge_decls): Re-indent.
15092 2009-06-26 Janis Johnson <janis187@us.ibm.com>
15095 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
15096 Special-case decimal float constants.
15098 2009-06-26 Richard Henderson <rth@redhat.com>
15100 * function.h (struct function): Add cannot_be_copied_reason,
15101 and cannot_be_copied_set.
15102 * tree-inline.c (has_label_address_in_static_1): Rename from
15103 inline_forbidden_p_2; don't set inline_forbidden_reason here.
15104 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
15105 don't set inline_forbidden_reason.
15106 (copy_forbidden): New function, split out of inline_forbidden_p.
15107 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
15108 (inline_forbidden_p): Use copy_forbidden.
15109 (tree_versionable_function_p): Likewise.
15110 (inlinable_function_p): Merge into tree_inlinable_function_p.
15111 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
15112 * ipa-cp.c (ipcp_versionable_function_p): New function.
15113 (ipcp_cloning_candidate_p): Use it.
15114 (ipcp_node_modifiable_p): Likewise.
15116 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
15118 * builtins.c (expand_builtin_alloca): Handle builtin alloca
15119 that is marked not to be inlined. Remove flag_mudflap use.
15120 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
15121 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
15123 2009-06-26 Steve Ellcey <sje@cup.hp.com>
15126 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
15127 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
15129 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
15131 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
15133 (__mingwthr_remove_key_dtor): Likewise.
15135 2009-06-26 Richard Guenther <rguenther@suse.de>
15137 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
15139 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
15141 PR middle-end/40525
15142 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
15143 try the non-cond_exec path also.
15145 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15148 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
15149 (output_cbranch): Use new functions.
15150 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
15153 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15154 Pat Haugen <pthaugen@us.ibm.com>
15155 Revital Eres <ERES@il.ibm.com>
15157 * config/rs6000/rs6000.c (print_operand): Correct lossage message
15158 for %c error. Add %x support to print VSX registers as a unified
15159 register set, instead of separate float and altivec registers.
15160 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
15161 %y case, and add support for VSX pre-modify addresses.
15162 (output_toc): Add assert for CONST containing an integer constant
15164 (rs6000_adjust_cost): Add POWER7 support.
15165 (insn_must_be_first_in_group): Ditto.
15166 (insn_must_be_last_in_group): Ditto.
15167 (rs6000_emit_popcount): Ditto.
15168 (rs6000_vector_mode_supported_p): Ditto.
15170 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
15171 Change some of the functions called by macros to being called
15172 through a pointer, so debug functions can be inserted if
15173 -mdebug=addr or -mdebug=cost.
15174 (rs6000_preferred_reload_class_ptr): Ditto.
15175 (rs6000_secondary_reload_class_ptr): Ditto.
15176 (rs6000_secondary_memory_needed_ptr): Ditto.
15177 (rs6000_cannot_change_mode_class_ptr): Ditto.
15178 (rs6000_secondary_reload_inner): Ditto.
15179 (rs6000_legitimize_reload_address): Ditto.
15180 (rs6000_legitimize_reload_address_ptr): Ditto.
15181 (rs6000_mode_dependent_address): Ditto.
15182 (rs6000_mode_dependent_address_ptr): Ditto.
15184 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
15185 function to return true if the mode allows reg + integer
15187 (virtual_stack_registers_memory_p): New function to return true if
15188 the address refers to a virtual stack register.
15189 (rs6000_legitimate_offset_address_p): Move code to say whether a
15190 mode supports reg+int addressing to reg_offset_addressing_ok_p and
15192 (rs6000_legitimate_address_p): Add checks for modes that only can
15193 do reg+reg addressing. Start adding VSX support.
15194 (rs6000_legitimize_reload_address): Ditto.
15195 (rs6000_legitimize_address): Ditto.
15196 (rs6000_debug_legitimate_address_p): New debug functions for
15197 -mdebug=addr and -mdebug=cost.
15198 (rs6000_debug_rtx_costs): Ditto.
15199 (rs6000_debug_address_costs): Ditto.
15200 (rs6000_debug_adjust_cost): Ditto.
15201 (rs6000_debug_legitimize_address): Ditto.
15202 (rs6000_legitimize_reload_address_ptr): Point to call normal
15203 function or debug function. Make functions called via pointer
15205 (rs6000_mode_dependent_address_ptr): Ditto.
15206 (rs6000_secondary_reload_class_ptr): Ditto.
15207 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
15208 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
15209 into a friendlier error.
15210 (rs6000_init_builtins): Add initial VSX support.
15211 (rs6000_adjust_cost): Fix some spacing issues.
15213 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
15214 (REG_CLASS_NAMES): Ditto.
15215 (REG_CLASS_CONTENTS): Ditto.
15216 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
15217 pointer, to add -mdebug=addr support.
15218 (CANNOT_CHANGE_MODE_CLASS): Ditto.
15219 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
15220 -mdebug=addr support.
15221 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
15222 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
15223 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
15225 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
15227 (bswapsi*): Set attribute types for load/store. Add combiner
15228 patterns to eliminate zero extend on 64-bit.
15229 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
15230 stdbrx if the hardware supports those instructions.
15232 2009-06-25 Ian Lance Taylor <iant@google.com>
15234 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
15235 (Link Options): Document -static-libstdc++.
15237 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
15240 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
15241 DATA_ALIGNMENT instead.
15243 2009-06-25 Richard Guenther <rguenther@suse.de>
15245 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
15246 indirect references against the callused/escaped solutions.
15247 (call_may_clobber_ref_p_1): Likewise.
15249 2009-06-25 Martin Jambor <mjambor@suse.cz>
15251 PR tree-optimization/40493
15252 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
15253 (enum unscalarized_data_handling): New type.
15254 (handle_unscalarized_data_in_subtree): Return what has been done.
15255 (load_assign_lhs_subreplacements): Handle left flushes differently.
15256 (sra_modify_assign): Use unscalarized_data_handling, simplified
15257 condition determining whether to remove the statement.
15259 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
15261 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
15262 excerpt - @ should be doubled for texinfo.
15264 2009-06-24 Ian Lance Taylor <iant@google.com>
15266 * config/arc/arc.c: Include "df.h".
15267 (arc_attribute_table): Make static. Move higher in file.
15268 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
15269 (output_shift): Initialize n later to avoid warning.
15270 * config/arm/arm.c (arm_attribute_table): Make static. Move
15272 * config/avr/avr.c (avr_attribute_table): Make static. Move
15274 (reg_class_tab): Change array type from int to enum reg_class.
15275 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
15277 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
15278 (lshrhi3_out): Likewise.
15279 (class_likely_spilled_p): Change return type to bool.
15280 (avr_rtx_costs): Use local code variable with enum type.
15281 * config/avr/avr.md (movmemhi): Use add_reg_note.
15282 (andhi3, andsi3): Don't use AS2 with "and".
15283 (iorhi3, iorsi3): Don't use AS2 with "or".
15284 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
15285 * config/crx/crx.c: Include "df.h".
15286 (crx_attribute_table): Make static.
15287 * config/m32r/m32r.c: Include "df.h".
15288 (m32r_attribute_table): Make static. Move higher in file.
15289 (pop): Use add_reg_note.
15290 (block_move_call): Change 0 to LCT_NORMAL in function call.
15291 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
15292 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
15293 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
15294 declare, not just when TREE_CODE is defined.
15295 * config/m68hc11/m68hc11.c: Include "expr.h".
15296 (m68hc11_attribute_table): Make static. Move higher in file.
15297 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
15299 (m68hc11_register_indirect_p): Likewise.
15300 (m68hc11_function_arg_padding): Change return type to enum
15302 (emit_move_after_reload): Use add_reg_note.
15303 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
15304 (m68hc11_split_logical): Likewise.
15305 (m68hc11_rtx_costs): Add local code_and outer_code variables with
15307 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
15308 to VOIDmode in function call.
15309 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
15311 (m68hc11_split_logical): Update declaration.
15312 (m68hc11_function_arg_padding): Update declaration.
15313 * config/mcore/mcore.c (regno_reg_class): Change form array of int
15314 to array of enum reg_class.
15315 (mcore_attribute_table): Make static. Move higher in file.
15316 (mcore_rtx_costs): Add cast to enum type.
15317 * config/mcore/mcore.h (regno_reg_class): Update declaration.
15318 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
15319 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
15321 * config/sh/predicates.md (trapping_target_operand): Rename and to
15323 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
15325 * config/spu/spu.c (spu_attribute_table): Make static. Move
15327 * config/v850/v850.c (v850_attribute_table): Make static. Move
15329 (v850_rtx_costs): Use local code with enum type.
15330 (expand_epilogue): Add cast.
15331 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
15333 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
15336 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
15337 -m2a-single-only and -m2a-nofpu.
15338 * config/sh/sh.opt: Document m2a generates FPU code.
15340 2009-06-24 Anatoly Sokolov <aesok@post.ru>
15342 * defaults.h (CAN_ELIMINATE): Provide default.
15343 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
15344 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
15345 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
15346 * config/spu/spu.h (CAN_ELIMINATE): Delete.
15347 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
15348 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
15349 * config/cris/cris.h (CAN_ELIMINATE): Delete.
15350 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
15351 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
15352 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
15354 2009-06-24 DJ Delorie <dj@redhat.com>
15356 * mep-ext-cop.cpu: Fix copyright notice.
15357 * mep-default: Fix copyright notice.
15358 * mep-core: Fix copyright notice.
15359 * mep: Fix copyright notice.
15360 * mep-ivc2: Fix copyright notice.
15361 * mep-c5: Fix copyright notice.
15363 2009-06-24 Denis Chertykov <chertykov@gmail.com>
15365 * doc/contrib.texi (Contributors):
15367 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
15369 PR middle-end/40501
15370 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
15371 src and dst operands if necessary.
15373 2009-06-23 DJ Delorie <dj@redhat.com>
15376 * config.gcc: Add mep support.
15377 * recog.c: Resurrect validate_replace_rtx_subexp().
15378 * recog.h: Likewise.
15379 * config/mep/: Add new port:
15380 * config/mep/constraints.md: New file.
15381 * config/mep/default.h: New file.
15382 * config/mep/intrinsics.h: New file.
15383 * config/mep/intrinsics.md: New file.
15384 * config/mep/ivc2-template.h: New file.
15385 * config/mep/mep-c5.cpu: New file.
15386 * config/mep/mep-core.cpu: New file.
15387 * config/mep/mep-default.cpu: New file.
15388 * config/mep/mep-ext-cop.cpu: New file.
15389 * config/mep/mep-intrin.h: New file.
15390 * config/mep/mep-ivc2.cpu: New file.
15391 * config/mep/mep-lib1.asm: New file.
15392 * config/mep/mep-lib2.c: New file.
15393 * config/mep/mep-pragma.c: New file.
15394 * config/mep/mep-protos.h: New file.
15395 * config/mep/mep-tramp.c: New file.
15396 * config/mep/mep.c: New file.
15397 * config/mep/mep.cpu: New file.
15398 * config/mep/mep.h: New file.
15399 * config/mep/mep.md: New file.
15400 * config/mep/mep.opt: New file.
15401 * config/mep/predicates.md: New file.
15402 * config/mep/t-mep: New file.
15404 2009-06-23 Ian Lance Taylor <iant@google.com>
15406 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
15407 from loose_warn into c_loose_warn and from strict_warn into
15408 c_strict_warn. Set and substitute warn_cxxflags. Check for
15409 --enable-build-with-cxx. Set and substitute
15410 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
15411 * Makefile.in (CXXFLAGS): New variable.
15412 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
15413 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
15414 the default is the same as $(STRICT_WARN).
15415 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
15416 (CXX): New variable.
15417 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
15418 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
15419 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
15420 (HOST_LIBS): New variable.
15421 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
15422 (ALL_CXXFLAGS): New variable.
15423 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
15424 * doc/install.texi (Configuration): Document
15425 --enable-build-with-cxx, --with-stage1-ldflags,
15426 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
15427 * configure: Rebuild.
15429 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15431 * config/arm/arm.c (arm_override_options): Fix braces and formatting
15432 from previous commit.
15434 2009-06-23 Ian Lance Taylor <iant@google.com>
15436 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
15438 2009-06-23 Ian Lance Taylor <iant@google.com>
15440 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
15441 with ATTRIBUTE_UNUSED.
15443 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15444 Pat Haugen <pthaugen@us.ibm.com>
15445 Revital Eres <eres@il.ibm.com>
15447 * config.in (HAVE_AS_POPCNTD): Add default definition.
15448 (HAVE_AS_LWSYNC): Ditto.
15450 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
15452 (gcc_cv_as_powerpc_cmpb): Ditto.
15453 (gcc_cv_as_powerpc_dfp): Ditto.
15454 (gcc_cv_as_powerpc_vsx): Ditto.
15455 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
15456 supporting the popcntd/lwsync instructions.
15457 (gcc_cv_as_powerpc_lwsync): Ditto.
15458 * configure: Regenerate.
15460 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
15461 -mcpu=native and -mcpu=power7.
15462 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
15464 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
15465 a variable instead of a mask to reduce the number of mask bits.
15466 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
15467 (-mbit-word): Ditto.
15468 (-mregnames): Ditto.
15469 * config/rs6000/rs6000.opt (-mupdate): Ditto.
15470 (-mfused-madd): Ditto.
15472 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
15474 (-mvsx): New switch for VSX instructions.
15475 (-misel): Move from a variable to a mask to allow it to be set by
15478 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
15479 function declaration to an array declaration.
15480 (rs6000_hard_regno_nregs): New external array declaration.
15482 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
15483 files included by rs6000.md.
15485 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15486 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
15488 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
15490 (rs6000_debug_reg): New -mdebug= variables.
15491 (rs6000_debug_addr): Ditto.
15492 (rs6000_debug_cost): Ditto.
15493 (rs6000_pmode): New variable to hold Pmode.
15494 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
15495 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
15496 calculated at compiler start.
15497 (rs6000_hard_regno_nregs): Change function to an array which holds
15498 HARD_REGNO_NREGS calculated at compiler start.
15499 (rs6000_explicit_options): Delete isel field.
15500 (rs6000_vector_unit): New array to hold which vector unit
15501 supports arithmetic options for a given type.
15502 (rs6000_vector_mem): New array to hold which vector unit supports
15503 memory reference operations for a given type.
15504 (rs6000_vector_align): New array to given the alignment of each
15506 (power7_cost): New basic costs for power7.
15507 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
15508 (rs6000_hard_regno_nregs_internal): New function, moved from
15509 HARD_REGNO_NREGS, to calculate the number of registers each hard
15510 register takes for each type.
15511 (rs6000_debug_reg_print): New function for -mdebug=reg support.
15512 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
15513 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
15514 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
15515 unit information here so it is calculated once at compiler startup
15517 (rs6000_override_options): Make -misel a target mask. Add more
15518 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
15519 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
15521 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
15522 (rs6000_handle_option): Move -misel from variable to target mask.
15523 (rs6000_builtin_mask_for_load): Add VSX support.
15524 (rs6000_conditional_register_usage): Ditto.
15525 (USE_ALTIVEC_FOR_ARG_P): Ditto.
15526 (function_arg_boundary): Ditto.
15527 (rs6000_expand_builtin): Ditto.
15528 (def_builtin): Make abort message a little friendlier.
15529 (rs6000_emit_int_cmove): Add support for 64-bit isel.
15531 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
15532 assembler support the popcntd instruction instead of a vsx
15533 instruction to enable power7 support.
15534 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
15535 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
15536 option to the assembler if -mcpu=native.
15537 (ASM_CPU_NATIVE_SPEC): Ditto.
15538 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
15540 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
15541 the lwsync instruction.
15542 (enum processor_type): Add PROCESSOR_POWER7.
15543 (rs6000_debug_reg): New -mdebug= options.
15544 (rs6000_debug_addr): Ditto.
15545 (rs6000_debug_cost): Ditto.
15546 (rs6000_isel): Delete.
15547 (enum rs6000_vector): New enum to say what vector unit we have.
15548 (VECTOR_UNIT_*): New macros to say which vector unit has
15549 arithmetic operations for a given type.
15550 (VECTOR_MEM_*): New macros to say which vector unit has memory
15551 operations for a given type.
15552 (TARGET_LDBRX): Whether the machine supports the ldbrx
15554 (TARGET_ISEL): Delete, -misel moved to be a mask.
15555 (TARGET_ISEL64): New macro for 64-bit isel support.
15556 (UNITS_PER_VSX_WORD): New macro.
15557 (POINTER_SIZE): Move to be an external variable, rather than
15558 calculating whether we are generating 32 ot 64-bit code.
15560 (STACK_BOUNDARY): Add VSX support.
15561 (LOCAL_ALIGNMENT): Ditto.
15562 (SLOW_UNALIGNED_ACCESS): Ditto.
15563 (VSX_REGNO_P): New macro for VSX support.
15564 (VFLOAT_REGNO_P): Ditto.
15565 (VINT_REGNO_P): Ditto.
15566 (VLOGICAL_REGNO_P): Ditto.
15567 (VSX_VECTOR_MODE): Ditto.
15568 (VSX_SCALAR_MODE): Ditto.
15570 (VSX_MOVE_MODE): Ditto.
15571 (VSX_REG_CLASS_P): Ditto.
15572 (HARD_REGNO_NREGS): Instead of calling a function, use an array
15574 (UNITS_PER_SIMD_WORD): Add VSX support.
15575 (MODES_TIEABLE_P): Ditto.
15576 (STARTING_FRAME_OFFSET): Ditto.
15577 (STACK_DYNAMIC_OFFSET): Ditto.
15578 (EPILOGUE_USES): Ditto.
15579 (REGNO_REG_CLASS): Move to array lookup.
15580 (CLASS_MAX_NREGS): Ditto.
15581 (rs6000_vector_reg_class): Add declaration.
15582 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
15583 overlap with the floating point and Altivec registers.
15585 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
15587 * config/rs6000/driver-rs6000.c (asm_names): New static array to
15588 give the appropriate asm switches if -mcpu=native.
15589 (host_detect_local_cpu): Add support for "asm".
15590 (host_detect_local_cpu): Follow GNU code guidelines for name.
15592 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
15593 -mbit-word to a variable instead of being a target mask.
15595 * config/rs6000/sync.md (lwsync): If the assembler supports it,
15596 emit the lwsync instruction instead of emitting the instruction as
15597 an integer constant.
15599 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
15600 fixuns_trundfsi2, move expander into rs6000.md.
15602 * config/rs6000/rs6000.md (cpu): Add power7.
15603 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
15604 (logical predicate patterns): Change the single instruction
15605 primitives that set CR0 to be fast_compare instead of compare.
15607 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
15608 (popcntddi2): Ditto.
15609 (popcount<mode>): Ditto.
15610 (floating multiply/add insns): Name the floating point
15611 multiply/add insns.
15612 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
15613 (isel_unsigned_<mode>): Ditto.
15614 (fixuns_trundfsi2): Move expander here from spe.md.
15615 (smindi3): Define if we have -misel on 64-bit systems.
15620 2009-06-23 Anatoly Sokolov <aesok@post.ru>
15622 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
15624 * config/avr/avr.c (avr_current_device): New variable.
15625 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
15626 (avr_arch, mcu_type_s): Move to avr.h.
15627 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
15628 default_data_section_start fields.
15629 (avr_arch): Moved from avr.c.
15630 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
15631 library_name fields.
15632 (avr_current_device, avr_mcu_types, avr_arch_types,
15633 avr_device_to_arch, avr_device_to_data_start,
15634 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
15635 (EXTRA_SPEC_FUNCTIONS): Define.
15636 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
15637 options mapping. Use device_to_arch and device_to_data_start insted.
15638 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
15639 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
15640 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
15641 * config/avr/driver-avr.c: New file.
15642 * config/avr/avr-devices.c: New file.
15644 2009-06-23 Jakub Jelinek <jakub@redhat.com>
15646 * var-tracking.c (unshare_variable): Force initialized to
15647 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
15648 (set_variable_part): Likewise.
15649 (struct variable_union_info): Remove pos_src field.
15650 (vui_vec, vui_allocated): New variables.
15651 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
15652 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
15653 == 1 use a simpler sorting algorithm. Compute pos field right
15654 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
15655 Avoid quadratic comparison if !flag_var_tracking_uninit.
15656 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
15657 unshare_variable unconditionally.
15658 (dataflow_set_different_2): Removed.
15659 (dataflow_set_different): Don't traverse second hash table.
15660 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
15661 unconditionally to var_reg_set or var_mem_set.
15662 (emit_notes_in_bb): Likewise.
15663 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
15665 (emit_note_insn_var_location): Don't set initialized to
15666 VAR_INIT_STATUS_INITIALIZED early.
15667 (vt_finalize): Free vui_vec if needed, clear vui_vec and
15669 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
15671 * tree-object-size.c (addr_object_size): Instead of checking
15672 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
15673 are no FIELD_DECLs following it.
15675 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
15677 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
15678 order to match bswaps with signed source operands.
15680 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15682 * sdbout.c (sdbout_one_type): Fix braces in switch.
15684 2009-06-23 Richard Guenther <rguenther@suse.de>
15686 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
15688 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
15689 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
15690 var_callused, callused_tree, var_storedanything, storedanything_tree,
15691 var_integer, integer_tree): Remove global variables.
15692 (new_var_info): Do not pass new id, append the new var to the
15693 global variable vector.
15694 (do_ds_constraint): Use is_global_var member of the variable-info.
15695 (new_scalar_tmp_constraint_exp): Adjust.
15696 (create_function_info_for): Likewise.
15697 (create_variable_info_for): Likewise.
15698 (find_what_var_points_to): Remove dead code.
15699 (init_base_vars): Simplify.
15700 (compute_points_to_sets): Adjust.
15702 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
15704 * combine.c (try_combine): Dump information about the insns we're
15707 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
15709 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
15710 check when calling force_to_mode on TRUNCATE's operand.
15712 2009-06-22 Ian Lance Taylor <iant@google.com>
15714 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
15716 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
15718 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
15720 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15722 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
15723 override library linkage flags such as -static-libgcc or
15726 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15728 * config/m68k/m68k-devices.def: Add line for MCF5221x.
15730 2009-06-22 Ian Lance Taylor <iant@google.com>
15732 * config/linux.opt: Put mglibc ahead of muclibc.
15734 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
15735 for duplicate decls.
15737 2009-06-22 Matthias Klose <doko@ubuntu.com>
15739 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
15741 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
15744 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
15745 instead of NULL if a parser error occurs.
15747 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15749 * dwarf2out.c (dwarf2_debug_hooks): Initialize
15750 non-DWARF2_DEBUGGING_INFO version.
15752 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
15754 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
15755 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
15757 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
15758 (LIBGCC2_TF_CEXT): Define.
15761 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15764 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
15766 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15768 * config/arm/arm.c (arm_override_options): Disable
15769 -mcaller-super-interworking and -mcallee-super-interworking.
15770 * doc/invoke.texi (ARM Options): Document this.
15772 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
15774 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
15775 * config/arm/constraints.md (j): New constraint for movw operands.
15776 (N): Remove thumb2 meaning.
15777 * config/arm/arm.md (*arm_movw): Delete.
15778 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
15779 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
15780 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
15782 2009-06-22 Martin Jambor <mjambor@suse.cz>
15784 PR tree-optimization/40492
15785 * tree-sra.c (sra_modify_assign): Pass zero offsets to
15786 build_ref_for_offset.
15788 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
15790 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
15791 JUMP_TABLE_DATA_P predicates where applicable.
15792 * auto-inc-dec.c: Ditto.
15793 * builtins.c: Ditto.
15794 * caller-save.c: Ditto.
15796 * cfgcleanup.c: Ditto.
15797 * cfglayout.c: Ditto.
15799 * combine.c: Ditto.
15800 * combine-stack-adj.c: Ditto.
15804 * df-scan.c: Ditto.
15806 * dwarf2asm.c: Ditto.
15807 * dwarf2out.c: Ditto.
15808 * emit-rtl.c: Ditto.
15814 * function.c: Ditto.
15817 * genpreds.c: Ditto.
15818 * genrecog.c: Ditto.
15820 * ira-costs.c: Ditto.
15821 * ira-lives.c: Ditto.
15823 * loop-iv.c: Ditto.
15824 * lower-subreg.c: Ditto.
15825 * modulo-sched.c: Ditto.
15827 * postreload.c: Ditto.
15828 * print-rtl.c: Ditto.
15830 * reginfo.c: Ditto.
15831 * regmove.c: Ditto.
15832 * reload1.c: Ditto.
15835 * rtlanal.c: Ditto.
15837 * sched-vis.c: Ditto.
15839 * sel-sched-ir.c: Ditto.
15840 * simplify-rtx.c: Ditto.
15841 * targhooks.c: Ditto.
15842 * var-tracking.c: Ditto.
15843 * vmsdbgout.c: Ditto.
15845 2009-06-22 Matthias Klose <doko@ubuntu.com>
15847 * Makefile.in (install-plugin): Always use DESTDIR.
15849 2009-06-22 Olivier Hainque <hainque@adacore.com>
15851 * config/pa/pa.c (output_call): Don't optimize post call jumps
15852 into return address adjustments if the call may throw.
15854 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
15856 * arm.c (thumb1_output_casesi): New function.
15857 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
15858 optimizing for size or PIC.
15859 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
15860 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
15861 (casesi): Handle Thumb-1 when optimizing for size or PIC.
15862 (thumb1_casesi_internal_pic): New expand rule.
15863 (thumb1_casesi_dispatch): New pattern.
15864 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
15866 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
15867 in the text seciton when PIC or optimizing for size.
15868 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15869 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
15870 preservation properties of code.
15871 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
15872 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
15873 (__gnu_thumb1_case_si): New function.
15874 * t-arm (LIB1ASMSRC): Define here.
15875 (LIB1ASMFUNCS): Add some common functions.
15876 * t-arm-elf (LIB1ASMSRC): Delete.
15877 (LIB1ASMFUNCS): Append to existing set.
15878 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15879 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15880 * t-symbian (LIB1ASMFUNCS): Likewise.
15881 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15882 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15884 2009-06-21 Richard Guenther <rguenther@suse.de>
15886 PR tree-optimization/38729
15887 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
15888 to loops with a single exit if -fno-expensive-optimizations.
15890 2009-06-21 Jakub Jelinek <jakub@redhat.com>
15892 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
15893 (dataflow_set): Change vars type from htab_t to shared_hash.
15894 (shared_hash_pool, empty_shared_hash): New variables.
15895 (vars_clear): Removed.
15896 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
15897 shared_hash_find_slot_unshare, shared_hash_find_slot,
15898 shared_hash_find_slot_noinsert, shared_hash_find): New
15900 (shared_hash_unshare, shared_hash_destroy): New functions.
15901 (unshare_variable): Unshare set->vars if shared, use
15903 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
15904 (get_init_value, find_src_set_src, dump_dataflow_set,
15905 clobber_variable_part, emit_notes_for_differences): Use
15907 (dataflow_set_init): Remove second argument, set vars to
15908 empty_shared_hash instead of creating a new htab.
15909 (dataflow_set_clear): Call shared_hash_destroy and set vars
15910 to empty_shared_hash instead of calling vars_clear.
15911 (dataflow_set_copy): Don't call vars_copy, instead just share
15912 the src htab with dst.
15913 (variable_union): Use shared_hash_*, use initially NO_INSERT
15914 lookup if set->vars is shared. Don't keep slot cleared before
15915 calling unshare_variable. Unshare set->vars if needed.
15916 Even ->refcount == 1 vars must be unshared if set->vars is shared
15917 and var needs to be modified.
15918 (variable_canonicalize): New function.
15919 (dataflow_set_union): If dst->vars is empty, just share src->vars
15920 with dst->vars and traverse with variable_canonicalize to canonicalize
15921 and unshare what is needed.
15922 (dataflow_set_different): If old_set and new_set use the same shared
15923 htab, they aren't different. If number of htab elements is different,
15924 htabs are different. Use shared_hash_*.
15925 (dataflow_set_destroy): Call shared_hash_destroy instead of
15927 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
15928 second argument to dataflow_set_init.
15929 (vt_initialize): Likewise. Initialize shared_hash_pool and
15930 empty_shared_hash, move bb in/out initialization afterwards.
15931 Use variable_htab_free instead of NULL as changed_variables del hook.
15932 (variable_was_changed): Change type of second argument to pointer to
15933 dataflow_set. When inserting var into changed_variables, bump
15934 refcount. Unshare set->vars if set is shared htab and slot needs to
15936 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
15937 lookup if set->vars is shared. Unshare set->vars if needed.
15938 Even ->refcount == 1 vars must be unshared if set->vars is shared
15939 and var needs to be modified. Adjust variable_was_changed caller.
15940 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
15941 vars must be unshared if set->vars is shared and var needs to be
15942 modified. Adjust variable_was_changed caller.
15943 (emit_note_insn_var_location): Don't pool_free var.
15944 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
15946 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
15947 free_alloc_pool on shared_hash_pool.
15949 2009-06-20 Anthony Green <green@moxielogic.com>
15951 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
15952 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
15954 2009-06-20 Richard Guenther <rguenther@suse.de>
15956 * tree-ssa-structalias.c (find_func_aliases): For memset use
15957 a constraint from NULL if we memset to zero.
15958 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
15959 we explicitly handle that do not read from memory.
15960 (call_may_clobber_ref_p_1): Properly handle builtins that may
15963 2009-06-20 Richard Guenther <rguenther@suse.de>
15965 PR tree-optimization/40495
15966 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
15967 (new_scalar_tmp_constraint_exp): New function.
15968 (process_constraint): Do not create temporary decls.
15969 (process_all_all_constraints): Likewise.
15970 (handle_const_call): Likewise.
15971 (create_function_info_for): Do not set decl.
15973 2009-06-19 Ian Lance Taylor <iant@google.com>
15975 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
15976 (rs6000_attribute_table): Make static; move before use.
15978 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
15980 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
15981 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
15982 Propagate the TREE_READONLY flag without overwriting it.
15983 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
15984 Propagate the TREE_READONLY flag onto the result.
15985 (process_call_operands): Move around. Use correct constant value.
15987 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15990 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
15991 * config/arm/arm.md: Likewise.
15993 2009-06-19 Ian Lance Taylor <iant@google.com>
15995 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
15996 to GIMPLE_ERROR_MARK.
15998 * c-typeck.c (build_conditional_expr): Add op1_original_type and
15999 op2_original_type parameters. Warn about using different enum types.
16000 * c-parser.c (c_parser_conditional_expression): Pass original
16001 types to build_conditional_expr.
16002 * c-tree.h (build_conditional_expr): Update declaration.
16004 2009-06-19 Ian Lance Taylor <iant@google.com>
16006 * config/i386/i386.c (ix86_function_specific_save): Test that
16007 fields match values, rather than testing the values are in a
16010 2009-06-19 Richard Guenther <rguenther@suse.de>
16012 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16013 ADDR_EXPR pointers.
16014 (ptr_derefs_may_alias_p): Likewise.
16015 (ptr_deref_may_alias_ref_p_1): New function.
16016 (ptr_deref_may_alias_ref_p): Likewise.
16017 (ref_maybe_used_by_call_p_1): Handle builtins that are not
16018 covered by looking at the ESCAPED solution.
16019 (call_may_clobber_ref_p_1): Likewise.
16020 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
16021 Handle NULL_TREE offset. Do not produce redundant constraints.
16022 (process_all_all_constraints): New helper function.
16023 (do_structure_copy): Use it.
16024 (handle_lhs_call): Likewise.
16025 (find_func_aliases): Handle some builtins with pointer arguments
16026 and/or return values explicitly.
16028 2009-06-19 Ian Lance Taylor <iant@google.com>
16030 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
16032 2009-06-19 Ian Lance Taylor <iant@google.com>
16034 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
16036 2009-06-19 Ian Lance Taylor <iant@google.com>
16038 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
16039 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
16042 * c-decl.c (finish_decl): If -Wc++-compat, warn about
16043 uninitialized const.
16045 2009-06-19 Ian Lance Taylor <iant@google.com>
16047 * dse.c (struct store_info): Rename bitmap field to bmap. Change
16050 * c-decl.c (in_struct, struct_types): Remove.
16051 (struct c_binding): Add in_struct field.
16052 (c_binding_ptr): Define type, along with VEC.
16053 (struct c_struct_parse_info): Define.
16054 (struct_parse_info): New static variable.
16055 (bind): Initialize in_struct field.
16056 (start_struct): Remove enclosing_in_struct and
16057 enclosing_struct_types parameters. Add
16058 enclosing_struct_parse_info parameter. Change all callers. Set
16059 struct_parse_info rather than in_struct and struct_types.
16060 (grokfield): If -Wc++-compat and there is a symbol binding for the
16061 field name, set the in_struct flag and push it on the
16062 struct_parse_info->fields vector.
16063 (warn_cxx_compat_finish_struct): New static function.
16064 (finish_struct): Remove enclosing_in_struct and
16065 enclosing_struct_types parameters. Add
16066 enclosing_struct_parse_info parameter. Change all callers. Don't
16067 set C_TYPE_DEFINED_IN_STRUCT here. Call
16068 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
16069 parameter. Only push on struct_types if warn_cxx_compat.
16070 (finish_enum): Only push on struct_types if warn_cxx_compat.
16071 (declspecs_add_type): Add loc parameter. Change all callers.
16072 Change all error calls to error_at. Pass loc, not input_location,
16073 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
16074 defined in a struct. If -Wc++-compat and parsing a struct, record
16075 that a typedef name was used.
16076 * c-parser.c (c_parser_declspecs): Get location to pass to
16077 declspecs_add_type.
16078 (c_parser_struct_or_union_specifier): Update calls to start_struct
16080 * c-tree.h (struct c_struct_parse_info): Declare.
16081 (finish_struct, start_struct): Update declarations.
16082 (declspecs_add_type): Update declaration.
16084 2009-06-19 Ian Lance Taylor <iant@google.com>
16086 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
16087 variable with an anonymous type.
16089 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
16091 * see.c: Remove for real.
16093 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
16095 * optabs.h (enum optab_index): Add new OTI_significand.
16096 (significand_optab): Define corresponding macro.
16097 * optabs.c (init_optabs): Initialize significand_optab.
16098 * genopinit.c (optabs): Implement significand_optab using
16099 significand?f2 patterns.
16100 * builtins.c (expand_builtin_mathfn): Handle
16101 BUILT_IN_SIGNIFICAND{,F,L}.
16102 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
16103 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
16105 * config/i386/i386.md (significandxf2, significand<mode>2): New
16106 expanders to implement significandf, significand and significandl
16107 built-ins as inline x87 intrinsics.
16109 2009-06-18 Anatoly Sokolov <aesok@post.ru>
16111 * config/avr/avr.c (avr_override_options): Remove setting value of
16112 PARAM_INLINE_CALL_COST.
16114 2009-06-18 Richard Henderson <rth@redhat.com>
16117 * tree-pass.h (TDF_ASMNAME): New.
16118 * tree-dump.c (dump_options): Add asmname.
16119 * doc/invoke.texi: Document it.
16121 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
16122 (dump_decl_name): ...here.
16123 (dump_function_name): New flags arg; mind TDF_ASMNAME.
16124 (dump_generic_node): Update dump_function_name calls.
16125 (print_call_name): New flags arg; update all dump calls.
16126 * diagnostic.h (print_call_name): Update.
16127 * gimple-pretty-print.c (dump_gimple_call): Update.
16129 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
16132 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
16134 2009-06-18 Diego Novillo <dnovillo@google.com>
16136 * doc/plugins.texi: Document plugin_is_GPL_compatible.
16137 * plugin.c (str_license): Declare.
16138 (try_init_one_plugin): Assert that the symbol
16139 'plugin_is_GPL_compatible' exists.
16141 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
16144 * Makefile.in (OBJS-common): Remove see.o.
16146 * common.opt (fsee): Mark as preserved for backward compatibility.
16147 * opts.c (common_handle_option): Add OPT_fsee to the backward
16148 compatibility section.
16149 * passes.c (init_optimization_passes, pass_see): Remove pass.
16150 * timevar.def (TV_SEE): Remove.
16151 * tree-pass.h (pass_see): Remove declaration.
16152 * doc/invoke.texi (-fsee): Remove documentation.
16154 2009-06-18 Martin Jambor <mjambor@suse.cz>
16156 * tree-sra.c: Include statistics.h
16157 (sra_stats): New variable.
16158 (sra_initialize): Clear sra_stats.
16159 (create_access_replacement): Increment sra_stats.replacements.
16160 (get_access_replacement): Do not return twice.
16161 (analyze_all_variable_accesses): Increment statistics counter by the
16162 number of scalarized aggregates.
16163 (generate_subtree_copies): Increment sra_stats.subtree_copies.
16164 (sra_modify_expr): Increment sra_stats.exprs.
16165 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
16166 (sra_modify_assign): Increment sra_stats.exprs,
16167 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
16168 (perform_intra_sra): Update statistics counters.
16169 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
16171 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
16173 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
16174 (arm_scalar_mode_supported_p): New function.
16176 2009-06-18 Paul Brook <paul@codesourcery.com>
16177 Sandra Loosemore <sandra@codesourcery.com>
16179 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
16180 (__extendhfsf2, __truncsfhf2): Define.
16181 * config/arm/fp16.c: New file.
16182 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
16183 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
16185 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
16187 * doc/extend.texi (Half-Precision): New section.
16188 * doc/invoke.texi (Option Summary): List -mfp16-format.
16189 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
16190 * config/arm/arm.opt (mfp16-format=): New.
16191 * config/arm/arm.c: Include intl.h.
16192 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
16193 (TARGET_INVALID_RETURN_TYPE): Redefine.
16194 (TARGET_PROMOTED_TYPE): Redefine.
16195 (TARGET_CONVERT_TO_TYPE): Redefine.
16196 (arm_fp16_format): Define.
16197 (all_fpus): Add entry for neon-fp16.
16198 (fp_model_for_fpu): Likewise.
16199 (struct fp16_format): Declare.
16200 (all_fp16_formats): Define.
16201 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
16203 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
16205 (arm_legitimate_index_p): Treat HFmode like HImode.
16206 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
16207 (coproc_secondary_reload_class): Special-case HFmode.
16208 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
16209 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
16210 (arm_init_fp16_builtins): New.
16211 (arm_init_builtins): Call it.
16212 (arm_invalid_parameter_type): New.
16213 (arm_invalid_return_type): New.
16214 (arm_promoted_type): New.
16215 (arm_convert_to_type).
16216 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
16218 (arm_emit_fp16_const): New function.
16219 (arm_mangle_type): Mangle __fp16 as "Dh".
16220 * config/arm/arm.h (TARGET_VFPD32): Make it know about
16222 (TARGET_NEON_FP16): New.
16223 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
16224 (enum fputype): Add FPUTYPE_NEON_FP16.
16225 (enum arm_fp16_format_type): Declare.
16226 (arm_fp16_format): Declare.
16227 (LARGEST_EXPONENT_IS_NORMAL): Define.
16228 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
16229 * config/arm/arm-modes.def (HFmode): Define.
16230 * config/arm/vfp.md (*movhf_vfp): New.
16231 (extendhfsf2): New.
16233 * config/arm/arm.md (fpu): Add neon_fp16.
16234 (floatsihf2, floatdihf2): New.
16235 (fix_trunchfsi2, fix_trunchfdi2): New.
16237 (extendhfdf2): New.
16239 (*arm32_movhf): New.
16240 (*thumb1_movhf): New.
16241 (consttable_2): Add check for HFmode constants.
16242 (consttable_4): Handle HFmode constants.
16244 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
16246 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
16248 2009-06-17 Olivier Hainque <hainque@adacore.com>
16250 * collect2.c (main): Use CONST_CAST2 to perform char ** to
16251 const char ** conversion in AIX specific section.
16253 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
16255 * config/i386/i386.c (ix86_special_builtin_type): Remove
16256 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
16257 (bdesc_special_args): Updated.
16258 (ix86_init_mmx_sse_builtins): Likewise.
16259 (ix86_expand_special_args_builtin): Likewise.
16261 2009-06-17 Richard Henderson <rth@redhat.com>
16263 * tree-pretty-print.c (maybe_dump_asm_name): New.
16264 (dump_decl_name): Use it.
16265 (PRINT_FUNCTION_NAME): Merge into...
16266 (dump_function_name): ... here. Use maybe_dump_asm_name.
16268 2009-06-17 Cary Coutant <ccoutant@google.com>
16270 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
16272 * debug.c (struct gcc_debug_hooks): Change placeholder for
16274 (debug_nothing_int_charstar_int): Replaced by...
16275 (debug_nothing_int_charstar_int_bool): ...this.
16276 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
16277 source_line prototype.
16278 (debug_nothing_int_charstar_int): Replaced by...
16279 (debug_nothing_int_charstar_int_bool): ...this.
16280 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
16281 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
16282 Output is_stmt operand when necessary.
16283 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
16284 (notice_source_line): Add is_stmt parameter.
16285 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
16286 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
16288 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
16289 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
16291 2009-06-17 Ian Lance Taylor <iant@google.com>
16293 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
16295 (struct store_by_pieces_d): Rename from store_by_pieces. Change
16298 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
16300 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
16301 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
16302 tree_strip_sign_nop_conversions and
16303 tree_ssa_strip_useless_type_conversions rather than stripping
16304 the operations here.
16305 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
16307 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
16308 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
16309 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
16310 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
16313 2009-06-17 Michael Eager <eager@eagercon.com>
16315 * config/rs6000/constraints.md (register_constraint "d"): New.
16316 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
16317 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
16318 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
16319 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
16320 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
16321 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
16322 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
16323 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
16324 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
16325 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
16327 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
16328 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
16329 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
16330 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
16331 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
16332 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
16333 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
16334 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
16335 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
16336 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
16337 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
16338 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
16339 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
16340 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
16342 2009-06-16 Ian Lance Taylor <iant@google.com>
16344 * profile.c (total_num_never_executed): Don't define.
16345 (compute_branch_probabilities): Don't count or print
16346 num_never_executed.
16347 (init_branch_prob): Don't set total_num_never_executed.
16348 (end_branch_prob): Don't print total_num_never_executed.
16350 2009-06-17 David Daney <ddaney@caviumnetworks.com>
16352 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
16354 2009-06-17 David Edelsohn <edelsohn@gnu.org>
16356 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
16357 (nabstd2_fpr): Same.
16359 2009-06-17 Steve Ellcey <sje@cup.hp.com>
16361 * expr.c (expand_assignment): Change complex type check.
16363 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
16365 * doc/plugins.texi (Building GCC plugins): Added new section.
16367 2009-06-17 Ian Lance Taylor <iant@google.com>
16369 * c-pch.c (get_ident): Don't set size of templ array.
16370 (pch_init): Don't set size of partial_pch array.
16372 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
16373 string constant to intialize an array whose size is the length of
16376 2009-06-17 Richard Guenther <rguenther@suse.de>
16378 PR tree-optimization/40389
16379 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
16380 to addressable types.
16381 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
16383 2009-06-17 Richard Guenther <rguenther@suse.de>
16385 PR middle-end/40460
16386 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
16387 if there is no evolution of left in the loop bail out.
16388 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
16389 chrec_fold_multiply.
16391 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
16392 Janis Johnson <janis187@us.ibm.com>
16395 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
16396 for the symbol ref of a constant that is the source of a move
16397 - nor for any other not-obvious-label-ref constants.
16399 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
16401 * plugin.c (position_pass): Skip newly inserted pass during list
16402 traversal to avoid repeated insertion.
16404 2009-06-16 Ian Lance Taylor <iant@google.com>
16406 * vec.h (VEC_stack_alloc): Define different version if
16407 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
16408 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
16409 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
16410 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
16412 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
16414 * config.gcc (extra_headers): Add ia32intrin.h for x86.
16416 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
16417 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
16418 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
16419 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
16420 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
16421 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
16422 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
16423 (bdesc_special_args): Add __builtin_ia32_rdtsc and
16424 __builtin_ia32_rdtscp.
16425 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
16426 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
16427 and __builtin_ia32_rorhi.
16428 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
16429 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
16430 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
16431 (ix86_expand_args_builtin): Likewise.
16432 (ix86_expand_special_args_builtin): Likewise.
16434 * config/i386/i386.md (UNSPECV_RDTSCP): New.
16435 (UNSPECV_RDTSC): Likewise.
16436 (UNSPECV_RDPMC): Likewise.
16437 (*bsr): Renamed to ...
16439 (*bsr_rex64): Renamed to ...
16442 (*rdpmc): Likewise.
16443 (*rdpmc_rex64): Likewise.
16445 (*rdtsc): Likewise.
16446 (*rdtsc_rex64): Likewise.
16447 (rdtscp): Likewise.
16448 (*rdtscp): Likewise.
16449 (*rdtscp_rex64): Likewise.
16451 * config/i386/ia32intrin.h: New.
16453 * config/i386/x86intrin.h: Include <ia32intrin.h>.
16455 2009-06-16 Ian Lance Taylor <iant@google.com>
16457 * ira-build.c (copy_info_to_removed_store_destinations):
16458 Initialize parent_a.
16460 2009-06-16 Ian Lance Taylor <iant@google.com>
16462 * c-decl.c (grokdeclarator): Change size_varies to bool.
16464 2009-06-16 Ian Lance Taylor <iant@google.com>
16466 * sel-sched.c: Make forward declarations of move_op_hooks and
16467 fur_hooks explicitly extern.
16469 2009-06-16 Ian Lance Taylor <iant@google.com>
16471 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
16472 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
16474 2009-06-16 Ian Lance Taylor <iant@google.com>
16476 * resource.c (mark_referenced_resources): Change
16477 include_delayed_effects parameter to bool. Change all callers.
16478 (mark_end_of_function_resources): Likewise.
16479 * reorg.c (insn_references_resource_p): Likewise.
16480 (insn_sets_resource_p): Likewise.
16481 * resource.h (mark_referenced_resources): Update declaration.
16482 (mark_end_of_function_resources): Update declaration.
16484 2009-06-16 David Edelsohn <edelsohn@gnu.org>
16486 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
16488 2009-06-16 David Edelsohn <edelsohn@gnu.org>
16490 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
16491 GCC can bootstrap on AIX with GNU Binutils 2.20.
16493 2009-06-16 Ian Lance Taylor <iant@google.com>
16495 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
16497 2009-06-16 Ian Lance Taylor <iant@google.com>
16499 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
16500 inline, not extern inline.
16501 (exact_log2): Likewise.
16502 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
16504 (exact_log2): Likewise, but don't test CTZ_HWI.
16506 2009-06-16 Ian Lance Taylor <iant@google.com>
16508 * bitmap.c (bitmap_clear): Don't declare as inline.
16509 * gimple.c (gimplify_assign): Likewise.
16510 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16511 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
16512 (sched_scan_info): Remove duplicate definition.
16514 2009-06-16 Ian Lance Taylor <iant@google.com>
16516 * c-common.c (skip_evaluation): Don't define.
16517 (c_inhibit_evaluation_warnings): Define global variable.
16518 (overflow_warning): Check c_inhibit_evaluation_warnings rather
16519 than skip_evaluation.
16520 (convert_and_check, warn_for_div_by_zero): Likewise.
16521 * c-common.h (skip_evaluation): Don't declare.
16522 (c_inhibit_evaluation_warnings): Declare.
16523 * c-parser.c (c_parser_typeof_specifier): Set
16524 c_inhibit_evaluation_warnings rather than skip_evaluation.
16525 (c_parser_conditional_expression): Likewise.
16526 (c_parser_binary_expression): Likewise.
16527 (c_parser_sizeof_expression): Likewise.
16528 (c_parser_alignof_expression): Likewise.
16529 * c-typeck.c (build_indirect_ref): Check
16530 c_inhibit_evaluation_warnings rather than skip_evaluation.
16531 (build_conditional_expr, build_binary_op): Likewise.
16533 2009-06-16 Richard Guenther <rguenther@suse.de>
16535 * tree-ssa-alias.c (is_escape_site): Remove.
16536 * tree-ssa-alias.h (enum escape_type): Remove.
16537 (is_escape_site): Likewise.
16538 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
16539 via casts and asms without deferring to is_escape_site.
16541 2009-06-16 Jakub Jelinek <jakub@redhat.com>
16543 PR middle-end/40446
16544 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
16545 use gen_lowpart if op0 has complex mode.
16547 2009-06-16 Richard Guenther <rguenther@suse.de>
16549 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
16550 variables add them to ESCAPED.
16551 (find_func_aliases): Do not make all indirectly stored values escaped.
16553 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
16555 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
16556 make_decl_one_only.
16558 2009-06-16 Martin Jambor <mjambor@suse.cz>
16560 PR tree-optimization/40432
16561 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
16562 check whether we need to force gimple register operand.
16564 2009-06-16 Martin Jambor <mjambor@suse.cz>
16566 PR tree-optimization/40413
16567 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
16568 build_ref_for_offset.
16569 (propagate_subacesses_accross_link): Fix a typo in a comment.
16571 2009-06-16 Ira Rosen <irar@il.ibm.com>
16573 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
16574 with additional parameter.
16575 * tree-vectorizer.h (enum vect_def_type): Add new value
16577 (enum vect_relevant): Add comments.
16578 (vect_is_simple_reduction): Add new argument.
16579 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
16580 Detect nested cycles.
16581 (vect_is_simple_reduction): Update documentation, add an argument to
16582 distinguish inner-loop reduction from nested cycle, detect nested
16583 cycles, fix printings and indentation, don't swap operands in case
16585 (get_initial_def_for_reduction): Handle subtraction.
16586 (vect_create_epilog_for_reduction): Add new argument to specify
16587 reduction variable.
16588 (vect_finalize_reduction): Handle subtraction, fix comments.
16589 (vectorizable_reduction): Handle nested cycles. In case of nested
16590 cycle keep track of the reduction variable position. Call
16591 vect_is_simple_reduction with additional parameter. Use original
16592 statement code in reduction epilogue for nested cycle. Call
16593 vect_create_epilog_for_reduction with additional parameter.
16594 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
16595 inner-loop vectorization.
16596 (vect_recog_widen_sum_pattern): Likewise.
16597 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
16599 (vect_mark_stmts_to_be_vectorized): Likewise.
16600 (vect_get_vec_def_for_operand): Handle nested cycles.
16602 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16604 * doc/invoke.texi (Debugging Options): Fix option index entries
16605 for -fdump-statistics, -frandom-seed add entries for
16606 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
16607 (FRV Options): Fix entries for -mTLS, -mtls.
16608 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
16609 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
16610 (M68hc1x Options): Fix @itemx for -mnominmax.
16611 (MCore Options): Fix entry for -mno-lsim.
16612 (MMIX Options): Fix entry for -mabi=mmixware.
16613 (PDP-11 Options): Fix entry for -mbcopy-builtin.
16615 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
16617 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
16618 Mention the plugin mode of gengtype.
16619 * doc/gty.texi (Source Files Containing Type Information): Likewise.
16620 * gengtype.c: Updated copyright.
16621 (plugin_files, nb_plugin_files) Added new static variables.
16622 (measure_input_list) Care about plugin_files.
16623 (write_rtx_next): Added early return in plugin mode.
16624 (create_file): Updated copyright year in generated file. Added
16626 (oprintf): Added early return if NULL outf.
16627 (get_output_file_with_visibility): Care of plugin_files.
16628 (get_output_file_name): May return null.
16629 (write_local): Added early return.
16630 (put_mangled_filename): Ditto.
16631 (finish_root_table): Added check for base_files.
16632 (write_roots): Care about null when plugins.
16633 (main): Added plugin mode.
16635 2009-06-15 Ian Lance Taylor <iant@google.com>
16637 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
16638 * gcov.c (read_count_file): Add braces around variables declared
16641 * c.opt (Wjump-misses-init): New warning.
16642 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
16643 -Wall and -Wc++-compat if not already set.
16644 (c_common_post_options): Clear warn_jump_misses_init if it was not
16646 * c-decl.c (struct c_binding): Change type field to a union with
16647 new label field. Make it the first field in the struct. Update
16648 references to type to use u.type instead.
16649 (struct c_spot_bindings): Define.
16650 (struct c_goto_bindings): Define.
16651 (c_goto_bindings_p): Define, along with VECs.
16652 (struct c_label_vars): Define.
16653 (struct c_scope): Add has_label_bindings field.
16654 (bind_label, set_spot_bindings): New static functions.
16655 (decl_jump_unsafe, update_spot_bindings): New static functions.
16656 (update_label_decls): New static function.
16657 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
16658 Update binding u.label field to shadowed field.
16659 (c_binding_start_stmt_expr): New function.
16660 (c_binding_end_stmt_expr): New function.
16661 (pushdecl): Don't call c_begin_vm_scope.
16662 (make_label): Add defining and p_label_vars parameters. Change
16664 (lookup_label): Correct test for whether a label has not yet been
16665 defined. Call bind_label rather than bind.
16666 (warn_about_goto): New static function.
16667 (lookup_label_for_goto): New function.
16668 (declare_label): Call bind_label rather than bind.
16669 (check_earlier_gotos): New static function.
16670 (define_label): Don't give errors about jumping into statement
16671 expressions or scopes of variably modified types. Call
16672 set_spot_bindings and check_earlier_gotos. Call bind_label
16673 instead of bind. Don't set label_context_stack_se or
16674 label_context_stack_vm.
16675 (c_get_switch_bindings): New function.
16676 (c_release_switch_bindings): New function.
16677 (c_check_switch_jump_warnings): New function.
16678 (start_function): Don't set label_context_stack_se or
16679 label_context_stack_vm.
16680 (finish_function): Likewise.
16681 * c-typeck.c (label_context_stack_se): Don't define.
16682 (label_context_stack_vm): Don't define.
16683 (c_finish_goto_label): Call lookup_label_for_goto rather than
16684 lookup_label. Don't give errors about jumping into a statement
16685 expression or the scope of a variably modified type. Don't set
16686 label_context_stack_se or label_context_stack_vm.
16687 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
16688 fields. Add bindings field.
16689 (c_start_case): Don't set deleted fields. Set bindings field.
16690 (do_case): Rework order of tests. Don't check blocked_stmt_expr
16691 or blocked_vm. Call c_check_switch_jump_warnings.
16692 (c_finish_case): Don't test blocked_stmt_expr field. Call
16693 c_release_switch_bindings.
16694 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
16695 c_switch_stack. Don't walk label_context_stack_se labels. Don't
16696 set label_context_stack_se. Call c_bindings_start_stmt_expr.
16697 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
16698 c_switch_stack. Don't walk label_context_stack_se labels. Don't
16699 set label_context_stack_se. Call c_bindings_end_stmt_expr.
16700 (c_begin_vm_scope, c_end_vm_scope): Don't define.
16701 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
16702 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
16703 (C_DECL_UNJUMPABLE_VM): Don't define.
16704 (C_DECL_UNDEFINABLE_VM): Don't define.
16705 (struct c_label_list): Don't define.
16706 (struct c_label_context_se): Don't define.
16707 (struct c_label_context_vm): Don't define.
16708 (struct c_spot_bindings): Declare.
16709 (c_bindings_start_stmt_expr): Declare.
16710 (c_bindings_end_stmt_expr): Declare.
16711 (lookup_label_for_goto): Declare.
16712 (c_get_switch_bindings, c_release_switch_bindings): Declare.
16713 (c_check_switch_jump_warnings): Declare.
16714 (label_context_stack_se, label_context_stack_vm): Don't declare.
16715 (c_finish_goto_label): Update declaration.
16716 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
16717 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
16718 (Warning Options): Document -Wjump-misses-init.
16720 2009-06-15 Jakub Jelinek <jakub@redhat.com>
16722 * tree-object-size.c (addr_object_size): Fix a pasto in the last
16725 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
16727 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
16729 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
16731 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
16733 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
16735 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
16737 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
16739 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
16740 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
16741 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
16742 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
16743 * dwarf2asm.c (dw2_force_const_mem): Update call to
16744 make_decl_one_only.
16745 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
16746 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
16747 * langhooks.c (lhd_comdat_group): Remove.
16748 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
16749 * tree.h (DECL_COMDAT_GROUP): New.
16750 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
16751 (tree_decl_with_vis): Add comdat_group. Remove one_only.
16752 (make_decl_one_only): Change signature.
16753 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
16754 make_decl_one_only.
16755 (make_decl_one_only): Change signature.
16756 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
16758 2009-06-15 Richard Guenther <rguenther@suse.de>
16760 PR middle-end/40439
16761 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
16763 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16765 * tree-ssa-math-opts.c: Remove extra divide.
16767 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16769 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
16771 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16773 * passes.c: Add bswap pass.
16774 * tree-pass.h: Add pass_optimize_bswap declaration.
16775 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
16776 Include rtl.h, expr.h and optabs.h for optab_handler check.
16777 (struct symbolic_number, pass_optimize_bswap): New definition.
16778 (do_shift_rotate, verify_symbolic_number_p): New functions.
16779 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
16780 (gate_optimize_bswap): New function.
16781 * tree.c (widest_int_cst_value): New function.
16782 * tree.h (widest_int_cst_value): Prototype added.
16784 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
16786 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
16787 REG_EQUAL/REG_EQUIV notes.
16789 2009-06-14 Richard Guenther <rguenther@suse.de>
16791 PR middle-end/40389
16792 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
16793 has its address taken if NRV was applied and it is addressable.
16794 * tree-ssa-structalias.c (get_constraint_for_address_of): New
16795 function split out from ...
16796 (get_constraint_for_1): ... here.
16797 (handle_rhs_call): Use it to mark the return slot escaped if
16798 it is addressable and NRV was applied.
16800 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
16802 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
16803 Change first argument type to location_t.
16804 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
16805 Do not set input_location.
16806 Use loc instead of input_location throughout.
16808 2009-06-13 Richard Guenther <rguenther@suse.de>
16810 PR tree-optimization/40421
16811 * tree-predcom.c (should_unroll_loop_p): Remove.
16812 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
16814 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16816 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16817 Add location argument.
16819 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
16821 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
16823 * config/s390/s390.c (s390_build_builtin_va_list): Same.
16824 (s390_gimplify_va_arg): Pass location to create_artificial_label.
16825 * config/spu/spu-protos.h: Add location to
16826 spu_resolve_overloaded_builtin.
16827 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
16828 spu_build_builtin_va_list.
16829 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
16830 argument. Pass location to build_function_call_vec.
16831 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
16833 (emit_fpu_switch): Same.
16834 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
16835 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
16836 to build_decl and create_artificial_label.
16837 (xtensa_gimplify_va_arg_expr): Same.
16838 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
16839 (xstormy16_gimplify_va_arg_expr): Same.
16840 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
16841 * config/arm/arm.c (arm_build_builtin_va_list): Same.
16842 * config/mips/mips.c (mips_build_builtin_va_list): Same.
16843 (mips16_build_function_stub): Same.
16844 (mips16_build_call_stub): Same.
16846 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
16849 * arm/constraints.md (Pa, Pb): New constraints.
16850 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
16851 split pattern to deal with them.
16853 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
16855 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
16856 fix index entry for -Xpreprocessor.
16858 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
16860 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16861 Add location argument to build_decl call.
16862 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
16863 (rs6000_init_builtins): Same.
16864 (spe_init_builtins): Same.
16865 (rs6000_gimplify_va_arg): Add location argument to
16866 create_artificial_label call.
16868 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
16870 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
16871 * combine-stack-adj.c (pass_stack_adjustments): Use it.
16872 * Makefile.in: Fix GGC dependency for gcse.o.
16874 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
16876 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
16877 * gimple-pretty-print.c (dump_gimple_stmt): Same.
16878 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
16880 * c-parser.c (c_parser_binary_expression): Use current column while
16881 building binary operations.
16882 * common.opt (fshow-column): Enable by default.
16883 * tree-vrp.c (check_array_ref): Use warning_at.
16884 (check_array_bounds): Use location from call back if expr has no
16886 * tree.h: Add location argument to maybe_fold_*.
16887 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
16888 (maybe_fold_offset_to_array_ref): Add location argument and use it.
16889 (maybe_fold_offset_to_component_ref): Same.
16890 (maybe_fold_offset_to_reference): Same.
16891 (maybe_fold_offset_to_address): Same.
16892 (maybe_fold_stmt_indirect): Same.
16893 (maybe_fold_stmt_addition): Same.
16894 (fold_stmt_r): Pass location to maybe_fold_*.
16895 (fold_gimple_assign): Same.
16896 * c-tree.h: Add location argument to finish_decl,
16897 default_function_array_conversion, store_init_value.
16898 * c-decl.c (define_label): Use error_at.
16899 (c_make_fname_decl): Pass location to finish_decl.
16900 (finish_decl): New location argument.
16901 (build_compound_literal): Pass location to store_init_value.
16902 (grokdeclarator): Pass location to finish_decl.
16904 * c-typeck.c (array_to_pointer_conversion): New location argument.
16905 (function_to_pointer_conversion): Same.
16906 (default_function_array_conversion): Same.
16907 (parser_build_unary_op): Pass location to overflow_warning.
16908 (parser_build_binary_op): Same. Use warning_at.
16909 (build_unary_op): Pass location to array_to_pointer_conversion.
16910 (build_c_cast): Pass location to digest_init.
16911 (build_modify_expr): New location argument.
16912 (convert_for_assignment): Same.
16913 (store_init_value): Same.
16914 (digest_init): Same.
16915 (output_init_element): Pass location to digest_init and
16916 array_to_pointer_conversion.
16917 (c_finish_return): Pass location to convert_for_assignment.
16918 * gimplify.c (gimplify_conversion): Pass location to
16919 maybe_fold_offset_to_address.
16920 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
16921 to maybe_fold_stmt_addition.
16922 * c-omp.c (c_finish_omp_atomic): Pass new location to
16924 (c_finish_omp_for): Same.
16925 * c-common.c (overflow_warning): New argument.
16926 * c-common.h: New argument to build_modify_expr, overflow_warning.
16927 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
16929 (c_parser_initializer): Pass location to
16930 default_function_array_conversion.
16931 (c_parser_initelt): Same.
16932 (c_parser_initval): Same.
16933 (c_parser_asm_operands): Same.
16934 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
16935 (c_parser_conditional_expression): Same.
16936 (c_parser_binary_expression): Add location info to stack. Use it.
16937 (c_parser_unary_expression): Pass location to
16938 default_function_array_conversion, parser_build_unary_op,
16939 build_indirect_ref, c_parser_postfix_expression_after_primary.
16940 (c_parser_postfix_expression_after_primary): New location argument.
16942 (c_parser_expression_conv): Pass location to
16943 default_function_array_conversion.
16944 (c_parser_expr_list): Same.
16945 (c_parser_omp_atomic): Same.
16946 (c_parser_omp_for_loop): Same.
16947 * c-tree.h (struct c_declarator): Add comment to id_loc.
16948 (build_array_declarator): New argument.
16949 * c-decl.c (build_array_declarator): Add location argument.
16950 (grokdeclarator): Set id_loc for cdk_array.
16951 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
16952 build_array_declarator.
16953 * tree.c (build_omp_clause): Add location argument.
16954 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
16955 (OMP_CLAUSE_LOCATION): New macro.
16956 (struct tree_omp_clause): Add location field.
16957 (build_omp_clause): Add argument.
16958 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
16960 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
16961 (cp_parser_omp_clause_collapse): Same.
16962 (cp_parser_omp_clause_default): Same.
16963 (cp_parser_omp_clause_if): Same.
16964 (cp_parser_omp_clause_nowait): Same.
16965 (cp_parser_omp_clause_num_threads): Same.
16966 (cp_parser_omp_clause_ordered): Same.
16967 (cp_parser_omp_clause_schedule): Same.
16968 (cp_parser_omp_clause_untied): Same.
16969 (cp_parser_omp_for_loop): Same.
16970 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
16971 * c-tree.h (c_start_case): Add location argument.
16972 (c_process_expr_stmt): Same.
16973 (c_finish_goto_*): Same.
16974 * tree-parloops.c (initialize_reductions): Pass location to
16976 (create_parallel_loop): Same.
16977 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
16978 (gfc_trans_omp_reduction_list): Same.
16979 (gfc_trans_omp_clauses): Same.
16980 (gfc_trans_omp_do): Same.
16981 * c-typeck.c (c_finish_goto_label): Same.
16982 (c_finish_goto_ptr): New location argument.
16983 (c_start_case): Same.
16984 (emit_side_effect_warnings): Same.
16985 (c_process_expr_stmt): Same.
16986 (c_finish_stmt_expr): Same.
16987 (c_finish_omp_clauses): Use error_at instead of error.
16988 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
16990 * c-omp.c (c_split_parallel_clauses): New location argument.
16991 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
16992 to build_omp_clause.
16993 (convert_local_reference_stmt): Same.
16994 (convert_gimple_call): Same.
16995 * c-common.h (c_split_parallel_clauses): New argument.
16996 * c-parser.c (c_parser_statement_after_labels): Pass location to
16997 c_finish_goto_label.
16998 (c_parser_switch_statement): Pass location to c_start_case.
16999 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
17000 and c_process_expr_stmt.
17001 (c_parser_omp_variable_list): Add location argument.
17002 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
17003 (c_parser_omp_clause_default): Same.
17004 (c_parser_omp_clause_if): Same.
17005 (c_parser_omp_clause_num_threads): Same.
17006 (-c_parser_omp_clause_ordered): Same.
17007 (c_parser_omp_clause_reduction): Pass location to
17008 c_parser_omp_variable_list.
17009 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
17010 (c_parser_omp_clause_untied): Same.
17011 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
17012 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
17014 * c-tree.h (check_for_loop_decls, undeclared_variable,
17015 build_component_ref, build_array_ref, build_external_ref,
17016 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
17017 build_conditional_expr, build_compound_expr, c_cast_expr,
17018 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
17019 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
17021 * c-semantics.c (build_stmt): Same.
17022 (build_case_label): Same.
17023 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
17024 (undeclared_variable): New argument.
17025 (make_label): Same.
17026 (lookup_label): Pass location on down.
17027 (define_label): Same.
17028 (finish_decl): Same.
17029 (build_compound_literal): Same.
17030 (finish_struct): Same.
17031 (finish_function): Do not set location here.
17032 (check_for_loop_decls): New argument.
17033 * tree.c (save_expr): Set location.
17034 (build_empty_stmt): New argument.
17035 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
17036 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
17037 * builtins.c (gimplify_va_arg_expr): Use locations.
17038 (expand_builtin_sync_operation): Same.
17039 * c-typeck.c (build_component_ref): New argument.
17040 (build_array_ref): Same.
17041 (build_external_ref): Same.
17042 (c_expr_sizeof_expr): Same.
17043 (c_expr_sizeof_type): Same.
17044 (parser_build_unary_op): Same.
17045 (build_conditional_expr): Same.
17046 (build_compound_expr): Pass location on down.
17047 (build_compound_expr): New argument.
17048 (build_c_cast): Same.
17049 (c_cast_expr): Same.
17050 (build_asm_expr): Same.
17051 (c_finish_return): Same.
17052 (c_process_expr_stmt): Pass location on down.
17053 (c_finish_stmt_expr): New argument.
17054 (push_clenaup): Same.
17055 (c_finish_omp_parallel): Same.
17056 (c_finish_omp_task): Same.
17057 * gimplify.c (gimplify_call_expr): Pass location on down.
17058 * c-omp.c (c_finish_omp_master): New argument.
17059 (c_finish_omp_critical): Same.
17060 (c_finish_omp_ordered): Same.
17061 (c_finish_omp_barrier): Same.
17062 (-c_finish_omp_taskwait): Same.
17063 (c_finish_omp_atomic): Same.
17064 (c_finish_omp_flush): Same.
17065 * tree-inline.c (copy_tree_body_r): Pass location on down.
17066 (inline_forbidden_p): Remove use of input_location.
17067 * c-gimplify.c (c_build_bind_expr): New argument.
17068 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
17069 (c_sizeof_or_alignof_type): New argument.
17070 (c_alignof_expr): Same.
17071 (build_va_arg): Same.
17072 (c_add_case_label): Same.
17073 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
17074 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
17075 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
17076 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
17077 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
17078 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
17080 * stub-objc.c (objc_build_selector_expr): Same.
17081 (objc_build_throw_stmt): Same.
17082 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
17083 (c_parser_initelt): Same.
17084 (c_parser_compound_statement): Same.
17085 (c_parser_compound_statement_nostart): Same.
17086 (c_parser_label): Same.
17087 (c_parser_statement_after_labels): Same.
17088 (c_parser_if_body): Same.
17089 (c_parser_else_body): Same.
17090 (c_parser_if_statement): Same.
17091 (c_parser_switch_statement): Same.
17092 (c_parser_while_statement): Same.
17093 (c_parser_do_statement): Same.
17094 (c_parser_for_statement): Same.
17095 (c_parser_asm_statement): Same.
17096 (c_parser_conditional_expression): Same.
17097 (c_parser_binary_expression): Same.
17098 (c_parser_cast_expression): Same.
17099 (c_parser_unary_expression): Same.
17100 (c_parser_sizeof_expression): Same.
17101 (c_parser_alignof_expression): Same.
17102 (c_parser_postfix_expression): Same.
17103 (c_parser_expression): Same.
17104 (c_parser_objc_receiver): Same.
17105 (c_parser_omp_variable_list): Same.
17106 (c_parser_omp_structured_block): Same.
17107 (c_parser_omp_atomic): New argument.
17108 (c_parser_omp_barrier): Same.
17109 (c_parser_omp_critical): Same.
17110 (c_parser_omp_flush): Pass location on down.
17111 (c_parser_omp_for_loop): New argument.
17112 (c_parser_omp_for): Same.
17113 (c_parser_omp_master): Same.
17114 (c_parser_omp_ordered): Same.
17115 (c_parser_omp_sections_scope): Same.
17116 (c_parser_omp_sections): Same.
17117 (c_parser_omp_parallel): Same.
17118 (c_parser_omp_single): Same.
17119 (c_parser_omp_task): Same.
17120 (c_parser_omp_taskwait): Pass location on down.
17121 (c_parser_omp_construct): Same.
17122 (c_parser_omp_threadprivate): Same.
17123 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
17124 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
17125 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
17126 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
17127 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
17128 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
17129 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
17130 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
17131 config/i386/i386.c, stmt.c:
17132 Add location argument to the following function definitions and/or
17133 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
17134 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
17135 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
17136 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
17137 do_case, c_finish_bc_stmt, build_compound_literal,
17138 build_function_call.
17139 * c-decl.c (build_compound_literal): Add location argument.
17140 Make all diagnostic calls use location.
17141 (start_struct): Same.
17142 (finish_struct): Same.
17143 (start_enum): Same.
17144 (build_enumerator): Same.
17145 (start_function): Same.
17146 (grokdeclarator): Make all diagnostic calls use location.
17147 (store_parm_decls_oldstyle): Same.
17148 * c-typeck.c (build_function_call): Add location argument.
17149 Make all diagnostic calls use location.
17151 (c_finish_bc_stmt): Same.
17152 * tree-nested.c (get_trampoline_type): Add argument.
17153 Pass location to build_decl.
17154 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
17155 * rtl.h (RTL_LOCATION): New.
17156 * c-common.c (c_add_case_label): Add location argument.
17157 Make all diagnostic calls use location.
17158 * c-common.h: Add location argument to make_fname_decl, do_case,
17159 c_add_case_label, build_function_call, resolve_overloaded_builtin.
17160 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
17161 Set it appropriately for every case. Pass enum_loc to start_enum
17162 call. Pass value_loc first to build_enumerator. Pass enum_loc to
17164 (c_parser_struct_or_union_specifier): Save location. Use it for
17165 start_struct, finish_struct, and parser_xref_tag.
17167 2009-06-12 Ian Lance Taylor <iant@google.com>
17169 * fold-const.c (fold_unary): Rename local variable and to and_expr.
17171 * c-opts.c (c_common_handle_option): For -Wc++-compat set
17172 cpp_opts->warn_cxx_operator_names.
17174 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
17177 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
17178 is returns NULL and OP is a VCE, look through the VCE.
17180 2009-06-12 Ian Lance Taylor <iant@google.com>
17183 * collect2.c (main): Use CONST_CAST2 in code inside #if
17184 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
17186 2009-06-12 Joey Ye <joey.ye@intel.com>
17188 PR middle-end/39146
17189 * cfgexpand.c (get_decl_align_unit): Update
17190 max_used_stack_slot_alignment with align instead of
17191 stack_alignment_needed.
17193 * function.c (assign_stack_local_1): Update
17194 max_used_stack_slot_alignment with alignment_in_bits instead
17195 of stack_alignment_needed.
17196 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
17199 2009-06-12 Jakub Jelinek <jakub@redhat.com>
17201 * dwarf2out.c (last_var_location_insn): New variable.
17202 (dwarf2out_end_epilogue): Clear last_var_location_insn.
17203 (dwarf2out_var_location): Don't record anything after last real
17204 insn. Only change labels if there were any real instructions
17205 in between last note and this one, or if changed sections.
17207 2009-06-11 Richard Henderson <rth@redhat.com>
17209 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
17210 note when storing the frame pointer in a register.
17211 (FRP): Don't redefine to nothing for epilogue.
17212 (alpha_expand_epilogue): Mark register and sp restores.
17213 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
17215 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
17216 when gen_lowpart is needed.
17218 2009-06-11 Richard Henderson <rth@redhat.com>
17220 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
17222 * dwarf2out.c (need_data_align_sf_opcode): New.
17223 (div_data_align): Move earlier.
17224 (def_cfa_1, reg_save): Use it.
17226 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
17228 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
17229 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
17230 (ix86_handle_option): Handle OPT_mcrc32.
17231 (ix86_target_string): Add -mcrc32.
17232 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
17234 * config/i386/i386.h (TARGET_CRC32): New.
17236 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
17237 (sse4_2_crc32di): Likewise.
17239 * config/i386/i386.opt (mcrc32): New.
17241 * doc/invoke.texi: Document -mcrc32.
17243 2009-06-11 Richard Henderson <rth@redhat.com>
17245 * common.opt (gdwarf-): Accept a version number.
17246 * doc/invoke.texi (gdwarf-): Update docs.
17247 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
17248 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
17249 version level, and record it.
17251 * dwarf2.h (DW_CIE_VERSION): Remove.
17252 * dwarf2out.c (DWARF_VERSION): Remove.
17253 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
17254 (output_call_frame_info): Use CIE version 3 for dwarf3,
17255 or if the return register column is out of range for version 1.
17256 (dwarf_stack_op_name): Add all dwarf3 values.
17257 (DEBUG_PUBTYPES_SECTION): New.
17258 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
17259 encoding change for dwarf3.
17260 (output_die) [dw_val_class_die_ref]: Likewise.
17261 (output_compilation_unit_header): Emit correct version for dwarf3.
17262 (output_line_info): Likewise.
17263 (output_pubnames): Update for DWARF_VERSION removal.
17264 (output_aranges): Likewise.
17265 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
17266 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
17267 (dwarf2out_finish): Likewise.
17269 2009-06-11 David Daney <ddaney@caviumnetworks.com>
17271 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
17274 2009-06-11 David Daney <ddaney@caviumnetworks.com>
17277 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
17278 * builtins.c (expand_builtin_unreachable): New function.
17279 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
17280 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
17281 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
17283 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
17284 searching for missing barriers.
17286 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17288 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
17289 when -fprofile-generate* was passed.
17290 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
17292 2009-06-11 Anthony Green <green@moxielogic.com>
17294 * config/moxie/moxie.md: Define length attribute for all instructions.
17296 (*b<cond:code>): Support limited branch ranges for new PC-relative
17297 branch instructions.
17298 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
17300 2009-06-11 Jakub Jelinek <jakub@redhat.com>
17302 * config/i386/i386.c (min_insn_size): Use get_attr_length
17303 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
17304 For __asm return 0.
17306 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
17307 instead of emit_insn_before.
17309 2009-06-10 Ian Lance Taylor <iant@google.com>
17312 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
17315 2009-06-10 Revital Eres <eres@il.ibm.com>
17317 * passes.c (init_optimization_passes): Reschedule
17318 predictive-commoning pass before complete unroll pass.
17320 2009-06-10 Martin Jambor <mjambor@suse.cz>
17322 * cgraph.c (cgraph_node_can_be_local_p): New function.
17323 (cgraph_make_node_local): New function.
17324 * cgraph.h (cgraph_node_can_be_local_p): Declare.
17325 (cgraph_make_node_local): Declare.
17327 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
17329 * tree.h (tree_base): Add packed_flag and user_align fields.
17330 Decrease size of spare field.
17331 (TYPE_USER_ALIGN): Use user_align from tree_base.
17332 (DECL_USER_ALIGN): Likewise.
17333 (TYPE_PACKED): Use packed_flag from tree_base.
17334 (DECL_PACKED): Likewise.
17335 (tree_type): Delete packed_flag and user_align fields. Widen
17336 precision field. Widen mode field and shuffle fields to align
17337 mode on an 8-bit boundary.
17338 (tree_decl_common): Delete decl_flag_1 and user_align fields.
17339 Renumber decl_flag_* fields. Fix comments. Widen
17340 decl_common_unused field.
17341 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
17342 (DECL_EXTERNAL): Likewise.
17343 (DECL_BIT_FIELD): Likewise.
17344 (DECL_NONADDRESSABLE_P): Likewise.
17345 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
17346 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
17348 2009-06-10 Ian Lance Taylor <iant@google.com>
17350 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
17351 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
17352 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
17353 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
17354 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
17355 DEF_VEC_ALLOC_FUNC_P.
17356 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
17357 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
17358 DEF_VEC_ALLOC_FUNC_O.
17359 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
17360 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
17361 DEF_VEC_ALLOC_FUNC_I.
17362 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
17363 (vec_stack_p_reserve_exact_1): Declare.
17364 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
17365 (vec_stack_free): Declare.
17366 (VEC_stack_alloc): Define.
17367 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
17368 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
17369 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
17370 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
17372 (stack_vecs): New static variable.
17373 (vec_stack_p_reserve_exact_1): New function.
17374 (vec_stack_o_reserve_1): New static function.
17375 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
17376 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
17377 (vec_stack_free): New function.
17378 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
17379 (VEC_df_ref_stack_alloc): Define.
17380 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
17381 DEF_VEC_ALLOC_P_STACK.
17382 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
17383 (struct df_collection_rec): Change _vec fields to VEC. Remove
17385 (df_free_collection_rec): Adjust for new fields.
17386 (df_insn_rescan): Use new df_collection_rec fields.
17387 (df_notes_rescan, df_canonize_collection_rec): Likewise.
17388 (df_ref_create_structure, df_ref_record): Likewise.
17389 (df_get_conditional_uses, df_get_call_refs): Likewise.
17390 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
17391 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
17392 (df_record_exit_block_uses, df_bb_verify): Likewise.
17393 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
17394 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
17395 Remove count parameter. Change return type to void. Change all
17397 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
17398 Remove count parameter. Change return type to void. Change all
17400 (df_install_refs): Change old_vec parameter to VEC. Remove count
17401 parameter. Change all callers.
17402 (df_install_mws): Change old_vec parameter to VEC. Remove count
17403 parameter. Change all callers.
17404 (df_refs_verify): Change new_rec parameter to VEC. Change call
17406 (df_mws_verify): Likewise.
17408 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
17410 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
17412 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
17414 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
17416 2009-06-10 Anthony Green <green@moxielogic.com>
17418 * config/moxie/crti.asm: New file.
17419 * config/moxie/crtn.asm: New file.
17420 * config/moxie/moxie.c: New file.
17421 * config/moxie/moxie.h: New file.
17422 * config/moxie/sfp-machine.h: New file.
17423 * config/moxie/moxie-protos.h: New file.
17424 * config/moxie/t-moxie: Created.
17425 * config/moxie/t-moxie-softfp: Created.
17426 * config/moxie/moxie.md: Created.
17427 * config/moxie/constraints.md: Created.
17428 * config.gcc: Add moxie support.
17429 * doc/md.texi (Machine Constraints): Add moxie constraints.
17430 * doc/contrib.texi (Contributors): Mention moxie port.
17431 * doc/install.texi (Specific): Mention the moxie port.
17433 2009-06-09 Ian Lance Taylor <iant@google.com>
17435 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
17436 compiling with C++.
17437 * optabs.c (optab_table): Only use designated initializers if
17438 HAVE_DESIGNATED_INITIALIZERS is defined.
17439 (convert_optab_table): Likewise.
17440 (init_optabs): Always call init_insn_codes if
17441 HAVE_DESIGNATED_INITIALIZERS is not defined.
17443 2009-06-09 Ian Lance Taylor <iant@google.com>
17445 * targhooks.c (default_builtin_vectorized_function): Change fn
17446 parameter to unsigned int.
17447 (default_builtin_vectorized_conversion): Change code parameter to
17449 (default_builtin_reciprocal): Change fn parameter to unsigned int.
17450 * targhooks.h: Update declarations.
17451 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
17452 parameter to unsigned int.
17454 * c-typeck.c (comptypes_check_enum_int): New static function.
17455 (comptypes_internal): Add enum_and_int_p parameter. Change all
17457 (comp_target_types): Add location parameter. Change all callers.
17458 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
17459 Change all callers.
17460 (function_types_compatible_p, type_lists_compatible_p): Likewise.
17461 (build_conditional_expr): Add colon_loc parameter. Change all
17463 (convert_for_assignment): Add location parameter. Change all callers.
17464 * c-parser.c (c_parser_conditional_expression): Pass location of
17465 colon to build_conditional_expr.
17466 * c-tree.h (build_conditional_expr): Update declaration.
17468 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
17470 * graphite.c: Revert previous patch.
17472 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
17475 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
17477 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
17479 * tree-ssa-loop-prefetch.c
17480 (loop_prefetch_arrays): Fixed a portability problem in printf format
17483 2009-06-09 Martin Jambor <mjambor@suse.cz>
17485 PR tree-optimization/40351
17486 * tree-sra.c (propagate_subacesses_accross_link): Check that a
17487 refrence to a potential artifical subaccess can be constructed.
17489 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
17491 * config/sh/sh-protos.h (sh_optimization_options): Declare.
17492 (sh_override_options): Likewise.
17493 * config/sh/sh.c: Include params.h.
17494 (sh_optimization_options): New.
17495 (sh_override_options): Likewise.
17496 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
17497 (OVERRIDE_OPTIONS): Use sh_override_options.
17499 2009-06-08 Jakub Jelinek <jakub@redhat.com>
17501 * dwarf2out.c (emit_cfa_remember): New variable.
17502 (add_fde_cfi): If emit_cfa_remember, recurse to add
17503 DW_CFA_remember_state first.
17504 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
17505 instead just set emit_cfa_remember.
17507 2009-06-08 Jan Hubicka <jh@suse.cz>
17510 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
17512 2009-06-08 Jan Hubicka <jh@suse.cz>
17514 PR middle-end/39834
17515 * cgraphunit.c (save_inline_function_body): Do not copy transform
17516 hooks for saved inline bodies.
17517 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
17518 for given function.
17520 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
17522 * jump.c (returnjump_p): Handle delayed branches. Add missing
17525 2009-06-08 Jan Hubicka <jh@suse.cz>
17527 PR middle-end/40102
17528 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
17529 original node might've been modified.
17530 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
17532 2009-06-08 Jakub Jelinek <jakub@redhat.com>
17534 * tree-object-size.c (addr_object_size): Add OSI argument.
17535 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
17536 (compute_builtin_object_size, expr_object_size): Adjust callers.
17537 (plus_stmt_object_size): Call addr_object_size instead of
17538 compute_builtin_object_size.
17540 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
17541 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17543 * tree-ssa-loop-prefetch.c
17544 (gather_memory_references): Introduced a counter for the number of
17546 (anything_to_prefetch_p): Introduced a counter for the number of
17548 (is_loop_prefetching_profitable): New function with a cost model
17550 (loop_prefetch_arrays): Use the new cost model to determine if
17551 prefetching is profitable.
17552 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
17553 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
17554 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
17555 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
17556 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
17557 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
17559 2009-06-08 Michael Matz <matz@suse.de>
17562 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
17563 partitions use the same.
17564 (expand_one_var): Deal with DECL_RTL sometimes begin set also
17565 for basevars of SSA_NAMEs.
17566 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
17567 to not expand them twice.
17568 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
17571 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
17573 * common.opt (fcompare-debug=, fcompare-debug-second): New.
17574 (fdump-final-insns=, gtoggle): New.
17575 * doc/invoke.texi: Document them.
17576 * final.c (rest_of_clean_state): Dump final insn stream.
17577 * gcc.c (invoke_as): Hook in -fcompare-debug.
17578 (static_spec_functions): Add compare-debug-dump-opt,
17579 compare-debug-self-opt and compare-debug-auxbase-opt.
17580 (compare_debug, compare_debug_second, compare_debug_opt): New.
17581 (switches_debug_check, n_switches_debug_check): New.
17582 (debug_auxbase_opt, debug_check_temp_file): New.
17583 (process_command): Handle -fno-compare-debug, -fcompare-debug and
17585 (do_self_spec): Handle arguments after switches.
17586 (do_spec_1): Add .gk extension to temp file basenames for compare.
17587 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
17588 (cc1_options): Use it instead of normal auxbase computation for
17589 the second compare-debug compilation.
17590 (compare_files): New.
17591 (main): Set up and implement compare debug mode.
17592 (compare_debug_dump_opt_spec_function): New.
17593 (compare_debug_self_opt_spec_function): New.
17594 (compare_debug_auxbase_opt_spec_function): New.
17595 * toplev.c (process_options): Handle flag_gtoggle,
17596 flag_dump_final_insns.
17597 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
17598 during -fcompare-debug-second compilation.
17600 2009-06-07 Ian Lance Taylor <iant@google.com>
17602 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
17603 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
17605 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
17606 with no default node. Change warning with %H to warning_at.
17607 Don't clear warn_switch around case checking.
17608 * doc/invoke.texi (Warning Options): Clarify distinction between
17609 -Wswitch and -Wswitch-enum.
17611 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17613 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
17615 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17617 * gbl-ctors.h: Add header guard.
17619 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17621 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
17622 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
17623 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
17624 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
17625 prototypes for removed functions.
17626 (expressions_equal_p): Move to ...
17627 * tree-ssa-sccvn.h: ... here and ...
17628 * matrix-reorg.c: ... adjust includes.
17630 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17632 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
17634 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17636 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
17637 (finish_function): Remove erroneous whitespace.
17639 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17641 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
17642 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
17644 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17646 * errors.c (internal_error): Commentary typo fix.
17647 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
17648 * tree-ssa-pre.c: Ditto.
17650 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17652 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
17653 them is supposed to hold actual statements.
17655 2009-06-06 Ian Lance Taylor <iant@google.com>
17657 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
17658 empty statements can now have attributes.
17660 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
17662 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
17663 * config/mips/mips.md: Ditto.
17665 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
17667 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
17669 (__eabi_uconvert): Likewise.
17671 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
17673 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
17674 CFI_* definitions with IN_GCC.
17676 2009-06-05 David Edelsohn <edelsohn@gnu.org>
17678 * xcoffout.h (xcoffout_source_line): Update prototype.
17680 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17682 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
17683 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
17685 2009-06-05 Jakub Jelinek <jakub@redhat.com>
17687 PR middle-end/40340
17688 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
17689 inlined_function_outer_scope_p blocks for artificial inlines
17691 * tree.c (tree_nonartificial_location): Rewrite using
17692 block_nonartificial_location.
17694 2009-06-05 Revital Eres <eres@il.ibm.com>
17695 Leehod Baruch <leehod@il.ibm.com>
17697 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
17698 (expand_expr_real_1): Remove comment.
17699 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17700 Vectorize misaligned access when the target supports it.
17701 (vect_supportable_dr_alignment): Check for unaligned access support.
17702 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
17705 2009-06-05 Julian Brown <julian@codesourcery.com>
17707 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
17708 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
17710 2009-06-05 Richard Guenther <rguenther@suse.de>
17713 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
17714 as possibly unused.
17716 2009-06-05 Jakub Jelinek <jakub@redhat.com>
17718 * config/s390/s390.c (global_not_special_regno_p): New static inline.
17719 (save_gprs): Don't tell unwinder when a global register is saved.
17720 (s390_emit_epilogue): Emit needed epilogue unwind info.
17722 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
17724 * dwarf2out.c (deferred_asm_name): New.
17725 (add_name_and_src_coords_attributes): Defer creation of
17726 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
17728 (move_linkage_attr): New.
17729 (dwarf2out_finish): Revisit deferrals and emit attributes at the
17732 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
17734 * tree-nested.c (finalize_nesting_tree_1): Declare the
17735 frame_decl in the binding tree.
17737 2009-06-04 Cary Coutant <ccoutant@google.com>
17739 * basic-block.h (struct basic_block_def): Add discriminator field.
17740 * dbxout.c (dbxout_source_line): Add new parameter. Change all
17742 * debug.c (do_nothing_debug_hooks): Add additional entry.
17743 (debug_nothing_int_charstar_int): New function.
17744 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
17745 (debug_nothing_int_charstar_int): New declaration.
17746 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
17747 discriminator value in .loc directive.
17748 * final.c (last_discriminator): New variable.
17749 (discriminator): New variable.
17750 (final_start_function): Initialize above variables, pass current
17751 discriminator to debug hook.
17752 (notice_source_line): Check for discriminator change.
17753 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
17754 * sdbout.c (sdbout_source_line): New parameter.
17755 * tree-cfg.c (struct locus_discrim_map): New structure type.
17756 (discriminator_per_locus): New hash table.
17757 (build_gimple_cfg): Allocate and free discriminator hash table.
17758 (make_edges): Call assign_discriminator.
17759 (locus_map_hash): New function.
17760 (locus_map_eq): New function.
17761 (next_discriminator_for_locus): New function.
17762 (same_line_p): New function.
17763 (assign_discriminator): New function.
17764 (make_cond_expr_edges): Call assign_discriminator.
17765 (make_gimple_switch_edges): Likewise.
17766 (first_non_label_stmt): New function.
17767 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
17769 * xcoffout.c (xcoffout_source_line): Add new parameter.
17771 * configure.ac (gcc_cv_as_discriminator): New configury check for
17772 gas support for discriminator.
17773 * configure: Regenerate.
17774 * config.in: Regenerate.
17776 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17778 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
17779 val after checking for integers.
17781 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
17783 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
17785 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
17786 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
17787 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
17788 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
17789 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
17790 X64_SSE_REGPARM_MAX.
17791 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
17792 X64_SSE_REGPARM_MAX.
17794 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
17796 * gcc.c (report_times_to_file): New.
17797 (execute): Implement it.
17798 (process_command): Support -time=.
17799 * doc/invoke.texi: Document it.
17801 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
17803 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
17804 that have value exprs.
17806 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
17808 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
17809 declarations for constants until...
17810 (dw2_output_indirect_constant_1): ... this point.
17812 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
17815 * arm.md (arm_addsi3): Don't try to split an add with an
17816 eliminable register until after reload has completed.
17818 2009-06-03 Ian Lance Taylor <iant@google.com>
17820 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
17821 * genattrtab.c (write_length_unit_log): Likewise.
17822 * genchecksum.c (dosum): Likewise.
17823 * gengtype.c (write_rtx_next): Likewise.
17824 (finish_root_table, write_roots): Likewise.
17825 * gimple.c (gimple_ops_offset_): Likewise.
17826 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
17827 * config/arc/arc.c (arc_attribute_table): Likewise.
17828 * config/arm/arm.c (arm_attribute_table): Likewise.
17829 * config/avr/avr.c (avr_attribute_table): Likewise.
17830 * config/crx/crx.c (crx_attribute_table): Likewise.
17831 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
17832 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
17833 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
17834 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
17835 * config/sh/sh.c (sh_attribute_table): Likewise.
17836 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
17837 * config/spu/spu.c (spu_attribute_table): Likewise.
17838 * config/v850/v850.c (v850_attribute_table): Likewise.
17840 * config/alpha/alpha.c (vms_attribute_table): Make static.
17841 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
17842 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
17843 * config/mips/mips.c (mips_attribute_table): Likewise.
17845 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
17847 (cc1-checksum.o): Likewise.
17849 2009-06-03 Steve Ellcey <sje@cup.hp.com>
17851 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
17853 2009-06-03 Jakub Jelinek <jakub@redhat.com>
17855 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
17856 insn if it is changing sp. Use gen_add3_insn instead of
17857 conditionally gen_addsi3 and gen_adddi3.
17858 (offset_below_red_zone_p): New static inline function.
17859 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
17860 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
17861 * config/rs6000/ppc-asm.h: Include auto-host.h.
17862 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
17863 CFI_RESTORE): Define.
17864 * config/rs6000/crtresxgpr.asm: Add unwind info.
17865 * config/rs6000/crtresxfpr.asm: Likewise.
17866 * config/rs6000/crtresgpr.asm: Likewise.
17867 * config/rs6000/crtresfpr.asm: Likewise.
17868 * config/rs6000/crtsavgpr.asm: Likewise.
17869 * config/rs6000/crtsavfpr.asm: Likewise.
17871 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
17872 argument of DWARF2_FRAME_REG_OUT macros.
17874 2009-06-03 Julian Brown <julian@codesourcery.com>
17876 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
17877 words or less (including TImode) in core registers.
17879 2009-06-03 Richard Guenther <rguenther@suse.de>
17881 PR middle-end/40328
17882 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
17884 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
17886 * statistics.c (statistics_counter_event): Do not record event
17887 in pass dump if its number == -1.
17888 (curr_statistics_hash): Add assert that we never get passes
17889 with static number == -1.
17891 2009-06-03 Richard Guenther <rguenther@suse.de>
17892 Andrey Belevantsev <abel@ispras.ru>
17894 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
17895 non-BLKmode arrays addressable.
17897 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
17899 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
17900 * config/m68k/m68k.h: ... here.
17902 2009-06-03 Martin Jambor <mjambor@suse.cz>
17904 PR tree-optimization/40323
17905 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
17908 2009-06-03 Richard Guenther <rguenther@suse.de>
17910 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
17913 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
17915 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
17916 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
17917 JUMP_TABLE_DATA_P where applicable.
17918 * config/sh/sh.c: Ditto.
17919 * config/sh/sh.h: Ditto.
17920 * config/sh/sh.md: Ditto.
17921 * config/sh/symbian.c: Ditto.
17923 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
17925 * config/i386/driver-i386.c (describe_cache): Optimize
17926 concatenation of strings. Use snprintf instead of sprintf.
17927 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
17928 target when not compiling with GCC.
17930 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
17932 * config/sh/sh.c: Revert last change.
17933 (sh_expand_epilogue): Emit a blockage insn before the frame
17934 pointer adjustment unconditionally.
17936 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17938 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
17939 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
17940 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
17941 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
17942 to COLLECT_GCC_OPTIONS.
17944 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17946 * collect2.c (target_system_root): New variable.
17947 (main): Handle --sysroot=.
17948 (ignore_library): Strip the sysroot from the library path.
17950 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17952 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
17953 (collect2.o): Depend on collect2-aix.h.
17954 (collect2-aix.o): New rule.
17955 * collect2-aix.h: New file.
17956 * collect2-aix.c: Likewise.
17957 * collect2.c: Include collect2-aix.h. Don't undefine
17958 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
17959 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
17960 Use TARGET_AIX_VERSION instead of _AIX51.
17961 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
17962 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
17963 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
17964 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
17965 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
17967 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17969 * collect2.c (ignore_library): Avoid premature post-increment
17970 and null deference.
17972 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17974 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
17975 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
17976 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
17977 CROSS_DIRECTORY_STRUCTURE too.
17978 (LINK_LIBG_SPEC): Likewise.
17979 (LIB_SPEC): Add %R to sysroot paths.
17980 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
17981 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
17982 * config/rs6000/aix51.h: As for aix43.h.
17983 * config/rs6000/aix52.h: Likewise.
17984 * config/rs6000/aix53.h: Likewise.
17985 * config/rs6000/aix61.h: Likewise.
17986 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
17987 to the beginning of sysroot paths.
17989 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
17991 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
17992 INSN_LISTs that are out of the REG_NOTE range.
17994 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
17996 * loop-unroll.c (struct iv_to_split): Add pointer to next.
17997 (struct var_to_expand): Likewise.
17998 (struct opt_info): Add head and tail for linked lists of the above.
17999 (analyze_insn_to_expand_var): Initialize next.
18000 (analyze_iv_to_split_insn): Likewise.
18001 (analyze_insns_in_loop): Create linked lists.
18002 (allocate_basic_variable): Simplify for use without hash table.
18003 (insert_var_expansion_initialization): Likewise, make it type-safer.
18004 (combine_var_copies_in_loop_exit): Likewise.
18005 (apply_opt_in_copies): Walk lists rather than hash tables.
18006 (release_var_copies): Simplified and inlined by hand into...
18007 (free_opt_info): ... this function.
18009 2009-06-02 Richard Guenther <rguenther@suse.de>
18011 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
18014 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18016 * cfgexpand.c (gimple_expand_cfg): Discard the source location
18017 only for builtins that are not overridden.
18019 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18021 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
18024 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18026 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
18028 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18030 * combine.c (move_deaths): Compare LUIDs within the same BB only.
18032 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
18034 * common.opt (fdump-unnumbered-links): New.
18035 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
18036 * print-rtl.c (flag_dump_unnumbered_links): New.
18037 (print_rtx): Test it.
18039 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
18041 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
18042 push/pop multiple to 8-byte alignment.
18044 2009-06-01 Jakub Jelinek <jakub@redhat.com>
18046 * config/i386/i386.c (queued_cfa_restores): New static variable.
18047 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
18049 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
18050 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
18051 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
18052 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
18053 note unconditionally.
18054 (ix86_emit_restore_regs_using_mov): Likewise.
18055 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18056 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
18057 it through to ix86_emit_restore_reg_using_pop.
18058 (ix86_emit_leave): Add RED_OFFSET argument. Call
18059 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
18060 instead of adding REG_CFA_OFFSET note unconditionally.
18061 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
18062 the above functions. Call ix86_add_queued_cfa_restore_notes when
18065 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
18066 force output of the label even for dwarf2out_do_cfi_asm.
18067 (add_fde_cfi): If -g2 and above and cfi might change CFA,
18068 force creation of CFI label and chain DW_CFA_set_loc jumping to it
18069 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
18071 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
18072 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
18073 dwarf2out_cfi_label callers.
18074 * tree.h (dwarf2out_cfi_label): Adjust prototype.
18075 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
18076 Adjust dwarf2out_cfi_label callers.
18077 * config/vax/vax.c (vax_output_function_prologue): Likewise.
18079 * config/i386/i386.h (struct machine_cfa_state,
18080 struct machine_function): Guard with ifndef USED_FOR_TARGET
18081 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
18084 * emutls.c (__emutls_get_address): Change arr->size to mean number
18085 of allocated arr->data entries instead of # of slots + 1.
18087 PR middle-end/40316
18088 * recog.c (peep2_reinit_state): New function.
18089 (peephole2_init_state): Use it at the end of a basic block and also
18090 when seeing a RTX_FRAME_RELATED_P insn.
18092 2009-06-01 Steve Ellcey <sje@cup.hp.com>
18094 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
18095 fixuns_truncrfdi2): New.
18096 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
18097 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
18098 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
18099 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
18100 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
18101 *recip_approx): Remove.
18102 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
18103 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
18104 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
18106 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
18109 2009-06-01 Ian Lance Taylor <iant@google.com>
18111 * attribs.c (register_attribute): Use CONST_CAST.
18112 * collect2.c (main): Use CONST_CAST2.
18113 (scan_prog_file): Likewise.
18114 * gcc.c (process_command, main): Likewise.
18115 * toplev.c (toplev_main): Likewise.
18117 * c-typeck.c (handle_warn_cast_qual): New static function,
18118 partially broken out of build_c_cast.
18119 (build_c_cast): Call handle_warn_cast_qual.
18120 * doc/invoke.texi (Warning Options): Document new effect of
18123 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
18125 * diagnostic.c (diagnostic_build_prefix): Always print columns.
18126 (diagnostic_report_current_module): Print columns.
18127 * common.opt (flag_show_column): Enable by default.
18129 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
18131 * alias.c (find_base_term): Check for NULL term before returning.
18133 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18135 Revert due to PR40320:
18136 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18137 * calls.c (emit_library_call_value_1): Don't force_operand for move
18140 2009-06-01 Olivier Hainque <hainque@adacore.com>
18141 Eric Botcazou <ebotcazou@adacore.com>
18143 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
18144 to be processed as a bitfield for constructor output purposes.
18145 * output.h (initializer_constant_valid_for_bitfield_p): Declare
18147 * varasm.c (oc_local_state): New type, output_constructor
18148 local state to support communication with helpers.
18149 (oc_outer_state): New type, output_constructor outer state of
18150 relevance in recursive calls.
18151 (output_constructor_array_range): New output_constructor helper,
18152 extracted code for an array range element.
18153 (output_constructor_regular_field): New output_constructor helper,
18154 extracted code for an element that is not a bitfield.
18155 (output_constructor_bitfield): New output_constructor helper,
18156 extracted code for a bitfield element. Accept an OUTER state
18157 argument for recursive processing. Recurse on record or array
18158 CONSTRUCTOR values, possibly past noop conversions.
18159 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
18160 VALUE is a valid constant-valued expression for use in a static
18161 bit-field initializer.
18162 (output_constructor): Rework to use helpers. Accept and honor an
18163 OUTER state argument for recursive calls. Return total size. Be
18164 prepared for nested constructors initializing bitfields.
18165 (output_constant): Feed OUTER in calls to output_constructor.
18167 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
18169 * calls.c (emit_library_call_value_1): Don't force_operand for move
18172 2009-06-01 Nick Clifton <nickc@redhat.com>
18174 * doc/invoke.texi (IA-64 Options): Fix typo.
18176 2009-06-01 Ira Rosen <irar@il.ibm.com>
18178 PR tree-optimization/39129
18179 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
18181 (vect_do_peeling_for_loop_bound): Use
18182 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
18183 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
18184 (vect_loop_versioning): Likewise.
18185 (vect_create_cond_for_alias_checks): Fix indentation.
18186 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
18188 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
18189 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
18190 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
18191 "control flow in loop".
18192 (vect_estimate_min_profitable_iters): Use
18193 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
18194 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
18195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
18196 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
18197 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
18198 statement belongs to a group of strided accesses with the exact code
18200 (vectorizable_load): Likewise.
18201 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
18202 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
18204 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
18206 * config/freebsd-stdint.h: New file.
18207 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
18208 Add freebsd-stdint.h to tm_file.
18210 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
18212 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
18213 (thumb2_extendhidi2): Likewise.
18215 2009-05-31 Ian Lance Taylor <iant@google.com>
18217 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
18219 2009-05-31 Ian Lance Taylor <iant@google.com>
18221 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
18222 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
18223 (ipa-reference.o): Depend upon gt-ipa-reference.h.
18225 2009-05-31 Jason Merrill <jason@redhat.com>
18227 * tree-pretty-print.c (print_call_name): Take the callee, not the
18228 call itself. Make non-static. Use dump_function_name for functions.
18229 (dump_generic_node): Adjust.
18230 * diagnostic.h: Declare print_call_name.
18231 * gimple-pretty-print.c (dump_gimple_call): Use it.
18233 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
18235 * config/sh/sh.md (ashldi3_std): New define_expand.
18238 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
18241 * config/sh/sh.c: Include debug.h.
18242 (sh_expand_epilogue): Emit a blockage insn before the frame
18243 pointer adjustment also when dwarf2out_do_frame returns true.
18245 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
18247 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
18248 (thumb2_extendqidi2): New pattern.
18250 2009-05-31 Ira Rosen <irar@il.ibm.com>
18252 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
18253 mark phis for renaming.
18254 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
18255 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
18256 Call mark_sym_for_renaming.
18257 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
18258 * tree-vect-loop.c (vect_transform_loop): Remove
18259 vect_memsyms_to_rename initialization and a call to
18260 mark_set_for_renaming.
18262 2009-05-31 Jakub Jelinek <jakub@redhat.com>
18264 PR middle-end/40304
18265 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
18266 frame related even if !set_cfa && style < 0.
18268 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
18270 * config/i386/mingw-tls.c: New file.
18271 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
18272 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
18273 defining _WIN32 but not __CYGWIN__.
18275 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18277 * configure.ac: Add MPC support.
18279 * config.in, configure: Regenerate.
18281 2009-05-29 Richard Henderson <rth@redhat.com>
18283 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
18284 NOTE_INSN_BASIC_BLOCK.
18285 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
18286 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
18287 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
18289 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
18291 (add_cfi): Disable check redefining cfa away from drap.
18292 (lookup_cfa_1): Add remember argument; handle remember/restore.
18293 (lookup_cfa): Pass remember argument.
18294 (cfa_remember): New.
18295 (compute_barrier_args_size_1): Remove sibcall check.
18296 (dwarf2out_frame_debug_def_cfa): New.
18297 (dwarf2out_frame_debug_adjust_cfa): New.
18298 (dwarf2out_frame_debug_cfa_offset): New.
18299 (dwarf2out_frame_debug_cfa_register): New.
18300 (dwarf2out_frame_debug_cfa_restore): New.
18301 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
18302 (dwarf2out_begin_epilogue): New.
18303 (dwarf2out_frame_debug_restore_state): New.
18304 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
18305 DW_CFA_restore_state.
18306 (output_cfi_directive): Likewise.
18307 (convert_cfa_to_fb_loc_list): Likewise.
18308 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
18309 * dwarf2out.h: Update.
18310 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
18311 (copy_insn_1): Early out for null.
18312 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
18313 and dwarf2out_frame_debug_restore_state.
18314 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
18315 (prologue_insn_hash, epilogue_insn_hash): New.
18316 (free_after_compilation): Adjust freeing accordingly.
18317 (record_insns): Create hash table if needed; push insns into
18318 hash instead of array.
18319 (maybe_copy_epilogue_insn): New.
18320 (contains): Search hash table instead of array.
18321 (sibcall_epilogue_contains): Remove.
18322 (thread_prologue_and_epilogue_insns): Split eh_return insns
18323 and mark them as epilogues.
18324 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
18325 scanning in terms of basic blocks.
18326 * insn-notes.def (CFA_RESTORE_STATE): New.
18327 * jump.c (returnjump_p_1): Accept EH_RETURN.
18328 (eh_returnjump_p_1, eh_returnjump_p): New.
18329 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
18330 CFA_REGISTER, CFA_RESTORE): New.
18331 * rtl.def (EH_RETURN): New.
18332 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
18334 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
18335 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
18337 * config/i386/i386.c (gen_push): Update cfa state.
18338 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
18339 add a CFA_ADJUST_CFA note.
18340 (ix86_dwarf_handle_frame_unspec): Remove.
18341 (ix86_expand_prologue): Update cfa state.
18342 (ix86_emit_restore_reg_using_pop): New.
18343 (ix86_emit_restore_regs_using_pop): New.
18344 (ix86_emit_leave): New.
18345 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
18346 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
18347 * config/i386/i386.h (struct machine_cfa_state): New.
18348 (ix86_cfa_state): New.
18349 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
18350 (eh_return_internal): Merge from eh_return_<mode>,
18351 use eh_return rtx, split w/ epilogue.
18353 2009-05-29 Ian Lance Taylor <iant@google.com>
18355 * builtins.c (validate_gimple_arglist): Don't use va_arg with
18357 * calls.c (emit_library_call_value_1): Likewise.
18359 * c-typeck.c (c_build_va_arg): New function.
18360 * c-tree.h (c_build_va_arg): Declare.
18361 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
18362 instead of build_va_arg.
18364 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
18366 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
18367 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
18368 (ptr_difference_cost): Use affine combinations to compute it.
18369 (difference_cost): Likewise.
18370 (get_computation_cost_at): Compute more accurate cost for addresses
18371 if the ratio is a multiplier allowed in addresses.
18372 For non-addresses, consider that an additional offset or symbol is
18375 2009-05-29 Jakub Jelinek <jakub@redhat.com>
18377 * config/i386/i386.c (ix86_decompose_address): Avoid useless
18378 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
18380 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
18381 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
18382 (prefix_rex): For UNIT_MMX don't imply the prefix by default
18384 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
18385 to 1 for TYPE_SSE{IADD1,CVT1}.
18386 (prefix_vex_imm8): Removed.
18387 (length_vex): Only pass 1 as second argument to
18388 ix86_attr_length_vex_default if prefix_extra is 0.
18389 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
18390 (length): For prefix vex computation use length_immediate
18391 attribute instead of prefix_vex_imm8.
18392 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
18393 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
18394 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
18395 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
18396 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
18397 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
18398 a space in between the operands.
18399 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
18400 if one operand is 0xff and the other one si, di, bp or sp.
18401 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
18402 other one si, di, bp or sp.
18403 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
18404 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
18405 type and mode attributes.
18406 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
18407 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
18408 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
18409 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
18410 prefix_data16 attribute iff MODE_DF.
18411 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
18412 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
18413 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
18414 constm128_operand in length_immediate computation.
18415 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
18416 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
18417 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
18418 length_immediate attribute to 1.
18419 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
18420 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
18421 for certain alternatives.
18422 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
18423 prefix_data16 attribute if MODE_V1DF.
18424 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
18425 length_immediate to 1.
18426 (set_got_rex64, set_rip_rex64): Remove length attribute, set
18427 length_address to 4, set mode attribute to MODE_DI.
18428 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
18429 (fxam<mode>2_i387): Set length attribute to 4.
18430 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
18431 *prefetch_3dnow_rex): Override length_address attribute.
18432 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
18434 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
18435 (constm128_operand): Removed.
18436 * config/i386/i386.c (memory_address_length): For
18437 disp && !index && !base in 64-bit mode account for SIB byte if
18438 print_operand_address can't optimize disp32 into disp32(%rip)
18439 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
18440 for fs: or gs: segment.
18441 (ix86_attr_length_immediate_default): When checking if shortform
18442 is possible, truncate immediate to the length of the non-shortened
18444 (ix86_attr_length_address_default): Ignore MEM_P operands
18446 (ix86_attr_length_vex_default): Only check for DImode on
18447 GENERAL_REG_P operands.
18448 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
18449 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
18450 (sse_cvttps2pi): Clear prefix_rep attribute.
18451 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
18453 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
18454 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
18455 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
18456 iff operand 2 is const_int_operand.
18457 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
18458 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
18459 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
18461 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
18463 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
18464 prefix_data16 attribute for movlpd and movhpd instructions.
18465 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
18466 length_immediate for shufpd instruction.
18467 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
18468 (avx_cmpp<avxmodesuffixf2c><mode>3,
18469 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
18470 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
18471 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
18472 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
18473 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
18474 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
18475 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
18476 prefix_data16 attribute for the first alternative to 1.
18477 (*avx_loadlps): Override length_immediate for the first alternative.
18478 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
18479 attributes for second alternative.
18480 (*vec_concatv2sf_sse4_1): Override length_immediate and
18481 prefix_data16 attributes for second alternative.
18482 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
18483 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
18484 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
18485 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
18486 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
18487 prefix_data16 and length_immediate to 1.
18488 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
18490 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
18491 prefix_extra attribute for variants that don't have 0f prefix alone.
18492 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
18493 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
18494 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
18495 *sse4_1_pextrd): Set length_immediate to 1.
18496 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
18497 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
18499 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
18500 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
18501 length_immediate to 1 for second alternative.
18502 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
18503 prefix_extra and length_immediate attributes for the first
18505 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
18507 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
18508 to 1 for the first and third alternative.
18509 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
18511 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
18513 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
18515 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
18516 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
18517 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
18518 *avx_psign<mode>3): Set prefix_extra attribute to 1.
18519 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
18520 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
18521 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
18522 ssse3_psign<mode>3): Override prefix_rex attribute.
18523 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
18524 (ssse3_palignrti): Override length_immediate to 1.
18525 (ssse3_palignrdi): Override length_immediate to 1, override
18526 prefix_rex attribute.
18527 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
18528 (sse4a_extrqi): Override length_immediate to 2.
18529 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
18530 (sse4a_insertq): Override prefix_data16 to 0.
18531 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
18532 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
18533 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
18534 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
18535 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
18536 and length_immediate to 1.
18537 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
18538 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
18539 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
18540 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
18541 and length_immediate to 1.
18542 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
18543 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
18544 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
18545 avx_ptest256): Override prefix_extra to 1.
18546 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
18547 Override prefix_data16 and length_immediate to 1.
18548 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
18549 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
18550 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
18551 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
18552 prefix_data16 to 0 and prefix_extra to 2.
18553 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
18554 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
18556 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
18557 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
18558 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
18559 and prefix_extra to 2.
18560 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
18561 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
18562 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
18563 avx_vpermilvar<mode>3,
18564 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
18565 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
18566 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
18567 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
18568 Override prefix_extra to 1.
18569 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
18570 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
18571 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
18572 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
18573 prefix_extra and length_immediate to 1.
18574 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
18576 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
18577 to 1 for the first alternative.
18578 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
18579 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
18581 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
18582 *movv2sf_internal_avx, *movv2sf_internal): Override
18583 prefix_rep attribute for certain alternatives.
18584 (*mov<mode>_internal): Override prefix_rep or prefix_data16
18585 attributes for certain alternatives.
18586 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
18587 attributes for certain alternatives.
18588 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
18589 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
18590 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
18591 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
18592 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
18593 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
18594 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
18595 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
18596 length_immediate to 1 if operand 2 is const_int_operand.
18597 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
18598 *vec_extractv2si_1): Set length_immediate attribute to 1.
18599 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
18600 using old 3DNOW insn rather than SSE/3DNOW_A.
18601 (mmx_emms, mmx_femms): Clear modrm attribute.
18603 2009-05-29 Martin Jambor <mjambor@suse.cz>
18605 * tree-sra.c: New implementation of SRA.
18607 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
18608 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
18609 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
18610 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
18611 (SRA_MAX_STRUCTURE_COUNT): Removed.
18612 (SRA_FIELD_STRUCTURE_RATIO): Removed.
18613 * doc/invoke.texi (sra-max-structure-size): Removed.
18614 (sra-field-structure-ratio): Removed.
18616 2009-05-29 Jakub Jelinek <jakub@redhat.com>
18618 PR middle-end/40291
18619 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
18622 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
18624 PR rtl-optimization/40101
18625 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
18626 seqno. Adjust comment.
18627 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
18628 inserting bookkeeping before a jump, the jump is not scheduled.
18629 When no positive seqno found, provide a value. Add comment.
18631 2009-05-29 Richard Guenther <rguenther@suse.de>
18633 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
18634 short-cutting on the first component.
18636 2009-05-29 Jakub Jelinek <jakub@redhat.com>
18638 PR middle-end/39958
18639 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
18640 for trees other than decls/types.
18642 2009-05-29 Richard Guenther <rguenther@suse.de>
18644 * tree-ssa-operands.c (get_expr_operands): Do not handle
18645 INDIRECT_REFs in the handled-component case. Remove
18646 unused get_ref_base_and_extent case.
18647 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
18648 tree_low_cst and host_integerp where possible.
18649 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
18650 codes for equivalence.
18651 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
18653 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
18655 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
18656 to tmake_file for i[34567]86-*-cygwin*.
18658 2009-05-29 Jakub Jelinek <jakub@redhat.com>
18661 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
18662 (altivec_categorize_keyword, init_vector_keywords,
18663 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
18666 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
18668 * tree.c (handle_dll_attribute): Check if node is
18669 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
18671 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
18673 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
18675 (thumb2_zero_extendqidi2): Likewise.
18677 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
18679 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
18680 instead of gen_movrt.
18681 * config/sh/sh.md (movrt): Remove.
18683 2009-05-28 Steve Ellcey <sje@cup.hp.com>
18685 * doc/invoke.texi (IA-64 Options):
18686 Add -msdata, -mfused-madd, -mno-inline-float-divide,
18687 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
18688 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
18689 -msched-prefer-non-control-spec-insns,
18690 -msched-stop-bits-after-every-cycle,
18691 -msched-count-spec-in-critical-path,
18692 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
18693 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
18694 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
18695 and -msched-spec-verbose.
18697 2009-05-28 Joseph Myers <joseph@codesourcery.com>
18699 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
18700 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
18702 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
18704 2009-05-28 Richard Guenther <rguenther@suse.de>
18706 * tree-ssa-alias.c (ao_ref_init): New function.
18707 (ao_ref_base): Likewise.
18708 (ao_ref_base_alias_set): Likewise.
18709 (ao_ref_alias_set): Likewise.
18710 (refs_may_alias_p_1): Change signature.
18711 (refs_may_alias_p): Adjust.
18712 (refs_anti_dependent_p): Likewise.
18713 (refs_output_dependent_p): Likewise.
18714 (call_may_clobber_ref_p_1): Change signature.
18715 (call_may_clobber_ref_p): Adjust.
18716 (stmt_may_clobber_ref_p_1): New function split out from ...
18717 (stmt_may_clobber_ref_p): ... here.
18718 (maybe_skip_until): Adjust signature.
18719 (get_continuation_for_phi): Likewise.
18720 (walk_non_aliased_vuses): Likewise.
18721 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
18722 (ao_ref_init): Declare.
18723 (ao_ref_base): Likewise.
18724 (ao_ref_alias_set): Likewise.
18725 (stmt_may_clobber_ref_p_1): Likewise.
18726 (walk_non_aliased_vuses): Adjust.
18727 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
18728 (get_ref_from_reference_ops): remove.
18729 (vn_reference_lookup_2): Adjust signature.
18730 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
18731 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
18732 (vn_reference_lookup): Adjust.
18733 (vn_reference_insert): Likewise.
18734 (vn_reference_insert_pieces): Adjust signature.
18735 (visit_reference_op_call): Adjust.
18736 * tree-ssa-pre.c (get_expr_type): Simplify.
18737 (phi_translate_1): Adjust.
18738 (compute_avail): Likewise.
18739 (translate_vuse_through_block): Do not re-build trees.
18740 (value_dies_in_block_x): Likewise.
18741 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
18743 (vn_reference_lookup_pieces): Adjust declaration.
18744 (vn_reference_insert_pieces): Likewise.
18746 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
18748 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
18749 with checking disabled.
18751 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
18755 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
18756 macro definition for support of three-operand format aligned
18757 .comm directive in assembler on cygwin/pe/mingw target OS.
18758 * configure: Regenerate.
18759 * config.h: Regenerate.
18761 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
18762 aligned form of .comm directive if -mpe-aligned-commons is in effect.
18763 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
18765 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
18766 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
18768 2009-05-28 Ira Rosen <irar@il.ibm.com>
18770 PR tree-optimization/40254
18771 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
18772 in analysis of basic blocks.
18774 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
18776 PR middle-end/33699
18777 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
18778 * target-def.h (TARGET_CONST_ANCHOR): New macro.
18779 (TARGET_INITIALIZER): Use it.
18780 * cse.c (CHEAPER): Move it up to the other macros.
18781 (insert): Rename this ...
18782 (insert_with_costs): ... to this. Add cost parameters. Update
18784 (insert): New function. Call insert_with_costs.
18785 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
18786 find_reg_offset_for_const, try_const_anchors): New functions.
18787 (cse_insn): Call try_const_anchors. Adjust cost of src_related
18788 when using a const-anchor. Call insert_const_anchors.
18789 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
18790 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
18792 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
18794 * tree-inline.c (remap_decls): Enable nonlocalized variables
18795 when not optimizing.
18797 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
18799 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
18800 Simplify other tests involving optimize.
18802 2009-05-27 Tom Tromey <tromey@redhat.com>
18804 * unwind-dw2.c (_Unwind_DebugHook): New function.
18805 (uw_install_context): Call _Unwind_DebugHook.
18807 2009-05-27 Tom Tromey <tromey@redhat.com>
18809 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
18811 2009-05-27 Ian Lance Taylor <iant@google.com>
18813 * Makefile.in (LINKER, LINKER_FLAGS): Define.
18814 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
18815 (ALL_LINKERFLAGS): Define.
18816 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
18817 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
18818 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
18819 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
18820 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
18821 $(LINKER_FOR_BUILD).
18822 (build/gcov-iov$(build_exeext)): Likewise.
18824 2009-05-27 Julian Brown <julian@codesourcery.com>
18826 * gcse.c (target.h): Include.
18827 (can_assign_to_reg_without_clobbers_p): Check that the target allows
18828 copy of argument to a pseudo register.
18830 2009-05-27 Diego Novillo <dnovillo@google.com>
18832 * tree-ssa-live.c (dump_scope_block): Document arguments.
18833 (dump_scope_blocks): Document.
18834 (debug_scope_blocks): New.
18835 * tree-flow.h (debug_scope_blocks): Declare.
18837 2009-05-21 Denis Chertykov <denisc@overta.ru>
18839 * doc/contrib.texi (Contributors): Add myself to the list.
18841 2009-05-27 Olivier Hainque <hainque@adacore.com>
18843 * expr.c (target_align): New function. Alignment the TARGET of an
18844 assignment may be assume to have.
18845 (highest_pow2_factor_for_target): Use it instead of relying on
18846 immediate tree attributes of TARGET, not necessarily honored when
18847 intermediate bitfields are involved.
18849 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
18852 * config/i386/driver-i386.c (host_detect_local_cpu): Support
18853 AVX, SSE4, AES, PCLMUL and POPCNT.
18855 2009-05-27 Diego Novillo <dnovillo@google.com>
18857 * tree-pretty-print.c (dump_location): New.
18858 (dump_generic_node): Call it.
18859 Factor code to handle BLOCK nodes ...
18860 (dump_block_node): ... here.
18862 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
18864 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
18866 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
18868 * gcc-plugin.h: Include config.h and system.h.
18869 (IN_GCC): Define if not defined.
18871 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
18873 PR middle-end/40249
18874 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
18877 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
18879 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
18881 * config/m32r/m32r.h: Ditto.
18882 * config/m32r/m32r.md: Ditto.
18883 * config/m32r/predicates.md: Ditto.
18885 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
18887 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
18889 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
18892 (Loading plugins): typo.
18893 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
18894 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
18895 (Interacting with the GCC Garbage Collector): Added new section.
18896 (Giving information about a plugin): Added new section for
18898 * ggc.h (ggc_register_root_tab): Added declaration.
18899 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
18900 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
18901 (register_callback): Improved comment in declaration.
18902 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
18903 (extra_root_vec) Added static variable for dynamic roots registration.
18904 (ggc_register_root_tab) Added new routine.
18905 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
18906 PLUGIN_GGC_MARKING event.
18907 * ggc-zone.c: Include plugin.h.
18908 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18909 * ggc-page.c: Include plugin.h.
18910 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18911 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
18912 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
18913 (register_callback): check lack of callbacks for
18914 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
18915 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
18916 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
18917 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
18918 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
18919 dependency on plugin.h.
18920 (plugin.o): Added dependency on ggc.h...
18922 2009-05-26 Richard Guenther <rguenther@suse.de>
18924 PR middle-end/40248
18926 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18927 with mismatched comparison modes.
18929 * expr.c (expand_expr_real_1): Expand the operand of a
18930 VIEW_CONVERT_EXPR in its natural mode.
18932 2009-05-26 Ian Lance Taylor <iant@google.com>
18934 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
18935 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
18936 (ALL_COMPILERFLAGS): Define.
18937 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
18938 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
18939 (collect2$(exeext), collect2.o): Likewise.
18940 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
18941 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
18942 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
18943 (libbackend.o, intl.o, cppdefault.o): Likewise.
18944 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
18945 (build/%.o): Use $(COMPILER_FOR_BUILD).
18946 (build/gen%$(build_exeext)): Likewise.
18947 (build/gcov-iov$(build_exeext)): LIkewise.
18948 * config/t-darwin (darwin.o): Use $(COMPILER).
18949 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
18950 * config/t-sol2 (sol2-c.o): Likewise.
18951 (sol2.o): Likewise.
18952 * config/t-vxworks (vxworks.o): Likewise.
18953 * config/x-darwin (host-darwin.o): Likewise.
18954 * config/x-hpux (host-hpux.o): Likewise.
18955 * config/x-linux (host-linux.o): Likewise.
18956 * config/x-solaris (host-solaris.o): Likewise.
18957 * config/alpha/x-alpha (driver-alpha.o): Likewise.
18958 * config/arm/t-arm (arm-c.o): Likewise.
18959 * config/arm/t-pe (pe.o): Likewise.
18960 * config/arm/t-wince-pe (pe.o): Likewise.
18961 * config/i386/t-cygming (winnt.o): Likewise.
18962 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
18963 * config/i386/t-cygwin (cygwin1.o): Likewise.
18964 (cygwin2.o): Likewise.
18965 * config/i386/t-i386 (i386-c.o): Likewise.
18966 * config/i386/t-interix (winnt.o): Likewise.
18967 * config/i386/t-netware (netware.o): Likewise.
18968 * config/i386/t-nwld (nwld.o): Likewise.
18969 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
18970 * config/i386/x-i386 (driver-i386.o): Likewise.
18971 * config/i386/x-cygwin (host-cygwin.o): Likewise.
18972 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
18973 * config/ia64/t-ia64 (ia64-c.o): Likewise.
18974 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
18975 * config/mips/x-native (driver-native.o): Likewise.
18976 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
18977 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
18978 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
18979 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
18980 * config/score/t-score-elf (score7.o): Likewise.
18981 (score3.o): Likewise.
18982 * config/sh/t-sh (sh-c.o): Likewise.
18983 * config/sh/t-symbian (sh-c.o): Likewise.
18984 (symbian.o): Likewise.
18985 * config/spu/t-spu-elf (spu-c.o): Likewise.
18986 * config/v850/t-v850 (v850-c.o): Likewise.
18987 * config/v850/t-v850e (v850-c.o): Likewise.
18989 2009-05-26 Richard Guenther <rguenther@suse.de>
18991 PR tree-optimization/40122
18992 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
18993 VECTOR_CSTs if possible.
18994 (fold_gimple_assign): Likewise.
18996 2009-05-26 Richard Guenther <rguenther@suse.de>
18998 PR middle-end/40252
18999 * fold-const.c (fold_binary): Use the correct types for building
19002 2009-05-26 Richard Guenther <rguenther@suse.de>
19004 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
19005 redundant calls to merge_alias_info.
19006 (bump_vector_ptr): Likewise.
19007 * tree-ssa-copy.c (merge_alias_info): Remove.
19008 (replace_exp_1): Remove call to merge_alias_info.
19009 (propagate_tree_value): Likewise.
19010 (fini_copy_prop): Propagate points-to info.
19011 * tree-flow.h (merge_alias_info): Remove.
19013 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
19015 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
19017 2009-05-25 Jan Hubicka <jh@suse.cz>
19019 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19020 * cgraph.h (struct inline_summary): New filed self_wize,
19021 size_inlining_benefit, self_time and time_inlining_benefit.
19022 (struct cgraph_global_info): Replace insns by time ans size fields.
19023 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19024 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19025 (ipcp_update_callgraph): Do not touch function bodies.
19026 * ipa-inline.c: Include except.h
19027 (MAX_TIME): New constant.
19028 (overall_insns): Remove.
19029 (leaf_node_p): New.
19030 (overall_size, max_benefit): New static variables.
19031 (cgraph_estimate_time_after_inlining): New function.
19032 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19033 (cgraph_clone_inlined_nodes): Update size.
19034 (cgraph_mark_inline_edge): Update size.
19035 (cgraph_estimate_growth): Use size info.
19036 (cgraph_check_inline_limits): Check size.
19037 (cgraph_default_inline_p): Likewise.
19038 (cgraph_edge_badness): Compute badness based on benefit and size cost.
19039 (cgraph_decide_recursive_inlining): Check size.
19040 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19042 (cgraph_decide_inlining): Likewise.
19043 (cgraph_decide_inlining_incrementally): Likewise; honor
19044 PARAM_EARLY_INLINING_INSNS.
19045 (likely_eliminated_by_inlining_p): New predicate.
19046 (estimate_function_body_sizes): New function.
19047 (compute_inline_parameters): Use it.
19048 * except.c (must_not_throw_labels): New function.
19049 * except.h (must_not_throw_labels): Declare.
19050 * tree-inline.c (init_inline_once): Kill inlining_weigths
19051 * tree-ssa-structalias.c: Avoid uninitialized warning.
19052 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19053 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19054 (PARAM_INLINE_CALL_COST): Remove.
19055 (PARAM_EARLY_INLINING_INSNS): New.
19057 2009-05-25 Richard Guenther <rguenther@suse.de>
19059 PR tree-optimization/36327
19060 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
19061 callback for reference translation or lookup at the point of may-defs.
19062 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
19063 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
19064 for union COMPONENT_REFs.
19065 (vn_reference_lookup_3): New callback. Lookup from memset
19066 and CONSTRUCTOR assignment, translate through struct copies.
19067 (vn_reference_lookup_pieces): Make sure to not free the
19068 passed operands array. Adjust walk_non_aliased_vuses call.
19069 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
19070 make sure we do not leak memory.
19072 2009-05-25 Richard Guenther <rguenther@suse.de>
19074 * tree-ssa-alias.h (dump_points_to_solution): Declare.
19075 * tree-inline.c (expand_call_inline): Reset the escaped and
19076 callused solutions.
19077 * tree-ssa-structalias.c (pass_build_ealias): New.
19078 * tree-pass.h (pass_build_ealias): Declare.
19079 * passes.c (init_optimization_passes): Add PTA during
19080 early optimizations.
19081 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
19082 and CALLUSED solutions.
19083 (dump_points_to_solution): New function, split out from ...
19084 (dump_points_to_info_for): ... here.
19085 * tree-parloops.c (parallelize_loops): Reset the escaped and
19086 callused solutions.
19088 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19091 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
19092 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
19094 2009-05-25 Ira Rosen <irar@il.ibm.com>
19096 PR tree-optimization/40238
19097 * tree-vect-stmts.c (vect_init_vector): Insert initialization
19098 statements after basic block's labels.
19099 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
19100 to free the allocated memory.
19102 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
19104 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
19105 return address with a USE.
19107 2009-05-24 Richard Guenther <rguenther@suse.de>
19109 PR middle-end/40233
19110 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
19111 array type from the main variant of the inner type.
19113 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19115 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
19116 definition to bool (from int) to un-break build.
19117 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
19119 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
19121 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
19122 discard_stmt_changes): Delete.
19123 * tree-ssa-operands.c (scb_stack): Delete.
19124 (init_ssa_operands): Do not initialize it.
19125 (fini_ssa_operands): Do not free it.
19126 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
19128 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
19129 update_stmt, remove the others. Fix comments.
19130 * tree-dfa.c (optimize_stack_restore): Likewise.
19131 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
19132 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
19133 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
19134 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
19136 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
19137 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
19138 (dom_opt_finalize_block): Likewise, adjusting access to
19140 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
19141 (stmts_to_rescan): Change item type to gimple.
19142 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
19144 2009-05-24 Ira Rosen <irar@il.ibm.com>
19146 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
19147 * tree-pass.h (pass_slp_vectorize): New pass.
19148 * params.h (SLP_MAX_INSNS_IN_BB): Define.
19149 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
19150 * tree-vectorizer.c (timevar.h): Include.
19151 (user_vect_verbosity_level): Declare.
19152 (vect_location): Fix comment.
19153 (vect_set_verbosity_level): Update user_vect_verbosity_level
19154 instead of vect_verbosity_level.
19155 (vect_set_dump_settings): Add an argument. Ignore user defined
19156 verbosity if dump flags require higher level of verbosity. Print to
19157 stderr only for loop vectorization.
19158 (vectorize_loops): Update call to vect_set_dump_settings.
19159 (execute_vect_slp): New function.
19160 (gate_vect_slp): Likewise.
19161 (struct gimple_opt_pass pass_slp_vectorize): New.
19162 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
19163 access its members.
19164 (vec_info_for_bb): New function.
19165 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
19166 (VECTORIZATION_ENABLED): New macro.
19167 (SLP_ENABLED, SLP_DISABLED): Likewise.
19168 (vect_is_simple_use): Add bb_vec_info argument.
19169 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
19170 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
19171 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
19172 vect_schedule_slp, vect_analyze_slp): Likewise.
19173 (vect_analyze_stmt): Add slp_tree argument.
19174 (find_bb_location): Declare.
19175 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
19176 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
19177 (vect_analyze_loop_operations, vect_analyze_loop,
19178 get_initial_def_for_induction, vect_create_epilog_for_reduction,
19179 vect_finalize_reduction, vectorizable_reduction,
19180 vectorizable_live_operation, vect_transform_loop): Likewise.
19181 * tree-data-ref.c (dr_analyze_innermost): Update comment,
19182 skip evolution analysis if analyzing a basic block.
19183 (dr_analyze_indices): Likewise.
19184 (initialize_data_dependence_relation): Skip the test whether the
19185 object is invariant for basic blocks.
19186 (compute_all_dependences): Skip dependence analysis for data
19187 references in basic blocks.
19188 (find_data_references_in_stmt): Don't fail in case of invariant
19189 access in basic block.
19190 (find_data_references_in_bb): New function.
19191 (find_data_references_in_loop): Move code to
19192 find_data_references_in_bb and add a call to it.
19193 (compute_data_dependences_for_bb): New function.
19194 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
19195 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
19197 (vect_analyze_data_ref_dependence): Check for interleaving in case of
19198 unknown dependence in basic block and fail in case of dependence in
19200 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
19201 dependence instances from either loop or basic block vectorization
19203 (vect_compute_data_ref_alignment): Check if it is loop vectorization
19204 before calling nested_in_vect_loop_p.
19205 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
19206 dependence instances from either loop or basic block vectorization
19208 (vect_verify_datarefs_alignment): Likewise.
19209 (vect_enhance_data_refs_alignment): Adjust function calls.
19210 (vect_analyze_data_refs_alignment): Likewise.
19211 (vect_analyze_group_access): Fix printing. Skip different checks if
19212 DR_STEP is 0. Keep strided stores either in loop or basic block
19213 vectorization data structure. Fix indentation.
19214 (vect_analyze_data_ref_access): Fix comments, allow zero step in
19216 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
19217 dependence instances from either loop or basic block vectorization
19219 (vect_analyze_data_refs): Update comment. Call
19220 compute_data_dependences_for_bb to analyze basic blocks.
19221 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
19222 case of loop vectorization. In case of basic block vectorization use
19223 data-ref itself as a base.
19224 (vect_create_data_ref_ptr): In case of basic block vectorization:
19225 don't advance the pointer, add new statements before the current
19226 statement. Adjust function calls.
19227 (vect_supportable_dr_alignment): Support only aligned accesses in
19228 basic block vectorization.
19229 * common.opt (ftree-slp-vectorize): New flag.
19230 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
19231 (vect_pattern_recog_1): Likewise.
19232 * tree-vect-stmts.c (process_use): Likewise.
19233 (vect_init_vector): Add new statements in the beginning of the basic
19234 block in case of basic block SLP.
19235 (vect_get_vec_def_for_operand): Adjust function calls.
19236 (vect_finish_stmt_generation): Likewise.
19237 (vectorizable_call): Add assert that it is loop vectorization, adjust
19239 (vectorizable_conversion, vectorizable_assignment): Likewise.
19240 (vectorizable_operation): In case of basic block SLP, take
19241 vectorization factor from statement's type and skip the relevance
19242 check. Adjust function calls.
19243 (vectorizable_type_demotion): Add assert that it is loop
19244 vectorization, adjust function calls.
19245 (vectorizable_type_promotion): Likewise.
19246 (vectorizable_store): Check for outer loop only in case of loop
19247 vectorization. Adjust function calls. For basic blocks, skip the
19248 relevance check and don't advance pointers.
19249 (vectorizable_load): Likewise.
19250 (vectorizable_condition): Add assert that it is loop vectorization,
19251 adjust function calls.
19252 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
19253 that it is not reduction, get vector type, call only supported
19254 functions, skip loop specific parts.
19255 (vect_transform_stmt): Check for outer loop only in case of loop
19257 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
19258 (vect_is_simple_use): Fix comment, add new argument, fix conditions
19259 for external definition.
19260 * passes.c (pass_slp_vectorize): New pass.
19261 * tree-vect-slp.c (find_bb_location): New function.
19262 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
19263 check for patterns only in loops.
19264 (vect_build_slp_tree): Add argument, adjust function calls, fail in
19265 case of multiple types in basic block SLP.
19266 (vect_mark_slp_stmts_relevant): New function.
19267 (vect_supported_load_permutation_p): Fix comment.
19268 (vect_analyze_slp_instance): Add argument. In case of basic block
19269 SLP, take vectorization factor from statement's type, check that
19270 unrolling factor is 1. Adjust function call. Save SLP instance in
19271 either loop or basic block vectorization structure. Return FALSE,
19273 (vect_analyze_slp): Add argument. Get strided stores groups from
19274 either loop or basic block vectorization structure. Return FALSE
19275 if basic block SLP failed.
19276 (new_bb_vec_info): New function.
19277 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
19278 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
19279 (vect_schedule_slp): Add argument. Get SLP instances from either
19280 loop or basic block vectorization structure. Set vectorization factor
19281 to be 1 for basic block SLP.
19282 (vect_slp_transform_bb): New function.
19283 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
19285 2009-05-23 Mark Mitchell <mark@codesourcery.com>
19287 * final.c (shorten_branches): Do not align labels for jump tables.
19288 (final_scan_insn): Use JUMP_TABLE_DATA_P.
19290 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
19292 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
19293 Remove outdated reference to flow.c and fix nits.
19294 * doc/gccint.texi: Tweak RTL description.
19295 * doc/rtl.texi: Likewise.
19297 2009-05-23 Denis Chertykov <chertykov@gmail.com>
19299 * config/avr/avr.c: Change my email address.
19300 * config/avr/avr.h: Likewise.
19301 * config/avr/avr.md: Likewise.
19302 * config/avr/avr-protos.h: Likewise.
19303 * config/avr/libgcc.S: Likewise.
19305 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
19307 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
19308 (spu_split_load, spu_split_store): Change return type to int.
19309 (spu_split_convert): Declare.
19310 * config/spu/predicates.md (spu_mem_operand): Remove.
19311 (spu_mov_operand): Update.
19312 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
19313 * config/spu/spu.c (regno_aligned_for_load): Remove.
19314 (reg_aligned_for_addr, spu_expand_load): Define.
19315 (spu_expand_extv): Reimplement and handle MEM.
19316 (spu_expand_insv): Handle MEM.
19317 (spu_sched_reorder): Handle insn's with length 0.
19318 (spu_legitimate_address_p): Reimplement.
19319 (store_with_one_insn_p): Return TRUE for any mode with size
19320 larger than 16 bytes.
19321 (address_needs_split): Define.
19322 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
19324 (spu_convert_move): Define.
19325 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
19326 (spu_split_store): Change all MEM's to TImode.
19327 (spu_init_expanders): Preallocate registers that correspond to
19328 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
19330 (spu_split_convert): Define.
19331 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
19332 (_move<mode>, _movdi, _movti): Update predicate and condition.
19333 (load, store): Change to define_split.
19334 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
19336 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
19337 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
19338 define_insn_and_split of lshr<mode>3.
19339 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
19340 (<v>ashr<mode>3_imm): Define.
19341 (extv, extzv, insv): Allow MEM operands.
19342 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
19343 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
19344 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
19345 (_spu_convert2): Change to define_insn_and_split and remove the
19346 corresponding define_peephole2.
19347 (stack_protect_set, stack_protect_test, stack_protect_test_si):
19348 Change predicates to memory_operand.
19350 2009-05-22 Mark Mitchell <mark@codesourcery.com>
19352 * config/arm/thumb2.md: Add 16-bit multiply instructions.
19354 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19356 PR tree-optimization/40219
19357 * tree.c (iterative_hash_expr): Make sure the builtin function is
19358 a normal builtin function and not a front end or back end builtin
19359 before indexing into the built_in_decls array.
19361 2009-05-22 Richard Guenther <rguenther@suse.de>
19363 PR middle-end/38964
19364 * alias.c (write_dependence_p): Do not use TBAA for answering
19365 anti-dependence or output-dependence.
19366 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
19367 (emit_pointer_definition): Remove.
19368 (emit_alias_warning): Likewise.
19369 (find_what_var_points_to): Remove TBAA pruning code.
19370 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
19372 (compute_points_to_sets): Remove code computing the set of
19373 dereferenced pointers.
19374 * tree-data-ref.c (dr_may_alias_p): Properly use the split
19375 oracle for querying anti and output dependencies.
19376 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
19377 if TBAA may be applied.
19378 (refs_anti_dependent_p): New function.
19379 (refs_output_dependent_p): Likewise.
19380 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
19381 (refs_output_dependent_p): Likewise.
19382 * doc/tree-ssa.texi (Memory model): New section.
19383 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
19384 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
19385 * cfgexpand.c (expand_gimple_basic_block): Do not handle
19386 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
19387 * expr.c (expand_expr_real_1): Likewise.
19388 * gimple-low.c (lower_stmt): Likewise.
19389 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
19390 (dump_gimple_cdt): Remove.
19391 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
19392 (gimple_size): Likewise.
19393 (walk_gimple_op): Likewise.
19394 (is_gimple_stmt): Likewise.
19395 (walk_stmt_load_store_addr_ops): Likewise.
19396 (gimple_build_cdt): Remove.
19397 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
19398 * gimple.h (gimple_cdt_new_type): Remove.
19399 (gimple_cdt_new_type_ptr): Likewise.
19400 (gimple_cdt_set_new_type): Likewise.
19401 (gimple_cdt_location): Likewise.
19402 (gimple_cdt_location_ptr): Likewise.
19403 (gimple_cdt_set_location): Likewise.
19404 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
19405 * tree-cfg.c (remove_useless_stmts_1): Do not handle
19406 GIMPLE_CHANGE_DYNAMIC_TYPE.
19407 (verify_types_in_gimple_stmt): Likewise.
19408 * tree-inline.c (estimate_num_insns): Likewise.
19409 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
19410 (copy_decl_to_var): Likewise.
19411 (copy_result_decl_to_var): Likewise.
19412 * tree-pretty-print.c (dump_generic_node): Do not handle
19413 CHANGE_DYNAMIC_TYPE_EXPR.
19414 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19415 * tree-ssa-operands.c (get_expr_operands): Likewise.
19416 * tree-ssa-structalias.c (struct variable_info): Remove
19417 no_tbaa_pruning member.
19418 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
19419 (unify_nodes): Do not copy it.
19420 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
19421 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
19422 (set_uids_in_ptset): Do not check it.
19423 (find_what_var_points_to): Likewise.
19424 (compute_tbaa_pruning): Remove.
19425 (compute_points_to_sets): Do not call it.
19426 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
19427 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
19428 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
19429 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
19430 (DECL_NO_TBAA_P): Likewise.
19431 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
19432 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
19433 (expand_omp_atomic_pipeline): Do not set it.
19434 * print-tree.c (print_node): Do not dump it.
19435 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
19438 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
19441 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
19444 2009-05-22 Mark Mitchell <mark@codesourcery.com>
19446 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
19449 2009-05-22 Ben Elliston <bje@au.ibm.com>
19451 * Makefile.in (bversion.h, s-bversion): New targets.
19452 (TOPLEV_H): Add bversion.h.
19453 * toplev.h: Include "bversion.h".
19454 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
19455 the __format__ attribute only if compiling with the same version
19456 of GCC as the sources (the "build version").
19458 2009-05-22 Ben Elliston <bje@au.ibm.com>
19460 * c-format.c (handle_format_attribute): Fix comment typo.
19462 2009-05-21 Steve Ellcey <sje@cup.hp.com>
19465 * config/ia64/ia64.opt (mfused-madd): New.
19466 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
19467 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
19468 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
19469 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
19470 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
19471 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
19472 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
19473 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
19474 instruction if !TARGET_FUSED_MADD.
19475 (fpma, fpms): Remove colon from name.
19477 2009-05-22 Richard Guenther <rguenther@suse.de>
19479 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
19480 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
19481 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
19483 (create_expression_by_pieces): Only convert if necessary.
19484 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
19485 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
19487 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
19489 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
19490 regular pattern from a template and rename it ...
19491 (*extzv_truncsi_exts): ... to this.
19493 2009-05-21 Richard Guenther <rguenther@suse.de>
19495 * cgraph.h (struct cgraph_node): Remove inline_decl member.
19496 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
19497 (cgraph_default_inline_p): Likewise.
19498 (cgraph_decide_inlining_incrementally): Likewise.
19500 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
19501 Uros Bizjak <ubizjak@gmail.com>
19503 * config/i386/cpuid.h (bit_MOVBE): New.
19505 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
19507 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
19508 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
19509 (ix86_handle_option): Handle OPT_mmovbe.
19510 (ix86_target_string): Add -mmovbe.
19511 (pta_flags): Add PTA_MOVBE.
19512 (processor_alias_table): Add PTA_MOVBE to "atom".
19513 (override_options): Handle PTA_MOVBE.
19515 * config/i386/i386.h (TARGET_MOVBE): New.
19517 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
19518 (*bswapsi_movbe): New.
19519 (*bswapdi_movbe): Likewise.
19520 (bswapdi2): Renamed to ...
19521 (*bswapdi_1): This.
19522 (bswapdi2): New expander.
19524 * config/i386/i386.opt (mmovbe): New.
19526 * doc/invoke.texi: Document -mmovbe.
19528 2009-05-21 Taras Glek <tglek@mozilla.com>
19530 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
19531 * gcc-plugin.h (plugin_init): Updated signature.
19532 * gcc-plugin.h (plugin_name_args): Moved to this header.
19533 * doc/plugins.texi (plugin_init): Updated documention to reflect
19535 * doc/plugins.texi (plugin_name_args): Added to documention.
19537 2009-05-21 Mark Mitchell <mark@codesourcery.com>
19539 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
19540 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
19542 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
19544 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
19545 JUMP_TABLE_DATA_P predicates where applicable.
19546 * config/i386/predicates.md: Ditto.
19547 * config/i386/sse.md: Ditto.
19549 2009-05-21 Jakub Jelinek <jakub@redhat.com>
19551 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
19552 operand2 -128 override length_immediate attribute to 1.
19553 * config/i386/predicates.md (constm128_operand): New predicate.
19555 * config/i386/i386.c (memory_address_length): Handle %r12
19556 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
19558 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
19559 mode look through optional ZERO_EXTEND and SUBREG.
19560 * config/i386/i386.md (R12_REG): New define_constant.
19561 (prefix_data16): For sse unit set also for MODE_TI insns.
19562 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
19563 insns set if operand 1 is ext_QIreg_operand.
19564 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
19565 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
19567 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
19568 mode from MODE_DI to MODE_SI.
19569 (movdi_1_rex64): Override modrm and length_immediate attributes
19570 only for movabs (TYPE_IMOV, alternative 2).
19571 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
19572 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19573 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19574 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19575 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
19576 prefix_rex attribute if DImode.
19577 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
19578 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
19579 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
19580 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
19581 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
19582 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
19583 Likewise. For TYPE_IMOV clear length_immediate attribute.
19584 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
19585 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
19586 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
19587 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
19588 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
19589 or one operand TYPE_ISHIFT.
19590 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
19591 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
19592 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
19593 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
19594 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
19595 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
19596 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
19597 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
19598 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
19599 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
19600 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
19601 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
19602 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
19603 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
19604 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
19605 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
19606 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
19607 set mode attribute, don't override length attribute.
19608 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
19610 (return_internal_long): Set length attribute to 2 instead of 1.
19611 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
19612 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
19613 prefix_rex attribute.
19614 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
19616 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
19618 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19620 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
19622 2009-05-20 Ian Lance Taylor <iant@google.com>
19624 * tree.c (build_tree_list_vec_stat): New function.
19625 (ctor_to_vec): New function.
19626 (build_nt_call_vec): New function.
19627 (build_call_array): Change args to be a const pointer.
19628 (build_call_vec): New function.
19629 * tree.h (build_nt_call_vec): Declare.
19630 (build_tree_list_vec_stat): Declare.
19631 (build_tree_list_vec): Define.
19632 (build_call_array): Update declaration.
19633 (build_call_vec): Declare.
19634 (ctor_to_vec): Declare.
19635 * c-common.c (tree_vector_cache): New static variable.
19636 (make_tree_vector): New function.
19637 (release_tree_vector): New function.
19638 (make_tree_vector_single): New function.
19639 (make_tree_vector_copy): New function.
19640 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
19641 (make_tree_vector_single, make_tree_vector_copy): Declare.
19642 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
19643 (c_parser_expr_list): Don't manage cache here, instead call
19645 (c_parser_release_expr_list): Remove static function.
19646 (c_parser_vec_to_tree_list): Remove static function.
19647 (c_parser_attributes): Call build_tree_list_vec instead of
19648 c_parser_vec_to_tree_list. Call release_tree_vector instead of
19649 c_parser_release_expr_list.
19650 (c_parser_postfix_expression_after_primary): Likewise.
19651 (c_parser_objc_keywordexpr): Likewise.
19653 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
19655 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
19656 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
19657 TARGET_CONVERT_TO_TYPE.
19658 * hooks.c (hook_tree_const_tree_null): Define.
19659 * hooks.h (hook_tree_const_tree_null): Declare.
19660 * target.h (struct gcc_target): Add invalid_parameter_type,
19661 invalid_return_type, promoted_type, and convert_to_type fields.
19662 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
19663 (TARGET_INVALID_RETURN_TYPE): Define.
19664 (TARGET_PROMOTED_TYPE): Define.
19665 (TARGET_CONVERT_TO_TYPE): Define.
19666 (TARGET_INITIALIZER): Update for new fields.
19667 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
19668 (grokparms): Check targetm.invalid_parameter_type.
19669 * c-typeck.c (default_conversion): Check targetm.promoted_type.
19670 * c-convert.c (convert): Check targetm.convert_to_type.
19672 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
19674 * config/mips/mips.md (*extenddi_truncate<mode>,
19675 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
19677 (*extendhi_truncateqi): New define_insn_and_sptit.
19679 2009-05-20 Jakub Jelinek <jakub@redhat.com>
19681 PR middle-end/40204
19682 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
19683 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
19685 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
19687 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
19688 the operand of VIEW_CONVERT_EXPR.
19690 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
19692 * config/i386/driver-i386.c (host_detect_local_cpu): Check
19693 extended family and model for Intel processors. Support Intel Atom.
19695 2009-05-20 Olivier Hainque <hainque@adacore.com>
19697 * gstab.h (stab_code_type): Define, to be used instead of the
19698 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
19700 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
19701 occurrences by stab_code_type.
19702 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
19704 2009-05-20 Martin Jambor <mjambor@suse.cz>
19706 * tree-flow.h (insert_edge_copies_seq): Undeclare.
19707 (sra_insert_before): Likewise.
19708 (sra_insert_after): Likewise.
19709 (sra_init_cache): Likewise.
19710 (sra_type_can_be_decomposed_p): Likewise.
19711 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
19712 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
19713 (sra_insert_before): Likewise.
19714 (sra_insert_after): Likewise.
19715 (sra_init_cache): Likewise.
19716 (insert_edge_copies_seq): Made static and moved upwards.
19718 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
19721 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
19723 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
19724 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
19727 2009-05-20 Richard Guenther <rguenther@suse.de>
19729 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
19730 with mismatched comparison modes.
19732 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19734 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
19735 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
19736 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
19737 with shifts for Thumb2.
19738 (orsi_notsi): New for orn.
19739 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
19740 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
19741 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
19742 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
19743 Don't invert remainder for IOR.
19745 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
19747 PR tree-optimization/40087
19748 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
19749 number_of_iterations_ne): Rename never_infinite argument.
19750 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
19751 number_of_iterations_le): Handle pointer-type ivs when
19752 exit_must_be_taken is false.
19753 (number_of_iterations_cond): Do not always assume that
19754 exit_must_be_taken if the control variable is a pointer.
19756 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
19758 * c-typeck.c (build_binary_op): Allow % on integal vectors.
19759 * doc/extend.texi (Vector Extension): Document that % is allowed too.
19761 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
19763 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
19764 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
19766 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
19769 * c.opt (Wlogical-op): Disabled by default.
19770 * c-opt (c_common_post_options): Do not enable Wlogical-op with
19772 * doc/invoke.texi (Wlogical-op): Likewise.
19774 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
19776 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
19778 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
19779 Propagate the type of the first operand.
19780 <ASSERT_EXPR>: Simplify.
19781 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
19782 Rewrite using the RHS code as discriminant.
19783 <NOP_EXPR>: Turn into CASE_CONVERT.
19784 <PLUS_EXPR>: Propagate the type of the first operand.
19786 2009-05-19 Steve Ellcey <sje@cup.hp.com>
19788 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
19789 (ia64_dconst_0_375): New.
19790 * config/ia64/ia64.c (ia64_override_options): Remove
19791 -minline-sqrt-min-latency warning.
19792 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
19793 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
19794 * config/ia64/ia64.md (*sqrt_approx): Remove.
19795 (sqrtsf2): Remove #if 0.
19796 (sqrtsf2_internal_thr): Rewrite and move to div.md.
19797 (sqrtdf): Remove assert.
19798 (sqrtdf2_internal_thr): Rewrite and move to div.md.
19799 (sqrtxf2): Remove #if 0.
19800 (sqrtxf2_internal_thr): Rewrite and move to div.md.
19801 * div.md (sqrt_approx_rf): New.
19802 (sqrtsf2_internal_thr): New implementation.
19803 (sqrtsf2_internal_lat): New.
19804 (sqrtdf2_internal_thr: New implementation.
19805 (sqrtxf2_internal): New implementation.
19807 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
19808 Hans-Peter Nilsson <hp@axis.com>
19810 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
19811 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
19812 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
19813 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
19814 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
19815 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
19816 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
19817 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
19818 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
19819 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
19820 * c-common.c: ...from here.
19822 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
19824 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
19826 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19828 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
19830 2009-05-19 Ben Elliston <bje@au.ibm.com>
19832 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
19833 assignments with memcpy calls.
19834 (add_fdes): Likewise.
19835 (binary_search_unencoded_fdes): Likewise.
19836 (linear_search_fdes): Eliminate type puns.
19838 2009-05-19 Richard Guenther <rguenther@suse.de>
19840 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
19841 not falsely claim to have propagated into all uses.
19843 2009-05-19 Ben Elliston <bje@au.ibm.com>
19845 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
19848 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
19850 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
19851 * config/sh/sh.c (sh_legitimate_address_p): Make static.
19852 (TARGET_LEGITIMATE_ADDRESS_P): New.
19853 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19854 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19856 2009-05-18 Dodji Seketeli <dodji@redhat.com>
19859 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
19860 child of the containing namespace's DIE.
19862 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
19864 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
19865 *zero_extendhi_truncqi): Move after the zero_extend patterns.
19866 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
19869 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
19872 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
19873 gen_align with gen_pad.
19874 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
19875 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
19877 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
19878 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
19880 * config/i386/i386.md (align): Renamed to ...
19881 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
19882 ASM_OUTPUT_MAX_SKIP_PAD.
19884 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
19886 * config.gcc: Fix variable syntax.
19889 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
19890 before calling exact_log2.
19891 (output_iorsi3): Likewise.
19892 (output_xorsi3): Likewise.
19894 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
19896 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
19897 for the none zero constant operand except for EQ and NE
19898 comprisons even when the first operand is R0.
19900 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
19902 * config/s390/2064.md: Remove trailing whitespaces.
19903 * config/s390/2084.md: Likewise.
19904 * config/s390/constraints.md: Likewise.
19905 * config/s390/fixdfdi.h: Likewise.
19906 * config/s390/libgcc-glibc.ver: Likewise.
19907 * config/s390/s390-modes.def: Likewise.
19908 * config/s390/s390-protos.h: Likewise.
19909 * config/s390/s390.c: Likewise.
19910 * config/s390/s390.h: Likewise.
19911 * config/s390/s390.md: Likewise.
19912 * config/s390/tpf-unwind.h: Likewise.
19914 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
19916 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
19918 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
19921 * configure.ac (m68k-*-*): Check if binutils support TLS.
19922 * configure: Regenerate.
19923 * config/m68k/predicates.md (symbolic_operand): Extend comment.
19924 * config/m68k/constraints.md (Cu): New constraint.
19925 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
19926 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
19927 (movsi): Handle TLS symbols.
19928 (addsi3_5200): Handle XTLS symbols, indent.
19929 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
19930 (m68k_tls_reference_p): Declare.
19931 (m68k_legitimize_address): Declare.
19932 (m68k_unwrap_symbol): Declare.
19933 * config/m68k/m68k.opt (mxtls): New option.
19934 * config/m68k/m68k.c (ggc.h): Include.
19935 (m68k_output_dwarf_dtprel): Implement hook.
19936 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
19937 (m68k_expand_prologue): Load GOT pointer when function needs it.
19938 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
19939 (m68k_legitimate_constant_address_p): Same.
19940 (m68k_decompose_address): Handle TLS references.
19941 (m68k_get_gp): New static function.
19942 (enum m68k_reloc): New contants.
19943 (TLS_RELOC_P): New macro.
19944 (m68k_wrap_symbol): New static function.
19945 (m68k_unwrap_symbol): New function.
19946 (m68k_final_prescan_insn_1): New static function.
19947 (m68k_final_prescan_insn): New function.
19948 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
19950 (legitimize_pic_address): Handle TLS references..
19951 (m68k_tls_get_addr, m68k_get_tls_get_addr)
19952 (m68k_libcall_value_in_a0_p)
19953 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
19954 (m68k_call_m68k_read_tp): Helper variables and functions for ...
19955 (m68k_legitimize_tls_address): Handle TLS references.
19956 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
19958 (m68k_legitimize_address): Handle TLS symbols.
19959 (m68k_get_reloc_decoration): New static function.
19960 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
19962 (m68k_output_dwarf_dtprel): Implement hook.
19963 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
19964 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
19965 m68k_call_* routines.
19966 (sched_attr_op_type): Handle TLS symbols.
19967 (gt-m68k.h): Include.
19968 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
19969 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
19971 2009-05-18 Martin Jambor <mjambor@suse.cz>
19973 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
19974 (visit_store_addr_for_mod_analysis): New function.
19975 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
19976 (determine_cst_member_ptr): Use gimple_assign_single_p.
19977 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
19978 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
19979 operands. Don't check number of operands of a NOP_EXPR.
19981 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
19983 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
19985 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
19988 * c-common.c (warn_logical_operator): Don't warn if one of
19989 expression isn't always true or false.
19991 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
19993 * config/i386/biarch32.h: New file.
19994 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
19996 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
19998 * config/mips/mips.md (*zero_extend<mode>_trunchi,
19999 *zero_extend<mode>_truncqi): Merge these into ...
20000 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
20001 Name the pattern following this as *zero_extendhi_truncqi.
20003 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
20005 PR middle-end/39301
20006 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
20007 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
20008 (output_info): Make field HOST_WIDEST_INT.
20009 (print_statistics): Use HOST_WIDEST_INT_PRINT.
20010 (dump_bitmat_statistics): Same.
20012 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
20014 * config.gcc (use_gcc_stdint): Set to wrap.
20015 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
20016 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
20017 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
20018 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
20019 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
20020 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
20021 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
20022 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
20024 2009-05-16 Joseph Myers <joseph@codesourcery.com>
20026 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
20028 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
20029 Move definitions earlier.
20030 (OPT_ARCH64, OPT_ARCH32): Define.
20031 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
20034 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
20037 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
20040 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
20042 * arm.md (movdi2): Copy non-reg values to DImode registers.
20044 2009-05-16 Jakub Jelinek <jakub@redhat.com>
20047 * final.c (label_to_max_skip): New function.
20048 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
20049 CODE_LABEL_NUMBER <= max_labelno.
20050 * output.h (label_to_max_skip): New prototype.
20051 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
20052 (ix86_avoid_jump_mispredicts): ... this. Don't define if
20053 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
20054 Handle CODE_LABELs with >= 16 byte alignment or with
20055 max_skip == (1 << align) - 1.
20056 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
20057 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
20060 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
20061 .p2align 3 if MAX_SKIP is smaller than 7.
20062 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20064 2009-05-15 Ian Lance Taylor <iant@google.com>
20066 * alias.c (struct alias_set_entry_d): Rename from struct
20067 alias_set_entry. Change all uses.
20068 * except.c (struct call_site_record_d): Rename from struct
20069 call_site_record. Change all uses.
20070 * except.h (struct eh_region_d): Rename from struct eh_region.
20072 * gcse.c (struct hash_table_d): Rename from struct hash_table.
20074 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
20075 ivtype_map_elt. Change all uses.
20076 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
20078 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
20079 * graphite.h (struct name_tree_d): Rename from struct name_tree.
20081 (struct sese_d): Rename from struct sese. Change all uses.
20082 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
20083 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
20084 * optabs.h (struct optab_d): Rename from struct optab. Change all
20086 (struct convert_optab_d): Rename from struct convert_optab.
20088 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
20089 ipa_opt_pass. Change all uses.
20090 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
20093 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
20094 defined as a typedef.
20095 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
20098 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20101 * fold-const.c (make_range,build_range_check,merge_ranges): Move
20103 (merge_ranges): Returns bool.
20104 * tree.h (make_range): .. to here.
20105 (build_range_check): Likewise.
20106 (merge_ranges): Likewise. Renamed from merge_ranges.
20107 * c-typeck.c (parser_build_binary_op): Update calls to
20108 warn_logical_operator.
20109 * c-common.c (warn_logical_operator): Add new warning.
20110 * c-common.h (warn_logical_operator): Update declaration.
20112 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20114 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
20116 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20118 * doc/install.texi: Document MPC requirements, flags etc.
20120 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
20121 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
20122 Evaluate constant arguments.
20123 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
20124 (fold_builtin_1): Likewise, also evaluate constant arguments.
20125 Remove superfluous break.
20126 (do_mpc_ckconv): New.
20127 * real.h: Include mpc.h.
20128 * toplev.c (print_version): Output MPC version info if available.
20130 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20132 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
20134 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
20136 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
20139 2009-05-15 Jan Hubicka <jh@suse.cz>
20141 * doc/invoke.texi (max-early-inliner-iterations): New flag.
20142 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
20143 (try_inline): Fix return value.
20144 (cgraph_decide_inlining_incrementally): Honor new value.
20145 (cgraph_early_inlining): Handle indirect inlining.
20146 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
20148 2009-05-15 Jan Hubicka <jh@suse.cz>
20150 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
20151 * cgraphunit.c (cgraph_finalize_function): Set it.
20152 (cgraph_expand_function): Use it.
20154 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20156 * real.c (encode_ieee_half): Define.
20157 (decode_ieee_half): Define.
20158 (ieee_half_format): Define.
20159 (arm_half_format): Define.
20160 * real.h (ieee_half_format): Declare.
20161 (arm_half_format): Declare.
20163 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
20165 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
20166 swapped, and reversed optabs exist before trying to use them.
20168 2009-05-15 Paul Brook <paul@codesourcery.com>
20169 Sandra Loosemore <sandra@codesourcery.com>
20171 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
20172 loads. Allow PRE_DEC.
20173 (output_move_neon): Handle PRE_DEC.
20174 (arm_print_operand): Add 'A' for neon structure loads.
20175 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
20176 * config/arm/neon.md (neon_mov): Update comment.
20177 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
20179 (Um): New constraint.
20181 2009-05-15 Jan Hubicka <jh@suse.cz>
20183 Revert the following patch until testsuite fallout is fixed:
20184 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20185 * cgraph.h (struct inline_summary): New filed self_wize,
20186 size_inlining_benefit, self_time and time_inlining_benefit.
20187 (struct cgraph_global_info): Replace insns by time ans size fields.
20188 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20189 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20190 (ipcp_update_callgraph): Do not touch function bodies.
20191 * ipa-inline.c: Include except.h
20192 (MAX_TIME): New constant.
20193 (overall_insns): Remove
20194 (overall_size, max_benefit): New static variables.
20195 (cgraph_estimate_time_after_inlining): New function.
20196 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20197 (cgraph_clone_inlined_nodes): Update size.
20198 (cgraph_mark_inline_edge): Update size.
20199 (cgraph_estimate_growth): Use size info.
20200 (cgraph_check_inline_limits): Check size.
20201 (cgraph_default_inline_p): Likewise.
20202 (cgraph_edge_badness): Compute badness based on benefit and size cost.
20203 (cgraph_decide_recursive_inlining): Check size.
20204 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20206 (cgraph_decide_inlining): Likewise.
20207 (cgraph_decide_inlining_incrementally): Likewise; honor
20208 PARAM_EARLY_INLINING_INSNS.
20209 (likely_eliminated_by_inlining_p): New predicate.
20210 (estimate_function_body_sizes): New function.
20211 (compute_inline_parameters): Use it.
20212 * except.c (must_not_throw_labels): New function.
20213 * except.h (must_not_throw_labels): Declare.
20214 * tree-inline.c (init_inline_once): Kill inlining_weigths
20215 * tree-ssa-structalias.c: Avoid uninitialized warning.
20216 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20217 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20218 (PARAM_INLINE_CALL_COST): Remove.
20219 (PARAM_EARLY_INLINING_INSNS): New.
20221 2009-05-15 Richard Guenther <rguenther@suse.de>
20223 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
20224 not TODO_update_ssa.
20226 2009-05-15 Richard Guenther <rguenther@suse.de>
20228 PR tree-optimization/39999
20229 * gimple.h (gimple_expr_type): Use the expression type looking
20230 through useless conversions.
20231 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
20232 (vn_nary_op_insert_stmt): Likewise.
20233 (simplify_binary_expression): Likewise.
20235 2009-05-15 Richard Guenther <rguenther@suse.de>
20237 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
20238 New options, enabled by default.
20239 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
20241 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
20242 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
20243 * tree-ssa-structalias.c (gate_tree_pta): New function.
20244 (pass_build_alias): Use it.
20246 2009-05-15 Joseph Myers <joseph@codesourcery.com>
20248 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
20249 recurse on an invariant address if a conversion from a pointer
20250 type to a wider integer type is involved.
20252 2009-05-15 Jan Hubicka <jh@suse.cz>
20254 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
20255 * cgraph.h (struct inline_summary): New filed self_wize,
20256 size_inlining_benefit, self_time and time_inlining_benefit.
20257 (struct cgraph_global_info): Replace insns by time ans size fields.
20258 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
20259 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
20260 (ipcp_update_callgraph): Do not touch function bodies.
20261 * ipa-inline.c: Include except.h
20262 (MAX_TIME): New constant.
20263 (overall_insns): Remove
20264 (overall_size, max_benefit): New static variables.
20265 (cgraph_estimate_time_after_inlining): New function.
20266 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
20267 (cgraph_clone_inlined_nodes): Update size.
20268 (cgraph_mark_inline_edge): Update size.
20269 (cgraph_estimate_growth): Use size info.
20270 (cgraph_check_inline_limits): Check size.
20271 (cgraph_default_inline_p): Likewise.
20272 (cgraph_edge_badness): Compute badness based on benefit and size cost.
20273 (cgraph_decide_recursive_inlining): Check size.
20274 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
20276 (cgraph_decide_inlining): Likewise.
20277 (cgraph_decide_inlining_incrementally): Likewise; honor
20278 PARAM_EARLY_INLINING_INSNS.
20279 (likely_eliminated_by_inlining_p): New predicate.
20280 (estimate_function_body_sizes): New function.
20281 (compute_inline_parameters): Use it.
20282 * except.c (must_not_throw_labels): New function.
20283 * except.h (must_not_throw_labels): Declare.
20284 * tree-inline.c (init_inline_once): Kill inlining_weigths
20285 * tree-ssa-structalias.c: Avoid uninitialized warning.
20286 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
20287 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
20288 (PARAM_INLINE_CALL_COST): Remove.
20289 (PARAM_EARLY_INLINING_INSNS): New.
20290 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
20291 (inline-call-cost): Remove.
20292 (early-inlining-insns): New.
20294 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
20296 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
20298 (print_int_cst_bounds_in_octal_p): Likewise.
20299 (dbxout_type): Adjust calls to above functions. Be prepared to deal
20301 * dwarf2out.c (base_type_die): Likewise.
20302 (is_subrange_type): Delete.
20303 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
20304 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
20305 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
20306 if the destination type is boolean.
20307 (build_range_check): Do not special-case subtypes.
20308 (fold_sign_changed_comparison): Likewise.
20309 (fold_unary): Likewise.
20310 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
20311 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
20312 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
20313 * tree.c (subrange_type_for_debug_p): New predicate based on the
20314 former is_subrange_type.
20315 * tree.h (subrange_type_for_debug_p): Declare.
20316 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
20317 (convert_affine_scev): Remove call to above function.
20318 (chrec_convert_aggressive): Likewise.
20319 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
20320 false for conversions involving subtypes.
20321 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
20322 (vrp_val_min): Likewise.
20323 (needs_overflow_infinity): Likewise.
20324 (extract_range_from_unary_expr): Likewise.
20326 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
20328 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
20329 * config/frv/frv.c: Likewise.
20330 * config/s390/s390.c: Likewise.
20331 * config/sparc/sparc.h: Likewise.
20332 * config/i386/i386.h: Likewise.
20333 * config/i386/i386.c: Likewise.
20334 * config/crx/crx.c: Likewise.
20335 * config/m68hc11/m68hc11.h: Likewise.
20336 * config/iq2000/iq2000.c: Likewise.
20337 * config/mn10300/mn10300.h: Likewise.
20338 * config/mn10300/mn10300.c: Likewise.
20339 * config/m68k/m68k.c: Likewise.
20340 * config/rs6000/rs6000.c: Likewise.
20341 * config/rs6000/xcoff.h: Likewise.
20342 * config/rs6000/linux64.h: Likewise.
20343 * config/rs6000/sysv4.h: Likewise.
20344 * config/score/score3.c: Likewise.
20345 * config/score/score7.c: Likewise.
20346 * config/score/score.c: Likewise.
20347 * config/arm/arm.md: Likewise.
20348 * config/mips/mips.c: Likewise.
20349 * config/mips/mips.md: Likewise.
20350 * config/bfin/bfin.h: Likewise.
20351 * config/pa/pa.c: Likewise.
20352 * config/pa/constraints.md: Likewise.
20354 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
20355 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
20356 * config/pdp11/pdp11.h: Use memory_address_p instead.
20358 2009-05-14 Ian Lance Taylor <iant@google.com>
20360 * passes.c (finish_optimization_passes): Change i to int.
20361 * plugin.c (plugins_active_p): Change event to int.
20362 (dump_active_plugins): Likewise.
20363 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
20365 * tree.c (tree_range_check_failed): Change c to unsigned int.
20366 (omp_clause_range_check_failed): Likewise.
20367 (build_common_builtin_nodes): Change mode to int. Add cast.
20368 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
20369 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
20371 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
20372 ++ or -- with a variable of enum type.
20374 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
20377 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
20379 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
20381 * store-motion.c: Do not include params.h
20382 * Makefile.in: Fix dependencies for various files.
20384 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
20386 * auto-inc-dec.c: Fix pass description, remove apparent
20387 accidental duplication.
20389 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
20391 PR middle-end/40147
20392 * ipa-utils.h (memory_identifier_string): Moved to ...
20393 * tree.h (memory_identifier_string): Here. Add GTY(()).
20395 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
20397 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
20398 in the former documentation of...
20399 (GO_IF_LEGITIMATE_ADDRESS): ... this.
20400 * ira-conflicts.c (get_dup_num): Use address_operand.
20401 * targhooks.c (default_legitimate_address_p): New.
20402 * targhooks.h (default_legitimate_address_p): New.
20403 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
20405 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
20406 * target.h (struct target): Add legitimate_address_p.
20407 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
20408 (TARGET_INITIALIZER): Include it.
20410 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20411 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
20412 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
20413 (TARGET_LEGITIMATE_ADDRESS_P): New.
20415 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20416 (REG_OK_STRICT_P): Delete.
20417 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
20418 (frv_legitimate_address_p_1): ... this.
20419 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
20420 (frv_legitimate_address_p_1): ... the renamed old
20421 frv_legitimate_address_p.
20422 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
20423 (TARGET_LEGITIMATE_ADDRESS_P): New.
20425 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20426 * config/s390/s390-protos.h (legitimate_address_p): Remove.
20427 * config/s390/s390.c (legitimate_address_p): Rename to...
20428 (s390_legitimate_address_p): ... this, make static.
20429 (legitimize_address): Adjust call.
20430 (TARGET_LEGITIMATE_ADDRESS_P): New.
20431 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
20433 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20434 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
20435 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
20436 (TARGET_LEGITIMATE_ADDRESS_P): New.
20438 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20439 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
20440 * config/spu/spu.c (spu_legitimate_address): Rename to...
20441 (spu_legitimate_address_p): ... this, make static.
20442 (TARGET_LEGITIMATE_ADDRESS_P): New.
20444 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20445 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
20446 * config/sparc/sparc.c (legitimate_address_p): Rename to...
20447 (sparc_legitimate_address_p): ... this, make static and return bool.
20448 (legitimize_address): Adjust call.
20449 (TARGET_LEGITIMATE_ADDRESS_P): New.
20451 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20452 * config/i386/i386-protos.h (legitimate_address_p): Remove.
20453 * config/i386/i386.c (legitimate_address_p): Rename to...
20454 (ix86_legitimate_address_p): ... this, make static.
20455 (constant_address_p): Move after it, adjust call.
20456 (TARGET_LEGITIMATE_ADDRESS_P): New.
20458 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20459 * config/avr/avr-protos.h (legitimate_address_p): Remove.
20460 * config/avr/avr.c (legitimate_address_p): Rename to...
20461 (avr_legitimate_address_p): ... this, make static.
20462 (legitimize_address): Adjust call.
20463 (TARGET_LEGITIMATE_ADDRESS_P): New.
20465 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20466 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
20467 * config/crx/crx.c (crx_legitimate_address_p): Make static.
20468 (TARGET_LEGITIMATE_ADDRESS_P): New.
20470 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20471 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
20472 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
20473 (TARGET_LEGITIMATE_ADDRESS_P): New.
20475 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20476 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
20478 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
20480 (TARGET_LEGITIMATE_ADDRESS_P): New.
20482 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20483 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
20485 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
20487 (m68hc11_legitimate_address_p): ... this, make static.
20488 (go_if_legitimate_address_internal): Rename to...
20489 (m68hc11_legitimate_address_p_1): ... this.
20490 (legitimize_address): Adjust call.
20491 (TARGET_LEGITIMATE_ADDRESS_P): New.
20493 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20494 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
20495 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
20496 (TARGET_LEGITIMATE_ADDRESS_P): New.
20498 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20499 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
20500 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
20501 (mn10300_legitimate_address_p): ... this, make static.
20502 (TARGET_LEGITIMATE_ADDRESS_P): New.
20504 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20505 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
20506 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
20507 (TARGET_LEGITIMATE_ADDRESS_P): New.
20509 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20510 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
20511 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
20512 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20513 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
20514 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
20515 (rs6000_legitimate_address_p): ... this, make static.
20516 (TARGET_LEGITIMATE_ADDRESS_P): New.
20517 (REG_MODE_OK_FOR_BASE_P): Delete.
20518 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
20520 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20521 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
20523 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
20524 static, adjust types.
20525 (TARGET_LEGITIMATE_ADDRESS_P): New.
20527 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20528 * config/score/score.c (score_address_p): Rename to...
20529 (score_legitimate_address_p): ... this.
20530 (TARGET_LEGITIMATE_ADDRESS_P): New.
20531 * config/score/score3.c (score3_address_p): Rename to...
20532 (score3_legitimate_address_p): ... this.
20533 * config/score/score7.c (score7_address_p): Rename to...
20534 (score7_legitimate_address_p): ... this.
20536 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
20537 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
20538 GO_IF_LEGITIMATE_ADDRESS): Delete.
20539 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
20540 thumb2_legitimate_address_p): Delete.
20541 (arm_legitimate_address_p): Rename to...
20542 (arm_legitimate_address_outer_p): ... this.
20543 * config/arm/constraints.md ("Uq"): Adjust call.
20544 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
20545 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
20547 (arm_legitimate_address_outer_p): ... this.
20548 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
20550 (TARGET_LEGITIMATE_ADDRESS_P): New.
20552 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20553 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
20554 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
20555 (TARGET_LEGITIMATE_ADDRESS_P): New.
20557 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20558 * config/vax/vax-protos.h (legitimate_address_p): Remove.
20559 * config/vax/vax.c (legitimate_address_p): Rename to...
20560 (vax_legitimate_address_p): ... this, make static.
20561 (TARGET_LEGITIMATE_ADDRESS_P): New.
20563 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20564 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
20565 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
20566 (TARGET_LEGITIMATE_ADDRESS_P): New.
20568 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20569 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
20570 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
20571 (mmix_legitimate_address_p): ... this, make static.
20572 (TARGET_LEGITIMATE_ADDRESS_P): New.
20574 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
20575 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
20576 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
20577 (TARGET_LEGITIMATE_ADDRESS_P): New.
20579 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
20581 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
20582 of MODE_COMPLEX_INT.
20584 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20586 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
20587 LCT_NORMAL in function call.
20588 * mips-tdump.c (print_file_desc): Add cast to enum type.
20589 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
20590 (mark_stabs): Add casts to enum types.
20591 (parse_stabs_common): Add casts to enum types.
20593 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
20595 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
20596 Check for invalid values of LETTER.
20598 2009-05-13 Taras Glek <tglek@mozilla.com>
20600 * attribs.c (register_attribute): moved out attribute registration
20601 into register_attribute.
20602 * doc/plugins.texi: Documented register_attribute and
20604 * gcc-plugin.h: Added forward decl for register_attribute.
20605 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
20606 * plugin.c (register_callback, invoke_plugin_callbacks): Added
20607 PLUGIN_ATTRIBUTES boilerplate.
20609 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
20611 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
20612 values even in sentinel and empty entries.
20613 (ms_printf_flag_specs): Likewise.
20614 (ms_scanf_flag_specs): Likewise.
20615 (ms_strftime_flag_specs): Likewise.
20616 (ms_print_char_table): Likewise.
20617 (ms_scan_char_table): Likewise.
20618 (ms_time_char_table): Likewise.
20620 2009-05-13 Doug Kwan <dougkwan@google.com>
20622 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
20624 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
20626 * config/mips/mips.md (store): Add attributes for QI and HI.
20628 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
20629 (truncdi<mode>2): ... this new pattern.
20631 2009-05-13 Brad Hards <bradh@kde.org>
20633 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
20635 2009-05-14 Jakub Jelinek <jakub@redhat.com>
20636 Ben Elliston <bje@au.ibm.com>
20638 PR middle-end/40035
20639 * dse.c (check_mem_read_rtx): Guard against width == -1.
20641 2009-05-13 Michael Matz <matz@suse.de>
20643 PR middle-end/39976
20644 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
20645 (trivially_conflicts_p): New function.
20646 (insert_backedge_copies): Use it.
20648 2009-05-13 Janis Johnson <janis187@us.ibm.com>
20650 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
20651 (handle_stdc_pragma): Use new enum constant names.
20652 (handle_pragma_float_const_decimal64): Ditto.
20654 2009-05-13 Ian Lance Taylor <iant@google.com>
20656 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
20659 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
20661 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
20662 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
20664 * config/m68k/m68k.h (FL_UCLINUX): Define.
20666 2009-05-13 Jan Hubicka <jh@suse.cz>
20668 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
20670 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
20672 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
20673 unless -fschedule-insns is specified.
20675 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
20678 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
20679 TARGET_EXPAND_CBRANCHDI4.
20680 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
20681 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
20682 (cmpeqdi): Fix comment.
20684 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
20686 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
20687 (sh_legitimate_address_p): Likewise.
20688 * config/sh/sh.c (sh_legitimate_index_p): New.
20689 (sh_legitimate_address_p): Likewise.
20690 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
20691 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
20692 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
20693 (MAYBE_BASE_REGISTER_RTX_P): New macro.
20694 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
20695 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
20696 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
20697 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
20698 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
20700 2009-05-12 Jan Hubicka <jh@suse.cz>
20702 * tree-inline.c (estimate_operator_cost): Add operands;
20703 when division happens by constant, it is cheap.
20704 (estimate_num_insns): Loads and stores are not having cost of 0;
20705 EH magic stuff is cheap; when computing runtime cost of switch,
20706 use log2 base of amount of its cases; builtin_expect has cost of 0;
20707 compute cost for moving return value of call.
20708 (init_inline_once): Initialize time_based flags.
20709 * tree-inline.h (eni_weights_d): Add time_based flag.
20711 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
20713 * df-core.c: Update head documentation.
20715 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20718 * rs6000.c (rs6000_generate_compare): Use op1b instead of
20719 shadowing exisiting variable op1.
20721 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
20724 * config/i386/driver-i386.c (processor_signatures): New enum.
20725 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
20726 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
20727 processor signature to detect geode processor.
20729 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
20733 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
20735 * optabs.c (prepare_cmp_insn): Temporarily disable test that
20736 causes spurious differences between trunk and cond-optab branch.
20738 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
20740 * dojump.c (compare_from_rtx): Delete.
20741 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
20742 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
20743 if the comparison does not satisfy the predicate; test predicates for
20744 operands 2 and 3 of a cstore pattern. Don't try cstore optab
20745 further if one existing pattern fails.
20746 * expr.h (compare_from_rtx): Delete.
20747 (prepare_operand): Declare it.
20748 * optabs.c: Change "lib call" to "libcall" throughout.
20749 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
20750 HAVE_conditional_trap, emit_cmp_insn): Delete.
20751 (can_compare_p): Delete cmp_optab case.
20752 (prepare_float_lib_cmp): Return an rtx and a machine mode.
20753 Accept other parameters by value.
20754 (prepare_operand): Make non-static.
20755 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
20756 other parameters by value. Try to widen operands here based on
20757 an optab_methods argument and looking at cbranch_optab.
20758 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
20759 loop. Use cbranch_optab directly.
20760 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
20761 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
20763 (emit_conditional_move, emit_conditional_add): Inline what's needed
20764 of compare_from_rtx, using new prepare_cmp_insn for the rest.
20765 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
20766 with COMPARE. Move cmov_optab and cstore_optab above
20767 with cbranch_optab, move cmp_optab down with ucmp_optab,
20768 remove tst_otpab. Do not initialize trap_rtx.
20769 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
20770 for trap code. Do not check HAVE_conditional_trap. Use
20771 prepare_cmp_insn. Accept no predicate for operand 3.
20772 * optabs.h (OTI_cmp): Mark as used only for libcalls.
20773 (OTI_ctrap, ctrap_optab): New.
20774 (tst_optab): Delete.
20775 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
20776 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
20777 with lookup of ctrap_optab.
20778 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
20780 (ctrap_optab): New.
20782 * combine.c (combine_simplify_rtx, simplify_set): Do not
20783 special case comparing against zero for cc0 machines.
20784 * simplify-rtx.c (simplify_binary_operation_1): Never remove
20785 COMPARE on cc0 machines.
20786 (simplify_relational_operation): Return a new expression when
20787 a COMPARE could be removed.
20788 * final.c (final_scan_insn): Compare cc_status values
20789 against LHS of a (compare FOO (const_int 0)) cc0 source.
20790 Also check if cc_status.value is the full compare.
20792 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
20793 (cstoreMM4): Document.
20794 (conditional_trap): Document ctrapMM4 instead.
20795 (sync_compare_and_swapMM): Refer to cbranchcc4.
20796 (Dependent Patterns): Eliminate obsolete information referring to
20797 the old jump optimization phase.
20798 (Canonicalization): Include cbranchcc4 case, omit canonicalization
20799 of compares with 0 on cc0 machines.
20800 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
20801 avoiding references to cc0. Remove text about storing operands
20803 * doc/tm.texi (Condition Codes): Include blurb on different
20804 condition code representations, separate into subsections for
20805 CC0, MODE_CC and conditional execution.
20807 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
20808 alpha_emit_setcc): Accept operands and a machine mode.
20809 * config/alpha/alpha.c (alpha_emit_conditional_branch):
20810 Get code/op0/op1 from operands, use machine mode argument
20811 instead of alpha_compare.fp_p. Emit the branch here.
20812 (alpha_emit_setcc): Likewise, and return boolean.
20813 (alpha_emit_conditional_move): Likewise. Assert that
20814 cmp_op_mode == cmp_mode, and simplify accordingly.
20815 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
20816 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
20817 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
20819 (stack probe test): Use cbranchdi4.
20820 * config/alpha/predicates.md (alpha_cbranch_operator): New.
20822 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
20823 * config/arc/arc.h (movsicc, movsfcc): Use it.
20824 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
20825 (cbranchsi4, cstoresi4): New.
20826 (cmpsi, bCC and sCC expanders): Remove.
20828 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
20829 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
20830 * config/arm/predicates.md (arm_comparison_operator): Only include
20831 floating-point operators if there is a hardware floating-point unit.
20832 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
20833 deferring to cbranch_cc and cstore_cc respectively.
20834 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
20835 cbranch_cc, cstore_cc): New.
20836 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
20838 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
20840 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
20841 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
20843 (adjust_insn_length): Adjust calls.
20844 (avr_reorg): Handle (compare (foo) (const_int 0)).
20845 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
20846 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
20847 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
20848 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
20850 (cbranchqi4, cbranchhi4, cbranchsi4): New.
20851 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
20853 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
20854 (cbranchsi4, cstorebi4, cstoresi4): New.
20855 (movbisi): This insn is duplicate, split it to zero_extend.
20856 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
20857 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
20858 (bfin_optimize_loop): Use cbranch expander.
20859 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
20860 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
20861 (bfin_bimode_comparison_operator): ... this.
20862 (bfin_direct_comparison_operator): New.
20864 * config/cris/cris.c (cris_normal_notice_update_cc): Look
20865 inside (compare FOO (const_int 0)).
20866 (cris_rtx_costs): Handle ZERO_EXTRACT.
20867 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
20868 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
20869 (*tstdi_v32): Delete.
20870 (*cmpdi_non_v32): Add M alternative for operand 1.
20871 (cmpsi, cmp<mode>): Make private.
20872 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
20874 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
20876 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
20877 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
20878 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
20879 (cc_reg_operand): New.
20880 (any_cond): Delete.
20881 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
20882 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
20883 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
20884 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
20885 crx_expand_scond): Delete.
20887 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
20889 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
20890 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
20892 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
20893 cstoresi4, cstoresf4, cstoredf4): New.
20894 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
20895 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
20896 Receive the entire operands array.
20897 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
20898 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
20899 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
20900 Get test/op0/op1 from the operands array.
20901 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
20903 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
20904 (h8300_expand_store): New.
20905 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
20907 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
20908 (h8300_expand_store): New.
20909 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
20910 or do not try to produce (set (cc0) REG).
20911 (peepholes): Wrap arguments with COMPARE. Add a peephole to
20912 change a compare into a move to a scratch register. Disable some
20913 peepholes when comparing with zero.
20914 (tstsi, tsthi, tstsi, cmpqi): Make private.
20916 (bCC, sCC): Delete.
20917 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
20920 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
20921 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
20922 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
20923 (ix86_emit_i387_log1p): Use cbranchxf2.
20924 (ix86_expand_setcc): Return void.
20925 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
20926 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
20927 cmp<MODEF>, cmpcc): Remove.
20928 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
20929 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
20930 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
20931 (sCC and bCC expanders): Remove.
20932 (stack_protect_test): Use cbranchcc4.
20934 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
20936 (ia64_expand_compare): Accept three rtx by reference and return void.
20937 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
20938 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
20939 from *expr. Update *expr with the BImode comparison to do.
20940 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
20941 cmptf, bCC, sCC, conditional_trap): Delete.
20942 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
20943 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
20944 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
20945 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
20946 * config/ia64/predicates.md (ia64_cbranch_operator): New.
20948 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
20949 type of last argument.
20950 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
20951 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
20952 use machine mode argument instead of branch_type. Remove dead
20953 code for floating-point comparisons.
20954 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
20955 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
20957 (cbranchsi4, cstoresi4): New.
20958 * config/iq2000/predicates.md (reg_or_const_operand): New.
20960 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
20961 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
20962 (b<code>_op): Rewrite to...
20963 (bcc_op): ... this, using match_operator.
20964 (s<code>_op): Rewrite to...
20965 (scc_op): ... this, using match_operator.
20966 (s<code>_24_op): Rewrite to...
20967 (scc_op_24): ... this, using match_operator.
20968 (s<code>_<mode>): Rewrite to...
20969 (cstore<mode>4): ... this, using match_operator.
20970 (s<code>_<mode>_24): Rewrite to...
20971 (cstore<mode>4_24): ... this, using match_operator.
20972 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
20973 m32c_unpend_compare, m32c_expand_scc): Delete.
20974 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
20975 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
20976 (m32c_expand_movcc): Change NE to EQ if necessary.
20977 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
20979 * config/m32r/m32r-protos.h (gen_cond_store): New.
20980 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
20981 (gen_cond_store): New, from sCC patterns.
20982 (m32r_expand_block_move): Use cbranchsi4.
20983 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
20984 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
20985 (cbranchsi4, cstoresi4): New.
20987 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
20989 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
20990 (m68hc11_notice_update_cc): Look into a compare with 0.
20991 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
20993 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
20994 cmphi, cmpqi, bCC): Delete.
20995 (cbranchsi4, cbranchhi4, cbranchqi4): New.
20996 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
20997 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
21000 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
21001 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
21002 * config/m68k/constraints.md (H): New.
21003 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
21004 the define_insn below.
21005 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
21006 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
21007 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
21008 patterns): Wrap RHS with COMPARE.
21009 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
21010 (*cmpdi_internal): Name this pattern.
21011 (cmpdi): Change to define_insn.
21012 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
21013 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
21014 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
21016 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
21017 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
21018 (conditional_trap): Change to...
21019 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
21020 (*conditional_trap): Use the ordered_comparison_operator and
21021 const1_operand predicates.
21022 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
21023 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
21024 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
21025 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
21027 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
21028 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
21029 (mcore_gen_compare): New.
21030 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
21031 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
21032 (mcore_gen_compare): ... this.
21033 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
21034 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
21035 (stack probe pattern): Use cbranchsi4.
21037 * config/mips/predicates.md (mips_cstore_operator): New.
21038 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
21039 * config/mips/mips.md (any_cond): Delete.
21040 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
21042 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
21043 fixuns_truncsfdi2): Use cbranch patterns.
21044 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
21045 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
21046 Adjust call to mips_expand_conditional_branch.
21047 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
21049 * config/mips/mips-protos.h (mips_expand_conditional_branch,
21050 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
21051 * config/mips/mips.c (cmp_operands): Delete.
21052 (mips_emit_compare): Get comparison operands from *op0/*op1.
21053 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
21054 that it succeeds. Use op0/op1 instead of cmp_operands.
21055 (mips_expand_conditional_branch, mips_expand_conditional_move,
21056 mips_expand_conditional_trap): Likewise.
21057 (mips_block_move_loop): Use cbranch patterns.
21058 * config/mips/mips.h (cmp_operands): Delete.
21060 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
21061 (mmix_gen_compare_reg): Just return a register in the right CC mode.
21062 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
21063 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
21064 (*cmpcc_folded): Rename to...
21065 (*cmpdi_folded): this.
21066 (*cmpcc): Rename to...
21068 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
21071 (cbranchdf4): New. Handle invalid comparisons here.
21072 * config/mmix/predicates.md (float_comparison_operator): New.
21074 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
21075 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
21076 * config/mn10300/mn10300.md (tst): Delete.
21077 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
21078 Name these patterns and wrap RHS in a compare.
21079 (*cmpsi): Make this pattern private. Include tst.
21080 (*cmpsf): Make this pattern private.
21081 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
21082 (compare with zero peepholes): Likewise.
21084 (cbranchsi4, cbranchsf4): New.
21085 (casesi): Use cbranchsi4.
21087 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
21088 hppa_branch_type): Delete.
21089 (return_addr_rtx): Use cbranchsi4.
21090 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
21091 Emit CCFPmode comparison here.
21092 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
21093 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
21094 hppa_branch_type): Delete.
21095 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
21096 (movsicc, movdicc): Remove references to hppa_compare_op0,
21097 hppa_compare_op1 and compare_from_rtx.
21098 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
21099 (casesi): Use cbranchsi4.
21101 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
21102 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
21103 * config/pdp11/pdp11.md (register_or_const0_operand): New.
21104 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
21105 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
21107 (cbranchdf4, cbranchhi4, cbranchqi4): New.
21108 (*branch, *branch_inverted): New.
21110 * config/picochip/picochip.md (cbranchhi4): Use
21111 ordered_comparison_operator.
21112 (cmphi, bCC): Remove.
21114 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
21115 (trap_comparison_operator): Delete.
21116 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
21117 rs6000_emit_cbranch): Accept mode and operands.
21118 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
21119 rs6000_compare_fp_p): Delete.
21120 (rs6000_generate_compare): Accept mode and comparison. Extract code
21121 and op0/op1 from there. Replace references to rs6000_compare_op0
21122 and rs6000_compare_op1.
21123 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
21124 extract result from passed operands.
21125 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
21126 extract loc from passed operands.
21127 (rs6000_emit_cmove): Likewise.
21128 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
21129 rs6000_compare_fp_p): Delete.
21130 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
21131 (cbranch<GPR>4, cbranch<FP>4): New.
21132 (cstore<mode>4): New. Consolidate here all choices about when to use
21133 portable or specialized sCC sequences.
21134 (stack_protect_test): Use cbranchsi4.
21135 (conditional_trap): Replace with ctrap<GPR>4.
21136 (conditional trap insn): Replace trap_comparison_operator with
21137 ordered_comparison_operator.
21139 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
21140 (s390_emit_prologue): Use ctrap.
21141 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
21142 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
21143 New predicates replacing...
21144 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
21145 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
21146 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
21147 (add<mode>cc): Do not use s390_compare_op0/op1.
21148 (s<code>): Change to...
21149 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
21150 (seq): Change to...
21151 (cstorecc4): ... this. Handle EQ or NE equally.
21152 (*sne): Un-privatize for use in cstorecc4.
21153 (b<code>): Change to...
21154 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
21155 (conditional_trap): Replace with...
21156 (ctrap<GPR>4, ctrap<FP>4): ... these.
21157 (stack_protect): Use cbranchcc4.
21159 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
21160 * config/score/score-protos.h (score_gen_cmp): Delete.
21161 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
21162 (score_block_move-loop): Use cbranchsi4.
21163 * config/score/score.md (cbranchsi4): New.
21164 (cmpsi, bCC): Delete.
21165 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
21166 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
21167 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
21168 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
21169 * config/score/score3.h (score3_gen_cmp): Delete.
21170 * config/score/score7.h (score7_gen_cmp): Delete.
21172 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
21173 (sh_emit_scc_to_t): ... this. Return void.
21174 (from_compare): Rename to...
21175 (sh_emit_compare_and_branch): ... this.
21176 (sh_emit_compare_and_set): New.
21177 (sh_expand_t_scc): Accept operands.
21178 * config/sh/predicates.md (sh_float_comparison_operator): New.
21179 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
21180 (prepare_scc_operands): Rename to...
21181 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
21183 (sh_emit_cheap_store_flag): New.
21184 (sh_emit_set_t_insn): New.
21185 (from_compare): Rename to...
21186 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
21187 handling of TARGET_SH2E floating point to avoid recursive call.
21188 Generate branch here.
21189 (sh_emit_compare_and_set): New.
21190 (sh_expand_t_scc): Get op0/op1 from arguments.
21191 (sh_emit_cheap_store_flag): New.
21192 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
21194 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
21195 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
21196 (movsicc, movdicc): Do nothing when it recreated operands from
21197 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
21198 prepare_scc_operands (now sh_emit_scc_to_t).
21199 (udivdi3): Use cstoresi4.
21200 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
21201 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
21202 (cbranchint4_media, cbranchfp4_media): New.
21203 (casesi): Use cbranchdi4.
21204 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
21206 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
21207 (movnegt): Remove second operand.
21208 (cbranchsf4, cbranchdf4): New.
21209 (stack_protect): Use cbranchdi4/cbranchsi4.
21211 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
21212 (gen_compare_reg): Accept comparison, extract part of it to...
21213 (gen_compare_reg_1): ... this.
21214 (gen_compare_operator): Delete.
21215 (gen_v9_scc): Accept separate destination, comparison code and arms.
21216 Do not use sparc_compare_op0/sparc_compare_op1.
21217 (emit_scc_insn, emit_conditional_branch_insn): New.
21218 (emit_v9_brxx): Make static. Remove useless assertion.
21219 (sparc_emit_float_lib_cmp): Return RTL instead of calling
21221 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
21222 * config/sparc/sparc-protos.h (gen_compare_reg,
21223 sparc_emit_float_lib_cmp): Adjust prototype.
21224 (emit_scc_insn, emit_conditional_branch_insn): New.
21225 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
21226 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
21227 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
21228 iterators to the top.
21229 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
21230 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
21231 snedi_special_trunc): Delete.
21232 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
21233 and snedi_special_trunc.
21234 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
21235 cbranchdi4, cbranch<F:mode>4): New.
21236 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
21237 here. Use gen_compare_reg instead of gen_compare_operator.
21238 (conditional_trap): Replace with...
21239 (ctrapsi4, ctrapdi4): ... this.
21240 (stack_protect_test): Use cbranchcc4.
21242 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
21244 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
21245 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
21246 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
21247 from operands[0] or operands[3] depending on is_set.
21248 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
21249 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
21250 cmpdf, bCC), sCC: Remove.
21251 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
21252 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
21254 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
21255 spu_emit_branch_or_set.
21257 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
21259 * config/stormy16/stormy16.h (xstormy16_compare_op0,
21260 xstormy16_compare_op1): Delete.
21261 * config/stormy16/stormy16.c (xstormy16_compare_op0,
21262 xstormy16_compare_op1): Delete.
21263 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
21265 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
21266 (cmphi, cmpsi, bCC): Remove.
21268 * config/v850/v850.md (tstsi, cmpsi): Fold into...
21269 (*cmpsi): ... this one.
21270 (cbranchsi4, cstoresi4): New.
21271 (bCC expanders): Delete.
21272 (sCC insns): Fold into...
21273 (*setcc): ... this one.
21274 (casesi): Do not use gen_cmpsi and gen_bgtu.
21275 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
21276 (movsicc): Simplify.
21277 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
21279 * config/vax/vax-protos.h (cond_name): New.
21280 (vax_output_conditional_branch): Remove.
21281 * config/vax/vax.c (cond_name): New.
21282 (vax_output_conditional_branch): Remove.
21283 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
21284 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
21285 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
21286 (bit<VAXint>): Wrap source with (compare).
21287 (b<code> and following unnamed pattern): Rename to *branch and
21288 *branch_reversed. Change macroization to match_operator.
21289 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
21291 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
21292 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
21293 Change last argument to machine_mode.
21294 (xtensa_expand_scc): Add machine_mode argument.
21295 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
21296 (gen_conditional_move, xtensa_expand_conditional_branch,
21297 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
21298 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
21299 Adjust operand numbers.
21300 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
21302 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
21303 (cmpsi, cmpsf, b<code>, s<code>): Delete.
21304 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
21306 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
21308 * optabs.c (prepare_cmp_insn): Temporarily disable test that
21309 causes spurious differences between trunk and cond-optab branch.
21311 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
21314 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
21316 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
21318 * tree.c (iterative_hash_pointer): Delete.
21319 (iterative_hash_expr): Short-circuit handling of NULL pointer.
21320 Hash UIDs and versions of SSA names. Don't special-case built-in
21321 function declarations.
21323 2009-05-11 Ian Lance Taylor <iant@google.com>
21326 * graphite.c: Force -Wc++-compat to only be a warning before
21327 #including "cloog/cloog.h".
21329 2009-05-11 Martin Jambor <mjambor@suse.cz>
21331 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
21333 2009-05-11 Jan Hubicka <jh@suse.cz>
21335 * tree-ssa-loop-ivcanon.c: Include target.h
21336 (struct loop_size): new structure.
21337 (constant_after_peeling): New predicate.
21338 (tree_estimate_loop_size): New function.
21339 (estimated_unrolled_size): Rewrite for new estimates.
21340 (try_unroll_loop_completely): Use new estimates.
21341 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
21343 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
21345 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
21346 libcpp interface change.
21347 (spu_macro_to_expand): Likewise.
21349 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
21351 PR tree-optimization/40026
21352 * gimplify.c (gimplify_init_constructor): Change initial conditional
21353 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
21354 optimize_compound_literals_in_ctor.
21356 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
21358 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
21360 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
21362 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
21364 * tree-vect-data-refs.c (vect_analyze_group_access): Use
21365 HOST_WIDE_INT for gap.
21367 2009-05-11 Ira Rosen <irar@il.ibm.com>
21369 PR tree-optimization/40074
21370 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
21371 account in group size and step comparison.
21373 2009-05-11 Richard Guenther <rguenther@suse.de>
21375 * passes.c (init_optimization_passes): Strip now incorrect comment.
21376 (execute_function_todo): Do not set PROP_alias.
21377 * tree-pass.h (PROP_alias): Remove.
21378 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
21379 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
21380 * tree-nrv.c (pass_return_slot): Likewise.
21381 * tree-object-size.c (pass_object_sizes): Likewise.
21382 * tree-ssa-dom.c (pass_dominator): Likewise.
21383 (pass_phi_only_cprop): Likewise.
21384 * tree-ssa-dse.c (pass_dse): Likewise.
21385 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
21386 (pass_cselim): Likewise.
21387 * tree-ssa-pre.c (pass_pre): Likewise.
21388 (pass_fre): Likewise.
21389 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
21390 * tree-ssa-sink.c (pass_sink_code): Likewise.
21391 * tree-stdarg.c (pass_stdarg): Likewise.
21392 * tree-tailcall.c (pass_tail_calls): Likewise.
21393 * tree-vrp.c (pass_vrp): Likewise.
21395 2009-05-10 Ian Lance Taylor <iant@google.com>
21397 * basic-block.h (enum profile_status): Break out of struct
21398 control_flow_graph.
21399 * cgraph.h (struct inline_summary): Break out of struct
21401 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
21402 of struct cgraph_order_sort.
21403 * combine.c (enum undo_kind): New enum, broken out of struct undo.
21404 * cse.c (struct branch_path): Break out of struct
21405 cse_basic_block_data.
21406 * except.h (enum eh_region_type): Break out of struct eh_region.
21407 * gcc.c (enum add_del): Break out of struct modify_target.
21408 * genrecog.c (enum decision_type): Break out of struct decision_test.
21409 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
21411 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
21412 * regmove.c (enum match_use): New enum, broken out of struct match.
21413 * sched-int.h (enum post_call_group): New enum, broken out of
21415 (struct deps_reg): Break out of struct deps.
21416 * target.h (struct asm_int_op): Break out of struct gcc_target.
21417 * tree-eh.c (struct goto_queue_node): Break out of struct
21419 * tree-inline.h (enum copy_body_cge_which): Break out of
21421 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
21423 * c-decl.c (in_struct, struct_types): New static variables.
21424 (pushtag): Add loc parameter. Change all callers.
21425 (lookup_tag): Add ploc parameter. Change all callers.
21426 (check_compound_literal_type): New function.
21427 (parser_xref_tag): Add loc parameter. Change all callers. If
21428 -Wc++-compat, warn about struct/union/enum types defined within a
21430 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
21431 and loc parameters. Change all callers. Change error calls to
21432 error_at, using loc. For a redefinition, if the location of the
21433 original definition is known, report it. Set in_struct and
21434 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
21435 (finish_struct): Add new parameters enclosing_in_struct and
21436 enclosing_struct_types. Change all callers. Set
21437 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
21438 in the struct. If in a struct, add this struct to struct_types.
21439 (start_enum): Add loc parameter. Change all callers. Use
21440 error_at for errors, using loc. For a redefinition, if the
21441 location of the original definition is known, report it. If in a
21442 struct, add this enum type to struct_types. If -Wc++-compat warn
21443 if in sizeof, typeof, or alignof.
21444 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
21445 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
21446 (c_parser_enum_specifier): Get enum location for start_enum.
21447 (c_parser_struct_or_union_specifier): Get struct location for
21448 start_struct. Save in_struct and struct_types status between
21449 start_struct and finish_struct.
21450 (c_parser_cast_expression): Get location of cast.
21451 (c_parser_alignof_expression): Get location of type.
21452 (c_parser_postfix_expression): Likewise.
21453 (c_parser_postfix_expression_after_paren_type): Add type_loc
21454 parameter. Change all callers. Call check_compound_literal_type.
21455 Use type_loc for error about variable size type.
21456 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
21457 of an enum constant from an enum type defined in a struct or union.
21458 (c_cast_expr): Add loc parameter. Change all callers. If
21459 -Wc++-compat, warn about defining a type in a cast.
21460 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
21461 (start_enum, start_struct, finish_struct): Update declarations.
21462 (parser_xref_tag, c_cast_expr): Update declarations.
21463 (check_compound_literal_type): Declare.
21465 2009-05-11 Ben Elliston <bje@au.ibm.com>
21467 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
21468 for recent libcpp interface change.
21469 (rs6000_macro_to_expand): Likewise.
21471 2009-05-10 Michael Matz <matz@suse.de>
21474 * config/arm/arm.c (require_pic_register): Emit on entry edge,
21475 not at entry of function.
21477 2009-05-10 Richard Guenther <rguenther@suse.de>
21479 PR tree-optimization/40081
21481 * tree-sra.c (instantiate_element): Instantiate scalar replacements
21482 using the main variant of the element type. Do not fiddle with
21483 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
21485 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
21486 structs with volatile fields.
21488 2009-05-10 Jan Hubicka <jh@suse.cz>
21490 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
21491 (estimate_move_cost): Assert that it does not get called for
21493 (estimate_num_insns): Skip VOID types in argument handling.
21494 (optimize_inline_calls): Delete unreachable blocks and verify that
21495 callgraph is valid.
21497 2009-05-10 Jan Hubicka <jh@suse.cz>
21499 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
21500 * cgraph.c (cgraph_mark_address_taken_node): New function.
21501 (dump_cgraph_node): Dump new flag.
21502 * cgraph.h (struct cgraph_node): Add address_taken.
21503 (cgraph_mark_address_taken_node): New function.
21504 * ipa.c (cgraph_postorder): Prioritize functions with address taken
21505 since new direct calls can be born.
21507 2009-05-10 Joseph Myers <joseph@codesourcery.com>
21509 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
21510 tok->val.node.node.
21512 2009-05-10 Jan Hubicka <jh@suse.cz>
21514 PR middle-end/40084
21515 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
21517 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
21518 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
21519 * tree-inline.c (copy_bb): Set frequency correctly.
21520 (fold_marked_statements): Update call to
21521 cgraph_update_edges_for_call_stmt.
21523 2009-05-10 Joseph Myers <joseph@codesourcery.com>
21525 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
21526 identifiers in diagnostics.
21527 * config/arm/arm.c (arm_handle_fndecl_attribute,
21528 arm_handle_isr_attribute): Likewise.
21529 * config/avr/avr.c (avr_handle_progmem_attribute,
21530 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
21531 * config/bfin/bfin.c (handle_int_attribute,
21532 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
21533 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
21534 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
21536 * config/darwin.c (darwin_handle_kext_attribute,
21537 darwin_handle_weak_import_attribute): Likewise.
21538 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
21539 h8300_handle_eightbit_data_attribute,
21540 h8300_handle_tiny_data_attribute): Likewise.
21541 * config/i386/i386.c (ix86_handle_cconv_attribute,
21542 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
21543 * config/i386/winnt.c (ix86_handle_shared_attribute,
21544 ix86_handle_selectany_attribute): Likewise.
21545 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
21546 * config/m32c/m32c.c (function_vector_handler): Likewise.
21547 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
21548 m68hc11_handle_fntype_attribute): Likewise.
21549 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
21550 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
21551 * config/mips/mips.c (mips_insert_attributes,
21552 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
21553 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
21554 rs6000_handle_struct_attribute): Likewise.
21555 * config/sh/sh.c (sh_insert_attributes,
21556 sh_handle_resbank_handler_attribute,
21557 sh_handle_interrupt_handler_attribute,
21558 sh2a_handle_function_vector_handler_attribute,
21559 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
21561 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
21562 * config/spu/spu.c (spu_handle_fndecl_attribute,
21563 spu_handle_vector_attribute): Likewise.
21564 * config/stormy16/stormy16.c
21565 (xstormy16_handle_interrupt_attribute): Likewise.
21566 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
21567 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
21569 2009-05-10 Joseph Myers <joseph@codesourcery.com>
21571 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
21572 (pp_translate_identifiers): New.
21573 (pp_identifier): Only conditionally translate identifier to locale
21575 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
21576 (pp_base_tree_identifier): Only conditionally translate identifier
21577 to locale character set.
21578 * c-pretty-print.c (M_): Define.
21579 (pp_c_type_specifier, pp_c_primary_expression): Mark English
21580 fragments for conditional translation with M_.
21581 * tree-pretty-print.c (maybe_init_pretty_print): Disable
21582 identifier translation.
21584 2009-05-10 Richard Guenther <rguenther@suse.de>
21586 PR tree-optimization/40081
21587 * tree-sra.c (instantiate_element): Instantiate scalar replacements
21588 using the main variant of the element type. Do not fiddle with
21589 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
21591 2009-05-09 Jan Hubicka <jh@suse.cz>
21593 PR middle-end/40080
21594 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
21595 indirect calls; verify cgraph afterwards.
21597 2009-05-09 Jan Hubicka <jh@suse.cz>
21600 * ipa.c (update_inlined_to_pointer): New function.
21601 (cgraph_remove_unreachable_nodes): Use it.
21603 2009-05-09 Jan Hubicka <jh@suse.cz>
21605 * tree-eh.c (struct leh_state): Remove prev_try.
21606 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
21607 not track prev_try.
21608 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
21609 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
21610 remove_eh_handler_and_replace, foreach_reachable_handler,
21611 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
21612 * except.h (struct eh_region): Remove eh_region_u_cleanup.
21613 (gen_eh_region_cleanup): Update prototype.
21615 2009-05-09 Jan Hubicka <jh@suse.cz>
21617 PR middle-end/40043
21618 * except.c (copy_eh_region): Always set prev_try.
21619 (redirect_eh_edge_to_label): Find outer try.
21620 (foreach_reachable_handler): When looking for prev try
21621 handle case where previous try is not going to be taken.
21623 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
21625 PR tree-optimization/40049
21626 * tree-vect-stmts.c (vectorizable_operation): If the machine has
21627 only vector/vector shifts, convert the type of the constant to the
21628 appropriate type to avoid building incorrect trees, which
21629 eventually have problems with garbage collection.
21631 2009-05-08 Joseph Myers <joseph@codesourcery.com>
21633 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
21634 -1 for complex floating-point types if honoring signed zeros.
21636 2009-05-08 Jan Hubicka <jh@suse.cz>
21638 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
21639 argument; handle correctly when profile is absent.
21640 (build_cgraph_edges): Update.
21641 (rebuild_cgraph_edges): Update.
21642 * cgraph.c: Do not include varray.h.
21643 (cgraph_set_call_stmt_including_clones): New function.
21644 (cgraph_create_edge_including_clones): Likewise
21645 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
21646 (cgraph_update_edges_for_call_stmt): Handle clones.
21647 (cgraph_remove_node): Handle clone tree.
21648 (cgraph_remove_node_and_inline_clones): New function.
21649 (dump_cgraph_node): Dump clone tree.
21650 (cgraph_clone_node): Handle clone tree.
21651 (clone_function_name): Bring here from tree-inline.c.
21652 (cgraph_create_virtual_clone): New function.
21653 * cgraph.h (ipa_replace_map): Move here from ipa.h.
21654 (cgraph_clone_info): New function.
21655 (strut cgraph_node): Add clone_info and new clone tree pointers.
21656 (cgraph_remove_node_and_inline_clones,
21657 cgraph_set_call_stmt_including_clones,
21658 cgraph_create_edge_including_clones,
21659 cgraph_create_virtual_clone): Declare.
21660 (cgraph_function_versioning): Use VEC argument.
21661 (compute_call_stmt_bb_frequency): Update prototype.
21662 (cgraph_materialize_all_clones): New function.
21663 * ipa-cp.c (ipcp_update_cloned_node): Remove.
21664 (ipcp_create_replace_map): Update to VECtors.
21665 (ipcp_update_callgraph): Use virtual clones.
21666 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
21667 (ipcp_update_profiling): Do not update local profiling.
21668 (ipcp_insert_stage): Use VECtors and virtual clones.
21669 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
21670 (clone_of_p): New function.
21671 (cgraph_preserve_function_body_p): Use clone tree.
21672 (cgraph_optimize): Materialize clones.
21673 (cgraph_function_versioning): Update for VECtors.
21674 (save_inline_function_body): Use clone tree.
21675 (cgraph_materialize_clone): New function.
21676 (cgraph_materialize_all_clones): Likewise.
21677 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
21678 * ipa.c: Include gimple.h.
21679 (cgraph_remove_unreachable_nodes): Use clone tree.
21680 * ipa-prop.c (ipa_note_param_call): Update call to
21681 compute_call_stmt_bb_frequencycall.
21682 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
21683 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
21684 (copy_bb): Handle updating of clone tree; add new edge when new call
21686 (expand_call_inline): Be strict about every call having edge.
21687 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
21688 (delete_unreachable_blocks_update_callgraph): New function.
21689 (tree_function_versioning): Use VECtors; always remove unreachable
21690 blocks and fold conditionals.
21691 * tree-inline.h: Do not include varray.h.
21692 (tree_function_versioning): Remove.
21693 * Makefile.in (GTFILES): Remove tree-inline.c
21694 * passes.c (do_per_function): Do only functions having body.
21695 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
21698 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
21699 Andrew Morrow <acm@google.com>
21702 * c-common.c (c_common_attribute_table): Permit deprecated
21703 attribute to take an optional argument.
21704 (handle_deprecated_attribute): If the optional argument to
21705 __attribute__((deprecated)) is not a string ignore the attribute
21706 and emit a warning.
21708 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
21709 * c-typeck.c (build_component_ref): Likewise.
21710 (build_external_ref): Likewise.
21712 * toplev.c (warn_deprecated_use): Add an attribute argument.
21713 Emit the message associated with __attribute__((deprecated)).
21715 * toplev.h (warn_deprecated_use): Updated.
21717 * doc/extend.texi: Document new optional parameter to
21718 __attribute__((deprecated))
21720 2009-05-08 Michael Eager <eager@eagercon.com>
21722 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
21723 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
21725 2009-05-08 Richard Guenther <rguenther@suse.de>
21727 PR tree-optimization/40062
21728 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
21729 Avoid exponential behavior.
21731 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
21733 PR rtl-optimization/33928
21735 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
21736 process_uses, build_single_def_use_links): New.
21737 (update_df): Update use_def_ref.
21738 (forward_propagate_into): Use get_def_for_use instead of use-def
21740 (fwprop_init): Call build_single_def_use_links and let it initialize
21742 (fwprop_done): Free use_def_ref.
21743 (fwprop_addr): Eliminate duplicate call to df_set_flags.
21744 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
21745 df_rd_simulate_one_insn): New.
21746 (df_rd_bb_local_compute_process_def): Update head comment.
21747 (df_chain_create_bb): Use the new RD simulation functions.
21748 * df.h (df_rd_simulate_artificial_defs_at_top,
21749 df_rd_simulate_one_insn): New.
21750 * opts.c (decode_options): Enable fwprop at -O1.
21751 * doc/invoke.texi (-fforward-propagate): Document this.
21753 2009-05-08 Joseph Myers <joseph@codesourcery.com>
21756 * c-typeck.c (build_binary_op): Handle arithmetic between one real
21757 and one complex operand specially.
21758 * tree-complex.c (some_nonzerop): Do not identify a real value as
21759 zero if flag_signed_zeros.
21761 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
21763 PR rtl-optimization/33928
21764 * loop-invariant.c (record_use): Fix && vs. || mishap.
21766 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
21768 PR rtl-optimization/33928
21769 * loop-invariant.c (struct use): Add addr_use_p.
21770 (struct def): Add n_addr_uses.
21771 (struct invariant): Add cheap_address.
21772 (create_new_invariant): Set cheap_address.
21773 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
21774 (record_uses): Pass df_ref to record_use.
21775 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
21778 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
21780 * config/sh/sh.c: Do not include c-pragma.h.
21782 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
21784 * config/spu/spu.c: Remove include of c-common.h.
21786 2009-05-07 Janis Johnson <janis187@us.ibm.com>
21789 * c-common.h (mark_valid_location_for_stdc_pragma,
21790 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
21791 clear_float_const_decimal64, float_const_decimal64_p): New.
21792 * c.opt (Wunsuffixed-float-constants): New.
21793 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
21794 unsuffixed float constant, handle new warning.
21795 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
21796 * c-decl.c (c_scope): New flag float_const_decimal64.
21797 (set_float_const_decimal64, clear_float_const_decimal64,
21798 float_const_decimal64_p): New.
21799 (push_scope): Set new flag.
21800 * c-parser.c (c_parser_translation_unit): Mark when it's valid
21801 to use STDC pragmas.
21802 (c_parser_external_declaration): Ditto.
21803 (c_parser_compound_statement_nostart): Ditto.
21804 * c-pragma.c (valid_location_for_stdc_pragma,
21805 mark_valid_location_for_stdc_pragma,
21806 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
21807 handle_pragma_float_const_decimal64): New.
21808 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
21809 * cp/semantics.c (valid_location_for_stdc_pragma_p,
21810 set_float_const_decimal64, clear_float_const_decimal64,
21811 float_const_decimal64_p): New dummy functions.
21812 * doc/extend.texi (Decimal Float): Remove statement that the
21813 pragma, and suffix for double constants, are not supported.
21814 * doc/invoke.texi (Warning Options): List new option.
21815 (-Wunsuffixed-float-constants): New.
21817 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
21819 * config/i386/i386.c: Do not include c-common.h.
21821 2009-05-07 Mark Heffernan <meheff@google.com>
21823 * doc/invoke.texi (Debugging Options): Document change of debugging
21825 * opts.c (decode_options): Make dump_base_name relative to
21826 aux_base_name directory.
21828 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
21830 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
21831 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
21833 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
21835 * Makefile.in (install-plugin): Simplify a bit.
21837 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
21839 * Makefile.in (OBJS-common): Add regcprop.o.
21841 * timevar.def (TV_CPROP_REGISTERS): New.
21842 * regrename.c (regrename_optimize): Return 0.
21843 (rest_of_handle_regrename): Delete.
21844 (pass_rename_registers): Point to regrename_optimize.
21845 (struct value_data_entry, struct value_data,
21846 kill_value_one_regno, kill_value_regno, kill_value,
21847 set_value_regno, init_value_data, kill_clobbered_value,
21848 kill_set_value, kill_autoinc_value, copy_value,
21849 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
21850 replace_oldest_value_reg, replace_oldest_value_addr,
21851 replace_oldest_value_mem, copyprop_hardreg_forward_1,
21852 debug_value_data, validate_value_data): Move...
21853 * regcprop.c: ... here.
21854 (rest_of_handle_cprop): Delete.
21855 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
21857 2009-05-07 Jakub Jelinek <jakub@redhat.com>
21859 PR middle-end/40057
21860 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
21861 GEN_INT for 1 << bitnum.
21862 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
21863 build_int_cst_type.
21865 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
21867 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
21868 Remove wrong description of "nand" operation.
21870 2009-05-06 Richard Guenther <rguenther@suse.de>
21871 Adam Nemet <anemet@caviumnetworks.com>
21873 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
21874 comment. Add that if LHS is not a gimple register, then RHS1 has
21875 to be a single object (GIMPLE_SINGLE_RHS).
21877 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
21879 * expr.c (get_def_for_expr): Move it up in the file.
21880 (store_field): When expanding a bit-field store, look at the
21881 defining gimple stmt for the masking conversion.
21883 2009-05-06 Janis Johnson <janis187@us.ibm.com>
21885 PR middle-end/39986
21886 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
21887 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
21888 32-bit memcpy into long.
21890 2009-05-06 Jakub Jelinek <jakub@redhat.com>
21892 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
21893 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
21895 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
21896 instead of appending DW_OP_deref*.
21898 2009-05-06 Michael Matz <matz@suse.de>
21900 PR middle-end/40021
21901 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
21902 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
21904 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
21906 * Makefile.in (install-plugin): Fix srcdir handling.
21908 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
21910 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
21911 when processing for not_regs_needed bitmap.
21912 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
21913 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
21914 handling it for rhs.
21916 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
21918 * config/i386/i386.md (unnamed inc/dec peephole): Use
21919 optimize_insn_for_size_p instead of optimize_size.
21920 * config/i386/predicates.md (incdec_operand): Likewise.
21921 (aligned_operand): Likewise.
21922 * config/i386/sse.md (divv8sf3): Likewise.
21923 (sqrtv8sf2): Likewise.
21925 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
21927 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
21929 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
21931 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
21933 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
21934 ssemodesuffixf2c with avxmodesuffixf2c.
21936 2009-05-06 Joseph Myers <joseph@codesourcery.com>
21939 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
21941 2009-05-05 Jakub Jelinek <jakub@redhat.com>
21943 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
21944 (struct tree_base): Adjust spacing for 8 bit boundaries.
21945 (struct tree_decl_common): Add decl_by_reference_flag bit.
21946 (DECL_BY_REFERENCE): Adjust.
21947 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
21948 print DECL_BY_REFERENCE bit.
21949 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
21950 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
21951 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
21952 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
21955 PR middle-end/39666
21956 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
21957 range of the type, but default label is missing, add it with one
21958 of the existing labels instead of adding a new label for it.
21960 2009-05-05 Joseph Myers <joseph@codesourcery.com>
21964 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
21966 * Makefile.in (enable_plugin, plugin_includedir): New.
21967 (install): Depend on install-plugin.
21968 (PLUGIN_HEADERS): New.
21969 (install-plugin): New.
21970 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
21972 2009-05-05 Richard Guenther <rguenther@suse.de>
21974 PR tree-optimization/40022
21975 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
21977 (phivn_valid_p): Fix tuplification error, simplify.
21978 (phiprop_insert_phi): Add dumps.
21979 (propagate_with_phi): Simplify.
21981 2009-05-05 Richard Guenther <rguenther@suse.de>
21983 PR middle-end/40023
21984 * builtins.c (gimplify_va_arg_expr): Properly build the address.
21986 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
21988 * tree.h (strip_float_extensions): Remove duplicate declaration.
21989 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
21990 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
21991 block_ultimate_origin): Rearrange the declarations line to match the
21992 comment that indicates the .c file which the functions are defined.
21993 (dwarf2out_*, set_decl_rtl): Add comment.
21994 (get_base_address): Adjust comment.
21995 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
21996 declarations line and add comment.
21997 (is_builtin_name): Add blank after function name, for clarity.
21999 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22001 * attribs.c (decl_attributes): Use %qE for identifiers in
22003 * cgraphunit.c (verify_cgraph_node): Translate function names to
22004 locale character set in diagnostics.
22005 * coverage.c (get_coverage_counts): Use %qE for identifiers in
22007 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
22008 Document that functions are named in UTF-8.
22009 * expr.c (expand_expr_real_1): Translate function names to locale
22010 character set in diagnostics.
22011 * gimplify.c (omp_notice_variable, omp_is_private,
22012 gimplify_scan_omp_clauses): Use %qE for identifiers in
22014 * langhooks.c (lhd_print_error_function): Translate function names
22015 to locale character set.
22016 * langhooks.h (decl_printable_name): Document that return value is
22017 in internal character set.
22018 * stmt.c: Include pretty-print.h
22019 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
22021 (resolve_operand_name_1): Translate named operand name to locale
22023 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
22025 * toplev.c (announce_function): Translate function names to locale
22027 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
22028 (default_tree_printer): Use pp_identifier or translate identifiers
22029 to locale character set. Mark "<anonymous>" for translation.
22030 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
22031 for identifiers in diagnostics.
22032 * tree.c (handle_dll_attribute): Use %qE for identifiers in
22034 * varasm.c (output_constructor): Use %qE for identifiers in
22037 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
22039 * configure.ac: use ` ` instead of $()
22040 * configure: Regenerate.
22042 2009-05-05 Ben Elliston <bje@au.ibm.com>
22044 * config/pa/linux-atomic.c: Eliminate conditional include of
22045 errno.h on non-LP64 systems to simplify build requirements.
22047 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22049 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
22051 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
22052 and pass value to identifier_to_locale.
22053 (warn_variable_length_array): Make name a tree.
22054 (grokdeclarator): Separate diagnostic texts for named and unnamed
22055 declarators. Use %qE for named declarators.
22056 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
22058 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
22059 identifiers in diagnostics.
22060 * c-typeck.c (push_member_name, start_init): Pass identifiers to
22061 identifier_to_locale. Mark "anonymous" strings for translation.
22063 2009-05-04 Michael Eager <eager@eagercon.com>
22065 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
22066 address for DImode/DFmode only if double-precision FP regs.
22068 2009-05-04 Michael Eager <eager@eagercon.com>
22070 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
22071 TARGET_SINGLE_FLOAT check.
22073 2009-05-04 Michael Eager <eager@eagercon.com>
22075 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
22077 2009-05-04 Michael Eager <eager@eagercon.com>
22079 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
22080 * config/rs6000/t-xilinx: New
22082 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
22084 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
22085 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
22086 * gcc/explow.c (memory_address): Use target hook.
22087 * gcc/targhooks.c (default_legitimize_address): New.
22088 * gcc/targhooks.h (default_legitimize_address): New.
22089 * gcc/target.h (legitimize_address): New.
22090 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
22091 (TARGET_INITIALIZER): Include it.
22092 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
22094 * config/bfin/bfin-protos.h (legitimize_address): Remove.
22095 * config/bfin/bfin.c (legitimize_address): Remove.
22096 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
22097 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
22099 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
22100 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
22102 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
22103 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
22104 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
22105 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
22106 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
22107 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
22108 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
22109 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
22110 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
22111 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
22112 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
22113 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
22114 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
22115 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
22116 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
22117 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
22118 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
22119 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
22120 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
22121 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
22122 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
22123 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
22124 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
22126 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
22127 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
22128 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
22129 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
22130 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
22131 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
22132 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
22133 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
22134 (thumb_legitimize_address): Delete.
22135 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
22136 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
22137 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
22138 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
22139 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
22140 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
22142 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
22145 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
22146 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
22147 * config/m32r/m32r.c (m32r_legitimize_address): New.
22148 * config/m68k/m68k.c (m68k_legitimize_address): New.
22149 * config/score/score.c (score_legitimize_address): Standardize.
22150 * config/score/score3.c (score3_legitimize_address): Standardize.
22151 * config/score/score3.h (score3_legitimize_address): Adjust.
22152 * config/score/score7.c (score7_legitimize_address): Standardize.
22153 * config/score/score7.h (score7_legitimize_address): Adjust.
22154 * config/sh/sh.c (sh_legitimize_address): New.
22155 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
22157 * gcc/config/s390/s390.c (legitimize_address): Rename to...
22158 (s390_legitimize_address): ... this.
22159 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
22160 (sparc_legitimize_address): ... this.
22161 * gcc/config/i386/i386.c (legitimize_address): Rename to...
22162 (ix86_legitimize_address): ... this.
22163 * gcc/config/avr/avr.c (legitimize_address): Rename to...
22164 (avr_legitimize_address): ... this.
22165 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
22166 (mn10300_legitimize_address): ... this.
22167 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
22168 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
22169 (alpha_expand_mov): Adjust call.
22171 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
22172 * config/spu/spu.c (spu_legitimize_address): Likewise.
22173 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
22174 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
22176 2009-05-04 Joseph Myers <joseph@codesourcery.com>
22178 * intl.c (locale_encoding, locale_utf8): New.
22179 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
22180 * intl.h (locale_encoding, locale_utf8): Declare.
22181 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
22182 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
22184 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
22186 (pp_tree_identifier): Define to call pp_base_tree_identifier.
22187 (pp_base_tree_identifier): Declare as function.
22188 (identifier_to_locale): Declare.
22189 * Makefile.in (pretty-print.o): Update dependencies.
22190 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
22192 2009-05-04 Richard Guenther <rguenther@suse.de>
22194 PR middle-end/40015
22195 * builtins.c (fold_builtin_memory_op): Do not decay to element
22196 type if the size matches the whole array.
22198 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
22200 * expmed.c (synth_mult): When trying out a shift, pass the result
22203 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
22205 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
22206 (shiftsub1_cost): New.
22207 (init_expmed): Compute shiftsub1_cost.
22208 (synth_mult): Optimize multiplications by constants of the form
22209 -(2^^m-1) for some constant positive integer m.
22211 2009-05-03 Richard Guenther <rguenther@suse.de>
22214 * c-typeck.c (array_to_pointer_conversion): Do not built
22215 ADDR_EXPRs of arrays of pointer-to-element type.
22216 * c-gimplify.c (c_gimplify_expr): Revert change fixing
22217 up wrong ADDR_EXPRs after-the-fact.
22218 * c-common.c (strict_aliasing_warning): Strip pointer
22219 conversions for obtaining the original type.
22220 * builtins.c (fold_builtin_memset): Handle array types.
22221 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
22224 2009-05-03 Richard Guenther <rguenther@suse.de>
22226 PR middle-end/23329
22227 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
22228 Do not lose casts from array types with unknown extent to array
22229 types with known extent.
22230 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
22231 alias set compatibility.
22233 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
22235 * flags.h (extra_warnings): Delete.
22236 * toplev.c (process_options): Handle Wuninitialized here.
22237 * opts.c (extra_warnings): Delete.
22238 (set_Wextra): Delete.
22239 (common_handle_option): -Wextra can be handled automatically.
22240 * c-opts.c (c_common_handle_option): Delete obsolete code.
22241 (c_common_post_options): Simplify comment.
22242 * common.opt (W): Add Var.
22244 (Wuninitialized): Initialize to -1.
22246 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
22247 Richard Guenther <rguenther@suse.de>
22249 * expr.c (get_def_for_expr): New function.
22250 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
22251 SSA rather than trees.
22252 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
22253 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
22255 2009-05-03 Joseph Myers <joseph@codesourcery.com>
22257 * c-common.c (reswords): Add _Imaginary.
22258 * c-common.c (enum rid): Add RID_IMAGINARY.
22260 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
22262 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
22263 Patch by Richard Guenther.
22265 2009-05-03 Anatoly Sokolov <aesok@post.ru>
22267 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
22268 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
22269 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
22270 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
22271 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
22272 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
22273 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
22274 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
22275 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
22276 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
22277 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
22278 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
22279 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
22280 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
22281 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
22282 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
22283 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
22284 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
22286 2009-05-02 Richard Guenther <rguenther@suse.de>
22288 PR tree-optimization/39940
22289 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
22292 2009-05-02 Richard Guenther <rguenther@suse.de>
22294 PR middle-end/40001
22295 * tree-ssa.c (execute_update_addresses_taken): Properly check
22296 if we can mark a variable DECL_GIMPLE_REG_P.
22297 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
22298 back to the end of the function.
22299 (is_gimple_reg_type): Remove complex type special casing.
22300 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
22303 2009-05-02 Ben Elliston <bje@au.ibm.com>
22305 * doc/collect2.texi (Collect2): Document search path behaviour
22306 when configured with --with-ld.
22308 2009-05-02 Jan Hubicka <jh@suse.cz>
22310 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
22311 parameter; update callers.
22312 (coalesce_cost_edge): EH edges are costier because they needs
22313 splitting even if not critical and even more costier when there are
22314 multiple EH predecestors.
22316 2009-05-02 Jan Hubicka <jh@suse.cz>
22318 * except.c (remove_eh_handler_and_replace): Handle updating after
22319 removing TRY blocks.
22321 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
22323 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
22325 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
22327 * varasm.c: Do not include c-pragma.h.
22328 * attribs.c: Do not incude c-common.h.
22330 2009-05-01 Michael Matz <matz@suse.de>
22332 * calls.c (initialize_argument_information): Handle SSA names like
22333 decls with a non MEM_P DECL_RTL.
22335 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
22337 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
22338 * ipa-utils.c: Likewise.
22339 * ipa-type-escape.c: Likewise.
22340 * cgraphunit.c Do not include c-common.h.
22341 * ipa-pure-const.c: Likewise.
22342 * tree-if-conv.c: Likewise.
22343 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
22344 * ipa-struct-reorg.c: Likewise.
22345 * tree-nomudflap.c: Likewise.
22346 * tree-ssa-structalias.c: Likewise.
22348 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
22350 * store-motion.c: Many cleanups to make this pass a first-class
22351 citizen instead of an appendix to gcse load motion. Add TODO list
22352 to make this pass faster/cleaner/better.
22354 (struct ls_expr): Post gcse.c-split cleanups.
22355 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
22356 "stores" field to "avail_stores".
22357 (pre_ldst_mems): Rename to store_motion_mems.
22358 (pre_ldst_table): Rename to store_motion_mems_table.
22359 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
22360 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
22361 (ldst_entry): Rename to st_expr_entry, update users.
22362 (free_ldst_entry): Rename to free_st_expr_entry, update users.
22363 (free_ldst_mems): Rename to free_store_motion_mems, update users.
22364 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
22366 (first_ls_expr): Rename to first_st_expr, update users.
22367 (next_ls_expr): Rename to next_st_expr, update users.
22368 (print_ldst_list): Rename to print_store_motion_mems. Print names of
22369 fields properly for store motion instead of names inherited from load
22371 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
22372 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
22375 (ae_kill): Rename to st_kill, update users.
22376 (ae_gen): Rename to st_avloc, update users.
22377 (transp): Rename to st_transp, update users.
22378 (pre_insert_map): Rename to st_insert_map, update users.
22379 (pre_delete_map): Rename to st_delete_map, update users.
22380 (insert_store, build_store_vectors, free_store_memory,
22381 one_store_motion_pass): Update for abovementioned changes.
22383 (gcse_subst_count, gcse_create_count): Remove.
22384 (one_store_motion_pass): New statistics counters "n_stores_deleted"
22385 and "n_stores_created", local variables.
22387 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
22390 (regvec, compute_store_table_current_insn): Remove.
22391 (reg_set_info, reg_clear_last_set): Remove.
22392 (compute_store_table): Use DF caches instead of local dataflow
22395 2009-05-01 Joseph Myers <joseph@codesourcery.com>
22397 * c-objc-common.c (c_tree_printer): Print identifiers with
22398 pp_identifier, not pp_string. Mark "({anonymous})" for
22400 * c-pretty-print.c (pp_c_ws_string): New.
22401 (pp_c_cv_qualifier, pp_c_type_specifier,
22402 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
22403 pp_c_storage_class_specifier, pp_c_function_specifier,
22404 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
22405 pp_c_primary_expression, pp_c_postfix_expression,
22406 pp_c_unary_expression, pp_c_shift_expression,
22407 pp_c_relational_expression, pp_c_equality_expression,
22408 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
22409 use pp_string and pp_c_ws_string in place of pp_identifier and
22410 pp_c_identifier for non-identifiers. Mark English strings for
22412 * c-pretty-print.h (pp_c_ws_string): Declare.
22414 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
22415 Roland McGrath <roland@redhat.com>
22417 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
22418 (ENABLE_LD_BUILDID): New configuration option.
22419 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
22420 (LINK_BUILDID_SPEC): New macro.
22421 (init_spec): If defined, prepend it between LINK_EH_SPEC and
22423 * doc/install.texi: Document --enable-linker-build-id option.
22424 * configure: Rebuild.
22425 * config.in: Rebuild.
22427 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
22429 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
22430 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
22431 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
22432 MIPS_GP_SAVE_AREA_SIZE.
22433 * config/mips/mips.c (struct mips_frame_info): Update comment
22434 before arg_pointer_offset and hard_frame_pointer_offset.
22435 (mips_compute_frame_info): Update diagram before function: to
22436 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
22437 indicate the position of frame_pointer_rtx with -fstack-protector and
22438 to show args_size. Don't allocate cprestore area for leaf functions
22439 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
22441 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
22443 2009-04-30 Michael Matz <matz@suse.de>
22445 PR tree-optimization/39955
22446 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
22448 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
22450 * ira.c (setup_cover_and_important_classes): Use safe macro
22451 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
22453 * genpreds.c (write_tm_preds_h): Output suitable definition of
22454 REG_CLASS_FOR_CONSTRAINT.
22456 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
22458 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
22460 * bitmap.c (bitmap_descriptor): Likewise.
22461 * ggc-common.c (loc_descriptor): Likewise.
22462 * varray.c (varray_descriptor): Likewise.
22463 * vec.c (vec_descriptor): Likewise.
22465 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
22467 * Makefile.in (dce.o): Add $(EXCEPT_H).
22468 * dce.c: Include except.h and delete redundant vector definitions.
22469 (deletable_insn_p): Return false for non-call insns that can throw
22472 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
22474 * gcse.c (ae_gen): Remove.
22475 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
22476 and make non-static function to make it available in store-motion.c.
22477 Update call sites with search-and-replace.
22478 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
22479 extract_mentioned_regs, extract_mentioned_regs_helper,
22480 find_moveable_store, compute_store_table, load_kills_store, find_loads,
22481 store_killed_in_insn, store_killed_after, store_killed_before,
22482 build_store_vectors, insert_insn_start_basic_block, insert-store,
22483 remove_reachable_equiv_notes, replace_store_insn, delete_store,
22484 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
22485 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
22486 * store-motion.c: ...new file. Also copy data structures from gcse.c
22487 and clean up to remove parts not used by store motion.
22488 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
22489 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
22491 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22494 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
22495 when optimizing for size.
22497 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
22499 * gcse.c (gcse_constant_p): Fix typo in last change.
22501 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
22503 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
22505 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
22507 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
22509 2009-04-29 James E. Wilson <wilson@codesourcery.com>
22511 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
22512 CONST_HIGH_PART result.
22514 2009-04-29 Anatoly Sokolov <aesok@post.ru>
22516 * config/avr/avr.c (initial_elimination_offset): Rename to
22517 avr_initial_elimination_offset.
22518 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
22519 change return type to bool.
22520 (avr_can_eliminate): New function.
22521 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
22522 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
22523 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
22524 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
22525 avr_initial_elimination_offset.
22526 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
22527 (avr_initial_elimination_offset): Define.
22529 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
22530 Steven Bosscher <steven@gcc.gnu.org>
22532 PR rtl-optimization/39938
22533 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
22534 * cfgrtl.c: Include insn-attr.h.
22535 (rest_of_pass_free_cfg): New function.
22536 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
22537 * resource.c (init_resource_info): Remove call to df_analyze.
22539 2009-04-29 Richard Guenther <rguenther@suse.de>
22542 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
22543 allow conversion to signed integers.
22545 2009-04-29 Richard Guenther <rguenther@suse.de>
22547 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
22548 shifts of floating point vectors if the shift amount is
22549 a constant multiple of the element size.
22551 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
22552 Michael Matz <matz@suse.de>
22554 PR middle-end/39927
22556 * tree-outof-ssa.c (emit_partition_copy): New function.
22557 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
22558 insert_part_to_rtx_on_edge): Perform the partition base var
22559 copy using emit_partition_copy.
22560 (insert_value_copy_on_edge): Convert constants to the right mode.
22561 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
22562 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
22564 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
22566 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
22567 scan backwards to try to find a constant to initialize it.
22569 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
22570 insn before the loop_end instruction, don't look past labels.
22572 2009-04-29 Richard Guenther <rguenther@suse.de>
22574 PR middle-end/39937
22575 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
22576 loose type conversions.
22577 (forward_propagate_addr_expr): Fix tuplification bug. Remove
22578 stmts only if there are no uses of its definition.
22580 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
22582 * config/bfin/bfin.h (splitting_loops): Declare.
22583 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
22584 Reorder bit definitions to be ascending.
22585 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
22586 * config/bfin/bfin.c (splitting_loops): New variable.
22587 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
22588 (struct loop_info): Remove members INIT and LOOP_INIT.
22589 (bfin_optimize_loop): Don't set them. Reorder the code that generates
22590 the LSETUP sequence. Allow LC to be loaded from any register, but
22591 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
22592 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
22594 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
22595 of reload_completed.
22598 * config/bfin/bfin.md (movsi_insn): Refine constraints.
22600 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
22602 * Makefile.in (PLUGIN_VERSION_H): New.
22603 (OBJS-common): Remove plugin-version.o.
22604 (plugin.o): Depend on (PLUGIN_VERSION_H).
22605 (plugin-version.o): Remove.
22606 * configure: Regenerate
22607 * configure.ac: Create plugin-version.h.
22608 * gcc-plugin.h (plugin_gcc_version): Remove.
22609 (plugin_default_version_check): Change signature.
22610 * plugin-version.c: Remove.
22611 * plugin.c: Include plugin-version.h.
22612 (str_plugin_gcc_version_name): Remove.
22613 (try_init_one_plugin): Pass gcc version to plugin_init.
22614 (plugin_default_version_check): Both gcc and plugin versions are now
22617 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
22619 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
22620 problematic last insns. Test for TYPE_CALL rather than CALL_P.
22621 Remove special case testing for last insn of inner loops. Don't fail
22622 if the loop ends with a jump, emit an extra nop instead.
22624 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
22625 DREGS rather than comparing directly. Remove code that tries to
22626 account for latencies.
22628 2009-04-29 Richard Guenther <rguenther@suse.de>
22630 PR tree-optimization/39941
22631 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
22632 eliminating an indirect call.
22634 2009-04-29 Richard Guenther <rguenther@suse.de>
22636 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
22637 parameter. Allow invariants as base if !require_lvalue.
22638 (verify_gimple_assign_single): Adjust.
22640 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
22642 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
22643 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
22644 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
22645 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
22646 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
22648 * config/bfin/bfin.c (bfin_expand_builtin,
22649 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
22651 2009-04-28 Richard Guenther <rguenther@suse.de>
22653 * tree-vect-loop.c (get_initial_def_for_induction): Use
22654 correct types for pointer increment.
22656 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22658 * toplev.c (print_version): Update GMP version string calculation.
22660 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
22662 PR rtl-optimization/39938
22663 * resource.c (init_resource_info): Add call to df_analyze.
22665 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
22667 * config/alpha/alpha.md (usegp): Cast the result of
22668 alpha_find_lo_sum_using_gp to enum attr_usegp.
22669 * config/alpha/alpha.c (override_options): Remove end-of-structure
22670 marker element from cpu_table. Use array size of cpu_table to handle
22671 -mcpu and -mtune options.
22672 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
22674 2009-04-28 Joseph Myers <joseph@codesourcery.com>
22676 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
22677 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
22678 tune_32 and tune_64.
22679 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22680 support on PowerPC.
22681 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
22682 * config/rs6000/option-defaults.h: ... here. New file.
22683 (OPT_64, OPT_32): Define.
22684 (MASK_64BIT): Define to 0 if not already defined.
22685 (OPT_ARCH64, OPT_ARCH32): Define.
22686 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
22689 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22691 * config/arm/arm.c (arm_override_options): Emit error on using
22694 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
22696 PR rtl-optimization/39914
22697 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
22698 registers for allocnos created from user-defined variables only
22699 when not optimizing.
22701 2009-04-28 Richard Guenther <rguenther@suse.de>
22703 PR middle-end/39937
22704 * fold-const.c (fold_binary): Use distribute_real_division only
22707 2009-04-28 Steve Ellcey <sje@cup.hp.com>
22709 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
22710 add hpux-stdint.h to tm_file.
22711 (hppa[12]*-*-hpux11*): Ditto.
22712 (ia64*-*-hpux*): Ditto.
22713 * config/hpux-stdint.h: New.
22714 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
22715 __STDC_EXT__ for all compiles.
22716 * config/pa/pa-hpux.h: Ditto.
22717 * config/pa/pa-hpux10.h: Ditto.
22718 * config/pa/pa-hpux11.h: Ditto.
22720 2009-04-28 Catherine Moore <clm@codesourcery.com>
22722 * debug.h (set_name): Add comment.
22724 2009-04-28 Andrew Pinski <pinskia@gmail.com>
22727 * config/darwin.c (machopic_gen_offset): Check
22728 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
22729 * config/arm/arm.c (require_pic_register): Likewise.
22731 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
22733 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
22734 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
22735 m32c_promote_prototypes): Delete.
22737 2009-04-28 Michael Matz <matz@suse.de>
22739 PR middle-end/39922
22740 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
22743 2009-04-28 Richard Guenther <rguenther@suse.de>
22745 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
22747 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22749 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
22750 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
22751 * config/arm/arm-tune.md: Regenerate.
22753 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
22755 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
22756 block if there are complex incoming edges.
22757 (sel_merge_blocks): Remove useless assert.
22758 (sel_redirect_edge_and_branch): Check that edge was redirected.
22759 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
22760 (sel_find_rgns): Delete declaration.
22761 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
22762 the region when it is not a preheader.
22764 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
22767 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
22769 2009-04-28 Richard Guenther <rguenther@suse.de>
22771 * tree.h (SSA_NAME_VALUE): Remove.
22772 (struct tree_ssa_name): Remove value_handle member.
22773 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
22774 array for jump threading.
22775 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
22777 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
22778 * tree-flow.h (threadedge_initialize_values): Declare.
22779 (threadedge_finalize_values): Likewise.
22780 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
22781 (SSA_NAME_VALUE): Define.
22782 (threadedge_initialize_values): New function.
22783 (threadedge_finalize_values): Likewise.
22784 * tree-ssa-dom.c (ssa_name_values): New global variable.
22785 (SSA_NAME_VALUE): Define.
22786 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
22788 2009-04-28 Ira Rosen <irar@il.ibm.com>
22790 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22791 Use REPORT_VECTORIZED_LOCATIONS instead
22792 REPORT_VECTORIZED_LOOPS.
22793 * tree-vectorizer.c (vect_verbosity_level): Make static.
22794 (vect_loop_location): Rename to vect_location.
22795 (vect_set_verbosity_level): Update comment.
22796 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
22798 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
22799 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
22800 instead REPORT_UNVECTORIZED_LOOPS.
22801 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
22802 and vect_loop_def to vect_external_def and vect_internal_def.
22803 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
22804 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
22805 REPORT_UNVECTORIZED_LOCATIONS.
22806 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
22807 and vect_used_in_loop and to vect_unused_in_scope and
22808 vect_used_in_scope.
22809 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
22810 (vect_verbosity_level): Remove declaration.
22811 (vect_analyze_operations): Likewise.
22812 (vect_analyze_stmt): Declare.
22813 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
22814 REPORT_UNVECTORIZED_LOCATIONS.
22815 (vect_get_loop_niters): Fix indentation.
22816 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
22817 (vect_analyze_loop_operations): New function.
22818 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
22819 vect_analyze_operations.
22820 (vect_is_simple_reduction): Use new names.
22821 (vectorizable_live_operation, vect_transform_loop): Likewise.
22822 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
22823 to specify whether the data references can be a part of interleaving
22825 (vect_analyze_data_ref_dependence): Use new names.
22826 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
22827 (vect_create_addr_base_for_vector_ref): Remove redundant code.
22828 * tree-vect-patterns.c (widened_name_p): Use new names.
22829 (vect_recog_dot_prod_pattern): Likewise.
22830 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
22831 (process_use, vect_mark_stmts_to_be_vectorized,
22832 vect_model_simple_cost, vect_model_store_cost,
22833 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
22834 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
22835 vectorizable_operation, vectorizable_type_demotion,
22836 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
22837 vectorizable_condition): Likewise.
22838 (vect_analyze_operations): Split into vect_analyze_loop_operations
22840 (vect_analyze_stmt): ... new function.
22841 (new_stmt_vec_info): Use new names.
22842 (vect_is_simple_use): Use new names and fix comment.
22843 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
22844 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
22846 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
22849 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
22850 and integer modes for x87 operands. Do not ICE for unsupported size,
22851 generate error instead. Generate error for unsupported operand types.
22852 ['z']: Do not handle HImode memory operands specially. Warning
22853 for floating-point operands. Fallthru to 'Z' for unsupported operand
22854 types. Do not ICE for unsupported size, generate error instead.
22855 (output_387_binary_op): Use %Z to output operands.
22856 (output_fp_compare): Ditto.
22857 (output_387_reg_move): Ditto.
22859 2009-04-28 Ben Elliston <bje@au.ibm.com>
22864 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22866 * builtins.c (c_strlen): Do not warn here.
22867 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
22868 * c-common.c (pointer_int_sum): Take an explicit location.
22869 Warn about offsets out of bounds.
22870 * c-common.h (pointer_int_sum): Adjust declaration.
22872 2009-04-27 Ian Lance Taylor <iant@google.com>
22874 * collect2.c (is_ctor_dtor): Change type of ret field in struct
22876 * dce.c (run_fast_df_dce): Change type of old_flags to int.
22877 * df-core.c (df_set_flags): Change return type to int. Change
22878 type of old_flags to int.
22879 (df_clear_flags): Likewise.
22880 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
22881 (df_get_conditional_uses): Likewise.
22882 * df.h (df_set_flags, df_clear_flags): Update declarations.
22883 * dwarf2out.c (struct indirect_string_node): Change type of form
22884 field to enum dwarf_form.
22885 (AT_string_form): Change return type to enum dwarf_form.
22886 * fixed-value.c (fixed_compare): Add cast to enum type.
22887 * fwprop.c (update_df): Change 0 to VOIDmode.
22888 * gensupport.c: Change 0 to UNKNOWN.
22889 * gimple.h (gimple_cond_code): Add cast to enum type.
22890 * haifa-sched.c (reemit_notes): Add cast to enum type.
22891 * hooks.c (hook_int_void_no_regs): Remove function.
22892 * hooks.h (hook_int_void_no_regs): Remove declaration.
22893 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
22894 * predict.c (combine_predictions_for_insn): Add casts to enum type.
22895 * real.c (real_arithmetic): Add cast to enum type.
22896 (real_compare): Likewise.
22897 * target.h (struct gcc_target): Change return type of
22898 branch_target_register_class to enum reg_class.
22899 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
22900 default_branch_target_register_class.
22901 * targhooks.c (default_branch_target_register_class): New function.
22902 * targhooks.h (default_branch_target_register_class): Declare.
22903 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
22904 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
22906 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
22908 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
22909 vect_uninitialized_def. Change 0 to ERROR_MARK.
22910 * tree-vect-stmts.c (supportable_widening_operation): Don't
22911 initialize icode1 and icode2.
22912 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
22913 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
22915 (cmn_err_flag_specs): Change 0 to STD_C89.
22916 (cmn_err_char_table): Likewise.
22917 * config/arm/arm.c (get_arm_condition_code): Change type of code
22918 to enum arm_cond_code.
22919 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
22920 (IWMMXT_BUILTIN2): Likewise.
22921 (neon_builtin_type_bits): Don't define typedef.
22922 (neon_builtin_datum): Change type of bits field to int.
22923 (arm_expand_neon_args): Add cast to enum type.
22924 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
22926 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
22927 casts to enum type.
22928 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
22930 * config/mips/mips.md (jal_macro): Return enum constant.
22931 (single_insn): Likewise.
22932 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
22934 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22935 casts to enum type.
22936 * config/s390/s390.c (s390_tune_flags): Change type to int.
22937 (s390_arch_flags): Likewise.
22938 (s390_handle_arch_option): Change flags field of struct pta to int.
22939 * config/s390/s390.h (s390_tune_flags): Update declaration.
22940 (s390_arch_flags): Likewise.
22941 * config/sh/sh.c (prepare_move_operands): Compare
22942 tls_symbolic_operand result with enum constant.
22943 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
22944 (sh_expand_prologue): Add cast to enum type.
22945 (sh_expand_epilogue): Likewise.
22946 (tls_symbolic_operand): Change return type to enum tls_model.
22947 (fpscr_set_from_mem): Add cast to enum type.
22948 (legitimize_pic_address): Compare tls_symbolic_operand result with
22950 (sh_target_reg_class): Change return type to enum reg_class.
22951 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
22953 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
22954 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
22955 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
22956 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
22957 (delayed_branch, tls_call_delay): Likewise.
22958 (eligible_for_sibcall_delay): Likewise.
22959 (eligible_for_return_delay): Likewise.
22960 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
22961 (spu_expand_builtin_1): Likewise.
22963 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
22964 for all types of conversions.
22965 (output_init_element): Issue -Wc++-compat warning if needed when
22966 initializing a bitfield with enum type.
22967 * c-parser.c (c_parser_expression): Set original_type to
22968 original_type of right hand operand of comma operator.
22970 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22972 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
22974 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
22975 * doc/cpp.texi (Standard Predefined Macros)
22976 (Implementation-defined behavior): Likewise.
22977 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
22978 * doc/gimple.texi (GIMPLE Exception Handling)
22979 (@code{GIMPLE_ASSIGN}): Likewise.
22980 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
22981 * doc/invoke.texi (Warning Options, Optimize Options)
22982 (AVR Options, Darwin Options): Likewise.
22983 (Optimize Options): Reformulate -fwhole-program description.
22984 * doc/loop.texi (Lambda): Likewise.
22985 * doc/md.texi (Output Template, Define Constraints)
22986 (Standard Names, Insn Splitting): Likewise.
22987 * doc/options.texi (Option properties): Likewise.
22988 * doc/passes.texi (Tree-SSA passes): Likewise.
22989 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
22990 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
22991 (File Names and DBX): Likewise.
22992 * doc/trouble.texi (Incompatibilities): Likewise.
22994 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
22996 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
22997 instruction is correct.
22999 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
23001 Allow non-constant arguments to conversion intrinsics.
23002 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
23003 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
23004 * spu.c (print_operand): Handle 'v' and 'w'.
23005 (exp2_immediate_p, spu_gen_exp2): Define.
23006 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
23007 spu_convtf_1): Update parameter descriptions.
23008 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
23009 * constraints.md ('v', 'w'): New.
23010 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
23012 (i2f, I2F): New define_mode_attr.
23013 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
23014 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
23015 fixuns_truncv4sfv4si2): Update to use mode attribute.
23016 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
23017 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
23018 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
23019 patterns for combine.
23021 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
23023 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
23024 (cprop, hoist, pre, store_motion): New debug counters.
23025 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
23026 is not an RTL pass anymore.
23027 (pass_profiling): Remove extern decl for pass removed in 2005.
23028 (pass_gcse, pass_jump_bypass): Remove.
23029 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
23030 to 0 for clean state.
23031 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
23032 * cse.c (gate_handle_cse_after_global_opts,
23033 rest_of_handle_cse_after_global_opts): New functions.
23034 (pass_cse_after_global_opts): New pass, does local CSE.
23035 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
23036 (TV_CPROP): New timevar.
23037 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
23038 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
23039 (gcse_main, recompute_all_luids): Remove.
23040 (compute_hash_table_work): Call max_reg_num instead of reading
23042 (cprop_jump): Don't set run_jump_opt_after_gcse.
23043 (constprop_register): Always allow to alter jumps.
23044 (cprop_insn): Likewise.
23045 (do_local_cprop): Likewise.
23046 (local_cprop_pass): Likewise. Return non-zero if something changed.
23047 (cprop): Remove function, fold interesting bits into one_cprop_pass.
23048 (find_implicit_sets): Add note about missed optimization opportunity.
23049 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
23050 pass_rtl_cprop execute function.
23051 Don't bother tracking the pass number, each pass gets its own dumpfile
23053 Always allow to alter jumpsand bypass jumps.
23054 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
23055 will just find no suitable set.
23056 (pre_edge_insert): Fix dumping, this function is for PRE only.
23057 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
23058 pass_rtl_pre execute function.
23059 (hoist_code): Return non-zero if something changed. Keep track of
23060 substitutions and insertions for statistics gathering similar to PRE.
23061 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
23062 called from the pass_rtl_hoist execute function. Show pass statistics.
23063 (compute_store_table): Use max_reg_num directly instead of using the
23064 formerly global max_gcse_regno.
23065 (build_store_vectors): Likewise.
23066 (replace_store_insn): Fix dumping.
23067 (store_motion): Rename to ...
23068 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
23069 pass, called from the pass_rtl_store_motion execute function. Keep
23070 track of substitutions and insertions for statistics gathering similar
23072 (bypass_jumps): Remove, fold interesting bits into ...
23073 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
23074 from the pass_rtl_cprop execute function.
23075 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
23076 pass_jump_bypass): Remove.
23077 (gate_handle_gcse, rest_of_handle_gcse): Remove.
23078 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
23079 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
23080 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
23081 (gate_rtl_store_motion, execute_rtl_store_motion,
23082 pass_rtl_store_motion): New.
23083 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
23084 make it clear that -fcse-skip-blocks is a no-op for backward compat.
23085 * passes.c (init_optimization_passes): Remove pass_gcse and
23086 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
23087 and cse_after_global_opts in place of pass_gcse. Schedule cprop
23088 instead of pass_jump_bypass.
23090 2009-04-27 Richard Guenther <rguenther@suse.de>
23092 PR middle-end/39928
23093 * gimplify.c (gimplify_expr): If we are required to create
23094 a temporary make sure it ends up as register.
23096 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
23099 * config/i386/i386.c (construct_container): Don't call
23100 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
23101 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
23103 2009-04-27 Michael Matz <matz@suse.de>
23105 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
23106 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
23107 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
23108 (dump_replaceable_exprs): Take a bitmap.
23109 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
23111 (expand_gimple_basic_block): Likewise.
23112 * tree-ssa-ter.c (struct temp_expr_table_d): Make
23113 replaceable_expressions member a bitmap.
23114 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
23115 (mark_replaceable): Likewise.
23116 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
23117 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
23119 2009-04-27 Richard Guenther <rguenther@suse.de>
23121 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
23122 (verify_stmts): Dispatch to gimple/type verification code.
23123 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
23124 issue with call argument types.
23126 2009-04-27 Michael Matz <matz@suse.de>
23128 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
23129 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
23132 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
23133 Eric Botcazou <ebotcazou@adacore.com>
23135 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
23136 a label's basic block.
23137 (mark_target_live_regs): Tidy and rework obsolete comments.
23138 Change back DF problem to LIVE. If a label starts a basic block,
23139 assume that all registers that used to be live then still are.
23140 (init_resource_info): If a label starts a basic block, set its
23141 BLOCK_FOR_INSN accordingly.
23142 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
23144 2009-04-27 Richard Guenther <rguenther@suse.de>
23146 * tree-flow-inline.h (function_ann): Remove.
23147 (get_function_ann): Likewise.
23148 * tree-dfa.c (create_function_ann): Remove.
23149 * tree-flow.h (struct static_var_ann_d): Remove.
23150 (struct function_ann_d): Likewise.
23151 (union tree_ann_d): Remove fdecl member.
23152 (function_ann_t): Remove.
23153 (function_ann, get_function_ann, create_function_ann): Remove
23156 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
23158 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
23160 2009-04-27 Jan Hubicka <jh@suse.cz>
23162 * ipa-pure-const.c (struct funct_state_d): New fields
23163 state_previously_known, looping_previously_known; remove
23164 state_set_in_source.
23165 (analyze_function): Use new fields.
23166 (propagate): Avoid assumption that state_set_in_source imply
23169 * tree-ssa-loop-niter.c (finite_loop_p): New function.
23170 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
23171 * cfgloop.h (finite_loop_p): Declare.
23173 2009-04-26 Michael Matz <matz@suse.de>
23175 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
23177 2009-04-26 Michael Matz <matz@suse.de>
23179 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
23180 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
23181 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
23182 pass_mark_used_blocks): Remove.
23183 * tree-optimize.c (pass_free_datastructures,
23184 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
23185 * passes.c (init_optimization_passes): Don't call
23186 pass_mark_used_blocks, remove dead code.
23188 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
23190 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
23191 * tree-ssa-live.h (register_ssa_partition): Likewise.
23193 2009-04-26 Michael Matz <matz@suse.de>
23196 * builtins.c (fold_builtin_next_arg): Handle SSA names.
23197 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
23198 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
23200 (compare_pairs): Swap cost comparison.
23201 (coalesce_ssa_name): Don't use change_partition_var.
23202 * tree-nrv.c (struct nrv_data): Add modified member.
23203 (finalize_nrv_r): Set it.
23204 (tree_nrv): Use it to update statements.
23205 (pass_nrv): Require PROP_ssa.
23206 * tree-mudflap.c (mf_decl_cache_locals,
23207 mf_build_check_statement_for): Use make_rename_temp.
23208 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
23209 * alias.c (find_base_decl): Handle SSA names.
23210 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
23211 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
23212 * rtl.h (set_reg_attrs_for_parm): Declare.
23213 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
23214 to "optimized", remove unused locals at finish.
23215 (execute_free_datastructures): Make global, call
23216 delete_tree_cfg_annotations.
23217 (execute_free_cfg_annotations): Don't call
23218 delete_tree_cfg_annotations.
23220 * ssaexpand.h: New file.
23221 * expr.c (toplevel): Include ssaexpand.h.
23222 (expand_assignment): Handle SSA names the same as register variables.
23223 (expand_expr_real_1): Expand SSA names.
23224 * cfgexpand.c (toplevel): Include ssaexpand.h.
23225 (SA): New global variable.
23226 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
23227 (SSAVAR): New macro.
23228 (set_rtl): New helper function.
23229 (add_stack_var): Deal with SSA names, use set_rtl.
23230 (expand_one_stack_var_at): Likewise.
23231 (expand_one_stack_var): Deal with SSA names.
23232 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
23233 before unique numbers.
23234 (expand_stack_vars): Use set_rtl.
23235 (expand_one_var): Accept SSA names, add asserts for them, feed them
23236 to above subroutines.
23237 (expand_used_vars): Expand all partitions (without default defs),
23238 then only the local decls (ignoring those expanded already).
23239 (expand_gimple_cond): Remove edges when jumpif() expands an
23240 unconditional jump.
23241 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
23242 or remove abnormal edges. Ignore insns setting the LHS of a TERed
23244 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
23245 members of SA; deal with PARM_DECL partitions here; expand
23246 all PHI nodes, free tree datastructures and SA. Commit instructions
23247 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
23248 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
23249 info and statements at start, collect garbage at finish.
23250 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
23251 (VAR_ANN_PARTITION) Remove.
23252 (change_partition_var): Don't declare.
23253 (partition_to_var): Always return SSA names.
23254 (var_to_partition): Only accept SSA names.
23255 (register_ssa_partition): Only check argument.
23256 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
23258 (delete_var_map): Don't free it.
23259 (var_union): Only accept SSA names, simplify.
23260 (partition_view_init): Mark only useful SSA names as used.
23261 (partition_view_fini): Only deal with SSA names.
23262 (change_partition_var): Remove.
23263 (dump_var_map): Use ssa_name instead of partition_to_var member.
23264 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
23266 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
23267 (struct _elim_graph): New member const_dests; nodes member vector of
23269 (set_location_for_edge): New static helper.
23270 (create_temp): Remove.
23271 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
23272 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
23273 (new_elim_graph): Allocate const_dests member.
23274 (clean_elim_graph): Truncate const_dests member.
23275 (delete_elim_graph): Free const_dests member.
23276 (elim_graph_size): Adapt to new type of nodes member.
23277 (elim_graph_add_node): Likewise.
23278 (eliminate_name): Likewise.
23279 (eliminate_build): Don't take basic block argument, deal only with
23280 partition numbers, not variables.
23281 (get_temp_reg): New static helper.
23282 (elim_create): Use it, deal with RTL temporaries instead of trees.
23283 (eliminate_phi): Adjust all calls to new signature.
23284 (assign_vars, replace_use_variable, replace_def_variable): Remove.
23285 (rewrite_trees): Only do checking.
23286 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
23287 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
23288 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
23289 contains_tree_r, MAX_STMTS_IN_LATCH,
23290 process_single_block_loop_latch, analyze_edges_for_bb,
23291 perform_edge_inserts): Remove.
23292 (expand_phi_nodes): New global function.
23293 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
23294 functions, initialize new parameter, remember partitions having a
23296 (finish_out_of_ssa): New global function.
23297 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
23298 don't reset in_ssa_p here, don't disable TER when mudflap.
23299 (pass_del_ssa): Remove.
23300 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
23302 (execute_free_datastructures): Declare.
23303 * Makefile.in (SSAEXPAND_H): New variable.
23304 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
23305 * basic-block.h (commit_one_edge_insertion): Declare.
23306 * passes.c (init_optimization_passes): Move pass_nrv and
23307 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
23308 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
23309 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
23310 (redirect_branch_edge): Deal with super block when expanding, split
23311 out jump patching itself into ...
23312 (patch_jump_insn): ... here, new static helper.
23314 2009-04-26 Michael Matz <matz@suse.de>
23316 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
23317 beyond num_ssa_names.
23318 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
23319 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
23321 2009-04-26 Jakub Jelinek <jakub@redhat.com>
23323 PR inline-asm/39543
23324 * fwprop.c (forward_propagate_asm): New function.
23325 (forward_propagate_and_simplify): Propagate also into __asm, if it
23326 doesn't increase the number of referenced registers.
23329 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
23331 2009-04-26 Jakub Jelinek <jakub@redhat.com>
23333 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
23334 note_nonlocal_vla_type for nonlocal VLAs.
23335 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
23336 contains_remapped_vars, remap_vla_decls): New functions.
23337 (convert_nonlocal_reference_stmt): If not optimizing, call
23338 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
23339 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
23340 if it wasn't found in var_map.
23341 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
23342 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
23343 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
23345 * gimplify.c (nonlocal_vlas): New variable.
23346 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
23348 (gimplify_body): Create and destroy nonlocal_vlas.
23350 * dwarf2out.c (loc_descr_plus_const): New function.
23351 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
23352 mem_loc_descriptor, loc_descriptor_from_tree_1,
23353 descr_info_loc, gen_variable_die): Use it.
23355 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
23356 !TREE_STATIC VAR_DECLs.
23357 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
23358 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
23359 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
23360 DECL_BY_REFERENCE is valid.
23361 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
23362 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
23363 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
23364 Copy DECL_BY_REFERENCE.
23365 (struct nesting_copy_body_data): New type.
23366 (nesting_copy_decl): New function.
23367 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
23368 if they have variable length.
23370 2009-04-26 Michael Matz <matz@suse.de>
23372 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
23373 mark new temporaries for renaming.
23375 2009-04-26 Joseph Myers <joseph@codesourcery.com>
23378 * c-decl.c (global_bindings_p): Return negative value.
23379 (c_variable_size): New. Based on variable_size from
23381 (grokdeclarator): Call c_variable_size not variable_size.
23383 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
23385 * config/i386/i386.c (print_operand) ['z']: Fix typo.
23387 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
23389 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
23390 Redefine it to just use mingw/include.
23391 (ASM_SPEC): Rules for -m32 and -m64.
23392 (LINK_SPEC): Use Likewise.
23393 (SPEC_32): New define.
23394 (SPEC_64): Likewise.
23395 (SUB_LINK_SPEC): Likewise.
23396 (MULTILIB_DEFAULTS): New define.
23397 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
23398 Add multilib options.
23399 (MULTILIB_DIRNAMES): Likewise.
23400 (MULTILIB_OSDIRNAMES): Likewise.
23401 (LIBGCC): Likewise.
23402 (INSTALL_LIBGCC): Likewise.
23404 2009-04-26 Joseph Myers <joseph@codesourcery.com>
23407 * c-tree.h (enum c_inline_static_type): New.
23408 (record_inline_static): Declare.
23409 * c-decl.c (struct c_inline_static, c_inline_statics,
23410 record_inline_static, check_inline_statics): New.
23411 (pop_file_scope): Call check_inline_statics.
23412 (start_decl): Call record_inline_static instead of pedwarning
23413 directly for static in inline function.
23414 * c-typeck.c (build_external_ref): Call record_inline_static
23415 instead of pedwarning directly for static referenced in inline
23418 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
23420 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
23421 not new but only being rescanned.
23422 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
23423 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
23424 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
23425 record_set_info, compute_set, grealloc): Remove.
23426 (recompute_all_luids): New function.
23427 (gcse_main): Don't compute sets, and don't do related memory
23428 allocations/free-ing. If something changed before the end of the
23429 pass, update LUIDs using recompute_all_luids.
23430 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
23431 (free_gcse_mem): Don't free it either.
23432 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
23433 Use the df insn LUIDs.
23434 (load_killed_in_block): Likewise.
23435 (compute_hash_table_work): Don't compute reg_set_in_block.
23436 (compute_transp): Use DF_REG_DEF_CHAINs.
23437 (local_cprop_pass): Don't use compute_sets and related functions.
23438 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
23439 Use get_max_uid() instead of max_cuid.
23440 (insert_insn_end_basic_block, pre_insert_copy_insn,
23441 update_ld_motion_stores): Don't try to
23442 keep reg_set tables up to date.
23443 (pre_insert_copies): Use df insn LUIDs.
23444 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
23445 (reg_set_info): Don't use extra bitmap argument.
23446 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
23447 information to compute regs_set_in_block.
23448 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
23449 (bypass_jumps): Don't use compute_sets and friends.
23451 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23454 * opts.c (undocumented_msg): Do not leave blank even with
23457 2009-04-25 Joseph Myers <joseph@codesourcery.com>
23459 * c-decl.c (build_enumerator): Allow values folding to integer
23460 constants but not integer constant expressions with a pedwarn if
23463 2009-04-25 Joseph Myers <joseph@codesourcery.com>
23466 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
23467 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
23468 type is an integer constant.
23470 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
23473 * config/i386/i386.c (print_operand) ['z']: Revert handling of
23476 2009-04-25 Joseph Myers <joseph@codesourcery.com>
23479 * c-decl.c (grokdeclarator): Diagnose declarations of functions
23480 with variably modified return type and no storage class
23481 specifiers, except for the case of nested functions. Distinguish
23482 extern declarations of functions with variably modified return
23483 types from those of objects with variably modified types.
23485 2009-04-25 Jan Hubicka <jh@suse.cz>
23487 * tree.c (list_equal_p): New function.
23488 * tree.h (list_equal_p): Declare.
23489 * coretypes.h (edge_def, edge, const_edge, basic_block_def
23490 basic_block_def, basic_block, const_basic_block): New.
23491 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
23492 (redirect_eh_edge): New function.
23493 (make_eh_edge_update_phi): EH edges are not abnormal.
23494 * except.c: Include tree-flow.h.
23495 (list_match): New function.
23496 (eh_region_replaceable_by_p): New function.
23497 (replace_region): New function.
23498 (hash_type_list): New function.
23499 (hash_eh_region): New function.
23500 (eh_regions_equal_p): New function.
23501 (merge_peers): New function.
23502 (remove_unreachable_regions): Verify EH tree when checking;
23504 (copy_eh_region_1): New function.
23505 (copy_eh_region): New function.
23506 (push_reachable_handler): New function.
23507 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
23508 regions without label but with live RESX.
23509 * except.h (redirect_eh_edge_to_label): New.
23510 * tree-flow.h (redirect_eh_edge): New.
23511 * coretypes.h (edge_def, edge, const_edge, basic_block_def
23512 basic_block_def, basic_block, const_basic_block): Remove.
23513 * Makefile.in (except.o): Add dependency on tree-flow.h
23514 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
23515 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
23518 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
23521 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
23522 on the destination of memcpy.
23524 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
23526 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
23527 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
23528 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
23530 2009-04-25 Jan Hubicka <jh@suse.cz>
23532 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
23533 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
23534 to be reached by different label than left.
23535 (update_eh_edges): Update comment; remove edge_to_remove if possible
23536 and return true if suceeded.
23537 (cleanup_empty_eh): Accept sharing map; handle shared regions.
23538 (cleanup_eh): Compute sharing map.
23539 * except.c (remove_eh_handler_and_replace): Add argument if we should
23541 (remove_unreachable_regions): Update for label sharing.
23542 (label_to_region_map): Likewise.
23543 (get_next_region_sharing_label): New function.
23544 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
23546 (remove_eh_handler): Update.
23547 (remove_eh_region_and_replace_by_outer_of): New function.
23548 * except.h (struct eh_region): Add next_region_sharing_label.
23549 (remove_eh_region_and_replace_by_outer_of,
23550 get_next_region_sharing_label): Declare.
23551 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
23553 2009-04-25 Jan Hubicka <jh@suse.cz>
23555 * tree-cfg.c (split_critical_edges): Split also edges where we can't
23556 insert code even if they are not critical.
23558 2009-04-25 Jan Hubicka <jh@suse.cz>
23560 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
23561 (gimple_can_remove_branch_p): EH edges won't remove branch by
23563 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
23564 updating of non-abnormal EH edges.
23565 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
23566 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
23567 (split_critical_edges): Split also edges where emitting code on them
23568 will lead to splitting later.
23570 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
23571 H.J. Lu <hongjiu.lu@intel.com>
23574 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
23575 the configured assembler supports fildq and fistpq mnemonics.
23576 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
23577 * configure: Regenerated.
23578 * config.in: Ditto.
23580 * config/i386/i386.c (print_operand): Handle 'Z'.
23581 ['z']: Remove handling of special fild/fist suffixes.
23582 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
23583 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
23584 suffix of fild insn.
23585 (*floatsi<mode>2_vector_mixed): Ditto.
23586 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
23587 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
23588 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
23589 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
23590 * config/i386/gas.h (GAS_MNEMONICS): Remove.
23592 2009-04-25 Ben Elliston <bje@au.ibm.com>
23594 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
23595 the source of a set operation.
23597 2009-04-25 Anatoly Sokolov <aesok@post.ru>
23599 * target.h (struct gcc_target): Add case_values_threshold field.
23600 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
23601 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
23602 * targhooks.c (default_case_values_threshold): New function.
23603 * targhooks.h (default_case_values_threshold): Declare function.
23604 * stmt.c (expand_case): Use case_values_threshold target hook.
23605 * expr.h (case_values_threshold): Remove declartation.
23606 * expr.c (case_values_threshold): Remove function.
23607 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
23609 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
23610 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
23611 (avr_case_values_threshold): Declare as static.
23612 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
23614 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
23615 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
23616 (mn10300_case_values_threshold): New function.
23618 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
23620 * ira.c (setup_cover_and_important_classes): Add enum cast.
23622 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
23624 * genpreds.c (write_enum_constraint_num): Output definition of
23625 CONSTRAINT_NUM_DEFINED_P macro.
23626 * ira.c (setup_cover_and_important_classes): Use
23627 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
23629 2009-04-24 DJ Delorie <dj@redhat.com>
23631 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
23632 __SH2A_SINGLE_ONLY__ also.
23634 2009-04-24 Steve Ellcey <sje@cup.hp.com>
23636 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
23637 (movdf_internal): Ditto.
23638 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
23639 SFmode and DFmode constants.
23640 (ia64_print_operand): Add 'G' format for printing
23641 floating point constants.
23643 2009-04-24 Richard Guenther <rguenther@suse.de>
23645 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
23646 from unsigned additions.
23648 2009-04-24 Joseph Myers <joseph@codesourcery.com>
23650 * c-typeck.c (set_init_index): Allow array designators that are
23651 not integer constant expressions with a pedwarn if pedantic.
23653 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
23655 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
23656 zero if no overlap in nonzero bits between the operands.
23658 2009-04-24 Ian Lance Taylor <iant@google.com>
23660 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
23661 (record_dead_and_set_regs): Likewise.
23662 * df.h (struct df_mw_hardreg): Change flags field to int.
23663 (struct df_base_ref): Likewise.
23664 (struct df): Change changeable_flags field to int.
23665 * df-scan.c (df_defs_record): Change clobber_flags to int.
23666 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
23667 constants rather than #define macros.
23668 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
23669 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
23670 (enum dwarf_calling_convention): Likewise.
23671 (enum dwarf_line_number_x_ops): Likewise.
23672 (enum dwarf_call_frame_info): Likewise.
23673 (enum dwarf_source_language): Likewise.
23674 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
23675 (add_calling_convention_attribute): Likewise.
23676 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
23677 (combine_comparisons): Change compcode to int. Add cast to enum type.
23678 * genrecog.c (maybe_both_true_2): Change c to int.
23679 (write_switch): Likewise. Add cast to enum type.
23680 * gimplify.c (gimplify_omp_for): Handle return values from
23681 gimplify_expr using MIN rather than bitwise or.
23682 (gimplify_expr): Add cast to enum type.
23683 * ipa-prop.c (update_jump_functions_after_inlining): Change
23684 IPA_BOTTOM to IPA_JF_UNKNOWN.
23685 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
23686 Add casts to enum type.
23687 (setup_cover_and_important_classes): Change cl to int. Add casts
23689 (setup_class_translate): Change cl and mode to int.
23690 (ira_init_once): Change mode to int.
23691 (free_register_move_costs): Likewise.
23692 (setup_prohibited_mode_move_regs): Add casts to enum type.
23693 * langhooks.c (add_builtin_function_common): Rework assertion that
23694 value fits bitfield.
23695 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
23696 * omega.c (omega_do_elimination): Avoid math on enum types.
23697 * optabs.c (expand_vec_shift_expr): Remove casts to int.
23698 * opts.c (set_debug_level): Change 2 to enum constant. Use new
23699 int local to handle integral_argment value.
23700 * regmove.c (try_auto_increment): Change PUT_MODE to
23702 * reload.c (push_secondary_reload): Add casts to enum type.
23703 (secondary_reload_class, find_valid_class): Likewise.
23704 * reload1.c (emit_input_reload_insns): Likewise.
23705 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
23706 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
23707 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
23709 * tree.c (build_common_builtin_nodes): Add casts to enum type.
23710 * tree-complex.c (complex_lattice_t): Typedef to int rather than
23712 (expand_complex_libcall): Add casts to enum type.
23713 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
23714 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
23715 with ERROR_MARK, not NUM_TREE_CODES.
23716 (vect_create_epilog_for_reduction): Likewise.
23717 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
23718 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
23719 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
23721 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
23722 vect_unused_in_loop. Change 0 to loop_vect.
23723 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
23724 * var-tracking.c (get_init_value): Change return type to enum
23726 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
23727 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
23729 (arm_override_options): Add casts to enum type.
23730 (arm_emit_tls_decoration): Likewise.
23731 * config/i386/i386.c (ix86_function_specific_restore): Add casts
23733 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
23734 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
23735 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
23737 * config/s390/s390.c (code_for_builtin_64): Change to array of
23739 (code_for_builtin_31): Likewise.
23740 (s390_expand_builtin): Change code_for_builtin to enum insn_code
23742 * config/sparc/sparc.c (sparc_override_options): Change value
23743 field in struct code_model to enum cmodel. In initializer change
23744 0 to NULL and add cast to enum type.
23746 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
23747 Change all callers. Issue a -Wc++-compat warning using
23748 lhs_origtype if necessary.
23749 (convert_for_assignment): Issue -Wc++-compat warnings about
23750 invalid conversions to enum type on assignment.
23751 * c-common.h (build_modify_expr): Update declaration.
23753 2009-04-24 Nick Clifton <nickc@redhat.com>
23755 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
23756 (function_arg_advance): Likewise.
23757 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
23760 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
23762 * config/s390/constraints.md ('I', 'J'): Fix condition.
23764 2009-04-24 Diego Novillo <dnovillo@google.com>
23766 * gengtype-parse.c (parse_error): Add newline after message.
23768 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
23770 * config/i386/sse.md (avxmodesuffixs): Removed.
23771 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
23772 (*avx_pinsr<ssevecsize>): This.
23774 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
23776 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
23777 follow chains of regs with a single definition, and allow expressions
23778 that are function_invariant_p.
23779 (simple_rhs_p): Allow expressions that are function_invariant_p.
23781 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
23783 PR middle-end/39867
23784 * fold-const.c (fold_cond_expr_with_comparison): When folding
23785 > and >= to MAX, make sure the MAX uses the same type as the
23786 comparison's operands.
23788 2009-04-24 Nick Clifton <nickc@redhat.com>
23790 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
23791 addressing for DImode accesses.
23792 (frv_print_operand_address): Handle PLUS case.
23793 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
23795 2009-04-24 Jakub Jelinek <jakub@redhat.com>
23797 PR rtl-optimization/39794
23798 * alias.c (canon_true_dependence): Add x_addr argument.
23799 * rtl.h (canon_true_dependence): Adjust prototype.
23800 * cse.c (check_dependence): Adjust canon_true_dependence callers.
23801 * cselib.c (cselib_invalidate_mem): Likewise.
23802 * gcse.c (compute_transp): Likewise.
23803 * dse.c (scan_reads_nospill): Likewise.
23804 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
23805 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
23806 canon_base_addr of the group, plus optional offset.
23807 (struct group_info): Rename canon_base_mem to
23809 (get_group_info): Set canon_base_addr to canon_rtx of base, not
23810 canon_rtx of base_mem.
23812 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
23814 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
23815 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
23817 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23819 * config/spu/spu-builtins.h: Delete file.
23821 * config/spu/spu.h (enum spu_builtin_type): Move here from
23823 (struct spu_builtin_description): Likewise. Add GTY marker.
23824 Do not use enum spu_function_code or enum insn_code.
23825 (spu_builtins): Add extern declaration.
23827 * config/spu/spu.c: Do not include "spu-builtins.h".
23828 (enum spu_function_code, enum spu_builtin_type_index,
23829 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
23830 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
23831 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
23832 unsigned_V2DI_type_node): Move here from spu-builtins.h.
23833 (spu_builtin_types): Make static. Add GTY marker.
23834 (spu_builtins): Add extern declaration with GTY marker.
23835 Include "gt-spu.h".
23837 * config/spu/spu-c.c: Do not include "spu-builtins.h".
23838 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
23839 Check programmatically whether all parameters are scalar.
23841 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
23843 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
23845 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
23846 assignment from the constructor either if the target is volatile.
23848 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
23850 * config/arm/arm.md (insv): Do not share operands[0].
23852 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
23854 * config/vxlib-tls.c (active_tls_threads): Delete.
23855 (delete_hook_installed): New.
23856 (tls_delete_hook): Don't delete the delete hook.
23857 (tls_destructor): Delete it here.
23858 (__gthread_set_specific): Adjust installing the delete hook.
23859 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
23860 __gthread_leave_tsd_dtor_context.
23862 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
23864 * c-format.c (gcc_tdiag_char_table): Add support for %E.
23866 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
23868 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
23870 (alpha_rtx_costs): Ditto.
23871 (emit_unlikely_jump): Use add_reg_note.
23872 (emit_frame_store_1): Ditto.
23873 (alpha_expand_prologue): Ditto.
23874 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23875 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
23877 2009-04-23 Nick Clifton <nickc@redhat.com>
23879 * config/v850/v850.md (epilogue): Remove suppressed code.
23880 (return): Rename to return_simple and remove test of frame size.
23881 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
23882 to gen_return_simple.
23884 2009-04-22 Jing Yu <jingyu@google.com>
23887 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
23889 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
23892 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
23893 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
23894 value is a VECTOR_CST, the element type is the element type of the
23897 2009-04-22 DJ Delorie <dj@redhat.com>
23899 * config/m32c/m32c.h: Update GTY annotations to new syntax.
23901 2009-04-22 Jakub Jelinek <jakub@redhat.com>
23903 * alias.c (find_base_term): Move around LO_SUM case, so that
23904 CONST falls through into PLUS/MINUS handling.
23907 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
23908 into 0, use omit_one_operand.
23910 2009-04-23 Ben Elliston <bje@au.ibm.com>
23912 * config/rs6000/linux-unwind.h (get_regs): Remove type
23913 puns. Change the type of `pc' to an array of unsigned ints and
23914 update all users. Constify frame24.
23916 2009-04-22 DJ Delorie <dj@redhat.com>
23918 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
23919 declarations before code.
23920 (current_function_special_page_vector): Likewise.
23921 (m32c_expand_insv): Silence a warning.
23923 2009-04-21 Taras Glek <tglek@mozilla.com>
23925 * alias.c: Update GTY annotations to new syntax.
23926 * basic-block.h: Likewise.
23927 * bitmap.h: Likewise.
23928 * c-common.h: Likewise.
23929 * c-decl.c: Likewise.
23930 * c-parser.c: Likewise.
23931 * c-pragma.c: Likewise.
23932 * c-tree.h: Likewise.
23933 * cfgloop.h: Likewise.
23934 * cgraph.h: Likewise.
23935 * config/alpha/alpha.c: Likewise.
23936 * config/arm/arm.h: Likewise.
23937 * config/avr/avr.h: Likewise.
23938 * config/bfin/bfin.c: Likewise.
23939 * config/cris/cris.c: Likewise.
23940 * config/darwin.c: Likewise.
23941 * config/frv/frv.c: Likewise.
23942 * config/i386/i386.c: Likewise.
23943 * config/i386/i386.h: Likewise.
23944 * config/i386/winnt.c: Likewise.
23945 * config/ia64/ia64.h: Likewise.
23946 * config/iq2000/iq2000.c: Likewise.
23947 * config/mips/mips.c: Likewise.
23948 * config/mmix/mmix.h: Likewise.
23949 * config/pa/pa.c: Likewise.
23950 * config/pa/pa.h: Likewise.
23951 * config/rs6000/rs6000.c: Likewise.
23952 * config/s390/s390.c: Likewise.
23953 * config/sparc/sparc.c: Likewise.
23954 * config/xtensa/xtensa.c: Likewise.
23955 * cselib.h: Likewise.
23956 * dbxout.c: Likewise.
23957 * dwarf2out.c: Likewise.
23958 * except.c: Likewise.
23959 * except.h: Likewise.
23960 * fixed-value.h: Likewise.
23961 * function.c: Likewise.
23962 * function.h: Likewise.
23963 * gimple.h: Likewise.
23964 * integrate.c: Likewise.
23965 * optabs.c: Likewise.
23966 * output.h: Likewise.
23967 * real.h: Likewise.
23969 * stringpool.c: Likewise.
23970 * tree-data-ref.c: Likewise.
23971 * tree-flow.h: Likewise.
23972 * tree-scalar-evolution.c: Likewise.
23973 * tree-ssa-address.c: Likewise.
23974 * tree-ssa-alias.h: Likewise.
23975 * tree-ssa-operands.h: Likewise.
23976 * tree.c: Likewise.
23977 * tree.h: Likewise.
23978 * varasm.c: Likewise.
23979 * varray.h: Likewise.
23981 * coretypes.h: Do not define GTY macro if it is already defined.
23982 * doc/gty.texi: Update GTY documentation to new syntax.
23983 * gengtype-lex.l: Enforce attribute-like syntax for GTY
23984 annotations on structs.
23985 * gengtype-parse.c: Likewise.
23987 2009-04-22 Mark Heffernan <meheff@google.com>
23989 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
23991 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
23993 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
23996 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
23998 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
23999 the same as a PLUS without a shift. Increase the cost of a
24002 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24004 * Makefile.in: Update dependencies.
24005 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
24006 * errors.h: Remove bogus comment about compatibility.
24007 (warning): Update declaration.
24008 * genautomata.c: Update all calls to warning.
24009 * gimple.c: Do not include errors.h. Include toplev.h.
24010 * tree-ssa-structalias.c: Do not include errors.h.
24011 * omega.c: Likewise.
24012 * tree-ssa-reassoc.c: Likewise.
24013 * config/spu/spu-c.c: Likewise.
24014 * config/spu/t-spu-elf: Update dependencies.
24016 2009-04-22 Richard Guenther <rguenther@suse.de>
24018 PR tree-optimization/39824
24019 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
24020 make sure the types are compatible.
24022 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24025 * c-common.c (c_parse_error): Take a token_flags parameter.
24026 Use token_type for the token type instead.
24027 Pass token_flags to cpp_type2name.
24028 * c-common.h (c_parse_error): Update declaration.
24029 * c-parser.c (c_parser_error): Pass 0 as token flags.
24031 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
24033 PR rtl-optimization/39580
24034 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
24036 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24038 * function.c (expand_function_end): Do not emit a jump to the "naked"
24039 return label for fall-through returns.
24040 * except.c (sjlj_emit_function_exit): Always place the call to the
24041 unregister function at the location installed by expand_function_end.
24043 2009-04-22 Richard Guenther <rguenther@suse.de>
24045 PR tree-optimization/39845
24046 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
24047 (gen_inbound_check): Likewise.
24049 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
24051 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
24053 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
24054 * config/vxlib.c (__gthread_once): Add race guard for PPC.
24056 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24058 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
24059 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
24060 shift counts to avoid out-of-bounds array accesses.
24062 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24064 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
24065 (Pmode): Move above.
24067 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
24069 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
24070 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
24071 GET_CODE macro. Use IN_RANGE macro where appropriate.
24072 * config/alpha/alpha.h: Ditto.
24073 * config/alpha/alpha.md: Ditto.
24074 * config/alpha/constraints.md: Ditto.
24075 * config/alpha/predicates.md: Ditto.
24077 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
24079 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
24080 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24081 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24082 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24083 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24084 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24085 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24086 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24087 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24088 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24089 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24090 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24091 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24092 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24093 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24094 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24095 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24096 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24097 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24098 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24099 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24100 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24101 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24102 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24103 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24104 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24105 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
24107 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24109 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
24110 references from comments.
24111 * cfgbuild.c (count_basic_blocks): Delete.
24112 (find_basic_blocks_1): Delete.
24113 (find_basic_blocks): Delete.
24114 * except.c (finish_eh_generation): Make static. Move comment from
24115 except.h here. Remove find_basic_blocks references from comments.
24116 * except.h (finish_eh_generation): Delete.
24117 * basic-block.h (find_basic_blocks): Delete.
24118 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
24120 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
24122 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
24123 (sdbout_parms): Likewise.
24125 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
24127 * config/sh/sh.c (prepare_cbranch_operands): Use
24128 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
24129 (expand_cbranchdi4): Likewise.
24130 (from_compare): Add cast to enum type.
24131 (expand_cbranchsi4): Use add_reg_note.
24132 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
24133 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
24134 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
24135 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
24136 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
24137 instead of CODE_FOR_nothing.
24138 (cbranchdi4): Likewise. Fix the order of arguments for
24140 (push_fpscr): Use add_reg_note.
24141 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
24142 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
24144 2009-04-21 Joseph Myers <joseph@codesourcery.com>
24146 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
24147 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
24148 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
24149 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
24150 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
24151 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
24152 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
24153 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
24154 config/alpha/x-vms, config/arc/t-arc,
24155 config/arm/README-interworking, config/arm/arm-c.c,
24156 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
24157 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
24158 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
24159 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
24160 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
24161 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
24162 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
24163 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
24164 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
24165 config/cris/t-elfmulti, config/crx/t-crx,
24166 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
24167 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
24168 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
24169 config/h8300/t-h8300, config/i386/athlon.md,
24170 config/i386/darwin-libgcc.10.4.ver,
24171 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
24172 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
24173 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
24174 config/i386/t-linux64, config/i386/t-nwld,
24175 config/i386/t-rtems-i386, config/i386/t-sol2-10,
24176 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
24177 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
24178 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
24179 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
24180 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
24181 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
24182 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
24183 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
24184 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
24185 config/m68k/t-uclinux, config/mcore/t-mcore,
24186 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
24187 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
24188 config/mips/crtn.asm, config/mips/irix-crti.asm,
24189 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
24190 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
24191 config/mips/mips-fixed.md, config/mips/sb1.md,
24192 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
24193 config/mips/t-iris6, config/mips/t-isa3264,
24194 config/mips/t-libgcc-mips16, config/mips/t-linux64,
24195 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
24196 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
24197 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
24198 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
24199 config/mn10300/t-linux, config/mn10300/t-mn10300,
24200 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
24201 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
24202 config/picochip/libgccExtras/clzsi2.asm,
24203 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
24204 config/rs6000/darwin-libgcc.10.4.ver,
24205 config/rs6000/darwin-libgcc.10.5.ver,
24206 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
24207 config/rs6000/t-aix43, config/rs6000/t-aix52,
24208 config/rs6000/t-darwin, config/rs6000/t-fprules,
24209 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
24210 config/rs6000/t-lynx, config/rs6000/t-netbsd,
24211 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
24212 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
24213 config/rs6000/t-rtems, config/rs6000/t-spe,
24214 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
24215 config/score/t-score-elf, config/sh/divcost-analysis,
24216 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
24217 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
24218 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
24219 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
24220 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
24221 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
24222 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
24223 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
24224 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
24225 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
24226 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
24227 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
24228 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
24229 limitx.h, version.c, xcoff.h: Add copyright and license notices.
24230 * config/h8300/genmova.sh: Include copyright and license notices
24231 in generated output.
24232 * config/h8300/mova.md: Regenerate.
24233 * doc/install.texi2html: Include word "Copyright" in copyright
24234 notice and use name "Free Software Foundation, Inc.".
24235 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
24236 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
24237 ChangeLog-2007, ChangeLog-2008: Correct dates.
24239 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
24241 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
24242 NE_EXPR operations as well.
24243 * c-parser.c (c_parser_condition): Do not set location information on
24245 (c_parser_conditional_expression): Likewise.
24246 (c_parser_binary_expression): Set location information on operators.
24247 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
24248 TRUTH_NOT_EXPR has been folded.
24249 * fold-const.c (fold_truth_not_expr): Copy location information from
24250 the incoming expression to the outgoing one.
24251 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
24252 recursive calls on the LHS of the operator but pass that of the
24253 operator to recursive calls on the RHS of the operator. Set it
24255 (shortcut_cond_expr): Set the locus of the operator on the second
24256 COND_EXPR and that of the expression on the first in degenerate cases.
24257 Pass the locus of the expression to calls to shortcut_cond_r.
24258 Set the locus of the 'then' block on the associated jump, if any.
24259 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
24260 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
24261 expression to call to gimplify_boolean_expr.
24263 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
24265 * config.gcc: Add additional configuration for
24266 i686-w64-mingw* and x86_64-w64-mingw* triplet.
24267 * config/i386/mingw-w64.h: New mingw-w64 specific header.
24268 (CPP_SPEC): Redefine for allowing -municode option.
24269 (STARTFILE_SPEC): Likewise.
24270 * config/i386/t-mingw-w64: New.
24271 * config/i386/mingw-w64.opt: New.
24272 (municode): Add new target option.
24273 * doc/invoke.texi (municode): Add documentation for new option.
24275 2009-04-21 Ian Lance Taylor <iant@google.com>
24277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24278 Correct test for number of arguments.
24279 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
24281 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
24283 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
24284 argument of emit_library_call.
24286 2009-04-21 Richard Guenther <rguenther@suse.de>
24288 PR middle-end/39829
24289 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
24290 inside VIEW_CONVERT_EXPRs.
24292 2009-04-21 Martin Jambor <mjambor@suse.cz>
24294 * tree-switch-conversion.c (build_constructors): Split a long line.
24295 (constructor_contains_same_values_p): New function.
24296 (build_one_array): Create assigns of constants if possible, do not
24297 call mark_sym_for_renaming, call update_stmt.
24298 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
24299 make_rename_temp. Do not call mark_symbols_for_renaming, call
24301 (gen_def_assigns): Do not call mark_symbols_for_renaming or
24302 find_new_referenced_vars, call update_stmt.
24303 (gen_inbound_check): Use create_tmp_var and create ssa names manually
24304 instead of calling make_rename_temp. Do not call
24305 find_new_referenced_vars or mark_symbols_for_renaming, call
24308 2009-04-21 Richard Guenther <rguenther@suse.de>
24310 PR tree-optimization/39827
24311 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
24312 (tree_ssa_phiprop): Pass the correct array size.
24314 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
24316 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
24318 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24321 * c-typeck.c (lvalue_p): Move declaration ...
24322 * c-common.h (lvalue_p): ... to here.
24323 * c-common.c (candidate_equal_p): New.
24324 (add_tlist): Use it.
24325 (merge_tlist): Use it.
24326 (warn_for_collisions_1): Likewise.
24327 (warning_candidate_p): Accept more candidates.
24328 (verify_tree): A warning candidate can be an expression. Use
24331 2009-04-21 Ben Elliston <bje@au.ibm.com>
24334 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24335 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
24336 options. Remove -mcall-solaris documentation.
24338 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24341 * doc/invoke.texi (-Wlong-long): Update description.
24342 * c-lex (interpret_integer): Only warn if there was no previous
24343 overflow and -Wlong-long is enabled.
24344 * c-decl.c (declspecs_add_type): Drop redundant flags.
24345 * c.opt (Wlong-long): Init to -1.
24346 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
24347 and front-end warn_long_long. Wlong-long only depends on other
24348 flags if it is uninitialized.
24349 * c-parser.c (disable_extension_diagnostics): warn_long_long is
24350 the same for CPP and FE.
24351 (restore_extension_diagnostics): Likewise.
24353 2009-04-20 Ian Lance Taylor <iant@google.com>
24355 Fix enum conversions which are invalid in C++:
24356 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
24357 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
24358 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
24359 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
24360 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
24361 (dbxout_parms): Likewise.
24362 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
24363 (df_clear_flags): Likewise.
24364 * df-problems.c (df_rd_bb_local_compute_process_def): Change
24365 top_flag parameter to int.
24366 (df_chain_create_bb_process_use): Likewise.
24367 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
24369 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
24370 (df_ref_create_structure, df_def_record_1): Likewise.
24371 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
24372 (df_notes_rescan): Change 0 to VOIDmode in function call.
24373 (df_get_call_refs, df_insn_refs_collect): Likewise.
24374 (df_bb_regs_collect): Likewise.
24375 (df_entry_block_defs_collect): Likewise.
24376 (df_exit_block_uses_collect): Likewise.
24377 * df.h: Update declarations.
24378 * double-int.c (double_int_divmod): Add cast to enum type.
24379 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
24380 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
24381 (based_loc_descr): Likewise.
24382 (loc_descriptor_from_tree_1): Change first_op and second_op to
24383 enum dwarf_location_atom. Add cast to enum type.
24384 * expmed.c (init_expmed): Change 0 to SET in function call.
24385 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
24386 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
24387 (do_store_flag): Likewise.
24388 * fixed-value.h (struct fixed_value): Change mode to enum
24390 * function.c (assign_parms): Change 0 to VOIDmode in function call.
24391 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
24393 (insert_insn_decl, insert_decl, insert_state): Likewise.
24394 (automata_list_finish): Likewise.
24395 * genrecog.c (process_define_predicate): Add cast to enum type.
24396 * gensupport.c (init_predicate_table): Add cast to enum type.
24397 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
24399 (gimple_build_call_1, gimple_build_label): Likewise.
24400 (gimple_build_goto, gimple_build_asm_1): Likewise.
24401 (gimple_build_switch_1, gimple_build_cdt): Likewise.
24402 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
24403 (enum fallback): Rename from enum fallback_t.
24404 (fallback_t): Typedef as int.
24405 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
24406 GSI_SAME_STMT in function call.
24407 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
24409 (setup_reg_class_relations): Likewise.
24410 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
24411 (setup_prohibited_class_mode_regs): Add cast to enum type.
24412 (setup_prohibited_mode_move_regs): Likewise.
24413 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
24414 (record_address_regs): Change i to enum reg_class.
24415 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
24416 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
24417 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
24418 (GET_MODE_2XWIDER_MODE): Likewise.
24419 (GET_CLASS_NARROWEST_MODE): Likewise.
24420 * omp-low.c (expand_omp_for): Add cast to enum type.
24421 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
24422 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
24423 * postreload.c (reload_cse_simplify_operands): Change rclass local
24425 * predict.c (combine_predictions_for_insn): Change best_predictor
24426 and predictor to enum br_predictor.
24427 (combine_predictions_for_bb): Likewise.
24428 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
24429 use SET_PREDICT_EXPR_OUTCOME.
24430 * real.c (real_arithmetic): Change icode to code in function call.
24431 * reginfo.c (init_move_cost): Add casts to enum type.
24432 (init_reg_sets_1, init_fake_stack_mems): Likewise.
24433 * regmove.c (regclass_compatible_p): Change class0 and class1 to
24435 * reload.c (find_valid_class): Add casts to enum type.
24436 (push_reload): Change 0 to NO_REGS in function call.
24437 (find_reloads): Change this_alternative to array of enum
24438 reg_class. Remove some now-unnecessary casts.
24439 (make_memloc): Change 0 to VOIDmode in function call.
24440 * reload1.c (reload): Change 0 to VOIDmode in function call.
24441 (eliminate_regs_1, elimination_effects): Likewise.
24442 (eliminate_regs_in_insn): Likewise.
24443 (emit_input_reload_insns): Add cast to enum type.
24444 (delete_output_reload): Change 0 to VOIDmode in function call.
24445 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
24446 to enum type in function call.
24447 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
24448 (SET_PREDICT_EXPR_OUTCOME): Define.
24449 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
24450 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
24451 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
24452 (dump_function): Likewise.
24453 * tree-dump.h: Update declarations.
24454 * tree-pass.h: Update declarations.
24455 * varasm.c (assemble_integer): Change mclass to enum mode_class.
24456 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
24458 (arm_rtx_costs_1): Correct parenthesization.
24459 (arm_rtx_costs): Add casts to enum type.
24460 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
24461 (vfp_emit_fstmd): Use add_rg_note.
24462 (emit_multi_reg_push, emit_sfm): Likewise.
24463 (thumb_set_frame_pointer): Likewise.
24464 (arm_expand_prologue): Likewise.
24465 (arm_regno_class): Change return type to enum reg_class.
24466 (thumb1_expand_prologue): Use add_reg_note.
24467 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
24468 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
24470 * config/arm/gentune.sh: Add cast to enum type.
24471 * config/arm/arm-tune.md: Rebuild.
24472 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
24473 (ix86_split_fp_branch, predict_jump): Likewise.
24474 (ix86_expand_multi_arg_builtin): Change sub_code from enum
24475 insn_code to enum rtx_code.
24476 (ix86_builtin_vectorized_function): Add cast to enum type.
24477 * config/i386/i386.md (truncdfsf2): Change slot to enum
24479 (truncxf<mode>2, isinf<mode>2): Likewise.
24480 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
24482 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
24483 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
24484 (insert_bundle_state): Change 1 to INSERT in function call.
24485 (ia64_add_bundle_selector_before): Likewise.
24486 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
24487 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
24488 (restore_stack_nonlocal): Likewise.
24489 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
24491 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
24493 (mips_rtx_costs): Likewise.
24494 (mips_override_options): Add casts to enum type.
24495 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
24497 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
24498 (store_reg, set_reg_plus_d): Likewise.
24499 (hppa_expand_prologue, hppa_profile_hook): Likewise.
24500 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24502 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
24504 (emit_unlikely_jump): Use add_reg_note.
24505 (rs6000_emit_allocate_stack): Likewise.
24506 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
24507 (output_toc): Change 1 to INSERT in function call.
24508 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
24509 (rs6000_initialize_trampoline): Likewise.
24510 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
24512 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
24513 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
24514 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
24515 (save_gprs): Use add_reg_note.
24516 (s390_emit_prologue): Likewise.
24517 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
24518 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
24519 (sparc_fold_builtin): Add cast to enum type.
24520 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
24522 (spu_expand_prologue): Use add_reg_note.
24523 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
24525 2009-04-20 Ian Lance Taylor <iant@google.com>
24527 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
24528 (c_parser_postfix_expression_after_primary): Get VEC for list of
24529 arguments. Get original types of arguments. Call
24530 build_function_call_vec.
24531 (cached_expr_list_1, cached_expr_list_2): New static variables.
24532 (c_parser_expr_list): Change return type to VEC *. Add
24533 p_orig_types parameter. Change all callers.
24534 (c_parser_release_expr): New static function.
24535 (c_parser_vec_to_tree_list): New static function.
24536 * c-typeck.c (build_function_call): Rewrite to build a VEC and
24537 call build_function_call_vec.
24538 (build_function_call_vec): New function, based on old
24539 build_function_call.
24540 (convert_arguments): Remove nargs and argarray parameters. Change
24541 values to a VEC. Add origtypes parameter.
24542 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
24543 (convert_for_assignment): Add origtype parameter. Change all
24544 callers. If warn_cxx_compat, check for conversion to an enum
24545 type when calling a function.
24546 (store_init_value): Add origtype parameter. Change all callers.
24547 (digest_init): Likewise.
24548 (struct init_node): Add origtype field.
24549 (add_pending_init): Add origtype parameter. Change all callers.
24550 (output_init_element): Likewise.
24551 (output_pending_init_elements): Pass origtype from init_node to
24552 output_init_element.
24553 (process_init_element): Pass origtype from c_expr to
24554 output_init_element.
24555 (c_finish_return): Add origtype parameter. Change all callers.
24556 * c-common.c (sync_resolve_size): Change params to VEC *. Change
24558 (sync_resolve_params): Likewise.
24559 (sync_resolve_return): Change params to first_param. Change caller.
24560 (resolve_overloaded_builtins): Change params to VEC *. Change
24561 callers. Save first parameter around call to build_function_call_vec.
24562 * c-decl.c (finish_decl): Add origtype parameter. Change all
24563 callers. Call build_function_call_vec rather than
24564 build_function_call for cleanup.
24565 * c-tree.h: Update declarations.
24566 * c-common.h: Update declarations.
24567 * stub-objc.c (objc_rewrite_function_call): Change parameter from
24568 params to first_param.
24569 * target.h (struct gcc_target): Change resolve_overloaded_builtin
24570 params parameter from tree to void *.
24571 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24572 Change arglist parameter to have type void *, and to be a pointer
24574 * config/rs6000/rs6000-protos.h
24575 (altivec_resolve_overloaded_builtin): Update declaration.
24576 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
24577 fnargs parameter to have type void *, and to be a pointer to a
24578 VEC. Call build_function_call_vec instead of
24579 build_function_call.
24580 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
24582 2009-04-20 Joey Ye <joey.ye@intel.com>
24583 Xuepeng Guo <xuepeng.guo@intel.com>
24584 H.J. Lu <hongjiu.lu@intel.com>
24586 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
24588 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
24589 (IX86_LEA_PRIORITY): Likewise.
24590 (distance_non_agu_define): New function.
24591 (distance_agu_use): Likewise.
24592 (ix86_lea_for_add_ok): Likewise.
24593 (ix86_dep_by_shift_count): Likewise.
24595 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
24596 should split for LEA.
24598 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
24600 (ix86_dep_by_shift_count): Likewise.
24602 2009-04-20 Richard Guenther <rguenther@suse.de>
24604 * expr.c (handled_component_p): Move ...
24605 * tree.h (handled_component_p): ... here.
24606 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
24607 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
24608 and REALPART_EXPR to be in one group.
24610 2009-04-20 Richard Guenther <rguenther@suse.de>
24612 * basic-block.h (get_all_dominated_blocks): Declare.
24613 * dominance.c (get_all_dominated_blocks): New function.
24614 * tree-cfg.c (get_all_dominated_blocks): Remove.
24615 (remove_edge_and_dominated_blocks): Adjust.
24616 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
24617 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
24618 instead of recursing.
24620 2009-04-20 Doug Kwan <dougkwan@google.com>
24622 * cgraph.h (cgraph_node_ptr): New type for vector functions.
24623 (struct cgraph_node_set_def): New type.
24624 (cgraph_node_set) New type. Also declare vector functions.
24625 (struct cgraph_node_set_element_def): New type.
24626 (cgraph_node_set_element): Ditto.
24627 (cgraph_node_set_iterator): New iterator type.
24628 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
24629 cgraph_node_set_remove, dump_cgraph_node_set,
24630 debug_cgraph_node_set): New prototypes.
24631 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
24632 cgraph_node_set_size): New inlines.
24633 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
24634 including cgraph.h.
24635 (struct ipa_opt_pass): Add struct cgraph_node_set_def
24636 argument to function 'write_summary'.
24637 * ipa.c: Include ggc.h.
24638 (hash_cgraph_node_set_element,
24639 eq_cgraph_node_set_element, cgraph_node_set_new,
24640 cgraph_node_set_add, cgraph_node_set_remove,
24641 cgraph_node_set_find, dump_cgraph_node_set,
24642 debug_cgraph_node_set): New functions.
24643 * Makefile.in (ipa.o): Add dependency on GGC_H.
24645 2009-04-20 Ira Rosen <irar@il.ibm.com>
24647 PR tree-optimization/39675
24648 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
24649 check of the return code of vect_schedule_slp. Check that
24650 stmt_vec_info still exists for the statement, before checking its
24651 vectorization type.
24653 2009-04-20 Michael Matz <matz@suse.de>
24655 * Makefile.in (generated_files): Take out $(simple_generated_c).
24657 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
24659 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
24660 (UINTPTR_TYPE): Likewise.
24662 2009-04-19 Joseph Myers <joseph@codesourcery.com>
24665 * c-typeck.c (digest_init): Check for initializing an array with a
24668 2009-04-19 Joseph Myers <joseph@codesourcery.com>
24671 * c-semantics.c (pop_stmt_list): Propagate
24672 STATEMENT_LIST_HAS_LABEL to parent statement list.
24674 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
24676 * config/mips/mips.h (mips_tune_attr): New macro.
24677 * config/mips/mips.md (cpu): Use it.
24679 2009-04-19 Joseph Myers <joseph@codesourcery.com>
24682 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
24685 2009-04-19 Diego Novillo <dnovillo@google.com>
24687 * toplev.c (compile_file): Move call to coverage_finish ...
24688 * cgraphunit.c (ipa_passes): ... here.
24689 Call cgraph_process_new_functions.
24690 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
24691 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
24693 2009-04-19 Jan Hubicka <jh@suse.cz>
24695 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
24697 (dump_cgraph_node): Dump can throw external flag.
24698 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
24700 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
24704 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
24705 * common.opt (Wlogical-op): Move from here...
24706 * c.opt (Wlogical-op): ... to here.
24707 * c-typeck.c (parser_build_binary_op): Update call to
24708 warn_logical_operator.
24709 * c-opts.c (c_common_post_options): Enable warn_logical_op with
24711 * c-common.c (warn_logical_op): Update.
24712 * c-common.h (warn_logical_op): Update declaration.
24714 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
24716 * tree.c (protected_set_expr_location): Fix formatting.
24718 2009-04-18 Joseph Myers <joseph@codesourcery.com>
24721 * c-typeck.c (readonly_warning): new.
24722 (build_unary_op, build_modify_expr): Use readonly_warning for
24723 storing into something readonly but not const-qualified.
24725 2009-04-18 Joseph Myers <joseph@codesourcery.com>
24728 * c-typeck.c (build_unary_op): Check for taking address of
24729 expression of type void.
24731 2009-04-18 Joseph Myers <joseph@codesourcery.com>
24734 * c-typeck.c (build_function_call): Check for calling a function
24735 with qualified void return types. Call require_complete_type when
24738 2009-04-18 Jan Hubicka <jh@suse.cz>
24740 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
24742 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
24743 can_throw_external flag.
24744 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
24745 * ipa-pure-const.c (ignore_edge): New function.
24746 (propagate): Compute order for NOTHROW computation; set NOTHROWs
24747 only over can_throw_external edges.
24748 (local_pure_const): Add nothrow flag.
24749 * ipa-utils.c (searchc): Add ignore_edge callback.
24750 (ipa_utils_reduced_inorder): Add ignore_edge callback.
24751 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
24752 (set_nothrow_function_flags): Update cgraph.
24753 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
24755 2009-04-18 Richard Guenther <rguenther@suse.de>
24757 PR middle-end/39804
24758 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
24759 (fold_stmt): ... this and ...
24760 (fold_stmt_inplace): ... this.
24761 (fold_stmt_1): Fold references in calls and asms.
24762 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
24764 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
24766 * tree-vrp.c (ssa_name_nonzero_p): Remove.
24767 * tree.h: Remove the prototype for ssa_name_nonzero_p.
24769 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
24771 * tree.c (function_args_count): Remove.
24772 * tree.h: Remove the prototype for function_args_count.
24774 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
24776 * tree-iterator.c (expr_only): Remove.
24777 * tree.h: Remove the prototype for expr_only.
24779 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
24781 * reginfo.c (cannot_change_mode_set_regs): Remove.
24782 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
24784 2009-04-08 Anatoly Sokolov <aesok@post.ru>
24786 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
24787 whether operands 0 and 1 overlaps.
24789 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
24791 PR middle-end/36902
24792 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
24793 pointer. Use warning_at instead of warning.
24794 (search_for_addr_array): Likewise.
24795 (check_array_bounds): Likewise.
24796 (check_all_array_refs): Check that the incoming edge is not in the
24797 list of edges to be removed.
24798 (check_all_array_refs): Avoid the temporal pointer.
24799 (vrp_visit_cond_stmt): Fix typo.
24800 (simplify_switch_using_ranges): Handle the case where the switch
24801 index is an integer constant.
24803 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
24805 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
24807 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
24809 * doc/extend.texi, doc/invoke.texi: Fix typos.
24811 2009-04-17 Cary Coutant <ccoutant@google.com>
24813 * tree-flow-inline.h (get_lineno): Fix inverted test.
24815 2009-04-17 Diego Novillo <dnovillo@google.com>
24817 * tree-ssa-pre.c (create_expression_by_pieces): Remove
24818 assertion for AVAIL_OUT.
24820 2009-04-17 Mike Frysinger <vapier@gentoo.org>
24823 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
24824 * config/sh/linux-atomic.asm: Likewise.
24826 2009-04-17 Diego Novillo <dnovillo@google.com>
24828 * except.c (debug_eh_tree): New.
24829 (struct eh_region, struct eh_status): Move ...
24830 * except.h: ... here.
24831 (add_type_for_runtime): Declare extern.
24832 (lookup_type_for_runtime): Likewise.
24833 (debug_eh_tree): Declare.
24834 * Makefile.in (GTFILES): List except.h before except.c
24836 2009-04-17 Diego Novillo <dnovillo@google.com>
24838 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
24839 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
24840 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
24841 (find_vars_r): ... here.
24842 * tree-flow.h (find_referenced_vars_in): Declare.
24843 * tree-ssa-pre.c (create_expression_by_pieces): Assert
24844 that AVAIL_OUT exists for BLOCK.
24845 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
24846 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
24847 (tree-parloops.o): Likewise.
24849 2009-04-17 Simon Baldwin <simonb@google.com>
24851 * toplev.c (default_tree_printer): Add handling for %E format.
24853 2009-04-17 Diego Novillo <dnovillo@google.com>
24855 * tree-pretty-print.c (dump_generic_node): Add break after
24856 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
24857 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
24858 FUNCTION_TYPE together. Call print_struct_decl when printing
24859 structures and TDF_SLIM is not given.
24860 (print_struct_decl): Fix logic for detecting recursion.
24862 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
24865 * gcc.c (create_at_file): New.
24866 (compile_input_file_p): New.
24867 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
24868 * main.c (main): Update call to toplev_main.
24869 * toplev.c (toplev_main): Change signature. Call expandargv.
24870 * toplev.h (toplev_main): Change signature.
24872 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
24874 * dwarf2out.c (field_byte_offset): Use the type size as the field size
24875 if the latter is not constant.
24877 2009-04-17 David Edelsohn <edelsohn@gnu.org>
24879 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
24881 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
24883 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
24884 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
24886 2009-04-17 Richard Guenther <rguenther@suse.de>
24888 * tree-ssa-structalias.c (get_constraint_for_component_ref):
24889 Handle component references view-converting an invariant address.
24891 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
24893 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
24894 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
24895 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
24896 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
24897 Use @deftypevr rather than @deftypevar.
24899 2009-04-17 Richard Guenther <rguenther@suse.de>
24901 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
24902 (get_prop_source_stmt): Likewise.
24903 (can_propagate_from): Likewise.
24905 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
24907 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
24908 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
24909 (--with-multilib-list): Add default value.
24910 * configure: Regenerate.
24911 * Makefile.in (TM_ENDIAN_CONFIG): Define.
24912 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
24913 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
24914 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
24915 Don't add default cpu to multilib list unnecessarily, but do enable
24916 the relevant compiler option..
24917 Add support for --with-multilib-list=<blank> and
24918 --with-multilib-list=!<somelib> to supress unwanted multilibs.
24919 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
24920 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
24921 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
24922 TM_MULTILIB_CONFIG.
24923 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
24924 (MULTILIB_OSDIRNAMES): New variable.
24925 * config/sh/t-1e: Delete file.
24926 * config/sh/t-mlib-sh1: Delete file.
24927 * config/sh/t-mlib-sh2: Delete file.
24928 * config/sh/t-mlib-sh2a: Delete file.
24929 * config/sh/t-mlib-sh2a-nofpu: Delete file.
24930 * config/sh/t-mlib-sh2a-single: Delete file.
24931 * config/sh/t-mlib-sh2a-single-only: Delete file.
24932 * config/sh/t-mlib-sh2e: Delete file.
24933 * config/sh/t-mlib-sh3e: Delete file.
24934 * config/sh/t-mlib-sh4: Delete file.
24935 * config/sh/t-mlib-sh4-nofpu: Delete file.
24936 * config/sh/t-mlib-sh4-single: Delete file.
24937 * config/sh/t-mlib-sh4-single-only: Delete file.
24938 * config/sh/t-mlib-sh4a: Delete file.
24939 * config/sh/t-mlib-sh4a-nofpu: Delete file.
24940 * config/sh/t-mlib-sh4a-single: Delete file.
24941 * config/sh/t-mlib-sh4a-single-only: Delete file.
24942 * config/sh/t-mlib-sh4al: Delete file.
24943 * config/sh/t-mlib-sh5-32media: Delete file.
24944 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
24945 * config/sh/t-mlib-sh5-64media: Delete file.
24946 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
24947 * config/sh/t-mlib-sh5-compact: Delete file.
24948 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
24949 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
24950 * doc/install.texi (Options specification): Add
24951 --with-multilib-list and --with-endian.
24953 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
24955 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
24957 (OBJS-common): Add plugin-version.o.
24958 (plugin-version.o): New.
24959 * gcc-plugin.h (plugin_gcc_version): New.
24960 (plugin_default_version_check): New.
24961 (plugin_init_func, plugin_init): Add version argument.
24962 * plugin-version.c: New.
24963 * plugin.c (str_plugin_gcc_version_name): New.
24964 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
24965 pass it to the init function.
24966 (plugin_default_version_check): New.
24968 2009-04-17 Richard Guenther <rguenther@suse.de>
24970 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
24971 for decl-vs-decl disambiguation.
24973 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
24975 * config/s390/s390.h (s390_tune_attr): New macro definition.
24976 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
24978 2009-04-17 Richard Guenther <rguenther@suse.de>
24980 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
24981 (fold_stmt_r): Likewise.
24982 (maybe_fold_reference): New function.
24983 (fold_gimple_assign): Handle cases fold_stmt_r did.
24984 (fold_stmt): Do not use fold_stmt_r.
24985 (fold_stmt_inplace): Likewise.
24987 2009-04-17 Richard Guenther <rguenther@suse.de>
24989 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
24990 (record_equivalences_from_stmt): Remove useless checks and
24992 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
24993 the type is already suitable.
24995 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
24997 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
24999 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
25001 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
25002 (CMPtype): Define as __gcc_CMPtype.
25004 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
25006 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
25007 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
25009 2009-04-17 Richard Guenther <rguenther@suse.de>
25011 PR tree-optimization/39746
25012 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
25013 special-casing for builtins and static variable use/def.
25014 (call_may_clobber_ref_p_1): Likewise.
25016 2009-04-16 Ian Lance Taylor <iant@google.com>
25018 * df.h: Include "timevar.h".
25019 (struct df_problem): Change tv_id field to timevar_id_t.
25020 * tree-pass.h: Include "timevar.h".
25021 (struct opt_pass): Change tv_id field to timevar_id_t.
25022 * timevar.h (timevar_id_t): Define TV_NONE.
25023 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
25024 TV_NONE rather than tv_id != 0.
25025 (execute_one_pass): Likewise.
25026 * Makefile.in (DF_H): Add $(TIMEVAR_H).
25027 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
25028 dependencies to $(TREE_PASS_H).
25029 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
25031 (pass_branch_target_load_optimize2): Likewise.
25032 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
25033 (pass_outof_cfg_layout_mode): Likewise.
25034 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
25035 (pass_rebuild_cgraph_edges): Likewise.
25036 (pass_remove_cgraph_callee_edges): Likewise.
25037 * df-core.c (pass_df_initialize_opt): Likewise.
25038 (pass_df_initialize_no_opt): Likewise.
25039 (pass_df_finish): Likewise.
25040 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
25041 * except.c (pass_set_nothrow_function_flags): Likewise.
25042 (pass_convert_to_eh_region_ranges): Likewise.
25043 * final.c (pass_compute_alignments): Likewise.
25044 * function.c (pass_instantiate_virtual_regs): Likewise.
25045 (pass_init_function): Likewise.
25046 (pass_leaf_regs): Likewise.
25047 (pass_match_asm_constraints): Likewise.
25048 * gimple-low.c (pass_lower_cf): Likewise.
25049 (pass_mark_used_blocks): Likewise.
25050 * init-regs.c (pass_initialize_regs): Likewise.
25051 * integrate.c (pass_initial_value_sets): Likewise.
25052 * ira.c (pass_ira): Likewise.
25053 * jump.c (pass_cleanup_barriers): Likewise.
25054 * omp-low.c (pass_expand_omp): Likewise.
25055 (pass_lower_omp): Likewise.
25056 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
25057 * recog.c (pass_split_all_insns): Likewise.
25058 (pass_split_after_reload): Likewise.
25059 (pass_split_before_regstack): Likewise.
25060 (pass_split_before_sched2): Likewise.
25061 (pass_split_for_shorten_branches): Likewise.
25062 * reginfo.c (pass_reginfo_init): Likewise.
25063 (pass_subregs_of_mode_init): Likewise.
25064 (pass_subregs_of_mode_finish): Likewise.
25065 * passes.c (pass_postreload): Likewise.
25066 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
25067 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
25068 (pass_warn_function_return): Likewise.
25069 (pass_warn_function_noreturn): Likewise.
25070 * tree-complex.c (pass_lower_complex): Likewise.
25071 (pass_lower_complex_O0): Likewise.
25072 * tree-if-conv.c (pass_if_conversion): Likewise.
25073 * tree-into-ssa.c (pass_build_ssa): Likewise.
25074 * tree-mudflap.c (pass_mudflap_1): Likewise.
25075 (pass_mudflap_2): Likewise.
25076 * tree-nomudflap.c (pass_mudflap_1): Likewise.
25077 (pass_mudflap_2): Likewise.
25078 * tree-nrv.c (pass_return_slot): Likewise.
25079 * tree-object-size.c (pass_object_sizes): Likewise.
25080 * tree-optimize.c (pass_all_optimizations): Likewise.
25081 (pass_early_local_passes): Likewise.
25082 (pass_all_early_optimizations): Likewise.
25083 (pass_cleanup_cfg): Likewise.
25084 (pass_cleanup_cfg_post_optimizing): Likewise.
25085 (pass_free_datastructures): Likewise.
25086 (pass_free_cfg_annotations): Likewise.
25087 (pass_fixup_cfg): Likewise.
25088 (pass_init_datastructures): Likewise.
25089 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
25090 (pass_late_warn_uninitialized): Likewise.
25091 (pass_update_address_taken): Likewise.
25092 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
25093 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
25094 (pass_cse_sincos): Likewise.
25095 (pass_convert_to_rsqrt): Likewise.
25096 * tree-ssa-structalias.c (pass_build_alias): Likewise.
25097 * tree-stdarg.c (pass_stdarg): Likewise.
25098 * tree-tailcall.c (pass_tail_recursion): Likewise.
25099 (pass_tail_calls): Likewise.
25100 * tree-vect-generic.c (pass_lower_vector): Likewise.
25101 (pass_lower_vector_ssa): Likewise.
25102 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
25104 2009-04-16 Joseph Myers <joseph@codesourcery.com>
25106 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
25108 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
25110 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
25111 logical and signext.
25113 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
25116 * config/sh/predicates.md (arith_operand): Check if the operand
25117 of TRUNCATE is a REG.
25119 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25121 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
25122 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
25124 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25126 * tree-iterator.c (tsi_split_statement_list_after,
25127 tsi_split_statement_list_before): Remove.
25128 * tree-iterator.h: Remove the prototypes for
25129 tsi_split_statement_list_after and tsi_split_statement_list_before.
25131 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25133 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
25134 * tree-ssa-propagate.h: Remove the prototype for
25135 stmt_makes_single_load.
25137 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25139 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
25140 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
25142 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25144 * tree-iterator.c (EXPR_LAST_BODY): Remove.
25146 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25148 * except.c (eh_region_outer_p): Remove.
25149 * except.h: Remove the prototype for eh_region_outer_p.
25151 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
25153 * function.c (current_function_assembler_name): Remove.
25154 * function.h: Remove the prototype for
25155 current_function_assembler_name.
25157 2009-04-16 Ian Lance Taylor <iant@google.com>
25159 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
25160 (add_reg_note): Call alloc_reg_note.
25161 * rtl.h (alloc_reg_note): Declare.
25162 * combine.c (try_combine): Use alloc_reg_note.
25163 (recog_for_combine, move_deaths): Likewise.
25164 (distribute_notes): Use alloc_reg_note and add_reg_note.
25165 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
25166 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
25167 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
25169 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
25171 PR rtl-optimization/39762
25172 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
25173 ira_may_move_out_cost): Add comments about way of their usage.
25174 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
25176 * ira-conflicts.c (process_regs_for_copy): Use function
25177 ira_get_register_move_cost instead of global
25178 ira_register_move_cost.
25180 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
25181 color_pass, move_spill_restore, update_curr_costs): Ditto.
25183 * ira-lives.c (process_single_reg_class_operands): Ditto.
25185 * ira-emit.c (emit_move_list): Ditto.
25187 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
25188 (record_reg_classes): Ditto. Use functions
25189 ira_get_register_move_cost and ira_get_may_move_cost instead of
25190 global vars ira_register_move_cost, ira_may_move_out_cost and
25191 ira_may_move_in_cost.
25192 (record_address_regs): Don't call ira_init_register_move_cost.
25193 Use function ira_get_may_move_cost instead of global
25194 ira_may_move_in_cost.
25195 (process_bb_node_for_hard_reg_moves): Use function
25196 ira_get_register_move_cost instead of global ira_register_move_cost.
25197 (ira_costs): Don't call ira_init_register_move_cost.
25199 2009-04-16 Richard Guenther <rguenther@suse.de>
25201 * tree-cfg.c (verify_gimple_assign_binary):
25202 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
25203 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
25204 (create_general_new_stmt): Note that this function is broken.
25206 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
25208 * common.opt (fhelp): Add Var(help_flag).
25209 * gcc-plugin.h (plugin_info): Add help.
25210 * plugin.c (plugin_name_args): Add help.
25211 (register_plugin_info): Set plugin->help.
25212 (print_help_one_plugin): New.
25213 (print_plugins_help): New.
25214 * plugin.h (print_plugins_help): New.
25215 * toplev.c (toplev_main): Call print_plugins_help if needed.
25217 2009-04-16 Richard Guenther <rguenther@suse.de>
25219 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
25220 (gimple_ior_addresses_taken_1): New function.
25221 (gimple_ior_addresses_taken): Likewise.
25222 * gimple.h (struct gimple_statement_with_ops_base): Remove
25223 addresses_taken member.
25224 (gimple_ior_addresses_taken): Declare.
25225 (gimple_addresses_taken, gimple_addresses_taken_ptr,
25226 gimple_set_addresses_taken): Remove.
25227 * ipa-reference.c (mark_address): New function.
25228 (scan_stmt_for_static_refs): Use it for marking addresses taken.
25229 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
25230 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
25231 (gimple_add_to_addresses_taken): Remove.
25232 (get_tmr_operands): Call mark_address_taken.
25233 (get_asm_expr_operands): Likewise.
25234 (get_expr_operands): Likewise.
25235 (build_ssa_operands): Do not clear the addresses_taken bitmap.
25236 (free_stmt_operands): Do not free it.
25237 * tree-ssa.c (delete_tree_ssa): Likewise.
25238 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
25240 2009-04-16 Richard Guenther <rguenther@suse.de>
25242 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
25243 (walk_stmt_load_store_ops): Likewise.
25244 * gimple.c (get_base_loadstore): New function.
25245 (walk_stmt_load_store_addr_ops): Likewise.
25246 (walk_stmt_load_store_ops): Likewise.
25247 * ipa-pure-const.c (check_op): Simplify.
25248 (check_load, check_store): New functions.
25249 (check_stmt): Use walk_stmt_load_store_ops.
25250 * ipa-reference.c (mark_load): Adjust signature.
25251 (mark_store): Likewise.
25252 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
25254 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
25256 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
25257 (plugin_info): New.
25258 * opts.c (common_handle_option): Don't call print_version.
25259 * plugin.c (plugin_name_args): Add version.
25260 (register_plugin_info): New.
25261 (register_callback): Handle PLUGIN_INFO.
25262 (try_init_one_plugin): New.
25263 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
25265 (finalize_one_plugin): New.
25266 (finalize_plugins): New.
25267 (print_one_plugin): New.
25268 (print_plugins_versions): New.
25269 * plugin.h (print_plugins_versions): New.
25270 (finalize_plugins): New.
25271 * toplev.c (compile_file): Don't call initialize_plugins.
25272 (print_version): Call print_plugins_versions.
25273 (toplev_main): Call initialize_plugins. Print version if needed.
25274 Call finalize_plugins.
25276 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
25278 * common.opt (fversion): New.
25279 * gcc.c (print_version): New.
25280 (process_command): Don't print the version. Just set print_version.
25281 (main): Print version. Call subprocesses if print_version and
25282 verbose_flag are set.
25283 * opts.c (common_handle_option): Handle OPT_fversion.
25285 2009-04-16 Richard Guenther <rguenther@suse.de>
25286 Ira Rosen <irar@il.ibm.com>
25288 PR tree-optimization/39698
25289 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
25290 type of the reduction variable. Only generate the def if
25293 * omp-low.c (expand_omp_for_generic): When converting to a pointer
25294 make sure to first convert to an integer of the same precision.
25295 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
25296 the type of the evolution correctly in computing the new
25297 induction variable base.
25299 2009-04-16 Richard Guenther <rguenther@suse.de>
25301 PR middle-end/39625
25302 * tree-cfg.c (make_blocks): Split statements with to-be
25303 abnormal SSA names on the lhs.
25305 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
25307 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
25308 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
25309 * c-typeck.c (really_start_incremental_init): Likewise.
25310 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
25311 (TARGET_INITIALIZER): Remove it.
25312 * target.h (struct target): Remove vector_opaque_p.
25313 * tree.c (build_opaque_vector_type): New.
25314 * tree.h (TYPE_VECTOR_OPAQUE): New.
25315 (build_opaque_vector_type): Declare.
25316 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
25317 * config/rs6000/rs6000.c (build_opaque_vector_type,
25318 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
25319 (rs6000_init_builtins): Use build_opaque_vector_type for
25320 opaque_V4SI_type_node.
25322 2009-04-15 Catherine Moore <clm@codesourcery.com>
25324 * debug.h (set_name): Declare.
25325 * dwarf2out.c (dwarf2out_set_name): Declare.
25326 (dwarf2_debug_hooks): Add set_name.
25327 (find_AT_string): New.
25328 (add_AT_string): Call find_AT_string.
25329 (dwarf2out_set_name): New.
25330 * cp/decl.c (grokdeclarator): Call set_name.
25331 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
25332 * debug.c (do_nothing_debug_hooks): Likewise.
25333 * dbxout.c (dbx_debug_hooks): Likewise.
25334 * sdbout.c (sdb_debug_hooks): Likewise.
25336 2009-04-15 Michael Eager <eager@eagercon.com>
25338 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
25339 reg for single-precision FPU.
25340 * config/rs6000/rs6000.md (movsi_internal1): Only for
25341 !TARGET_SINGLE_FPU.
25342 (movsi_internal1_single): New. Add pattern to move SI values to/from
25343 single-precision FP regs.
25345 2009-04-15 Richard Guenther <rguenther@suse.de>
25347 * omp-low.c (lower_rec_input_clauses): Build correct address
25349 (expand_omp_for_generic): Fix multiplication type.
25350 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
25351 (generate_memset_zero): Fix types.
25352 * tree-profile.c (prepare_instrumented_value): Correctly
25355 2009-04-15 Ian Lance Taylor <iant@google.com>
25357 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
25358 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
25359 for -Wall and for -Wc++-compat.
25360 (c_common_post_options): For C++, set warn_enum_compare if not
25362 * c-tree.h (struct c_expr): Add field original_type.
25363 (build_external_ref): Update declaration.
25364 * c-parser.c (c_parser_braced_init): Set original_type.
25365 (c_parser_initelt): Likewise.
25366 (c_parser_expr_no_commas): Likewise.
25367 (c_parser_conditional_expression): Likewise.
25368 (c_parser_cast_expression): Likewise.
25369 (c_parser_unary_expression): Likewise. Pull setting of
25370 original_code to top of function.
25371 (c_parser_sizeof_expression): Set original_type.
25372 (c_parser_alignof_expression): Likewise.
25373 (c_parser_postfix_expression): Likewise. Pull setting of
25374 original_code to top of function.
25375 (c_parser_postfix_expression_after_paren_type): Set original_type.
25376 (c_parser_postfix_expression_after_primary): Likewise.
25377 (c_parser_expression): Likewise.
25378 * c-typeck.c (build_external_ref): Add type parameter. Change all
25380 (c_expr_sizeof_expr): Set original_type field.
25381 (parser_build_unary_op): Likewise.
25382 (parser_build_binary_op): Likewise. Optionally warn about
25383 comparisons of enums of different types.
25384 (digest_init): Set original_type field.
25385 (really_start_incremental_init): Likewise.
25386 (push_init_level, pop_init_level): Likewise.
25387 * doc/invoke.texi (Warning Options): -Wenum-compare now
25390 2009-04-15 Richard Guenther <rguenther@suse.de>
25392 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
25393 out a necessary conversion.
25394 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
25395 names we didn't value number.
25396 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
25398 2009-04-15 Richard Guenther <rguenther@suse.de>
25400 PR tree-optimization/39764
25401 * tree-ssa-ccp.c (get_value): Canonicalize value with
25402 canonicalize_float_value.
25404 2009-04-15 Jan Hubicka <jh@suse.cz>
25406 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
25407 Wrong version of patch.
25409 2009-04-15 Jan Hubicka <jh@suse.cz>
25411 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
25413 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
25415 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
25416 our distinct integral and vector types.
25418 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
25420 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
25421 * init.c (build_vtbl_address): Remove call to assemble_external.
25423 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
25425 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
25426 output for other floating point modes.
25428 2009-04-14 Diego Novillo <dnovillo@google.com>
25430 * diagnostic.c (diagnostic_report_diagnostic): Do not
25431 warn about loaded plugins for DK_ERROR and DK_WARNING.
25432 * c-decl.c (declspecs_add_type): Move call to
25433 invoke_plugin_callbacks ...
25434 * c-parser.c (c_parser_declspecs): ... here.
25435 * plugin.c (dump_active_plugins): Tidy output.
25437 2009-04-14 Diego Novillo <dnovillo@google.com>
25438 Le-Chun Wu <lcwu@google.com>
25440 * configure.ac: Add --enable-plugin support.
25441 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
25442 * Makefile.in (PLUGIN_H): Define.
25443 Export ENABLE_PLUGIN and GMPINC to site.exp.
25444 Add PLUGINLIBS to link command.
25445 Add/modify dependencies for plugin.o and files including plugin.h.
25447 * config.in: Regenerate.
25449 * opts.c (common_handle_option): Handle OPT_fplugin_ and
25452 2009-04-14 Le-Chun Wu <lcwu@google.com>
25454 * tree-pass.h (register_one_dump_file): Add a prototype for
25455 register_one_dump_file.
25456 * toplev.c (compile_file): Call initialize_plugins.
25457 (do_compile): Call invoke_plugin_callbacks.
25458 (toplev_main): Call invoke_plugin_callbacks.
25459 * common.opt: Add -fplugin= and -fplugin-arg-.
25460 * gcc-plugin.h: New public header file for plugins to include.
25461 * plugin.c: New source file.
25462 * plugin.h: New internal header file.
25463 * passes.c (register_one_dump_file): Make it external.
25465 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
25467 2009-04-14 Diego Novillo <dnovillo@google.com>
25469 * doc/plugins.texi: New.
25470 * doc/gccint.texi: Add reference to Plugins chapter.
25471 * doc/invoke.texi: Document -fplugin and -fplugin-arg
25472 * diagnostic.c (diagnostic_report_diagnostic): Warn about
25473 loaded plugins, if any.
25474 * timevar.def (TV_PLUGIN_INIT): Define.
25475 (TV_PLUGIN_RUN): Define.
25476 * plugin.c: Include timevar.h
25477 (plugins_active_p): New.
25478 (dump_active_plugins): New.
25479 (debug_active_plugins): New.
25481 2009-04-14 Joseph Myers <joseph@codesourcery.com>
25483 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
25485 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
25487 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
25489 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
25490 the same as a minus without a shift.
25492 2009-04-14 Nick Clifton <nickc@redhat.com>
25494 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
25495 comparisons with small integers will always produce a short
25498 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
25501 2008-12-19 Diego Novillo <dnovillo@google.com>
25503 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
25505 2009-04-14 Richard Guenther <rguenther@suse.de>
25507 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
25509 (verify_gimple_assign_binary): Likewise. Handle shifts and
25511 (verify_gimple_phi): Print the mismatched argument position.
25512 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
25514 (vect_update_init_of_dr): Likewise.
25515 * matrix-reorg.c (transform_access_sites): Do what the
25517 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
25519 2009-04-13 Michael Eager <eager@eagercon.com>
25521 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
25522 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
25523 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
25524 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
25525 remove duplicate config
25527 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
25529 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
25530 file_name:line_number type locator of the call site.
25532 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
25534 * genautomata.c: Put blank after comma.
25535 (automaton_decls): New.
25536 (struct unit_usage): Add comments to member next.
25537 (store_alt_unit_usage): Keep the list ordered.
25538 (unit_present_on_list_p, equal_alternatives_p): New.
25539 (check_regexp_units_distribution): Check units distribution
25540 correctness correctly.
25541 (main): Don't write automata if error is found. Return correct
25544 * config/m68k/cf.md (cfv4_ds): Remove.
25545 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
25546 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
25548 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
25549 power4-load-ext, power4-store, power4-store-update,
25550 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
25551 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
25552 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
25553 power4-sqrt, power4-isync): Modify reservation to make correct
25554 unit distribution to automata.
25556 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
25557 power5-store-update, power5-two, power5-three, power5-lmul,
25558 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
25560 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
25562 * except.c (pass_set_nothrow_function_flags): Set name and add
25564 (set_nothrow_function_flags): Mention in the dump file when
25565 changing a function to nothrow.
25567 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
25570 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
25571 instead of unsigned long.
25573 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25575 * config/arm/arm.c (return_used_this_function): Remove.
25576 (arm_output_function_prologue): Remove use of
25577 return_used_this_function.
25578 (output_return_instruction): Replace use of
25579 return_used_this_function
25580 by cfun->machine->return_used_this_function.
25581 (arm_output_epilogue): Likewise.
25582 (arm_output_function_epilogue): Likewise.
25583 (thumb_unexpanded_epilogue): Likewise.
25584 * config/arm/arm.h (struct machine_function):
25585 New member return_used_this_function.
25587 2009-04-12 Mark Mitchell <mark@codesourcery.com>
25589 * doc/install.texi: Correct description of default directory for
25590 --with-gxx-include-dir.
25592 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
25594 * fold-const.c (build_range_check): Properly deal with enumeral and
25595 boolean base types.
25597 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
25599 * doc/invoke.texi (max_gcse_passes): Remove documentation.
25600 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
25601 * params.h (MAX_GCSE_PASSES): Remove.
25602 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
25603 in sequence. Remove ability to run multiple passes.
25604 (bypass_jumps): Report run as third CPROP pass.
25606 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
25608 PR middle-end/39651
25609 * except.c (can_throw_external): Look at each insn in a SEQUENCE
25610 when deciding whether the whole SEQUENCE can throw.
25612 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
25615 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
25616 offseted label references.
25618 2009-04-11 Jan Hubicka <jh@suse.cz>
25620 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
25622 2009-04-11 Richard Guenther <rguenther@suse.de>
25624 PR middle-end/39732
25625 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
25626 return variables as TREE_ADDRESSABLE.
25628 2009-04-11 Richard Guenther <rguenther@suse.de>
25630 PR tree-optimization/39713
25631 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
25632 reference trees have SSA_NAME operands.
25634 2009-04-11 Richard Guenther <rguenther@suse.de>
25637 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
25638 address expressions.
25640 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
25642 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
25643 match changes in Cygwin 1.7
25644 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
25645 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
25647 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
25649 PR tree-optimization/39701
25650 * doc/invoke.texi (Optimization Options): Document change in
25651 meaning and initialization of -fdelete-null-pointer-checks.
25653 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
25655 PR middle-end/39701
25656 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
25658 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
25661 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
25663 2009-04-10 Chao-ying Fu <fu@mips.com>
25665 * doc/tm.texi (Instruction Output): Document
25666 TARGET_ASM_FINAL_POSTSCAN_INSN.
25667 * target.h (final_postscan_insn): New field in asm_out.
25668 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
25669 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
25670 * final.c (final_scan_insn): Call
25671 targetm.asm_out.final_postscan_insn after outputting
25672 an asm macro and a normal instruction.
25674 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
25675 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
25676 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
25677 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
25678 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
25680 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
25682 PR middle-end/39701
25683 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
25684 variables as non-NULL even with -fdelete-null-pointer-checks.
25686 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
25688 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
25690 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
25693 * config/i386/i386.c (classify_argument): Handle SCmode with
25694 (bit_offset % 64) != 0.
25696 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
25698 * doc/invoke.texi (Optimize Options): Add cross-reference to
25699 -Q --help=optimizers examples.
25701 2009-04-10 Ben Elliston <bje@au.ibm.com>
25704 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
25705 regalign for the reg == fpr and TDmode case.
25707 2009-04-09 David Ayers <ayers@fsfe.org>
25710 * objc/objc-act.c (warn_with_method): Remove helper function.
25711 (check_duplicates): Call warning and inform directly.
25712 (really_start_method): Likewise.
25714 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
25716 * expmed.c (expand_divmod): Always use a comparison for a division
25717 by a large unsigned integer.
25719 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
25720 for things others than variables or functions as nonzero.
25722 2009-04-09 Nick Clifton <nickc@redhat.com>
25724 * unwind-compat.c: Change copyright header to refer to version
25725 3 of the GNU General Public License with version 3.1 of the
25726 GCC Runtime Library Exception and to point readers at the
25727 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
25728 * config/alpha/crtfastmath.c: Likewise.
25729 * config/alpha/linux-unwind.h: Likewise.
25730 * config/alpha/qrnnd.asm: Likewise.
25731 * config/alpha/vms-crt0-64.c: Likewise.
25732 * config/alpha/vms-crt0.c: Likewise.
25733 * config/alpha/vms-dwarf2.asm: Likewise.
25734 * config/alpha/vms-dwarf2eh.asm: Likewise.
25735 * config/alpha/vms-psxcrt0-64.c: Likewise.
25736 * config/alpha/vms-psxcrt0.c: Likewise.
25737 * config/alpha/vms_tramp.asm: Likewise.
25738 * config/arc/initfini.c: Likewise.
25739 * config/arc/lib1funcs.asm: Likewise.
25740 * config/arm/bpabi-v6m.S: Likewise.
25741 * config/arm/bpabi.S: Likewise.
25742 * config/arm/bpabi.c: Likewise.
25743 * config/arm/crti.asm: Likewise.
25744 * config/arm/crtn.asm: Likewise.
25745 * config/arm/ieee754-df.S: Likewise.
25746 * config/arm/ieee754-sf.S: Likewise.
25747 * config/arm/lib1funcs.asm: Likewise.
25748 * config/arm/libunwind.S: Likewise.
25749 * config/arm/linux-atomic.c: Likewise.
25750 * config/arm/mmintrin.h: Likewise.
25751 * config/arm/pr-support.c: Likewise.
25752 * config/arm/unaligned-funcs.c: Likewise.
25753 * config/arm/unwind-arm.c: Likewise.
25754 * config/arm/unwind-arm.h: Likewise.
25755 * config/avr/libgcc.S: Likewise.
25756 * config/bfin/crti.s: Likewise.
25757 * config/bfin/crtlibid.s: Likewise.
25758 * config/bfin/crtn.s: Likewise.
25759 * config/bfin/lib1funcs.asm: Likewise.
25760 * config/bfin/linux-unwind.h: Likewise.
25761 * config/cris/arit.c: Likewise.
25762 * config/cris/cris_abi_symbol.c: Likewise.
25763 * config/darwin-64.c: Likewise.
25764 * config/darwin-crt2.c: Likewise.
25765 * config/darwin-crt3.c: Likewise.
25766 * config/darwin.h: Likewise.
25767 * config/dbxelf.h: Likewise.
25768 * config/dfp-bit.c: Likewise.
25769 * config/dfp-bit.h: Likewise.
25770 * config/elfos.h: Likewise.
25771 * config/fixed-bit.c: Likewise.
25772 * config/fixed-bit.h: Likewise.
25773 * config/fp-bit.c: Likewise.
25774 * config/fp-bit.h: Likewise.
25775 * config/fr30/crti.asm: Likewise.
25776 * config/fr30/crtn.asm: Likewise.
25777 * config/fr30/lib1funcs.asm: Likewise.
25778 * config/freebsd-spec.h: Likewise.
25779 * config/frv/cmovd.c: Likewise.
25780 * config/frv/cmovh.c: Likewise.
25781 * config/frv/cmovw.c: Likewise.
25782 * config/frv/frvbegin.c: Likewise.
25783 * config/frv/frvend.c: Likewise.
25784 * config/frv/lib1funcs.asm: Likewise.
25785 * config/glibc-stdint.h: Likewise.
25786 * config/h8300/clzhi2.c: Likewise.
25787 * config/h8300/crti.asm: Likewise.
25788 * config/h8300/crtn.asm: Likewise.
25789 * config/h8300/ctzhi2.c: Likewise.
25790 * config/h8300/fixunssfsi.c: Likewise.
25791 * config/h8300/lib1funcs.asm: Likewise.
25792 * config/h8300/parityhi2.c: Likewise.
25793 * config/h8300/popcounthi2.c: Likewise.
25794 * config/i386/ammintrin.h: Likewise.
25795 * config/i386/att.h: Likewise.
25796 * config/i386/avxintrin.h: Likewise.
25797 * config/i386/biarch64.h: Likewise.
25798 * config/i386/bmmintrin.h: Likewise.
25799 * config/i386/cpuid.h: Likewise.
25800 * config/i386/cross-stdarg.h: Likewise.
25801 * config/i386/crtfastmath.c: Likewise.
25802 * config/i386/crtprec.c: Likewise.
25803 * config/i386/cygming-crtbegin.c: Likewise.
25804 * config/i386/cygming-crtend.c: Likewise.
25805 * config/i386/cygwin.asm: Likewise.
25806 * config/i386/emmintrin.h: Likewise.
25807 * config/i386/gmm_malloc.h: Likewise.
25808 * config/i386/gthr-win32.c: Likewise.
25809 * config/i386/i386.h: Likewise.
25810 * config/i386/immintrin.h: Likewise.
25811 * config/i386/linux-unwind.h: Likewise.
25812 * config/i386/linux64.h: Likewise.
25813 * config/i386/mm3dnow.h: Likewise.
25814 * config/i386/mmintrin-common.h: Likewise.
25815 * config/i386/mmintrin.h: Likewise.
25816 * config/i386/nmmintrin.h: Likewise.
25817 * config/i386/pmm_malloc.h: Likewise.
25818 * config/i386/pmmintrin.h: Likewise.
25819 * config/i386/smmintrin.h: Likewise.
25820 * config/i386/sol2-c1.asm: Likewise.
25821 * config/i386/sol2-ci.asm: Likewise.
25822 * config/i386/sol2-cn.asm: Likewise.
25823 * config/i386/sol2-gc1.asm: Likewise.
25824 * config/i386/tmmintrin.h: Likewise.
25825 * config/i386/unix.h: Likewise.
25826 * config/i386/w32-unwind.h: Likewise.
25827 * config/i386/wmmintrin.h: Likewise.
25828 * config/i386/x86-64.h: Likewise.
25829 * config/i386/x86intrin.h: Likewise.
25830 * config/i386/xmmintrin.h: Likewise.
25831 * config/ia64/crtbegin.asm: Likewise.
25832 * config/ia64/crtend.asm: Likewise.
25833 * config/ia64/crtfastmath.c: Likewise.
25834 * config/ia64/crti.asm: Likewise.
25835 * config/ia64/crtn.asm: Likewise.
25836 * config/ia64/fde-glibc.c: Likewise.
25837 * config/ia64/lib1funcs.asm: Likewise.
25838 * config/ia64/linux-unwind.h: Likewise.
25839 * config/ia64/quadlib.c: Likewise.
25840 * config/ia64/unwind-ia64.c: Likewise.
25841 * config/linux.h: Likewise.
25842 * config/m32c/m32c-lib1.S: Likewise.
25843 * config/m32c/m32c-lib2-trapv.c: Likewise.
25844 * config/m32c/m32c-lib2.c: Likewise.
25845 * config/m32r/initfini.c: Likewise.
25846 * config/m68hc11/larith.asm: Likewise.
25847 * config/m68hc11/m68hc11-crt0.S: Likewise.
25848 * config/m68k/cf.md: Likewise.
25849 * config/m68k/crti.s: Likewise.
25850 * config/m68k/crtn.s: Likewise.
25851 * config/m68k/lb1sf68.asm: Likewise.
25852 * config/m68k/linux-unwind.h: Likewise.
25853 * config/mcore/crti.asm: Likewise.
25854 * config/mcore/crtn.asm: Likewise.
25855 * config/mcore/lib1.asm: Likewise.
25856 * config/mips/linux-unwind.h: Likewise.
25857 * config/mips/loongson.h: Likewise.
25858 * config/mips/mips16.S: Likewise.
25859 * config/mmix/crti.asm: Likewise.
25860 * config/mmix/crtn.asm: Likewise.
25861 * config/pa/fptr.c: Likewise.
25862 * config/pa/hpux-unwind.h: Likewise.
25863 * config/pa/lib2funcs.asm: Likewise.
25864 * config/pa/linux-atomic.c: Likewise.
25865 * config/pa/linux-unwind.h: Likewise.
25866 * config/pa/milli64.S: Likewise.
25867 * config/pa/quadlib.c: Likewise.
25868 * config/pa/stublib.c: Likewise.
25869 * config/picochip/libgccExtras/adddi3.asm: Likewise.
25870 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
25871 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
25872 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
25873 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
25874 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
25875 * config/picochip/libgccExtras/divmod15.asm: Likewise.
25876 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
25877 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
25878 * config/picochip/libgccExtras/longjmp.asm: Likewise.
25879 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
25880 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
25881 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
25882 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
25883 * config/picochip/libgccExtras/setjmp.asm: Likewise.
25884 * config/picochip/libgccExtras/subdi3.asm: Likewise.
25885 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
25886 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
25887 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
25888 * config/rs6000/750cl.h: Likewise.
25889 * config/rs6000/altivec.h: Likewise.
25890 * config/rs6000/biarch64.h: Likewise.
25891 * config/rs6000/crtresfpr.asm: Likewise.
25892 * config/rs6000/crtresgpr.asm: Likewise.
25893 * config/rs6000/crtresxfpr.asm: Likewise.
25894 * config/rs6000/crtresxgpr.asm: Likewise.
25895 * config/rs6000/crtsavfpr.asm: Likewise.
25896 * config/rs6000/crtsavgpr.asm: Likewise.
25897 * config/rs6000/darwin-asm.h: Likewise.
25898 * config/rs6000/darwin-fallback.c: Likewise.
25899 * config/rs6000/darwin-fpsave.asm: Likewise.
25900 * config/rs6000/darwin-ldouble.c: Likewise.
25901 * config/rs6000/darwin-tramp.asm: Likewise.
25902 * config/rs6000/darwin-unwind.h: Likewise.
25903 * config/rs6000/darwin-vecsave.asm: Likewise.
25904 * config/rs6000/darwin-world.asm: Likewise.
25905 * config/rs6000/e500crtres32gpr.asm: Likewise.
25906 * config/rs6000/e500crtres64gpr.asm: Likewise.
25907 * config/rs6000/e500crtres64gprctr.asm: Likewise.
25908 * config/rs6000/e500crtrest32gpr.asm: Likewise.
25909 * config/rs6000/e500crtrest64gpr.asm: Likewise.
25910 * config/rs6000/e500crtresx32gpr.asm: Likewise.
25911 * config/rs6000/e500crtresx64gpr.asm: Likewise.
25912 * config/rs6000/e500crtsav32gpr.asm: Likewise.
25913 * config/rs6000/e500crtsav64gpr.asm: Likewise.
25914 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
25915 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
25916 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
25917 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
25918 * config/rs6000/eabi-ci.asm: Likewise.
25919 * config/rs6000/eabi-cn.asm: Likewise.
25920 * config/rs6000/eabi.asm: Likewise.
25921 * config/rs6000/linux-unwind.h: Likewise.
25922 * config/rs6000/linux64.h: Likewise.
25923 * config/rs6000/paired.h: Likewise.
25924 * config/rs6000/paired.md: Likewise.
25925 * config/rs6000/ppc64-fp.c: Likewise.
25926 * config/rs6000/ppu_intrinsics.h: Likewise.
25927 * config/rs6000/rs6000.h: Likewise.
25928 * config/rs6000/si2vmx.h: Likewise.
25929 * config/rs6000/sol-ci.asm: Likewise.
25930 * config/rs6000/sol-cn.asm: Likewise.
25931 * config/rs6000/spe.h: Likewise.
25932 * config/rs6000/spu2vmx.h: Likewise.
25933 * config/rs6000/sysv4.h: Likewise.
25934 * config/rs6000/tramp.asm: Likewise.
25935 * config/rs6000/vec_types.h: Likewise.
25936 * config/s390/linux-unwind.h: Likewise.
25937 * config/s390/tpf-unwind.h: Likewise.
25938 * config/score/crti.asm: Likewise.
25939 * config/score/crtn.asm: Likewise.
25940 * config/sh/crt1.asm: Likewise.
25941 * config/sh/crti.asm: Likewise.
25942 * config/sh/crtn.asm: Likewise.
25943 * config/sh/divtab-sh4-300.c: Likewise.
25944 * config/sh/divtab-sh4.c: Likewise.
25945 * config/sh/divtab.c: Likewise.
25946 * config/sh/lib1funcs-4-300.asm: Likewise.
25947 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
25948 * config/sh/lib1funcs.asm: Likewise.
25949 * config/sh/lib1funcs.h: Likewise.
25950 * config/sh/linux-atomic.asm: Likewise.
25951 * config/sh/linux-unwind.h: Likewise.
25952 * config/sh/shmedia.h: Likewise.
25953 * config/sh/sshmedia.h: Likewise.
25954 * config/sh/ushmedia.h: Likewise.
25955 * config/sparc/crtfastmath.c: Likewise.
25956 * config/sparc/linux-unwind.h: Likewise.
25957 * config/sparc/sol2-c1.asm: Likewise.
25958 * config/sparc/sol2-ci.asm: Likewise.
25959 * config/sparc/sol2-cn.asm: Likewise.
25960 * config/spu/divmodti4.c: Likewise.
25961 * config/spu/divv2df3.c: Likewise.
25962 * config/spu/float_disf.c: Likewise.
25963 * config/spu/float_unsdidf.c: Likewise.
25964 * config/spu/float_unsdisf.c: Likewise.
25965 * config/spu/float_unssidf.c: Likewise.
25966 * config/spu/mfc_multi_tag_release.c: Likewise.
25967 * config/spu/mfc_multi_tag_reserve.c: Likewise.
25968 * config/spu/mfc_tag_release.c: Likewise.
25969 * config/spu/mfc_tag_reserve.c: Likewise.
25970 * config/spu/mfc_tag_table.c: Likewise.
25971 * config/spu/multi3.c: Likewise.
25972 * config/spu/spu_internals.h: Likewise.
25973 * config/spu/spu_intrinsics.h: Likewise.
25974 * config/spu/spu_mfcio.h: Likewise.
25975 * config/spu/vec_types.h: Likewise.
25976 * config/spu/vmx2spu.h: Likewise.
25977 * config/stormy16/stormy16-lib2.c: Likewise.
25978 * config/svr4.h: Likewise.
25979 * config/sync.c: Likewise.
25980 * config/v850/lib1funcs.asm: Likewise.
25981 * config/vxlib-tls.c: Likewise.
25982 * config/vxlib.c: Likewise.
25983 * config/vxworks-dummy.h: Likewise.
25984 * config/xtensa/crti.asm: Likewise.
25985 * config/xtensa/crtn.asm: Likewise.
25986 * config/xtensa/ieee754-df.S: Likewise.
25987 * config/xtensa/ieee754-sf.S: Likewise.
25988 * config/xtensa/lib1funcs.asm: Likewise.
25989 * config/xtensa/lib2funcs.S: Likewise.
25990 * config/xtensa/linux-unwind.h: Likewise.
25991 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
25992 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
25993 * coretypes.h: Likewise.
25994 * crtstuff.c: Likewise.
25995 * defaults.h: Likewise.
25996 * dwarf2.h: Likewise.
25997 * emutls.c: Likewise.
25998 * gbl-ctors.h: Likewise.
25999 * gcov-io.h: Likewise.
26000 * ginclude/float.h: Likewise.
26001 * ginclude/iso646.h: Likewise.
26002 * ginclude/stdarg.h: Likewise.
26003 * ginclude/stdbool.h: Likewise.
26004 * ginclude/stddef.h: Likewise.
26005 * ginclude/stdfix.h: Likewise.
26006 * ginclude/stdint-gcc.h: Likewise.
26007 * ginclude/tgmath.h: Likewise.
26008 * gthr-aix.h: Likewise.
26009 * gthr-dce.h: Likewise.
26010 * gthr-gnat.c: Likewise.
26011 * gthr-gnat.h: Likewise.
26012 * gthr-lynx.h: Likewise.
26013 * gthr-mipssde.h: Likewise.
26014 * gthr-nks.h: Likewise.
26015 * gthr-posix.c: Likewise.
26016 * gthr-posix.h: Likewise.
26017 * gthr-posix95.h: Likewise.
26018 * gthr-rtems.h: Likewise.
26019 * gthr-single.h: Likewise.
26020 * gthr-solaris.h: Likewise.
26021 * gthr-tpf.h: Likewise.
26022 * gthr-vxworks.h: Likewise.
26023 * gthr-win32.h: Likewise.
26024 * gthr.h: Likewise.
26025 * libgcc2.c: Likewise.
26026 * libgcc2.h: Likewise.
26027 * libgcov.c: Likewise.
26028 * tsystem.h: Likewise.
26029 * typeclass.h: Likewise.
26030 * unwind-c.c: Likewise.
26031 * unwind-compat.h: Likewise.
26032 * unwind-dw2-fde-compat.c: Likewise.
26033 * unwind-dw2-fde-darwin.c: Likewise.
26034 * unwind-dw2-fde-glibc.c: Likewise.
26035 * unwind-dw2-fde.c: Likewise.
26036 * unwind-dw2-fde.h: Likewise.
26037 * unwind-dw2.c: Likewise.
26038 * unwind-dw2.h: Likewise.
26039 * unwind-generic.h: Likewise.
26040 * unwind-pe.h: Likewise.
26041 * unwind-sjlj.c: Likewise.
26042 * unwind.inc: Likewise.
26043 * config/arm/neon-gen.ml: Change generated copyright header to
26044 refer to version 3 of the GNU General Public License with
26045 version 3.1 of the GCC Runtime Library Exception and to point
26046 readers at the COPYING3 and COPYING3.RUNTIME files and the
26047 FSF's license web page.
26048 * config/arm/arm_neon.h: Regenerate.
26050 2009-04-09 Jakub Jelinek <jakub@redhat.com>
26052 * config/cris/cris.md: Change copyright header to refer to version
26053 3 of the GNU General Public License.
26054 * doc/install.texi2html: Change copyright header to refer to version
26055 3 of the GNU General Public License and to point readers at the
26056 COPYING3 file and the FSF's license web page.
26057 * config/vax/linux.h: Likewise.
26059 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
26061 * config/i386/i386.md (cmpcc): New.
26062 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
26063 (sync_compare_and_swap_cc*): Delete.
26065 * config/s390/s390.c (s390_compare_emitted): Remove.
26066 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
26067 s390_compare_emitted used to be handled. Assert that modes match.
26068 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
26069 refer to sync_compare_and_swap_ccsi.
26070 * config/s390/s390.h (s390_compare_emitted): Remove.
26071 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
26072 instead of s390_compare_emitted.
26073 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
26074 instead of s390_compare_emitted.
26075 * config/s390/s390.md (cmpcc): New.
26076 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
26077 CC_REGNUM, do not pretend it's set.
26078 (sync_compare_and_swap_cc*): Delete.
26079 * config/s390/predicates.md (cc_reg_operand): New.
26081 * expr.c (sync_compare_and_swap_cc): Delete.
26082 * optabs.h (sync_compare_and_swap_cc): Delete.
26083 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
26084 is being used with can_compare_p.
26085 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
26086 (find_cc_set): New.
26087 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
26088 look for a MODE_CC set instead. Use emit_store_flag.
26089 (expand_compare_and_swap_loop): Likewise, with some additional
26090 complication to avoid a force_reg when useless. Use
26091 emit_cmp_and_jump_insns.
26092 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
26093 * doc/md.texi (sync_compare_and_swap_cc): Merge with
26094 sync_compare_and_swap documentation.
26096 2009-04-09 Jan Hubicka <jh@suse.cz>
26098 * except.c (find_prev_try): Break out from ....
26099 (duplicate_eh_regions): ... here; properly update prev_try pointers
26100 when duplication part of tree.
26101 (dump_eh_tree): Improve dumping.
26102 (verify_eh_region): New.
26103 (verify_eh_tree): Use it.
26105 2009-04-06 Richard Guenther <rguenther@suse.de>
26107 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
26108 &ARRAY addresses by adjusting their types and prepending
26110 * tree-cfg.c (verify_gimple_assign_single): Verify that
26111 addresses are correct.
26113 2009-04-09 Richard Guenther <rguenther@suse.de>
26115 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
26116 indices into an array reference if possible.
26117 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
26118 Fold POINTER_PLUS_EXPR statements with invariant address.
26120 2009-04-09 Alan Modra <amodra@bigpond.net.au>
26123 * config.gcc (powerpc64-*-linux*): Always build biarch.
26125 2009-04-09 Joseph Myers <joseph@codesourcery.com>
26128 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
26129 it and pedwarn if this results in an INTEGER_CST.
26131 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26133 * doc/install.texi: Update minimum GMP version. Remove obsolete
26134 text in MPFR section.
26136 2009-04-08 Jakub Jelinek <jakub@redhat.com>
26138 * dwarf2out.c (class_scope_p): New static inline.
26139 (class_or_namespace_scope_p): Use it.
26140 (gen_variable_die): Use DW_TAG_member tag for static data member
26141 declarations instead of DW_TAG_variable.
26143 PR middle-end/39573
26144 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
26147 2009-04-08 Richard Guenther <rguenther@suse.de>
26149 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
26150 valueize random data.
26152 2009-04-08 David Edelsohn <edelsohn@gnu.org>
26154 * config.gcc (aix tm_file): Add aix-stdint.h.
26155 (aix tm clause use_gcc_stdint): Set to wrap.
26156 * config/rs6000/aix-stdint.h: New file.
26158 2009-04-08 Richard Guenther <rguenther@suse.de>
26160 PR middle-end/36291
26161 * tree-dfa.c (add_referenced_var): Do not recurse into
26162 global initializers.
26163 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
26165 (fold_const_aggregate_ref): Likewise.
26167 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
26169 * recog.c (ordered_comparison_operator): New.
26170 * gensupport.c (std_preds): Add it.
26171 * doc/md.texi (Machine-Independent Predicates): Document it.
26173 2009-04-08 Jan Hubicka <jh@suse.cz>
26175 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
26176 * function.h (rtl_eh): Remove exception_handler_label_map.
26177 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
26178 remove_exception_handler_label, for_each_eh_label_1): Remove.
26179 (rtl_remove_unreachable_regions): Remove.
26180 (convert_from_eh_region_ranges): Do not remove unreachable regions.
26181 (find_exception_handler_labels): Don't build the hashtable.
26182 (maybe_remove_eh_handler): Remove.
26183 (for_each_eh_label): Rewrite to walk the tree.
26184 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
26185 * except.h (maybe_remove_eh_handler): Remove.
26186 * passes.c (init_optimization_passes): Schedule second EH cleanup
26188 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
26189 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
26191 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
26193 * genoutput.c (validate_optab_operands): New.
26194 (gen_insn, gen_expand): Call it.
26196 * genflags.c (gen_insn): Detect misused iterators.
26197 (main): Pass line_no to gen_insn, exit with status 1 on error.
26199 * genextract.c (line_no): Make global.
26200 (VEC_safe_set_locstr): Change assertion to error message.
26201 (main): Exit with status 1 on error.
26203 2009-04-08 Joseph Myers <joseph@codesourcery.com>
26207 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26208 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26209 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
26210 * c-convert.c (convert): Do not call fold on results of conversion
26211 functions when the result is a C_MAYBE_CONST_EXPR.
26212 * c-parser.c (c_parser_postfix_expression): Do not fold condition
26213 of __builtin_choose_expr.
26214 * c-typeck.c (remove_c_maybe_const_expr): New.
26215 (build_unary_op, build_conditional_expr, build_compound_expr,
26216 build_binary_op, c_objc_common_truthvalue_conversion): Call
26217 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
26220 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
26222 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
26223 CODE to produce a new one. Add a prototype to use fold_convert_const
26225 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
26228 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
26229 mix declarations and code.
26231 2009-04-08 Ben Elliston <bje@au.ibm.com>
26233 * gcc.c: Replace `CC' with `GCC' throughout.
26235 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
26237 * doc/invoke.texi: Document Atom support.
26239 2009-04-07 Jason Merrill <jason@redhat.com>
26242 * c-common.h, c-common.c: Add flag_pretty_templates.
26243 * c-opts.c (c_common_handle_option): Set it.
26244 * c.opt: Add -fno-pretty-templates.
26245 * doc/invoke.texi (C++ Dialect Options): Likewise.
26247 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
26249 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
26250 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
26251 (ia64_expand_builtin): Likewise.
26253 2009-04-07 Martin Jambor <mjambor@suse.cz>
26255 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
26256 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
26257 ADDR_EXPRS are include too.
26259 2009-04-07 Richard Guenther <rguenther@suse.de>
26261 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
26262 decls are only used if passes as parameters or if they are
26263 local statics and the call is not to a builtin.
26264 (call_may_clobber_ref_p_1): Likewise.
26266 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
26268 * expr.c (do_store_flag): Remove last argument. Simplify code
26269 to avoid duplication of tests already done by can_compare_p.
26270 (expand_expr_real_1): Adjust caller.
26272 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
26274 * optabs.c (can_compare_p): Test the predicate of a
26275 cbranch and cstore pattern.
26277 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
26279 * expr.c (convert_move): Use emit_store_flag instead of
26282 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
26284 * config/i386/i386.c (ix86_compare_emitted): Remove.
26285 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
26286 ix86_compare_op0 like ix86_compare_emitted used to be handled.
26287 * config/i386/i386.h (ix86_compare_emitted): Remove.
26288 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
26289 instead of ix86_compare_emitted.
26290 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
26292 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
26294 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
26295 Add t-sysroot-suffix to tmake_file.
26296 * config/print-sysroot-suffix.sh: New file.
26297 * config/t-sysroot-suffix: New file.
26299 2009-04-07 Ben Elliston <bje@au.ibm.com>
26301 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
26302 as the latter produces a warning when the target does not support
26305 2009-04-07 Ben Elliston <bje@au.ibm.com>
26307 * dfp.c: Replace type punning assignments with memcpy throughout.
26308 * Makefile.in (dfp.o-warn): Remove.
26310 2009-04-07 Alan Modra <amodra@bigpond.net.au>
26313 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
26314 Include soft-fp/t-softfp after rs6000/t-linux64.
26316 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
26318 * stor-layout.c (set_sizetype): Use the full precision of their
26319 machine mode for bitsize types.
26321 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
26323 * config/i386/i386.md: Revert 2 accidental checkins.
26325 2009-04-06 Joey Ye <joey.ye@intel.com>
26326 Xuepeng Guo <xuepeng.guo@intel.com>
26327 H.J. Lu <hongjiu.lu@intel.com>
26329 Atom pipeline model, tuning and insn selection.
26330 * config.gcc (atom): Add atom config options and target.
26332 * config/i386/atom.md: New.
26334 * config/i386/i386.c (atom_cost): New cost.
26335 (m_ATOM): New macro flag.
26336 (initial_ix86_tune_features): Set m_ATOM.
26337 (x86_accumulate_outgoing_args): Likewise.
26338 (x86_arch_always_fancy_math_387): Likewise.
26339 (processor_target): Add Atom cost.
26340 (cpu_names): Add Atom cpu name.
26341 (override_options): Set Atom ISA.
26342 (ix86_issue_rate): New case PROCESSOR_ATOM.
26343 (ix86_adjust_cost): Likewise.
26345 * config/i386/i386.h (TARGET_ATOM): New target macro.
26346 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
26347 (TARGET_OPT_AGU): New target option.
26348 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
26349 (processor_type): Add PROCESSOR_ATOM.
26351 * config/i386/i386.md (cpu): Add new value "atom".
26352 (use_carry, movu): New attr.
26353 (atom.md): Include atom.md.
26354 (adddi3_carry_rex64): Set attr "use_carry".
26355 (addqi3_carry): Likewise.
26356 (addhi3_carry): Likewise.
26357 (addsi3_carry): Likewise.
26358 (*addsi3_carry_zext): Likewise.
26359 (subdi3_carry_rex64): Likewise.
26360 (subqi3_carry): Likewise.
26361 (subhi3_carry): Likewise.
26362 (subsi3_carry): Likewise.
26363 (x86_movdicc_0_m1_rex64): Likewise.
26364 (*x86_movdicc_0_m1_se): Likewise.
26365 (x86_movsicc_0_m1): Likewise.
26366 (*x86_movsicc_0_m1_se): Likewise.
26367 (*adddi_1_rex64): Emit add insn as much as possible.
26368 (*addsi_1): Likewise.
26369 (return_internal): Set atom_unit.
26370 (return_internal_long): Likewise.
26371 (return_pop_internal): Likewise.
26372 (*rcpsf2_sse): Set atom_sse_attr attr.
26373 (*qrt<mode>2_sse): Likewise.
26374 (*prefetch_sse): Likewise.
26376 * config/i386/i386-c.c (ix86_target_macros_internal): New case
26378 (ix86_target_macros_internal): Likewise.
26380 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
26381 (*prefetch_sse_rex): Likewise.
26382 (sse_rcpv4sf2): Likewise.
26383 (sse_vmrcpv4sf2): Likewise.
26384 (sse_sqrtv4sf2): Likewise.
26385 (<sse>_vmsqrt<mode>2): Likewise.
26386 (sse_ldmxcsr): Likewise.
26387 (sse_stmxcsr): Likewise.
26388 (*sse_sfence): Likewise.
26389 (sse2_clflush): Likewise.
26390 (*sse2_mfence): Likewise.
26391 (*sse2_lfence): Likewise.
26392 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
26393 (<sse>_movup<ssemodesuffixf2c>): Likewise.
26394 (avx_movdqu<avxmodesuffix>): Likewise.
26395 (avx_lddqu<avxmodesuffix>): Likewise.
26396 (sse2_movntv2di): Change attr "type" to "ssemov".
26397 (sse2_movntsi): Likewise.
26398 (rsqrtv8sf2): Change attr "type" to "sseadd".
26399 (sse3_addsubv2df3): Set attr "atom_unit".
26400 (sse3_h<plusminus_insn>v4sf3): Likewise.
26401 (*sse2_pmaddwd): Likewise.
26402 (*vec_extractv2di_1_rex64): Likewise.
26403 (*vec_extractv2di_1_avx): Likewise.
26404 (sse2_psadbw): Likewise.
26405 (ssse3_phaddwv8hi3): Likewise.
26406 (ssse3_phaddwv4hi3): Likewise.
26407 (ssse3_phadddv4si3): Likewise.
26408 (ssse3_phadddv2si3): Likewise.
26409 (ssse3_phaddswv8hi3): Likewise.
26410 (ssse3_phaddswv4hi3): Likewise.
26411 (ssse3_phsubwv8hi3): Likewise.
26412 (ssse3_phsubwv4hi3): Likewise.
26413 (ssse3_phsubdv4si3): Likewise.
26414 (ssse3_phsubdv2si3): Likewise.
26415 (ssse3_phsubswv8hi3): Likewise.
26416 (ssse3_phsubswv4hi3): Likewise.
26417 (ssse3_pmaddubsw128): Likewise.
26418 (sse3_pmaddubsw: Likewise.
26419 (ssse3_palignrti): Likewise.
26420 (ssse3_palignrdi): Likewise.
26422 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
26424 * doc/install.texi (Specific): Fix two cross-references to MinGW.
26426 2009-04-06 Richard Guenther <rguenther@suse.de>
26428 PR tree-optimization/28868
26429 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
26430 of which PHI results we inserted.
26431 (insert_into_preds_of_block): Record inserted PHIs.
26432 (eliminate): Eliminate redundant PHI nodes.
26433 (init_pre): Init inserted_phi_names.
26435 2009-04-06 Richard Guenther <rguenther@suse.de>
26437 PR tree-optimization/39643
26438 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
26439 IMAGPART_EXPRs of complex constants.
26440 (execute_fold_all_builtins): If we folded a call queue
26441 TODO_update_address_taken.
26443 2009-04-06 Jan Hubicka <jh@suse.cz>
26445 PR middle-end/39659
26446 * except.c (remove_unreachable_regions): Propagate may_contain_throw
26449 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
26451 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
26453 (ic_invalidate_array): Likewise.
26455 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
26457 * calls.c (emit_library_call_value_1): Fix a problem with parameter
26458 alignment for library calls.
26460 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
26462 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
26463 (mingw32 tm clause use_gcc_stdint): Set to wrap.
26464 * config/i386/mingw-stdint.h: New file.
26466 2009-04-05 Richard Guenther <rguenther@suse.de>
26468 PR tree-optimization/39648
26469 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
26470 our &A vs. &A[0] IL deficiencies.
26472 2009-04-04 Jan Hubicka <jh@suse.cz>
26474 * except.c (sjlj_find_directly_reachable_regions): Be ready for
26475 removed toplevel regions.
26476 (sjlj_mark_call_sites): Likewise.
26478 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
26480 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
26481 (cygwin tm clause use_gcc_stdint): Set to wrap.
26482 * config/i386/cygwin-stdint.h: New file.
26484 2009-04-04 Richard Guenther <rguenther@suse.de>
26486 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
26487 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
26488 single-argument PHIs if we are in loop-closed SSA form.
26489 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
26490 for the pre-condition.
26491 (slpeel_tree_peel_loop_to_edge): Likewise.
26492 (vect_build_loop_niters): Take an optional sequence to append stmts.
26493 (vect_generate_tmps_on_preheader): Likewise.
26494 (vect_do_peeling_for_loop_bound): Take extra guards for the
26496 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
26497 the cost model check.
26498 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
26499 guards if we are going to peel. Do not apply versioning in that case.
26500 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
26501 (vect_do_peeling_for_loop_bound): Likewise.
26502 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
26503 loop bound only record extra pre-conditions, do not apply loop
26506 2009-04-04 Richard Guenther <rguenther@suse.de>
26508 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
26511 2009-04-04 Jan Hubicka <jh@suse.cz>
26513 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
26514 last_basic_block for size of bb->index indexed array.
26515 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
26516 compute_out, link_btr_uses, build_btr_def_use_webs,
26517 build_btr_def_use_webs, migrate_btr_defs): Likewise.
26519 2009-04-04 Jan Hubicka <jh@suse.cz>
26521 * except.c (remove_eh_handler_and_replace): Break out from ...
26522 (remove_eh_handler): ... here.
26523 (bring_to_root): New function.
26524 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
26525 handled ones, bring others to root of tree.
26527 2009-04-04 Jan Hubicka <jh@suse.cz>
26529 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
26530 (all_phis_safe_to_merge): New function.
26531 (update_info): New structure.
26532 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
26533 (cleanup_empty_eh): Update SSA if possible.
26535 2009-04-04 Richard Guenther <rguenther@suse.de>
26537 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
26538 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
26539 (append_vuse): Likewise.
26541 2009-04-04 Jakub Jelinek <jakub@redhat.com>
26543 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
26544 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
26545 instead of REG_UNSAVED for DW_CFA_undefined.
26546 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
26547 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
26550 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
26553 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
26555 2009-04-04 Richard Guenther <rguenther@suse.de>
26557 PR tree-optimization/8781
26558 PR tree-optimization/37892
26559 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
26560 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
26561 (valueize_refs): Call it for *& valueizations.
26562 (shared_reference_ops_from_ref): Rename to ...
26563 (valueize_shared_reference_ops_from_ref): ... this and valueize.
26564 (shared_reference_ops_from_call): Rename to ...
26565 (valueize_shared_reference_ops_from_call): ... this and valueize.
26566 (vn_reference_lookup): Update.
26567 (visit_reference_op_call): Likewise.
26568 * tree-ssa-pre.c (phi_translate_1): Fold *&.
26569 (eliminate): Value-replace the call address in call statements.
26571 2009-04-04 Richard Guenther <rguenther@suse.de>
26573 PR tree-optimization/39636
26574 * tree-ssa-forwprop.c
26575 (forward_propagate_addr_into_variable_array_index): Check for
26576 GIMPLE_ASSIGN before accessing the rhs code.
26578 2009-04-03 Jason Merrill <jason@redhat.com>
26580 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
26582 2009-04-03 Steve Ellcey <sje@cup.hp.com>
26584 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
26585 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
26586 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
26587 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
26588 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
26589 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
26590 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
26591 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
26592 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
26593 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
26594 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
26595 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
26596 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
26597 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
26598 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
26599 Use fr_reg_or_fp01_operand instead of fr_register_operand
26601 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
26602 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
26603 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
26605 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
26607 PR rtl-optimization/39607
26608 PR rtl-optimization/39631
26612 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26613 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26614 instead of DF_LR_OUT.
26615 * ira-lives.c (process_bb_node_lives): Ditto.
26616 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26617 instead of DF_LR_{OUT,IN}.
26618 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26619 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26621 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
26623 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
26624 (execute_lower_omp): Always run but take the short way out if -fopenmp
26626 (gate_lower_omp): Remove, forcing the pass manager to always run the
26627 pass and always set PROP_gimple_lomp.
26628 (pass_lower_omp): Remove gate function.
26629 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
26630 PROP_trees. Instead, require it.
26631 * ipa-cp.c (pass_ipa_cp): Likewise.
26632 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
26633 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
26634 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
26635 and PROP_gimple_leh.
26637 2009-04-03 Richard Guenther <rguenther@suse.de>
26639 PR middle-end/13146
26640 PR tree-optimization/23940
26641 PR tree-optimization/33237
26642 PR middle-end/33974
26643 PR middle-end/34093
26644 PR tree-optimization/36201
26645 PR tree-optimization/36230
26646 PR tree-optimization/38049
26647 PR tree-optimization/38207
26648 PR tree-optimization/38230
26649 PR tree-optimization/38301
26650 PR tree-optimization/38585
26651 PR middle-end/38895
26652 PR tree-optimization/38985
26653 PR tree-optimization/39299
26654 * tree-ssa-structalias.h: Remove.
26655 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
26656 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
26657 (struct vuse_element_d): Remove.
26658 (struct vuse_vec_d): Likewise.
26659 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
26660 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
26661 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
26662 VUSE_ELEMENT_VAR): Likewise.
26663 (struct voptype_d): Likewise.
26664 (NUM_VOP_FREE_BUCKETS): Likewise.
26665 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
26666 (struct stmt_operands_d): Remove.
26667 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
26668 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
26669 VDEF_NUM, VDEF_VECT): Likewise.
26670 (copy_virtual_operands): Remove.
26671 (operand_build_cmp): Likewise.
26672 (create_ssa_artificial_load_stmt): Likewise.
26673 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
26674 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
26675 vuse_index and mayuse_index members. Pack and move done and iter_type
26676 members to the front.
26677 (SSA_OP_VMAYUSE): Remove.
26678 (SSA_OP_VIRTUAL_USES): Adjust.
26679 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
26680 (unlink_stmt_vdef): Declare.
26681 (add_to_addressable_set): Remove.
26682 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
26683 (vrp_visit_stmt): Likewise.
26684 * doc/tree-ssa.texi (Alias analysis): Update.
26685 * doc/invoke.texi (max-aliased-vops): Remove docs.
26686 (avg-aliased-vops): Likewise.
26687 * tree-into-ssa.c (syms_to_rename): Remove.
26688 (need_to_update_vops_p): Likewise.
26689 (need_to_initialize_update_ssa_p): Rename to ...
26690 (update_ssa_initialized_fn): ... this. Track function we are
26692 (symbol_marked_for_renaming): Simplify.
26693 (add_new_name_mapping): Do not set need_to_update_vops_p.
26694 (dump_currdefs): Use SYMS_TO_RENAME.
26695 (rewrite_update_stmt): Always walk all uses/defs.
26696 (dump_update_ssa): Adjust.
26697 (init_update_ssa): Take function argument. Track what we are
26699 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
26700 (create_new_def_for): Initialize for cfun, assert we are initialized
26702 (mark_sym_for_renaming): Simplify.
26703 (mark_set_for_renaming): Do not initialize update-ssa.
26704 (need_ssa_update_p): Simplify. Take function argument.
26705 (name_mappings_registered_p): Assert we ask for the correct function.
26706 (name_registered_for_update_p): Likewise.
26707 (ssa_names_to_replace): Likewise.
26708 (release_ssa_name_after_update_ssa): Likewise.
26709 (update_ssa): Likewise. Use SYMS_TO_RENAME.
26710 (dump_decl_set): Do not print a newline.
26711 (debug_decl_set): Do it here.
26712 (dump_update_ssa): And here.
26713 * tree-ssa-loop-im.c (move_computations): Adjust.
26714 (movement_possibility): Likewise.
26715 (determine_max_movement): Likewise.
26716 (gather_mem_refs_stmt): Likewise.
26717 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
26718 or NAME_MEMORY_TAG.
26719 * tree-complex.c (update_all_vops): Remove.
26720 (expand_complex_move): Adjust.
26721 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
26722 Simplify test for memory referencing statement. Exclude
26723 non-invariant ADDR_EXPRs.
26724 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
26725 * tree-loop-distribution.c (generate_memset_zero): Adjust.
26726 (rdg_flag_uses): Likewise.
26727 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
26729 (tree_optimize_tail_calls_1): Also split the
26730 edge from the entry block if we have degenerate PHI nodes in
26731 the first basic block.
26732 * tree.c (init_ttree): Remove memory-tag related code.
26733 (tree_code_size): Likewise.
26734 (tree_node_structure): Likewise.
26735 (build7_stat): Re-write to be build6_stat.
26736 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
26737 (SSA_VAR_P): Adjust.
26738 (struct tree_memory_tag): Remove.
26739 (struct tree_memory_partition_tag): Likewise.
26740 (union tree_node): Adjust.
26741 (build7): Re-write to be build6.
26742 * tree-pass.h (pass_reset_cc_flags): Remove.
26743 (TODO_update_address_taken): New flag.
26744 (pass_simple_dse): Remove.
26745 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
26746 * params.h (MAX_ALIASED_VOPS): Remove.
26747 (AVG_ALIASED_VOPS): Likewise.
26748 * omp-low.c (expand_omp_taskreg): Update SSA form.
26749 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
26750 aliases the lhs in a copy stmt.
26751 * tree-ssa-dse.c (struct address_walk_data): Remove.
26752 (memory_ssa_name_same): Likewise.
26753 (memory_address_same): Likewise.
26754 (get_kill_of_stmt_lhs): Likewise.
26755 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
26756 unused stores. Look through PHI nodes into post-dominated regions.
26757 (dse_optimize_stmt): Simplify. Properly remove stores.
26758 (tree_ssa_dse): Compute dominators.
26759 (execute_simple_dse): Remove.
26760 (pass_simple_dse): Likewise.
26761 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
26762 gimple_loaded_syms and gimple_stored_syms computation.
26763 * toplev.c (dump_memory_report): Dump alias and pta stats.
26764 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
26765 (vn_reference_eq): Likewise.
26766 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
26767 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
26768 valueize_vuses): Remove.
26769 (get_def_ref_stmt_vuses): Simplify. Rename to ...
26770 (get_def_ref_stmt_vuse): ... this.
26771 (vn_reference_lookup_2): New function.
26772 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
26773 walking equivalent vuses. Simplify.
26774 (vn_reference_lookup): Likewise.
26775 (vn_reference_insert): Likewise.
26776 (vn_reference_insert_pieces): Likewise.
26777 (visit_reference_op_call): Simplify.
26778 (visit_reference_op_load): Likewise.
26779 (visit_reference_op_store): Likewise.
26780 (init_scc_vn): Remove shared_lookup_vuses initialization.
26781 (free_scc_vn): Remove shared_lookup_vuses freeing.
26782 (sort_vuses, sort_vuses_heap): Remove.
26783 (get_ref_from_reference_ops): Export.
26784 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
26785 vector with single vuse pointer.
26786 (vn_reference_lookup_pieces, vn_reference_lookup,
26787 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
26788 (shared_vuses_from_stmt): Remove.
26789 (get_ref_from_reference_ops): Declare.
26790 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
26791 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
26792 memory-tag related code.
26793 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
26794 (likely_value): Add comment, skip static-chain of call statements.
26795 (surely_varying_stmt_p): Adjust.
26796 (gimplify_and_update_call_from_tree): Likewise.
26797 (execute_fold_all_builtins): Do not rebuild alias info.
26798 (gimplify_and_update_call_from_tree): Properly update VOPs.
26799 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
26800 (copy_ref_info): Remove memory-tag related code.
26801 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
26802 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
26803 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
26805 * tree-ssa-dom.c (gimple_p): Remove typedef.
26806 (eliminate_redundant_computations): Adjust.
26807 (record_equivalences_from_stmt): Likewise.
26808 (avail_expr_hash): Likewise.
26809 (avail_expr_eq): Likewise.
26810 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
26811 (stmt_makes_single_load): Likewise.
26812 (stmt_makes_single_store): Likewise.
26813 * tree-ssa-alias.c: Rewrite completely.
26814 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
26815 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
26816 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
26817 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
26818 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
26819 Remove public functions.
26820 (pass_reset_cc_flags): Remove.
26821 (pass_build_alias): Move ...
26822 * tree-ssa-structalias.c (pass_build_alias): ... here.
26823 * tree-ssa-alias.c (may_be_aliased): Move ...
26824 * tree-flow-inline.h (may_be_aliased): ... here.
26825 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
26826 count_uses_and_derefs): Move ...
26827 * gimple.c: ... here.
26828 * gimple.h (count_uses_and_derefs): Declare.
26829 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
26830 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
26831 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
26832 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
26833 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
26834 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
26835 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
26837 * tree-dfa.c (refs_may_alias_p): Move ...
26838 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
26839 * tree-ssa-alias.h: New file.
26840 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
26841 (statement_sink_location): Likewise.
26842 * opts.c (decode_options): Do not adjust max-aliased-vops or
26843 avg-aliased-vops values.
26844 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
26845 (TV_CALL_CLOBBER): Likewise.
26846 (TV_FLOW_SENSITIVE): Likewise.
26847 (TV_FLOW_INSENSITIVE): Likewise.
26848 (TV_MEMORY_PARTITIONING): Likewise.
26849 (TV_ALIAS_STMT_WALK): New timevar.
26850 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
26851 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
26852 (get_address_description): Remove memory-tag related code.
26853 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
26854 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
26855 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
26856 and immediate uses in statements. Document.
26857 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
26858 (dump_symbols): Remove.
26859 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
26860 * alias.c (get_deref_alias_set): New function split out from ...
26861 (get_alias_set): ... here.
26862 * alias.h (get_deref_alias_set): Declare.
26863 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
26864 type parameter. Remove restrict pointer handling. Create a
26865 ref-all pointer in case type-based alias sets do not conflict.
26866 (vect_analyze_data_refs): Remove SMT related code.
26867 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
26868 (vectorizable_load): Likewise.
26869 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
26870 (DR_SYMBOL_TAG, DR_VOPS): Remove.
26871 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
26872 Ignore vops and SMTs.
26873 (dr_analyze_alias): Likewise..
26874 (free_data_ref): Likewise.
26875 (create_data_ref): Likewise.
26876 (analyze_all_data_dependences): Likewise.
26877 (get_references_in_stmt): Adjust.
26878 * tree-flow-inline.h (gimple_aliases_computed_p,
26879 gimple_addressable_vars, gimple_call_clobbered_vars,
26880 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
26881 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
26882 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
26883 gimple_mem_ref_stats): Remove.
26884 (gimple_vop): New function.
26885 (op_iter_next_use): Remove vuses and mayuses cases.
26886 (op_iter_next_def): Remove vdefs case.
26887 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
26888 (clear_and_done_ssa_iter): Do not set removed fields.
26889 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
26890 Assert we are not iterating over vuses or vdefs if not also
26891 iterating over uses or defs.
26892 (op_iter_init_use): Likewise.
26893 (op_iter_init_def): Likewise.
26894 (op_iter_next_vdef): Remove.
26895 (op_iter_next_mustdef): Likewise.
26896 (op_iter_init_vdef): Likewise.
26897 (compare_ssa_operands_equal): Likewise.
26898 (link_use_stmts_after): Handle vuse operand.
26899 (is_call_used): Use is_call_clobbered.
26900 (is_call_clobbered): Global variables are always call clobbered,
26901 query the call-clobbers bitmap.
26902 (mark_call_clobbered): Ignore global variables.
26903 (clear_call_clobbered): Likewise.
26904 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
26905 virtual operands sanity check.
26906 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
26908 (TARGET_MEM_REF): Remove TMR_TAG operand.
26909 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
26910 Remove call-clobber related code.
26911 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
26912 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
26913 partitions or escape reason.
26914 (get_single_def_stmt, get_single_def_stmt_from_phi,
26915 get_single_def_stmt_with_phi): Remove.
26916 (dump_referenced_vars): Tidy.
26917 (get_ref_base_and_extent): Allow bare decls.
26918 (collect_dfa_stats): Adjust.
26919 * graphite.c (rename_variables_in_stmt): Adjust.
26920 (graphite_copy_stmts_from_block): Likewise.
26921 (translate_clast): Likewise.
26922 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
26924 (translate_vuse_through_block): Use the oracle.
26925 (phi_translate_1): Adjust.
26926 (value_dies_in_block_x): Use the oracle. Cache the outcome
26928 (valid_in_sets): Check if the VUSE for
26929 a REFERENCE is available.
26930 (eliminate): Do not remove stmts during elimination,
26931 instead queue and remove them afterwards.
26932 (do_pre): Do not rebuild alias info.
26933 (pass_pre): Run TODO_rebuild_alias before PRE.
26934 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
26935 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
26936 (mark_all_v_defs_stmt): Remove.
26937 (mark_all_v_defs_seq): Adjust.
26938 (sra_replace): Likewise.
26939 (scalarize_use): Likewise.
26940 (scalarize_copy): Likewise.
26941 (scalarize_init): Likewise.
26942 (scalarize_ldst): Likewise.
26943 (todoflags): Remove.
26944 (tree_sra): Do not rebuild alias info.
26945 (tree_sra_early): Adjust.
26946 (pass_sra): Run TODO_update_address_taken before SRA.
26947 * tree-predcom.c (set_alias_info): Remove.
26948 (prepare_initializers_chain): Do not call it.
26949 (mark_virtual_ops_for_renaming): Adjust.
26950 (mark_virtual_ops_for_renaming_list): Remove.
26951 (initialize_root_vars): Adjust.
26952 (initialize_root_vars_lm): Likewise.
26953 (prepare_initializers_chain): Likewise.
26954 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
26955 (may_propagate_copy_into_stmt): Likewise.
26956 (merge_alias_info): Do nothing for now.
26957 (propagate_tree_value_into_stmt): Adjust.
26958 (stmt_may_generate_copy): Likewise.
26959 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
26960 not mark symbols for renaming.
26961 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
26962 with the same statement, make sure to update the new pointed-to one.
26963 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
26964 call statements, do not mark symbols for renaming.
26965 (mark_operand_necessary): Dump something.
26966 (ref_may_be_aliased): New function.
26967 (mark_aliased_reaching_defs_necessary_1): New helper function.
26968 (mark_aliased_reaching_defs_necessary): Likewise.
26969 (mark_all_reaching_defs_necessary_1): Likewise.
26970 (mark_all_reaching_defs_necessary): Likewise.
26971 (propagate_necessity): Do not process virtual PHIs. For
26972 non-aliased loads mark all reaching definitions as necessary.
26973 For aliased loads and stores mark the immediate dominating
26974 aliased clobbers as necessary.
26975 (visited): New global static.
26976 (perform_tree_ssa_dce): Free visited bitmap after propagating
26978 (remove_dead_phis): Perform simple dead virtual PHI removal.
26979 (remove_dead_stmt): Properly unlink virtual operands when
26981 (eliminate_unnecessary_stmts): Schedule PHI removal after
26983 * tree-ssa-ter.c (is_replaceable_p): Adjust.
26984 (process_replaceable): Likewise.
26985 (find_replaceable_in_bb): Likewise.
26986 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
26987 based on the single gimple vop.
26988 (verify_flow_insensitive_alias_info): Remove.
26989 (verify_flow_sensitive_alias_info): Likewise.
26990 (verify_call_clobbering): Likewise.
26991 (verify_memory_partitions): Likewise.
26992 (verify_alias_info): Likewise.
26993 (verify_ssa): Adjust..
26994 (execute_update_addresses_taken): Export. Update SSA
26995 manually. Optimize only when optimizing. Use a local bitmap.
26996 (pass_update_address_taken): Remove TODO_update_ssa, add
26998 (pass_update_address_taken): Just use TODO_update_address_taken.
26999 (init_tree_ssa): Do not initialize addressable_vars.
27000 (verify_ssa): Verify new VUSE / VDEF properties.
27001 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
27002 Do not call verify_alias_info.
27003 (delete_tree_ssa): Clear the VUSE, VDEF operands.
27004 Do not free the loaded and stored syms bitmaps. Reset the escaped
27005 and callused solutions. Do not free addressable_vars.
27006 Remove memory-tag related code.
27007 (warn_uninitialized_var): Aliases are always available.
27008 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
27009 * lambda-code.c (can_put_in_inner_loop): Adjust.
27010 (can_put_after_inner_loop): Likewise.
27011 (perfect_nestify): Likewise.
27012 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
27013 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
27014 (vectorizable_conversion): Do not mark symbols for renaming.
27015 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
27016 (expand_call_inline): Unlink the calls virtual operands before
27018 (tree_function_versioning): Do not call update_ssa if we are not
27019 updating clones. Simplify.
27020 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
27021 (propagate_with_phi): Likewise..
27022 * tree-outof-ssa.c (create_temp): Remove memory tag and call
27023 clobber code. Assert we are not aliased or global.
27024 * tree-flow.h: Include tree-ssa-alias.h
27025 (enum escape_type): Remove.
27026 (struct mem_sym_stats_d): Likewise.
27027 (struct mem_ref_stats_d): Likewise.
27028 (struct gimple_df): Add vop member. Remove global_var,
27029 call_clobbered_vars, call_used_vars, addressable_vars,
27030 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
27031 escaped and callused members.
27032 (struct ptr_info_def): Remove all members, add points-to solution
27034 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
27035 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
27036 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
27037 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
27038 (tree-ssa-alias.o): Likewise.
27039 (toplev.o): Add tree-ssa-alias.h
27040 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
27041 * gimple.c (gimple_set_bb): Fix off-by-one error.
27042 (is_gimple_reg): Do not handle memory tags.
27043 (gimple_copy): Also copy virtual operands.
27044 Delay updating the statement. Do not reset loaded and stored syms.
27045 (gimple_set_stored_syms): Remove.
27046 (gimple_set_loaded_syms): Likewise.
27047 (gimple_call_copy_skip_args): Copy the virtual operands
27048 and mark the new statement modified.
27049 * tree-ssa-structalias.c (may_alias_p): Remove.
27050 (set_uids_in_ptset): Take the alias set to prune with as
27051 parameter. Fold in the alias test of may_alias_p.
27052 (compute_points_to_sets): Compute whether a ptr is dereferenced
27053 in a local sbitmap.
27054 (process_constraint): Deal with &ANYTHING on the lhs, reject all
27055 other ADDRESSOF constraints on the lhs.
27056 (get_constraint_for_component_ref): Assert that we don't get
27057 ADDRESSOF constraints from the base of the reference.
27058 Properly generate UNKNOWN_OFFSET for DEREF if needed.
27059 (struct variable_info): Remove collapsed_to member.
27060 (get_varinfo_fc): Remove.
27061 (new_var_info): Do not set collapsed_to.
27062 (dump_constraint): Do not follow cycles.
27063 (dump_constraint_graph): Likewise.
27064 (build_pred_graph): Likewise.
27065 (build_succ_graph): Likewise.
27066 (rewrite_constraints): Likewise.
27067 (do_simple_structure_copy): Remove.
27068 (do_rhs_deref_structure_copy): Remove.
27069 (do_lhs_deref_structure_copy): Remove.
27070 (collapse_rest_of_var): Remove.
27071 (do_structure_copy): Re-implement.
27072 (pta_stats): New global variable.
27073 (dump_pta_stats): New function.
27074 (struct constraint_expr): Make offset signed.
27075 (UNKNOWN_OFFSET): Define special value.
27076 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
27077 (solution_set_expand): New helper function split out from ...
27078 (do_sd_constraint): ... here.
27079 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
27080 (do_ds_constraint): Likewise.
27081 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
27082 and CALLUSED = *CALLUSED.
27083 (set_union_with_increment): Make inc argument signed.
27084 (type_safe): Remove.
27085 (get_constraint_for_ptr_offset): Handle unknown and negative
27087 (first_vi_for_offset): Handle offsets before start. Bail
27088 out early for offsets beyond the variable extent.
27089 (first_or_preceding_vi_for_offset): New function.
27090 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
27091 Together with ESCAPED = *ESCAPED this properly computes reachability.
27092 (find_what_var_points_to): New function.
27093 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
27094 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
27095 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
27096 pt_solutions_intersect): New functions.
27097 (compute_call_used_vars): Remove.
27098 (compute_may_aliases): New main entry into PTA computation.
27099 * gimple.h (gimple_p): New typedef.
27100 (struct gimple_statement_base): Remove references_memory_p.
27101 (struct gimple_statement_with_memory_ops_base): Remove
27102 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
27104 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
27105 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
27106 gimple_set_references_memory): Remove.
27107 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
27108 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
27110 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
27111 (verify_expr): Allow RESULT_DECL.
27112 (gimple_duplicate_bb): Do not copy virtual operands.
27113 (gimple_duplicate_sese_region): Adjust.
27114 (gimple_duplicate_sese_tail): Likewise.
27115 (mark_virtual_ops_in_region): Remove.
27116 (move_sese_region_to_fn): Do not call it.
27117 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
27118 and pass_simple_dse.
27119 (execute_function_todo): Handle TODO_update_address_taken,
27120 call execute_update_addresses_taken for TODO_rebuild_alias.
27121 (execute_todo): Adjust.
27122 (execute_one_pass): Init dump files early.
27123 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
27125 (create_general_new_stmt): Clear vops.
27126 * tree-ssa-reassoc.c (get_rank): Adjust.
27127 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
27128 symbols for renaming.
27129 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
27130 (PARAM_AVG_ALIASED_VOPS): Likewise.
27131 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
27132 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
27133 * tree-ssa-operands.c: Simplify for new virtual operand representation.
27134 (operand_build_cmp, copy_virtual_operands,
27135 create_ssa_artificial_load_stmt, add_to_addressable_set,
27136 gimple_add_to_addresses_taken): Remove public functions.
27137 (unlink_stmt_vdef): New function.
27139 2009-04-03 Alan Modra <amodra@bigpond.net.au>
27141 * config.gcc (powerpc-*-linux*): Merge variants.
27143 2009-04-02 Chao-ying Fu <fu@mips.com>
27144 James Grosbach <james.grosbach@microchip.com>
27146 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
27147 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
27149 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
27150 keep_interrupts_masked_p, use_debug_exception_return_p.
27151 (mips_attribute_table): Add interrupt, use_shadow_register_set,
27152 keep_interrupts_masked, use_debug_exception_return.
27153 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
27154 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
27156 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
27157 (mips_print_operand): Process COP0 registers to print $0 .. $31
27158 correctly for GAS to process.
27159 (mips_interrupt_extra_call_saved_reg_p): New function.
27160 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
27162 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
27163 (mips_compute_frame_info): Add supports for interrupt context that
27164 includes doubleword accumulators and COP0 registers.
27165 (mips_for_each_saved_acc): New function.
27166 (mips_for_each_saved_gpr_and_fpr): Change the function name from
27167 mips_for_each_saved_reg.
27168 (mips_save_reg): Save accumulators.
27169 (mips_kernel_reg_p): A new for_each_rtx callback.
27170 (mips_expand_prologue): Support interrupt handlers.
27171 (mips_restore_reg): Restore accumulators.
27172 (mips_expand_epilogue): Support interrupt handlers.
27173 (mips_can_use_return_insn): Return false for interrupt handlers.
27174 (mips_epilogue_uses): New function.
27175 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
27176 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
27177 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
27178 cop0_move): New instructions.
27179 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
27180 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
27182 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
27184 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
27185 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
27186 interrupt handlers, we use K0 as the temporary register.
27187 (EPILOGUE_USES): Change to a function call.
27188 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
27189 handlers, we use K0 as the temporary register.
27191 * doc/extend.texi (Function Attributes): Document interrupt,
27192 use_shadow_register_set, keep_interrupts_masked,
27193 use_debug_exception_return for MIPS attributes.
27195 2009-04-03 Alan Modra <amodra@bigpond.net.au>
27197 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
27198 Remove a number of t-files from tmake_file.
27199 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
27200 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
27201 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
27202 target_prototype, not TARGET_PROTOTYPE.
27203 (LINK_OS_GNU_SPEC): Define.
27204 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
27205 and darwin-ldoubdle.c.
27207 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27210 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
27211 (cpp_options): Ditto.
27212 (default_compilers): Ditto.
27213 (display_help): Ditto.
27214 (process_command): Ditto.
27215 (do_spec_1): Ditto.
27216 (set_input): Use lbasename instead of duplicate code.
27217 (save_temps_prefix): New static for -save-temps=obj.
27218 (save_temps_length): Ditto.
27220 * doc/invoke.texi (-save-temps=obj): Document new variant to
27221 -save-temps switch.
27223 2009-04-02 Jeff Law <law@redhat.com>
27225 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
27228 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
27230 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
27231 * configure: Regenerated.
27233 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
27235 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
27236 share the argument list.
27238 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
27242 2009-02-12 Diego Novillo <dnovillo@google.com>
27244 * varpool.c (debug_varpool): New.
27245 * cgraph.h (debug_varpool): Declare.
27247 2009-04-02 Jan Hubicka <jh@suse.cz>
27249 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
27252 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
27254 * config/i386/i386.c (ix86_abi): Move initialization to ...
27255 (override_options): Here.
27257 2009-04-02 Christian Bruel <christian.bruel@st.com>
27259 * config/sh/sh.c (sh_dwarf_register_span): New function.
27260 (TARGET_DWARF_REGISTER_SPAN): Define.
27261 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
27263 2009-04-02 Ira Rosen <irar@il.ibm.com>
27265 PR tree-optimization/39595
27266 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
27267 interleaved loads group is not greater than the SLP group size.
27269 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
27271 * builtins.c (is_builtin_name): New.
27272 (called_as_built_in): Use is_builtin_name.
27273 * tree.h (is_builtin_name): New.
27274 * varasm.c (incorporeal_function_p): Use is_builtin_name
27276 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
27278 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
27280 2009-04-02 Dodji Seketeli <dodji@redhat.com>
27283 * c-decl.c (clone_underlying_type): Move this ...
27284 * c-common.c (set_underlying_type): ... here.
27285 Also, make sure the function properly sets TYPE_STUB_DECL() on
27286 the newly created typedef variant type.
27287 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
27288 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
27291 2009-04-02 Richard Guenther <rguenther@suse.de>
27293 PR tree-optimization/37221
27294 * tree-flow.h (degenerate_phi_result): Declare.
27295 * tree-ssa-dom.c (degenerate_phi_result): Export.
27296 * tree-scalar-evolution.c (analyze_initial_condition): If
27297 the initial condition is defined by a degenerate PHI node
27298 use the degenerate value.
27300 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
27302 PR rtl-optimization/39588
27303 * combine.c (merge_outer_ops): Do not set the constant when this
27305 (simplify_shift_const_1): Do not modify it either in this case.
27307 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
27309 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
27310 tuning is deprecated if -mtune value is set to an Itanium1 variant.
27312 2009-04-01 Janis Johnson <janis187@us.ibm.com>
27315 * c-lex.c (interpret_float): Default (no suffix) is double.
27317 2009-04-1 Xinliang David Li <davidxl@google.com>
27319 * config/i386/i386.c (legitimate_constant_p): Recognize
27320 all one vector constant.
27322 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27324 * config/vax/vax.c: Add #includes to silence warnings.
27325 Change #include order to silence two warnings.
27327 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27329 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
27330 (ASM_SPEC): Pass -k to the assembler for PIC code.
27332 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27334 * config.gcc: Add vax-*-linux* to the switch.
27335 * config/vax/linux.h: New file. (TARGET_VERSION,
27336 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
27338 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27340 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
27341 Use predicate macros instead of GET_CODE() == foo.
27342 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
27343 ashlsi3, rotrsi3, <unnamed>): Likewise.
27345 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27347 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
27348 jbbccihi, jbbccisi): Remova trailing whitespace.
27349 * config/vax/constraints.md: Likewise.
27350 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
27351 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
27352 * config/vax/predicates.md: Likewise.
27353 * config/vax/vax.c (print_operand_address, vax_output_int_move,
27354 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
27355 * config/vax/vax.h: Likewise.
27356 * config/vax/vax.md (nonlocal_goto): Likewise.
27358 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27360 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
27361 (indirectable_address_p, adjacent_operands_p): Add spaces around
27363 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
27365 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27367 * config/vax/vax.c (legitimate_constant_address_p,
27368 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
27369 index_term_p, reg_plus_index_p, legitimate_address_p,
27370 vax_mode_dependent_address_p): Update comments to match functions
27371 modified by the recent int->bool conversion.
27373 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27375 * config/vax/builtins.md: Update copyright message.
27376 * config/vax/constraints.md: Likewise.
27377 * config/vax/netbsd-elf.h: Likewise.
27378 * config/vax/predicates.md: Likewise.
27379 * config/vax/vax-protos.h: Likewise.
27380 * config/vax/vax.c: Likewise.
27381 * config/vax/vax.h: Likewise.
27382 * config/vax/vax.md: Likewise.
27383 * config/vax/vax.opt: Likewise.
27385 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
27387 * config/vax/builtins.md (ffssi2, ffssi2_internal,
27388 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
27389 * config/vax/constraints.md (B, R): Likewise.
27390 * config/vax/predicates.md (external_memory_operand,
27391 nonimmediate_addsub_di_operand): Likewise.
27392 * config/vax/vax.c (vax_output_int_add): Likewise.
27393 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
27394 untyped_call): Likewise.
27396 2009-04-01 Matt Thomas <matt@3am-software.com>
27398 * config/vax/predicates.md: New file.
27399 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
27400 external_const_operand, nonsymbolic_operand, external_memory_operand,
27401 indirect_memory_operand, indexed_memory_operand,
27402 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
27403 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
27405 * config/vax/constraints.md: New file.
27406 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
27408 * config/vax/builtins.md: New file.
27409 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
27410 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
27412 * config/vax/vax.opt (mqmath): Add option.
27413 * config/vax/vax.md (isfx): Extend with DI.
27414 (VAXintQH, VAXintQHSD): Define.
27415 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
27416 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
27417 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
27418 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
27419 (movdi): Update constraints and use vax_output_int_move().
27420 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
27421 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
27422 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
27423 nonlocal_goto): New.
27424 (mov<mode>): Extend accepted operand types.
27425 (subdi3_old): Rename from subdi3, change update constraints and use
27426 a new implementation.
27427 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
27428 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
27429 MOVE_RATIO, CLEAR_RATIO): Define.
27430 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
27431 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
27432 (PRINT_OPERAND): Redefine using a function instead of inlined code.
27433 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
27434 (split_quadword_operands): Make static and really allow variable
27436 (print_operand_address): Update for PIC generation.
27437 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
27438 indexable_address_p, fixup_mathdi_operand,
27439 vax_expand_addsub_di_operands, adjacent_operands_p): New.
27440 (vax_float_literal, legitimate_constant_p,
27441 indirectable_constant_address_p, index_term_p,
27442 reg_plus_index_p): Return bool instead of int.
27443 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
27445 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
27447 (vax_output_conditional_branch): Indent.
27448 (legitimate_constant_address_p, indirectable_constant_address_p,
27449 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
27450 vax_mode_dependent_address_p): Return bool instead of int, update for
27452 * config/vax/vax-protos.h (legitimate_constant_address_p,
27453 legitimate_constant_p, legitimate_address_p,
27454 vax_mode_dependent_address_p): Change declaration to bool.
27455 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
27456 vax_expand_addsub_di_operands, vax_output_int_subtract,
27457 vax_output_movmemsi): Declare.
27458 (split_quadword_operands, vax_float_literal): Delete declaration.
27459 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
27460 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
27461 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
27462 ASM_OUTPUT_DWARF_PCREL): Define.
27463 (ASM_SPEC): Change definition to allow PIC generation.
27465 2009-04-01 Steve Ellcey <sje@cup.hp.com>
27467 * doc/sourcebuild.texi: Update front-end requirements.
27469 2009-04-01 Jakub Jelinek <jakub@redhat.com>
27472 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
27473 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
27474 (booldi3_internal3): Use boolean_or_operator instead of
27477 2009-04-01 Joseph Myers <joseph@codesourcery.com>
27480 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
27481 declarator whose size is not an integer constant expression but
27482 folds to an integer constant, then treat it as a constant
27485 2009-04-01 Richard Guenther <rguenther@suse.de>
27487 * fold-const.c (fold_plusminus_mult_expr): Do not fold
27488 i * 4 + 2 to (i * 2 + 1) * 2.
27490 2009-04-01 Jakub Jelinek <jakub@redhat.com>
27493 * c-parser.c (c_parser_asm_statement): Skip until close paren and
27494 return if c_parser_asm_string_literal returned NULL.
27496 2009-04-01 Nick Clifton <nickc@redhat.com>
27498 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
27500 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
27501 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
27502 other typedefs to avoid conflicts with libgcc2.c. Define labels
27503 to gain 16-bit bit-manipulation functions from libgcc2.c and then
27505 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
27506 to gain 16-bit trapping arithmetic functions from libgcc2.c and
27509 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
27511 * varasm.c (default_function_rodata_section): Declare DOT as
27514 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
27515 Andrey Galkin <agalkin@hypercom.com>
27518 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
27519 Make object_name unique for each process.
27521 2009-04-01 Jakub Jelinek <jakub@redhat.com>
27524 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
27525 addressable variables in the parallel that could go out of scope while
27526 running queued tasks.
27528 2009-04-01 Anatoly Sokolov <aesok@post.ru>
27530 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
27531 (CASE_VALUES_THRESHOLD): Redefine.
27532 * config/avr/avr.c (avr_override_options): Remove initialization of
27533 avr_case_values_threshold variable.
27534 (avr_case_values_threshold): Remove variable. Add new function.
27535 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
27536 * config/avr/avr.opt (mno-tablejump): Remove option.
27537 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
27539 2009-04-01 DJ Delorie <dj@redhat.com>
27541 * varasm.c (default_function_rodata_section): Don't assume
27542 anything about where the first '.' in the section name is.
27544 2009-04-01 Alan Modra <amodra@bigpond.net.au>
27546 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
27547 rs6000_emit_stack_tie.
27549 2009-03-31 Ian Lance Taylor <iant@google.com>
27551 * tree-eh.c (tree_remove_unreachable_handlers): Compare
27552 gimple_code with GIMPLE_RESX, not RESX.
27554 2009-03-31 Joseph Myers <joseph@codesourcery.com>
27556 * c-common.c (c_get_ident): New.
27557 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
27559 2009-04-01 Ben Elliston <bje@au.ibm.com>
27561 * config/rs6000/sysv4.opt (msdata): Improve option description.
27563 2009-03-31 Steve Ellcey <sje@cup.hp.com>
27565 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
27566 (divdf3_internal_lat): Remove.
27567 (divxf3_internal_lat): Remove.
27568 (divxf3_internal_thr): Remove.
27569 (divxf): Use divxf3_internal.
27570 * config/ia64/div.md (divsf3_internal_lat): New.
27571 (divdf3_internal_lat): New.
27572 (divxf3_internal): New.
27574 2009-03-31 Joseph Myers <joseph@codesourcery.com>
27577 * Makefile.in (USE_GCC_STDINT): Define.
27578 (stmp-int-hdrs): Install stdint.h if applicable.
27579 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
27581 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
27582 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
27583 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
27584 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27585 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
27586 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
27587 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
27588 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27589 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
27590 (c_common_nodes_and_builtins): Initialize
27591 underlying_wchar_type_node. Do not initialize
27592 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
27593 nodes for new types.
27594 (c_stddef_cpp_builtins): Define macros for new types.
27595 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
27597 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
27598 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
27599 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
27600 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
27601 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
27602 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
27603 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
27604 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
27605 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
27606 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
27607 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
27608 int16_type_node, int32_type_node, int64_type_node,
27609 uint8_type_node, uint16_type_node, c_uint32_type_node,
27610 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
27611 int_least32_type_node, int_least64_type_node,
27612 uint_least8_type_node, uint_least16_type_node,
27613 uint_least32_type_node, uint_least64_type_node,
27614 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
27615 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
27616 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
27617 uintptr_type_node): Define.
27618 * c-cppbuiltin.c (builtin_define_constants,
27619 builtin_define_type_minmax): New.
27620 (builtin_define_stdint_macros): Define more macros.
27621 (c_cpp_builtins): Define more limit macros.
27622 (type_suffix): New.
27623 (builtin_define_type_max): Define in terms of
27624 builtin_define_type_minmax. Remove is_long parameter. All
27626 * config.gcc (use_gcc_stdint): Define.
27627 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
27628 Add newlib-stdint.h for generic targets.
27629 * config/glibc-stdint.h, config/newlib-stdint.h,
27630 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
27631 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
27632 * config/score/score.h (UINTPTR_TYPE): Define.
27633 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
27634 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
27635 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27636 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
27637 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
27638 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
27639 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27640 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
27641 * config/spu/spu.h (STDINT_LONG32): Define.
27642 * configure.ac (use_gcc_stdint): Substitute.
27643 * configure: Regenerate.
27644 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
27645 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
27646 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
27647 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
27648 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
27649 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
27650 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
27651 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
27652 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
27653 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
27654 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
27655 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
27656 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
27657 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
27658 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
27659 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
27660 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
27661 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
27662 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
27663 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
27664 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
27665 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
27666 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
27667 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27668 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
27669 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
27670 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
27671 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27672 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
27674 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
27676 * loop-iv.c (suitable_set_for_replacement): Renamed from
27677 simplify_using_assignment; changed to return bool and to accept new
27678 args DEST and SRC. Return true iff we find a source/destination pair
27679 that can be used to make a replacement, and fill SRC and DEST if so.
27680 Remove arg ALTERED. Don't deal with altered regs here. All callers
27682 (simplify_using_initial_values): Deal with altered regs here and track
27683 more precisely the effect they have on the validity of our expression.
27685 * loop-iv.c (simplify_using_condition): A condition of the form
27686 (EQ REG CONST) can be used to simply make a substitution.
27687 (simplify_using_initial_values): Keep track of conditions we have seen
27688 and keep using them to simplify new expressions, while applying the
27689 same substitutions to them as to the expression.
27691 * simplify-rtx.c (simplify_relational_operation_1): Simplify
27692 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
27695 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
27696 changed. Use this when trying to improve the upper bound.
27697 Generate the comparison by using simplify_gen_relational.
27699 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
27701 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
27703 (simplify_using_assignment, simplify_using_initial_values): Call
27704 replace_in_expr to make replacements. Call replace_single_def_regs
27705 once on the initial version of the expression.
27707 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27710 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
27712 2009-03-31 Richard Guenther <rguenther@suse.de>
27714 PR middle-end/31029
27715 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
27716 equality comparisons. Fold C - X CMP X if C % 2 == 1.
27718 2009-03-31 Richard Guenther <rguenther@suse.de>
27720 * tree.h (div_if_zero_remainder): Declare.
27721 * fold-const.c (div_if_zero_remainder): Export.
27722 * tree-ssa-forwprop.c
27723 (forward_propagate_addr_into_variable_array_index): Handle
27724 constant array index addition outside of the variable index.
27726 2009-03-31 Joseph Myers <joseph@codesourcery.com>
27729 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
27730 define_splits, floatunssi<mode>2): Require x87 conversions from
27731 DImode to be permitted.
27733 2009-03-31 Joseph Myers <joseph@codesourcery.com>
27735 PR preprocessor/15638
27736 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
27738 2009-03-31 Richard Guenther <rguenther@suse.de>
27740 PR middle-end/23401
27741 PR middle-end/27810
27742 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
27743 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
27744 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
27745 a separate statement.
27746 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
27747 (lookup_tmp_var): Likewise.
27748 (is_gimple_formal_tmp_or_call_rhs): Remove.
27749 (is_gimple_reg_or_call_rhs): Rename to ...
27750 (is_gimple_reg_rhs_or_call): ... this.
27751 (is_gimple_mem_or_call_rhs): Rename to ...
27752 (is_gimple_mem_rhs_or_call): ... this.
27753 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
27754 DECL_GIMPLE_REG_P only if is_formal is true.
27755 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
27756 for non-proper post-modify expression gimplification.
27757 (gimplify_self_mod_expr): For post-modify expressions gimplify
27758 the lvalue to a minimal lvalue.
27759 (rhs_predicate_for): Remove formal temp case.
27760 (gimplify_modify_expr_rhs): Likewise.
27761 (gimplify_addr_expr): Use is_gimple_reg.
27762 (gimplify_expr): Remove formal temp cases.
27763 (gimple_regimplify_operands): Likewise.
27764 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
27765 and FILTER_EXPR like constants.
27766 * gimple.c (walk_gimple_op): Fix val_only initialization, use
27768 (is_gimple_formal_tmp_rhs): Remove.
27769 (is_gimple_reg_rhs): Remove special casing.
27770 (is_gimple_mem_rhs): Fix.
27771 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
27772 (is_gimple_formal_tmp_var): Remove.
27773 (is_gimple_formal_tmp_reg): Likewise.
27774 (is_gimple_min_lval): Allow invariant component ref parts.
27775 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
27776 is_gimple_formal_tmp_reg): Remove declarations.
27777 * tree-cfg.c (verify_expr): Verify that variables with address
27778 taken do not have DECL_GIMPLE_REG_P set.
27779 * tree-mudflap.c (mf_build_check_statement_for): Use
27780 force_gimple_operand instead of gimplify_expr.
27782 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
27784 * modulo-sched.c (sms_schedule_by_order): Pass the actual
27785 schedulable rows to compute_split_row.
27787 2009-03-31 Ben Elliston <bje@au.ibm.com>
27790 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
27793 2009-03-31 Alan Modra <amodra@bigpond.net.au>
27795 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
27796 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
27797 * configure: Regenerate.
27798 * config.in: Regenerate.
27799 * config/rs6000/rs6000.opt (mtls-markers): Add.
27800 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
27801 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
27802 (tls_ld_aix, tls_ld_sysv): Likewise.
27803 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
27804 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
27806 2009-03-31 Alan Modra <amodra@bigpond.net.au>
27808 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
27810 2009-03-30 Jan Hubicka <jh@suse.cz>
27812 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
27814 (tree_remove_unreachable_handlers): Cleanup EH predecestor
27815 detection and label handling.
27817 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
27819 * ira-int.h (ira_allocno): Rename left_conflicts_num to
27820 left_conflicts_size.
27821 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
27822 ALLOCNO_LEFT_CONFLICTS_SIZE.
27824 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
27825 remove_allocno_from_bucket_and_push,
27826 allocno_spill_priority_compare, push_allocnos_to_stack,
27827 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
27828 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
27829 (setup_allocno_left_conflicts_num): Ditto. Rename to
27830 setup_allocno_left_conflicts_size.
27831 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
27832 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
27833 setup_allocno_left_conflicts_size instead of
27834 setup_allocno_left_conflicts_num.
27836 * ira-build.c (ira_create_allocno): Use
27837 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
27838 ALLOCNO_LEFT_CONFLICTS_NUM.
27840 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
27842 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
27843 instead of DF_LR_OUT.
27845 * ira-lives.c (process_bb_node_lives): Ditto.
27847 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
27848 instead of DF_LR_{OUT,IN}.
27850 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
27852 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
27854 2009-03-30 Jan Hubicka <jh@suse.cz>
27856 * except.c (label_to_region_map): Fix thinko.
27858 2009-03-30 Steve Ellcey <sje@cup.hp.com>
27860 PR middle-end/38237
27861 * tree.h (tree_find_value): New declaration.
27862 * tree.c (tree_find_value): New function.
27863 * varasm.c (assemble_external): Avoid duplicate entries on lists.
27865 2009-03-30 Jakub Jelinek <jakub@redhat.com>
27868 * c-decl.c (struct c_binding): Add locus field.
27869 (bind): Add locus argument, set locus field from it.
27870 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
27871 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
27872 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
27873 implicitly_declare, undeclared_variable, lookup_label,
27874 declare_label, c_make_fname_decl, c_builtin_function,
27875 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
27878 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
27881 * config/i386/i386.c (classify_argument): Check total size of
27884 2009-03-30 Martin Jambor <mjambor@suse.cz>
27886 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
27887 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
27888 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
27891 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
27892 seen_variable_array_ref while also traversing a union.
27894 * tree-inline.c (optimize_inline_calls): Do not call
27895 cgraph_node_remove_callees.
27896 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
27897 (pass_remove_cgraph_callee_edges): New variable.
27898 * passes.c (init_optimization_passes): Add
27899 pass_remove_cgraph_callee_edges after early inlining and before all
27900 late intraprocedural passes.
27902 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
27904 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27906 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
27907 Fix typos in names.
27909 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27911 * combine.c (simplify_comparison): Use have_insn_for.
27912 * dojump.c (do_jump): Likewise.
27914 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27916 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
27917 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
27918 sparc_compare_op0 like sparc_compare_emitted used to be handled.
27919 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
27920 instead of sparc_compare_emitted.
27921 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
27922 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
27923 instead of sparc_compare_emitted.
27925 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27927 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
27928 enter/exit cfglayout mode.
27929 (pass_partition_block): Require it.
27930 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
27931 (combine_instructions): Track basic blocks instead of labels.
27932 (update_cfg_for_uncondjump): New.
27933 (try_combine): Use it. Update jumps after rescanning.
27934 (pass_combine): Require PROP_cfglayout.
27935 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
27937 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27939 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
27940 Provide/destroy PROP_cfglayout respectively.
27941 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
27942 * tree-pass.h (PROP_cfglayout): New.
27944 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
27946 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
27947 fold_convert_const_fixed_from_fixed,
27948 fold_convert_const_fixed_from_int,
27949 fold_convert_const_fixed_from_real, fold_negate_const): Do not
27950 set TREE_CONSTANT_OVERFLOW.
27951 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
27952 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
27954 2009-03-30 Ira Rosen <irar@il.ibm.com>
27956 * tree-vect-loop-manip.c: New file.
27957 * tree-vectorizer.c: Update documentation and included files.
27958 (vect_loop_location): Make extern.
27959 (rename_use_op): Move to tree-vect-loop-manip.c
27960 (rename_variables_in_bb, rename_variables_in_loop,
27961 slpeel_update_phis_for_duplicate_loop,
27962 slpeel_update_phi_nodes_for_guard1,
27963 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
27964 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
27965 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
27966 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
27967 find_loop_location): Likewise.
27968 (new_stmt_vec_info): Move to tree-vect-stmts.c.
27969 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
27970 get_vectype_for_scalar_type, vect_is_simple_use,
27971 supportable_widening_operation, supportable_narrowing_operation):
27973 (bb_in_loop_p): Move to tree-vect-loop.c.
27974 (new_loop_vec_info, destroy_loop_vec_info,
27975 reduction_code_for_scalar_code, report_vect_op,
27976 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
27977 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
27978 (vect_supportable_dr_alignment): Likewise.
27979 * tree-vectorizer.h (tree-data-ref.h): Include.
27980 (vect_loop_location): Declare.
27981 Reorganize function declarations according to the new file structure.
27982 * tree-vect-loop.c: New file.
27983 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
27984 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
27985 * tree-vect-data-refs.c: New file.
27986 * tree-vect-patterns.c (timevar.h): Don't include.
27987 * tree-vect-stmts.c: New file.
27988 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
27989 tree-vect-slp.c, tree-vect-loop.c.
27990 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
27991 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
27992 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
27993 (tree-vect-analyze.o): Remove.
27994 (tree-vect-transform.o): Likewise.
27995 (tree-vect-data-refs.o): Add rule.
27996 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
27997 tree-vect-slp.o): Likewise.
27998 (tree-vect-patterns.o): Remove redundant dependencies.
27999 (tree-vectorizer.o): Likewise.
28000 * tree-vect-slp.c: New file.
28002 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28004 * optc-gen.awk: Warn if an option flag has multiple different
28007 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
28009 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
28010 -floop-block): Document dependences on PPL, CLooG and Graphite.
28012 2009-03-30 Joseph Myers <joseph@codesourcery.com>
28014 PR rtl-optimization/323
28015 * c-common.c (c_fully_fold, convert_and_check,
28016 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
28017 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
28018 * c-common.def (EXCESS_PRECISION_EXPR): New.
28019 * c-cppbuiltin.c (builtin_define_float_constants): Define
28020 constants with enough digits for long double.
28021 * c-lex.c (interpret_float): Interpret constant with excess
28022 precision where appropriate.
28023 * c-opts.c (c_common_post_options): Set
28024 flag_excess_precision_cmdline. Give an error for
28025 -fexcess-precision=standard for C++ for processors where the
28026 option is significant.
28027 * c-parser.c (c_parser_conditional_expression): Handle excess
28028 precision in condition.
28029 * c-typeck.c (convert_arguments): Handle arguments with excess
28031 (build_unary_op): Move excess precision outside operation.
28032 (build_conditional_expr): Likewise.
28033 (build_compound_expr): Likewise.
28034 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
28035 (build_modify_expr): Handle excess precision in RHS.
28036 (convert_for_assignment): Handle excess precision in converted
28038 (digest_init, output_init_element, process_init_element): Handle
28039 excess precision in initializer.
28040 (c_finish_return): Handle excess precision in return value.
28041 (build_binary_op): Handle excess precision in operands and add
28042 excess precision as needed for operation.
28043 * common.opt (-fexcess-precision=): New option.
28044 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
28045 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
28046 For standard excess precision, output explicit conversion to and
28047 truncation from XFmode.
28048 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
28049 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
28050 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
28051 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
28052 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
28053 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
28054 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
28055 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
28056 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
28057 define_splits, sqrt<mode>2): Disable where appropriate for
28058 standard excess precision.
28059 * convert.c (convert_to_real): Do not shorten arithmetic to type
28060 for which excess precision would be used.
28061 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
28062 * doc/invoke.texi (-fexcess-precision=): Document option.
28063 (-mfpmath=): Correct index entry.
28064 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
28065 flag_excess_precision): New.
28066 * langhooks.c (lhd_post_options): Set
28067 flag_excess_precision_cmdline.
28068 * opts.c (common_handle_option): Handle -fexcess-precision=.
28069 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
28070 init_excess_precision): New.
28071 (lang_dependent_init_target): Call init_excess_precision.
28072 * tree.c (excess_precision_type): New.
28073 * tree.h (excess_precision_type): Declare.
28075 2009-03-30 Joseph Myers <joseph@codesourcery.com>
28078 * c-typeck.c (build_component_ref): Do not copy qualifiers from
28079 non-lvalue to component.
28081 2009-03-29 Joseph Myers <joseph@codesourcery.com>
28083 PR preprocessor/34695
28084 * Makefile.in (c-opts.o): Depend on c-tree.h.
28085 * c-common.c: Move down include of diagnostic.h.
28086 (done_lexing, c_cpp_error): New.
28087 * c-common.h (done_lexing): Declare.
28088 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
28090 * c-opts.c: Include c-tree.h.
28091 (c_common_init_options): Set preprocessor error callback.
28092 (c_common_handle_option): Do not set preprocessor
28093 inhibit_warnings, warnings_are_errors, warn_system_headers,
28094 pedantic_errors or inhibit_warnings flags.
28095 (c_common_post_options): Do not check cpp_errors (parse_in).
28096 (c_common_finish): Do not output dependencies if there were
28097 errors. Do not check return value of cpp_finish.
28098 * c-ppoutput.c (pp_file_change): Set input_location.
28099 * c-tree.h (c_cpp_error): Declare.
28100 * diagnostic.c (diagnostic_set_info_translated): Also initialize
28102 (diagnostic_build_prefix): Check override_column.
28103 * diagnostic.h (diagnostic_info): Add override_column field.
28104 (diagnostic_override_column): Define.
28106 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
28108 * c-common.c (c_expand_expr, c_staticp): Remove.
28109 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
28110 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
28111 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
28112 * c-gimplify.c (gimplify_compound_literal_expr,
28113 optimize_compound_literals_in_ctor): Remove.
28114 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
28115 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
28116 * c-semantics.c (emit_local_var): Remove.
28118 * langhooks-def.h (lhd_expand_expr): Remove.
28119 * langhooks.c (lhd_expand_expr): Remove.
28120 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
28122 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
28123 handling from c-semantics.c; don't call into langhook.
28124 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
28125 * gimplify.c (gimplify_compound_literal_expr,
28126 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
28127 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
28128 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
28129 as was done in c-gimplify.c.
28130 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
28131 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
28132 Move from c-common.h.
28133 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
28135 * tree.c (staticp): Do not call langhook.
28136 * langhooks.c (lhd_staticp): Delete.
28137 * langhooks-def.h (lhd_staticp): Delete prototype.
28138 (LANG_HOOKS_STATICP): Delete.
28139 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
28141 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
28142 instead of DECL_STMTs.
28144 2009-03-29 Joseph Myers <joseph@codesourcery.com>
28152 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
28154 (fold_call_expr): Return a NOP_EXPR from folding rather than the
28155 contained expression.
28156 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
28157 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
28158 conditional expressions for C.
28159 (decl_constant_value_for_optimization): Move from
28160 decl_constant_value_for_broken_optimization in c-typeck.c. Check
28161 whether optimizing and that the expression is a VAR_DECL not of
28162 array type instead of doing such checks in the caller. Do not
28163 check pedantic. Call gcc_unreachable for C++.
28164 * c-common.def (C_MAYBE_CONST_EXPR): New.
28165 * c-common.h (c_fully_fold, c_save_expr,
28166 decl_constant_value_for_optimization): New prototypes.
28167 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28168 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28169 EXPR_INT_CONST_OPERANDS): Define.
28170 * c-convert.c (convert): Strip nops from expression.
28171 * c-decl.c (groktypename): Take extra parameters expr and
28172 expr_const_operands. Update call to grokdeclarator.
28173 (start_decl): Update call to grokdeclarator. Add statement for
28174 expressions used in type of decl.
28175 (grokparm): Update call to grokdeclarator.
28176 (push_parm_decl): Update call to grokdeclarator.
28177 (build_compound_literal): Add parameter non_const and build a
28178 C_MAYBE_COSNT_EXPR if applicable.
28179 (grokdeclarator): Take extra parameters expr and
28180 expr_const_operands. Track expressions used in declaration
28181 specifiers and declarators. Fold array sizes and track whether
28182 they are constant expressions and whether they are integer
28183 constant expressions.
28184 (parser_xref_tag): Set expr and expr_const_operands fields in
28186 (grokfield): Update call to grokdeclarator.
28187 (start_function): Update call to grokdeclarator.
28188 (build_null_declspecs): Set expr and expr_const_operands fields in
28190 (declspecs_add_type): Handle expressions in typeof specifiers.
28191 * c-parser.c (c_parser_declspecs): Set expr and
28192 expr_const_operands fields for declaration specifiers.
28193 (c_parser_enum_specifier): Likewise.
28194 (c_parser_struct_or_union_specifier): Likewise.
28195 (c_parser_typeof_specifier): Likewise. Update call to
28196 groktypename. Fold expression as needed. Return expressions with
28197 type instead of adding statements.
28198 (c_parser_attributes): Update calls to c_parser_expr_list.
28199 (c_parser_statement_after_labels): Fold expression before passing
28200 to objc_build_throw_stmt.
28201 (c_parser_condition): Fold expression.
28202 (c_parser_asm_operands): Fold expression.
28203 (c_parser_conditional_expression): Use c_save_expr. Update call
28204 to build_conditional_expr.
28205 (c_parser_alignof_expression): Update call to groktypename.
28206 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
28207 original_code. Fold expression argument of va_arg. Create
28208 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
28209 argument to va_arg. Update calls to groktypename. Fold array
28210 index for offsetof. Verify that first argument to
28211 __builtin_choose_expr has integer type.
28212 (c_parser_postfix_expression_after_paren_type): Update calls to
28213 groktypename and build_compound_literal. Handle expressions with
28214 side effects in type name.
28215 (c_parser_postfix_expression_after_primary): Update call to
28216 c_parser_expr_list. Set original_code for calls to
28217 __builtin_constant_p.
28218 (c_parser_expr_list): Take extra parameter fold_p. Fold
28219 expressions if requested.
28220 (c_parser_objc_type_name): Update call to groktypename.
28221 (c_parser_objc_synchronized_statement): Fold expression.
28222 (c_parser_objc_receiver): Fold expression.
28223 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
28224 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
28225 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
28226 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
28227 (struct c_typespec): Add elements expr and expr_const_operands.
28228 (struct c_declspecs): Add elements expr and expr_const_operands.
28229 (groktypename, build_conditional_expr, build_compound_literal):
28231 (in_late_binary_op): Declare.
28232 * c-typeck.c (note_integer_operands): New function.
28233 (in_late_binary_op): New variable.
28234 (decl_constant_value_for_broken_optimization): Move to c-common.c
28235 and rename to decl_constant_value_for_optimization.
28236 (default_function_array_conversion): Do not strip nops.
28237 (default_conversion): Do not call
28238 decl_constant_value_for_broken_optimization.
28239 (build_array_ref): Do not fold result.
28240 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
28241 result when operand is a VLA.
28242 (c_expr_sizeof_type): Update call to groktypename. Handle
28243 expressions included in type name. Use C_MAYBE_CONST_EXPR for
28244 result when operand names a VLA type.
28245 (build_function_call): Update call to build_compound_literal.
28246 Only fold result for calls to __builtin_* functions. Strip
28247 NOP_EXPR from INTEGER_CST returned from such functions. Fold
28248 the function designator.
28249 (convert_arguments): Fold arguments. Update call to
28250 convert_for_assignment.
28251 (build_unary_op): Handle increment and decrement of
28252 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
28253 decrement earlier. Fold operand of increment and decrement.
28254 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
28255 built for integer operand. Wrap returns that are INTEGER_CSTs
28256 without being integer constant expressions or that have integer
28257 constant operands without being INTEGER_CSTs.
28258 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
28259 (build_conditional_expr): Add operand ifexp_bcp. Track whether
28260 result is an integer constant expression or can be used in
28261 unevaluated parts of one and avoid folding and wrap as
28262 appropriate. Fold operands before possibly doing -Wsign-compare
28264 (build_compound_expr): Wrap result for C99 if operands can be used
28265 in integer constant expressions.
28266 (build_c_cast): Update call to digest_init. Do not ignore
28267 overflow from casting floating-point constants to integers. Wrap
28268 results that could be confused with integer constant expressions,
28269 null pointer constants or floating-point constants.
28270 (c_cast_expr): Update call to groktypename. Handle expressions
28271 included in type name.
28272 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
28273 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
28274 Update calls to convert_for_assignment.
28275 (convert_for_assignment): Take new parameter
28276 null_pointer_constant. Do not strip nops or call
28277 decl_constant_value_for_broken_optimization. Set
28278 in_late_binary_op for conversions to boolean.
28279 (store_init_value): Update call to digest_init.
28280 (digest_init): Take new parameter null_pointer_constant. Do not
28281 call decl_constant_value_for_broken_optimization. pedwarn for
28282 initializers not constant expressions. Update calls to
28283 convert_for_assignment.
28284 (constructor_nonconst): New.
28285 (struct constructor_stack): Add nonconst element.
28286 (really_start_incremental_init, push_init_level, pop_init_level):
28287 Handle constructor_nonconst and nonconst element.
28288 (set_init_index): Call constant_expression_warning for array
28290 (output_init_element): Fold value. Set constructor_nonconst as
28291 applicable. pedwarn for initializers not constant expressions.
28292 Update call to digest_init. Call constant_expression_warning
28293 where constant initializers are required.
28294 (process_init_element): Use c_save_expr.
28295 (c_finish_goto_ptr): Fold expression.
28296 (c_finish_return): Fold return value. Update call to
28297 convert_for_assignment.
28298 (c_start_case): Fold switch expression.
28299 (c_process_expr_stmt): Fold expression.
28300 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
28301 ensure statement expression is not evaluated in constant expression.
28302 (build_binary_op): Track whether results are integer constant
28303 expressions or may occur in such, disable folding and wrap results
28304 as applicable. Fold operands for -Wsign-compare warnings unless
28306 (c_objc_common_truthvalue_conversion): Handle results folded to
28307 integer constants that are not integer constant expressions.
28308 * doc/extend.texi: Document when typeof operands are evaluated,
28309 that condition of __builtin_choose_expr is an integer constant
28310 expression, and more about use of __builtin_constant_p in
28313 2009-03-29 Richard Guenther <rguenther@suse.de>
28315 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
28316 propagate addresses of array references.
28318 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
28320 * regmove.c (perhaps_ends_bb_p): Remove.
28321 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
28322 from INSN and check that the main loop stays within that basic block.
28323 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
28324 (regmove_forward_pass): Split out from regmove_optimize. Use
28325 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
28326 (regmove_backward_pass): Split out from regmove_optimize. Use
28327 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
28328 (regmove_optimize): Simplify.
28330 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
28333 * config/i386/i386.c (classify_argument): Ignore flexible array
28334 member in struct and warn ABI change.
28336 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
28338 * config/i386/i386-protos.h (ix86_agi_dependent): New.
28340 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
28341 (ix86_adjust_cost): Updated.
28343 2009-03-29 Jan Hubicka <jh@suse.cz>
28345 PR middle-end/28850
28346 * tree-pass.h (pass_cleanup_eh): New function.
28347 (remove_unreachable_regions): Break code handling RTL
28348 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
28349 that can not be reached by runtime.
28350 (can_be_reached_by_runtime): New function.
28351 (label_to_region_map): New function.
28352 (num_eh_regions): New function.
28353 (rtl_remove_unreachable_regions): New function.
28354 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
28355 (remove_eh_region): New function.
28356 * except.h: Include sbitmap and vecprim.
28357 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
28358 num_eh_regions): Declare.
28359 * passes.c (init_optimization_passes): Schedule cleanup_eh.
28360 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
28361 * tree-eh.c (tree_remove_unreachable_handlers): New function.
28362 (tree_empty_eh_handler_p): New function.
28363 (cleanup_empty_eh): New function.
28364 (cleanup_eh): New function.
28365 (pass_cleanup_eh): New function.
28367 2009-03-29 Jan Hubicka <jh@suse.cz>
28369 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
28370 for removed regions.
28372 2009-03-29 Jan Hubicka <jh@suse.cz>
28374 * except.c (dump_eh_tree): Dump all datastructures.
28376 2009-03-29 Jan Hubicka <jh@suse.cz>
28378 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
28379 (duplicate_eh_regions_1): Likewise.
28380 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
28381 vector; call EH verification.
28382 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
28383 Be ready for region being removed.
28385 2009-03-29 Jan Hubicka <jh@suse.cz>
28387 * bitmap.c (bitmap_last_set_bit): New function.
28388 * bitmap.h (bitmap_last_set_bit): Declare.
28390 2009-03-29 David Ayers <ayers@fsfe.org>
28393 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
28394 by calling objc_compare_types and surpress warnings about
28395 incompatible C pointers that are compatible ObjC pointers.
28397 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
28399 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
28400 call initialize_inline_failed.
28401 (initialize_inline_failed): Move it from here ...
28402 * cgraph.c (initialize_inline_failed): ... to here.
28403 (cgraph_create_edge): Call initialize_inline_failed rather than
28404 setting inline_failed directly.
28406 2009-03-29 Ben Elliston <bje@au.ibm.com>
28409 * sysv4.opt (msdata): Improve comment.
28410 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
28411 * sysv4.h (SVR4_ASM_SPEC): Likewise.
28413 2009-03-29 Ben Elliston <bje@au.ibm.com>
28416 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
28417 load and store attributes.
28419 2009-03-29 Ben Elliston <bje@au.ibm.com>
28421 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
28422 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
28423 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
28424 * doc/extend.texi (X86 Built-in Functions): Add index entries for
28425 __builtin_infq and __builtin_huge_valq.
28427 2009-03-28 Anatoly Sokolov <aesok@post.ru>
28429 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
28431 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28432 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
28434 2009-03-28 Xinliang David Li <davidxl@google.com>
28436 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
28437 (do_dbg_cnt): New function.
28439 2009-03-28 Jan Hubicka <jh@suse.cz>
28441 Merge from pretty-ipa:
28443 2009-03-27 Jan Hubicka <jh@suse.cz>
28445 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
28446 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
28447 * passes.c (function_called_by_processed_nodes_p): New.
28448 * ipa-pure-const.c (check_call): Fix handling of operands.
28449 (analyze_function): Dump debug output for skipped bodies.
28450 (local_pure_const): Use function_called_by_processed_nodes_p.
28451 * dwarf2out.c (reference_to_unused): Use output.
28452 * passes.c (do_per_function_toporder): Likewise.
28454 2008-11-12 Jan Hubicka <jh@suse.cz>
28456 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
28457 * ipa-pure-const.c (funct_state_d): Add can throw field; make
28458 state_set_in_source enum
28459 (check_decl): Ignore memory tags; do not set fake looping flags;
28461 (check_operand, check_tree, check_rhs_var, check_lhs_var,
28462 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
28463 (check_call, analyze_function): Rewrite.
28465 (add_new_function): Update call of analyze_function.
28466 (generate_summary): Add call of analyze_function.
28467 (propagate): Propagate can_throw; handle state_set_in_source correctly.
28468 (local_pure_const): New function.
28469 (pass_local_pure_const): New pass.
28470 * ipa-inline.c (inline_transform): Set after_inlining.
28471 * tree-eh.c (stmt_can_throw_external): New.
28472 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
28473 work with aliasing built.
28474 * tree-flow.h (stmt_can_throw_external): New.
28475 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
28476 and local pure/const pass in early and late optimization queue.
28478 2009-03-28 Martin Jambor <mjambor@suse.cz>
28480 * fold-const.c (get_pointer_modulus_and_residue): New parameter
28482 (fold_binary): Allow function decl aligment consideration is the
28483 second argument is integer constant one.
28484 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
28485 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
28486 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
28488 2009-03-28 Jan Hubicka <jh@suse.cz>
28490 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
28491 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
28492 * function.h (rtl_data): Add nothrow flag.
28493 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
28494 set DECL_NOTHROW for AVAILABLE functions.
28496 2009-03-28 Jakub Jelinek <jakub@redhat.com>
28498 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
28499 following vector keyword has expansion starting with pixel or bool
28500 keyword, expand vector to __vector and pixel or bool to __pixel or
28504 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
28505 warn_if_disallowed_function_p): Removed.
28506 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
28507 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
28508 warning_if_disallowed_function_p.
28509 * flags.h (warn_if_disallowed_function_p,
28510 warn_disallowed_functions): Removed.
28511 * common.opt (Wdisallowed-function-list=): Removed.
28512 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
28514 2009-03-28 Richard Guenther <rguenther@suse.de>
28516 PR tree-optimization/38723
28517 * tree-ssa-pre.c (compute_avail): Add all default definitions to
28520 2009-03-28 Jan Hubicka <jh@suse.cz>
28522 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
28523 test introduced by my previous patch.
28525 2009-03-28 Richard Guenther <rguenther@suse.de>
28527 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
28528 the PHIs value undefined.
28530 2009-03-28 Jan Hubicka <jh@suse.cz>
28532 * tree-pass.h (pass_fixup_cfg): New pass.
28533 * ipa-inline.c (inline_transform): Set
28534 always_inline_functions_inlined/after_inlining.
28535 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
28536 (pass_fixup_cfg): New pass.
28537 * passes.c (init_optimization_passes): Add fixup_cfg.
28539 2009-03-28 Richard Guenther <rguenther@suse.de>
28541 PR tree-optimization/38458
28542 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
28543 argument use the arguments copy-of value.
28545 2009-03-28 Richard Guenther <rguenther@suse.de>
28547 PR tree-optimization/38180
28548 * tree-ssa-ccp.c (get_default_value): Simplify.
28549 (likely_value): Likewise.
28550 (surely_varying_stmt_p): Properly handle VOP case.
28551 (ccp_initialize): Likewise.
28552 (ccp_fold): Handle propagating through *&.
28553 (fold_const_aggregate_ref): Also handle decls.
28555 2009-03-28 Jan Hubicka <jh@suse.cz>
28557 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
28558 * cgraph.h (cgraph_node): Likewise.
28559 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
28560 (cgraph_reset_node): Use process flag.
28561 (cgraph_mark_functions_to_output): Likewise.
28562 (cgraph_expand_function): Likewise.
28563 (cgraph_expand_all_functions): Likewise.
28564 (cgraph_output_in_order): Likewise.
28565 * dwarf2out.c (reference_to_unused): Likewise.
28566 * passes.c do_per_function_toporder): Likewise.
28568 2009-03-28 Jan Hubicka <jh@suse.cz>
28570 Bring from lto-branch:
28572 2008-09-03 Doug Kwan <dougkwan@google.com>
28574 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
28575 enums instead of reason strings.
28576 * cgraph.c (cgraph_create_edge): Same.
28577 (cgraph_inline_failed_string): New function.
28578 * cgraph.h (cgraph_inline_failed_t): New enum type.
28579 (cgraph_inline_failed_string): New prototype.
28580 (struct cgraph_edge): Change type of INLINED_FAILED from constant
28581 char pointer to cgraph_inline_failed_t.
28582 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
28583 (cgraph_default_inline_p): Ditto.
28584 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
28585 to cgraph_inline_failed_t pointer.
28586 * cif-code.def: New file.
28587 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
28589 (cgraph_check_inline_limits): Change type of REASON to pointer to
28590 cgraph_inline_failed_t. Replace reason strings with enums.
28591 (cgraph_default_inline_p): Ditto.
28592 (cgraph_recursive_inlining_p): Ditto.
28593 (update_caller_keys): Change type of FAILED_REASON to
28594 cgraph_inline_failed_t.
28595 (cgraph_set_inline_failed): Change type of REASON to pointer to
28596 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
28597 convert enums to strings for text output.
28598 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
28599 to be of type cgraph_inline_failed_t. Replace reason strings with
28600 enums. Call cgraph_inline_failed_string to covert enums
28601 to strings for text output.
28602 (cgraph_decide_inlining): Replace reason strings with enums.
28603 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
28604 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
28606 * tree-inline.c (expand_call_inline): Change type of REASON
28607 to cgraph_inline_failed_t. Replace reason strings with enums.
28608 Call cgraph_inline_failed_string for text output.
28609 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
28612 2009-03-28 Jan Hubicka <jh@suse.cz>
28614 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
28615 cgraph_clone_node): Remove master clone handling.
28616 (cgraph_is_master_clone, cgraph_master_clone): Remove.
28617 * cgraph.h (master_clone): Remove.
28618 (cgraph_is_master_clone, cgraph_master_clone): Remove.
28619 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
28620 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
28622 2009-03-28 Jan Hubicka <jh@suse.cz>
28624 * cgraph.c (cgraph_function_body_availability): Functions declared
28625 inline are always safe to assume that it is not going to be replaced.
28627 2009-03-28 Richard Guenther <rguenther@suse.de>
28629 PR tree-optimization/38513
28630 * tree-ssa-pre.c (eliminate): Remove redundant stores.
28631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
28632 EXC_PTR_EXPR and FILTER_EXPR.
28633 (get_ref_from_reference_ops): Likewise.
28635 2009-03-28 Richard Guenther <rguenther@suse.de>
28637 PR tree-optimization/38968
28638 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
28639 Use FLOOR_MOD_EXPR to compute misalignment.
28641 2009-03-28 Richard Guenther <rguenther@suse.de>
28643 PR tree-optimization/37795
28644 * tree.h (combine_comparisons): Declare.
28645 * fold-const.c (combine_comparisons): Export.
28646 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
28648 (ifcombine_iforif): Use combine_comparisons.
28650 2009-03-28 Jan Hubicka <jh@suse.cz>
28652 * tree-eh.c (inlinable_call_p): New function.
28653 (make_eh_edges): Use it.
28654 (verify_eh_edges): Use it.
28655 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
28656 * except.c (reachable_next_level): Add inlinable_function argument
28657 (sjlj_find_directly_reachable_regions): Update.
28658 (add_reachable_handler): Do not set saw_any_handlers.
28659 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
28660 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
28661 Add new inlinable call parameter.
28662 (can_throw_internal, can_throw_external): Update.
28663 * except.h (can_throw_internal_1, can_throw_external_1,
28664 foreach_reachable_handler): Update declaration.
28666 2009-03-28 Joseph Myers <joseph@codesourcery.com>
28668 * config/arm/t-arm-coff, config/h8300/coff.h,
28669 config/i386/i386-aout.h, config/i386/i386-coff.h,
28670 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
28671 config/pdp11/2bsd.h, config/rs6000/aix41.h,
28672 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
28673 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
28674 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
28675 sys-types.h: Remove.
28676 * Makefile.in: Remove protoize and fixproto support and references
28678 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
28679 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
28681 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
28682 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
28683 unprotoize$(exeext).
28684 (rest.encap): Don't depend on $(STMP_FIXPROTO)
28685 (.PHONY): Don't depend on proto.
28686 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
28687 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
28688 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
28689 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
28690 build/gen-protos.o, build/scan.o, xsys-protos.h,
28691 build/fix-header$(build_exeext), build/fix-header.o,
28692 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
28693 stmp-install-fixproto): Remove.
28694 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
28695 SYSCALLS.c or fixproto files.
28696 (install-common): Don't install protoize.
28697 (install-headers-tar, install-headers-cpio, install-headers-cp):
28698 Don't depend on $(STMP_FIXPROTO).
28699 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
28700 install fixproto files or write out fixproto settings.
28701 (uninstall): Don't uninstall protoize.
28702 * config.gcc (use_fixproto): Remove.
28703 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
28704 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
28705 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
28706 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
28707 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
28708 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
28709 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
28710 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
28711 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
28712 * config/t-vxworks (STMP_FIXPROTO): Remove.
28713 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
28714 STMP_FIXPROTO): Remove.
28715 * config.in, configure: Regenerate.
28716 * crtstuff.c (gid_t, uid_t): Don't undefine.
28717 * doc/install.texi: Change m68k-coff to m68k-elf in example.
28718 (arm-*-coff, arm-*-aout: Remove target entries.
28719 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
28720 Remove mention of AIX 4.1.
28721 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
28722 * doc/invoke.texi (Running Protoize): Remove.
28723 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
28724 (Protoize Caveats): Remove.
28725 * tsystem.h: Update comments on headers assumed to exist.
28727 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
28729 * genautomata.c: Add a new year to the copyright. Add a new
28731 (struct insn_reserv_decl): Add comments for member bypass_list.
28732 (find_bypass): Remove.
28733 (insert_bypass): New.
28734 (process_decls): Use insert_bypass.
28735 (output_internal_insn_latency_func): Output all bypasses with the
28736 same input insn in one switch case.
28738 * rtl.def (define_bypass): Describe bypass choice.
28739 * doc/md.texi (define_bypass): Ditto.
28741 2009-03-27 Richard Guenther <rguenther@suse.de>
28743 * gimplify.c (mark_addressable): Export.
28744 * tree-flow.h (mark_addressable): Declare.
28745 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
28746 * tree-ssa.c (verify_phi_args): Verify that address taken
28747 variables have TREE_ADDRESSABLE set.
28749 2009-03-27 Richard Guenther <rguenther@suse.de>
28751 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
28752 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
28753 Do not mark decls TREE_ADDRESSABLE.
28754 (build_fold_addr_expr): Adjust.
28755 (fold_addr_expr): Remove.
28756 (fold_unary): Use build_fold_addr_expr.
28757 (fold_comparison): Likewise.
28758 (split_address_to_core_and_offset): Likewise.
28759 * coverage.c (tree_coverage_counter_addr): Mark the array decl
28761 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
28762 (gimplify_modify_expr_to_memcpy): Mark source and destination
28764 * omp-low.c (create_omp_child_function): Mark the object decl
28766 (lower_rec_input_clauses): Mark the var we take the address of
28768 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
28770 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28772 PR middle-end/39315
28773 * cfgexpand.c (expand_one_stack_var_at): Change alignment
28774 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
28776 2009-03-27 Richard Guenther <rguenther@suse.de>
28778 PR tree-optimization/39120
28779 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
28781 (handle_lhs_call): Process return constraints. Add escape
28782 constraints if necessary.
28783 (handle_const_call): Fill out return constraints. Make nested
28784 case more precise. Avoid consttmp if possible.
28785 (handle_pure_call): Fill out return constraints. Avoid
28786 callused if possible.
28787 (find_func_aliases): Simplify call handling.
28789 2009-03-27 Richard Guenther <rguenther@suse.de>
28791 PR tree-optimization/39120
28792 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
28793 as a representative.
28794 (solve_graph): Do propagate CALLUSED.
28795 (handle_pure_call): Use a scalar constraint from CALLUSED for
28797 (find_what_p_points_to): CALLUSED shall not appear in poins-to
28800 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28803 * c-common.c (handle_aligned_attribute): Properly check alignment
28804 overflow. Use (1U << i) instead of (1 << i).
28806 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
28808 * expr.h (get_mem_align_offset): Updated.
28810 * tree.h (tree_decl_common): Change align to "unsigned int" and
28811 move it before pointer_alias_set.
28813 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28814 Jakub Jelinek <jakub@redhat.com>
28817 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
28818 gr_register_operand with gr_reg_or_0_operand.
28819 (cmpxchg_rel_di): Likewise.
28820 (sync_lock_test_and_set<mode>): Likewise.
28822 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28824 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
28825 (true_regnum): Likewise.
28827 * rtlanal.c (subreg_info): Moved to ...
28828 * rtl.h (subreg_info): Here. New.
28829 (subreg_get_info): New.
28831 * rtlanal.c (subreg_get_info): Make it extern.
28833 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28836 * config/i386/i386.c (ix86_abi): New.
28837 (override_options): Handle -mabi=.
28838 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
28839 (ix86_call_abi_override): Likewise.
28840 (init_cumulative_args): Likewise.
28841 (function_arg_advance): Likewise.
28842 (function_arg_64): Likewise.
28843 (function_arg): Likewise.
28844 (ix86_pass_by_reference): Likewise.
28845 (ix86_function_value_regno_p): Likewise.
28846 (ix86_build_builtin_va_list_abi): Likewise.
28847 (setup_incoming_varargs_64): Likewise.
28848 (is_va_list_char_pointer): Likewise.
28849 (ix86_init_machine_status): Likewise.
28850 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
28851 (ix86_function_type_abi): Return enum calling_abi. Rewrite
28852 for 64bit. Replace DEFAULT_ABI with ix86_abi.
28853 (ix86_function_abi): Make it static and return enum calling_abi.
28854 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
28856 (ix86_fn_abi_va_list): Updated.
28858 * config/i386/i386.h (ix86_abi): New.
28859 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
28860 (CONDITIONAL_REGISTER_USAGE): Likewise.
28861 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
28862 (machine_function): Likewise.
28864 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
28866 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
28867 (STACK_BOUNDARY): Likewise.
28868 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
28870 * config/i386/i386.opt (mabi=): New.
28872 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
28873 return enum calling_abi.
28874 (ix86_function_type_abi): Likewise.
28875 (ix86_function_abi): Removed.
28877 * doc/invoke.texi: Document -mabi= option for x86.
28879 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28881 * builtins.c (real_dconstp): Delete.
28882 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
28884 2009-03-27 Dodji Seketeli <dodji@redhat.com>
28885 Jakub Jelinek <jakub@redhat.com>
28888 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
28889 (gen_subprogram_die): When a function is explicit, generate the
28890 DW_AT_explicit attribute.
28891 * langhooks.h (struct lang_hooks_for_decls): Add
28892 function_decl_explicit_p langhook.
28893 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
28894 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
28896 2009-03-27 Jakub Jelinek <jakub@redhat.com>
28898 * builtins.c (fold_builtin_memory_op): Optimize memmove
28899 into memcpy if we can prove source and destination don't overlap.
28901 * tree-inline.c: Include gt-tree-inline.h.
28902 (clone_fn_id_num): New variable.
28903 (clone_function_name): New function.
28904 (tree_function_versioning): Use it.
28905 * Makefile.in (GTFILES): Add tree-inline.c.
28907 2009-03-27 Mark Mitchell <mark@codesourcery.com>
28909 * BASE-VER: Change to 4.5.0.
28911 2009-03-27 Xinliang David Li <davidxl@google.com>
28913 PR tree-optimization/39557
28914 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
28916 2009-03-27 Xinliang David Li <davidxl@google.com>
28918 PR tree-optimization/39548
28919 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
28922 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28924 * c-common.c (pointer_int_sum): Use %wd on return from
28927 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
28929 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
28930 on return from tree_low_cst.
28932 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
28935 * ginclude/stdarg.h (va_copy): Define also for
28936 __GXX_EXPERIMENTAL_CXX0X__.
28938 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28941 * builtins.h (c_strlen): Do not warn here.
28942 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
28943 * c-common.c (pointer_int_sum): Take an explicit location.
28944 Warn about offsets out of bounds.
28945 * c-common.h (pointer_int_sum): Adjust declaration.
28947 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28949 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
28952 2009-03-26 Jakub Jelinek <jakub@redhat.com>
28955 * opts.c (warn_if_disallowed_function_p): Don't assume
28956 get_callee_fndecl must return non-NULL.
28958 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
28960 PR rtl-optimization/39522
28961 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
28962 when reg_reloaded_valid is set.
28964 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28966 * config/spu/divv2df3.c: New file.
28967 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
28968 (DPBIT_FUNCS): Filter out _div_df.
28970 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
28972 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
28973 a jump insn, count that jump in the distance to the loop start.
28975 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
28978 * config/sh/sh.c (calc_live_regs): Fix condition for global
28979 registers except PIC_OFFSET_TABLE_REGNUM.
28981 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
28984 * doc/invoke.texi (-mconsole): New.
28986 (-mno-cygwin): New.
28988 (-mnop-fun-dllimport): New.
28992 (sub section "i386 and x86-64 Windows Options"): New.
28994 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
28996 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
28997 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
28999 2009-03-25 Richard Guenther <rguenther@suse.de>
29001 PR middle-end/39497
29002 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
29005 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
29007 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
29008 neither of haifa/selective schedulers are working.
29010 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29012 * doc/invoke.texi (Debugging Options): Fix description of
29013 -fno-merge-debug-strings.
29015 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
29017 * config/cris/libgcc.ver: New version-script.
29018 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
29020 * configure.ac <GAS features, nop mnemonic>: Add pattern
29021 crisv32-*-* for "nop".
29022 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
29023 * configure: Regenerate.
29025 2009-03-24 Ira Rosen <irar@il.ibm.com>
29027 PR tree-optimization/39529
29028 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
29029 mark_sym_for_renaming for the tag copied to the new vector
29032 2009-03-24 Arthur Loiret <aloiret@debian.org>
29034 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
29035 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
29036 EXTRA_SPEC_FUNCTIONS.
29037 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
29038 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
29039 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
29040 -march and -mtune options.
29042 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
29044 * config/m68k/t-rtems: Add m5329 multilib.
29046 2009-03-24 Dodji Seketeli <dodji@redhat.com>
29047 Jakub Jelinek <jakub@redhat.com>
29050 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
29053 2009-03-23 Jakub Jelinek <jakub@redhat.com>
29056 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
29057 instead of c_parser_expression_conv, if original_code isn't one of the
29058 4 allowed comparison codes, fail.
29060 2009-03-23 Richard Guenther <rguenther@suse.de>
29062 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
29063 * tree.h (struct tree_type): Likewise.
29064 * reload.h (struct insn_chain): Likewise.
29065 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
29066 * function.h (struct function): Likewise.
29067 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
29069 2009-03-23 Jakub Jelinek <jakub@redhat.com>
29071 PR tree-optimization/39516
29072 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
29074 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
29076 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
29077 should be set true if BITS_PER_WORD of target is bigger than 32
29079 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
29081 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
29082 Translate -B-options to -rpath-link. Correct existing
29083 rpath-link and conditionalize on !nostdlib.
29085 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29087 * doc/extend.texi (Function Attributes, Variable Attributes):
29089 * doc/invoke.texi (Debugging Options, Optimize Options)
29090 (i386 and x86-64 Options, MCore Options): Likewise.
29092 2009-03-20 Jakub Jelinek <jakub@redhat.com>
29095 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
29096 it for block local namespace aliases.
29097 (gen_decl_die): Pass context_die to gen_namespace_die.
29099 2009-03-19 Jakub Jelinek <jakub@redhat.com>
29102 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
29103 minimum or maximum value.
29105 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
29107 * reginfo.c (globalize_reg): Recompute derived reg sets.
29109 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
29112 * libgcc2.c (mprotect): Do not use signed arguments for
29113 VirtualProtect, use DWORD arguments. Also fix the 'may
29114 be used uninitialized' warning for the np variable.
29116 2009-03-19 Jakub Jelinek <jakub@redhat.com>
29119 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
29120 functions using regparm calling conventions when not optimizing.
29121 (ix86_function_sseregparm): Similarly for sseregparm calling
29124 2009-03-19 Li Feng <nemokingdom@gmail.com>
29126 PR middle-end/39500
29127 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
29128 dependence if the first conflict is after niter iterations.
29130 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
29132 PR middle-end/38609
29133 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
29134 functions with dynamic stack-pointer adjustments.
29136 2009-03-19 Ben Elliston <bje@au.ibm.com>
29138 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
29139 option; change to -msdata=data.
29141 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29143 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
29146 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
29149 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
29151 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
29153 * doc/invoke.texi (Code Gen Options): Expand discussion of
29156 2009-03-18 Jakub Jelinek <jakub@redhat.com>
29158 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
29159 * matrix-reorg.c (struct matrix_info): Likewise.
29160 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
29161 * rtl.h (struct mem_attrs): Likewise.
29162 * df.h (struct df): Likewise.
29163 * tree-data-ref.h (struct data_dependence_relation): Likewise.
29164 * ira-int.h (struct ira_allocno): Likewise.
29165 * df-scan.c (struct df_collection_rec): Likewise.
29166 * ira.c (struct equivalence): Likewise.
29167 * function.c (struct temp_slot): Likewise.
29168 * cfgloop.h (struct loop): Likewise.
29171 * function.c (use_register_for_decl): When not optimizing, disregard
29172 register keyword for variables with types containing methods.
29174 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
29176 PR middle-end/39447
29177 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
29178 (is_simple_operand): Call contains_component_ref_p before calling data
29179 reference analysis that would fail on COMPONENT_REFs.
29181 * tree-vrp.c (search_for_addr_array): Fix formatting.
29183 2009-03-18 Richard Guenther <rguenther@suse.de>
29185 * tree-vect-transform.c (vect_loop_versioning): Fold the
29186 generated comparisons.
29187 * tree-vectorizer.c (set_prologue_iterations): Likewise.
29188 (slpeel_tree_peel_loop_to_edge): Likewise.
29190 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29192 PR middle-end/37805
29193 * opts.c (print_specific_help): In addition to `undocumented',
29194 accept `separate' and `joined' flags if passed alone. Describe
29195 output by the first matched one of those.
29196 (common_handle_option): Skip over empty strings.
29197 * gcc.c (display_help): Fix help string for `--help='.
29198 * doc/invoke.texi (Option Summary, Overall Options): With
29199 `--help=', classes and qualifiers can both be repeated, but
29200 only the latter can be negated. One should not pass only
29201 negated qualifiers. Fix markup and examples.
29204 2008-10-14 Jakub Jelinek <jakub@redhat.com>
29205 PR middle-end/37805
29206 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
29207 and -fhelp=separate.
29209 2009-03-17 Jing Yu <jingyu@google.com>
29211 PR middle-end/39378
29212 * function.h (struct rtl_data): Move is_thunk from here...
29213 (struct function): ...to here.
29214 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
29215 * varasm.c (assemble_start_function): Change is_thunk from crtl to
29217 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
29219 (alpha_does_function_need_gp, alpha_start_function): Likewise.
29220 (alpha_output_function_end_prologue): Likewise.
29221 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
29222 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
29223 (rs6000_output_function_epilogue): Likewise.
29224 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
29226 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
29229 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
29230 from different units in a single alternative.
29231 (*truncdfsf_i387): Ditto.
29232 (*truncxfsf2_mixed): Ditto.
29233 (*truncxfdf2_mixed): Ditto.
29235 2009-03-17 Jakub Jelinek <jakub@redhat.com>
29237 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
29238 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
29241 * tree-ssa-live.c (remove_unused_locals): Don't remove local
29242 unused non-artificial variables when not optimizing.
29245 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
29246 DW_TAG_imported_module even if decl is IMPORTED_DECL with
29247 NAMESPACE_DECL in its DECL_INITIAL.
29249 PR middle-end/39443
29250 * optabs.c (set_user_assembler_libfunc): New function.
29251 * expr.h (set_user_assembler_libfunc): New prototype.
29252 * c-common.c: Include libfuncs.h.
29253 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
29254 for memcmp, memset, memcpy, memmove and abort.
29255 * Makefile.in (c-common.o): Depend on libfuncs.h.
29258 * dwarf2out.c (gen_inlined_enumeration_type_die,
29259 gen_inlined_structure_type_die, gen_inlined_union_type_die,
29260 gen_tagged_type_instantiation_die): Removed.
29261 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
29264 2009-03-17 Janis Johnson <janis187@us.ibm.com>
29267 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
29269 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
29270 (check-parallel-%): Ditto.
29271 (check-consistency): Ditto.
29273 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
29275 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
29276 local variable rhs by NULL_TREE.
29278 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
29281 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
29283 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
29286 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
29288 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
29291 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
29292 for ms->sysv ABI calls only in 64bit mode.
29294 * config/i386/i386.md (untyped_call): Support 32bit.
29296 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
29298 * doc/extend.texi: Replace x86_65 with x86_64.
29300 2009-03-16 Jakub Jelinek <jakub@redhat.com>
29302 PR tree-optimization/39455
29303 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
29304 mismatches for POINTER_TYPE_P (type).
29305 (number_of_iterations_le): Likewise.
29307 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
29309 * config/picochip/picochip.c: Removed profiling support.
29310 * config/picochip/picochip.md: Removed profiling instruction.
29311 * config/picochip/picochip.h: Removed profiling builtin.
29313 2009-03-16 Joseph Myers <joseph@codesourcery.com>
29315 * doc/install.texi (--with-host-libstdcxx): Document.
29317 2009-03-14 Anatoly Sokolov <aesok@post.ru>
29320 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
29321 generate a warning if the function name does not begin with
29322 "__vector" and the function has either the 'signal' or 'interrupt'
29323 attribute, from here to ...
29324 (avr_declare_function_name): ...here. New function.
29325 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
29326 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
29328 2009-03-14 Jakub Jelinek <jakub@redhat.com>
29331 * cse.c (fold_rtx): Don't modify original const_arg1 when
29332 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
29333 separate variable instead.
29334 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
29335 from out of range shift counts.
29336 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
29338 2009-03-13 Catherine Moore <clm@codesourcery.com>
29340 * config/i386/x-mingw32 (host-mingw32.o): Replace
29341 diagnostic.h with $(DIAGNOSTIC_H).
29343 2009-03-12 Jakub Jelinek <jakub@redhat.com>
29346 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
29348 * config/i386/sync.md (sync_compare_and_swap<mode>,
29349 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
29350 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
29352 (sync_double_compare_and_swapdi_pic,
29353 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
29354 cmpxchg8b_pic_memory_operand instead of just memory_operand.
29356 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
29359 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
29361 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
29364 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
29365 (avx_addsubv4df3): Likewise.
29366 (*avx_addsubv4sf3): Likewise.
29367 (sse3_addsubv4sf3): Likewise.
29369 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
29372 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
29374 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
29377 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
29378 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
29379 registers for allocnos created from user-defined variables.
29381 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29384 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
29385 of non-integer mode as well.
29387 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
29389 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
29390 for functions for which the parameter types are unknown.
29392 2009-03-11 Jakub Jelinek <jakub@redhat.com>
29395 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
29396 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
29397 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
29398 * config/i386/i386.c (ix86_local_alignment): For
29399 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
29400 long long variables on the stack to avoid dynamic realignment.
29401 Allow the first argument to be a decl rather than type.
29402 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
29404 2009-03-11 Nick Clifton <nickc@redhat.com>
29407 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
29409 Add description to mno-lsim option.
29410 * config/mcore/mcore.h: Remove comment about deprecated m4align
29412 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
29413 * doc/invoke.texi: Add description of mno-lsim and
29414 mstack-increment options.
29416 * config/fr30/fr30.opt: Document the -mno-lsim option.
29417 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
29418 and -mno-lsim options.
29420 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29422 * fold-const.c (fold_comparison): Only call fold_inf_compare
29423 if the mode supports infinities.
29425 2009-03-11 Jason Merrill <jason@redhat.com>
29428 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
29429 end already did. Notice GIMPLE_CALL modifications of the result.
29430 Don't copy debug information from an ignored decl or a decl from
29433 2009-03-10 Richard Guenther <rguenther@suse.de>
29434 Nathan Froyd <froydnj@codesourcery.com>
29436 PR middle-end/37850
29437 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
29438 (__divMODE3): Likewise.
29440 2009-03-09 Jakub Jelinek <jakub@redhat.com>
29442 PR tree-optimization/39394
29443 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
29444 DECL_SIZE_UNIT of variable length FIELD_DECLs.
29446 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29448 * recog.c (verfiy_changes): Disallow renaming of hard regs in
29449 inline asms for register asm ("") declarations.
29451 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
29453 * fold-const.c (fold_unary): Fix comment.
29455 2009-03-07 Jan Hubicka <jh@suse.cz>
29458 * tree-inline.c (setup_one_parameter): Do replacement of const
29459 argument by constant in SSA form.
29461 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29463 PR middle-end/38028
29464 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
29465 determine alignment passed to assign_stack_local.
29466 (assign_parms_unsplit_complex): Likewise.
29467 * except.c (sjlj_build_landing_pads): Likewise.
29469 2009-03-06 Jakub Jelinek <jakub@redhat.com>
29471 PR middle-end/39360
29472 * tree-flow.h (add_referenced_var): Return bool instead of void.
29473 * tree-dfa.c (add_referenced_var): Return result of
29474 referenced_var_check_and_insert call.
29475 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
29476 of referenced_var_check_and_insert.
29479 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
29480 (gen_variable_die): Emit DW_AT_location on abstract static variable's
29481 DIE, don't emit it if abstract origin already has it.
29482 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
29483 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
29485 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29487 * genpreds.c (needs_variable): Fix parentheses at variable name
29489 (write_tm_constrs_h): Indent generated code.
29491 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29493 * doc/extend.texi (Function Attributes): Add documentation
29494 for isr attributes.
29496 2009-03-06 Jakub Jelinek <jakub@redhat.com>
29499 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
29500 take locus from its DECL_SOURCE_LOCATION instead of input_location.
29502 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
29504 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
29507 2009-03-05 Jakub Jelinek <jakub@redhat.com>
29510 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
29511 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
29513 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
29515 * config/i386/i386.md (R8_REG, R9_REG): New constants.
29516 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
29517 constants instead of magic numbers.
29518 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
29520 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
29521 (x86_64_ms_abi_int_parameter_registers): Ditto.
29522 (x86_64_int_return_registers): Ditto.
29523 (ix86_maybe_switch_abi): Ditto.
29524 (ix86_expand_call): Ditto for clobbered_registers array.
29525 (ix86_hard_regno_mode_ok): Ditto.
29526 (x86_extended_QIreg_mentioned_p): Ditto.
29528 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
29530 PR tree-optimization/39349
29531 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
29533 * combine.c (gen_lowpart_for_combine): Use omode when generating
29536 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
29538 PR rtl-optimization/39235
29539 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
29541 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
29543 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
29545 2009-03-04 Richard Guenther <rguenther@suse.de>
29547 PR tree-optimization/39362
29548 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
29549 that occur in abnormal PHIs should be varying.
29551 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
29553 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
29555 (simple_iv): Take loop as an argument instead of statement.
29556 * tree-scalar-evolution.h (simple_iv): Declaration changed.
29557 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
29559 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
29561 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
29562 * matrix-reorg.c (analyze_transpose): Ditto.
29563 * tree-data-ref.c (dr_analyze_innermost): Ditto.
29564 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
29565 * tree-predcom.c (ref_at_iteration): Ditto.
29566 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
29568 2009-03-04 Richard Guenther <rguenther@suse.de>
29570 PR tree-optimization/39358
29571 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
29572 escaped_id and callused_id.
29573 (solve_graph): Likewise.
29575 2009-03-04 Richard Guenther <rguenther@suse.de>
29577 PR tree-optimization/39339
29578 * tree-sra.c (try_instantiate_multiple_fields): Make it
29579 no longer ICE on the above.
29581 2009-03-03 Joseph Myers <joseph@codesourcery.com>
29583 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
29584 that fits within Pmode.
29586 2009-03-03 Steve Ellcey <sje@cup.hp.com>
29588 PR middle-end/10109
29589 * tm.texi (LIBCALL_VALUE): Update description.
29591 2009-03-03 Steve Ellcey <sje@cup.hp.com>
29593 PR middle-end/34443
29594 * doc/extend.texi (section): Update description.
29596 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
29598 PR middle-end/39345
29599 * tree-inline.c (remapped_type): New.
29600 (can_be_nonlocal): Call remapped_type instead of remap_type.
29602 2009-03-03 Jakub Jelinek <jakub@redhat.com>
29605 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
29606 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
29608 2009-03-03 Richard Guenther <rguenther@suse.de>
29610 PR middle-end/39272
29611 * tree.c (tree_nonartificial_location): New function.
29612 * tree.h (tree_nonartificial_location): Declare.
29613 * builtins.c (expand_builtin_memory_chk): Provide location
29614 of the call location for artificial function pieces.
29615 (maybe_emit_chk_warning): Likewise.
29616 (maybe_emit_sprintf_chk_warning): Likewise.
29617 (maybe_emit_free_warning): Likewise.
29618 * expr.c (expand_expr_real_1): Likewise.
29620 2009-03-03 Jakub Jelinek <jakub@redhat.com>
29622 PR tree-optimization/39343
29623 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
29624 COMPONENT_REF t has ARRAY_TYPE.
29626 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
29628 PR middle-end/39335
29629 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
29630 when the type precision of the induction variable should be
29631 larger than the type precision of nit.
29632 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
29633 * graphite.c (graphite_loop_normal_form): Same.
29634 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
29636 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
29638 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
29639 (*call_1_rex64_ms_sysv): Use named constants instead of magic
29640 numbers to describe clobbered registers.
29641 (*call_value_0_rex64_ms_sysv): Ditto.
29642 * config/i386/mmx.md (mmx_emms): Ditto.
29643 (mmx_femms): Ditto.
29645 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
29647 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
29650 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29652 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
29653 (spu_section_type_flags): New function.
29655 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
29657 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
29658 reg_class_contents of FLOAT_REGS into a temporary.
29660 2009-03-02 Richard Guenther <rguenther@suse.de>
29661 Ira Rosen <irar@il.ibm.com>
29663 PR tree-optimization/39318
29664 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
29665 information to the vectorized statement.
29667 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
29669 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
29670 variable. Use defined names instead of magic constants for REX SSE
29673 2009-03-01 Richard Guenther <rguenther@suse.de>
29675 PR tree-optimization/39331
29676 * omp-low.c (lower_send_shared_vars): Do not receive new
29677 values for the reference of DECL_BY_REFERENCE parms or results.
29679 2009-03-01 Jan Hubicka <jh@suse.cz>
29682 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
29683 BLOCK_NONLOCALIZED_VAR): New macros.
29684 (tree_block): Add nonlocalized_vars.
29685 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
29686 gen_decl_die): Add origin argument. Allow generation of die with
29687 origin at hand only.
29688 (gen_member_die, gen_type_die_with_usage, force_decl_die,
29689 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
29691 (gen_block_die): Fix checking for unused blocks.
29692 (process_scope_var): Break out from .... ; work with origins only.
29693 (decls_for_scope) ... here; process nonlocalized list.
29694 (dwarf2out_ignore_block): Look for nonlocalized vars.
29695 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
29697 (dump_scope_block): Dump them.
29698 * tree-inline.c (remap_decls): Handle nonlocalized vars.
29699 (remap_block): Likewise.
29700 (can_be_nonlocal): New predicate.
29701 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
29703 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29705 * configure: Regenerate.
29707 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29709 * optc-gen.awk: No need to duplicate option flags twice.
29710 Reuse help texts for duplicate options which do not have any.
29712 * gcc.c (display_help): Document --version.
29714 * gcc.c (main): If print_help_list and verbose_flag, ensure
29715 driver output comes before subprocess output.
29717 * optc-gen.awk: Assign all remaining fields to help string,
29718 space-separated, for multi-line help in *.opt.
29720 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
29721 -Wno-pedantic-ms-format is for MinGW targets only.
29723 * doc/options.texi (Option file format): Fix bad indentation,
29724 restoring dropped sentence.
29726 2009-02-28 Jan Hubicka <jh@suse.cz>
29728 * tree-inline.c (tree_function_versioning): Output debug info.
29730 2009-02-28 Jan Hubicka <jh@suse.cz>
29733 * tree-inline.c (setup_one_parameter): Do not copy propagate
29734 arguments when not optimizing.
29736 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
29739 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
29740 (avx_addsubv4df3): Likewise.
29741 (*avx_addsubv4sf3): Likewise.
29742 (sse3_addsubv4sf3): Likewise.
29743 (*avx_addsubv2df3): Likewise.
29744 (sse3_addsubv2df3): Likewise.
29745 (avx_unpckhps256): Correct item selectors.
29746 (avx_unpcklps256): Likewise.
29747 (avx_unpckhpd256): Likewise.
29748 (avx_unpcklpd256): Likewise.
29750 2009-02-28 Jan Hubicka <jh@suse.cz>
29752 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
29754 (copy_arguments_for_versioning): If var is declared don't declare it.
29755 (tree_function_versioning): First setup substitutions and then copy
29758 2009-02-27 Jan Hubicka <jh@suse.cz>
29761 * cgraph.h (varpool_output_debug_info): Remove.
29762 * cgraphunit.c (varpool_output_debug_info): Remove.
29763 * dwarf2out.c (deferred_locations_struct): New struct
29764 (deferred_locations): New type.
29765 (deferred_locations_list): New static var.
29766 (deffer_location): New function.
29767 (gen_variable_die): Use it.
29768 (decls_for_scope): Output info on local static vars.
29769 (dwarf2out_finish): Process deferred locations.
29770 * varpool.c (varpool_output_debug_info): Remove.
29772 2009-02-27 Jan Hubicka <jh@suse.cz>
29775 * tree.h (TREE_PROTECTED): Fix comment.
29776 (BLOCK_HANDLER_BLOCK): Remove.
29777 (struct tree_block): Remove handler_block add body_block.
29778 (inlined_function_outer_scope_p): New.
29779 (is_body_block): Remove.
29780 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
29781 * dwarf2out.c (is_inlined_entry_point): Remove.
29782 (add_high_low_attributes): Use inlined_function_outer_scope_p.
29783 (gen_block_die): Use is_inlined_entry_point check. Remove body block
29785 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
29786 * gimplify.c (gimplify_expr): Gimplify body blocks.
29787 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
29788 block with multiple subblocks.
29789 (dump_scope_block): Prettier output; dump more flags and info.
29790 (dump_scope_blocks): New.
29791 (remove_unused_locals): Use dump_scope_blocks.
29792 * tree-flow.h (dump_scope_blocks): Declare.
29793 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
29794 * stmt.c (is_body_block): Remove.
29795 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
29796 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
29798 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
29800 PR middle-end/39308
29801 * graphite.c (graphite_loop_normal_form): Do not call
29802 number_of_iterations_exit from a gcc_assert.
29804 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29806 * config/s390/s390.c (s390_swap_cmp): Look for conditional
29807 jumps if COND is NULL.
29808 (find_cond_jump): New function.
29809 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
29810 * config/s390/s390.md: Remove z10_cobra attribute value.
29812 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
29814 * config/alpha/alpha.h (alpha_expand_mov): Return false if
29815 force_const_mem returns NULL_RTX.
29817 2009-02-26 Jan Hubicka <jh@suse.cz>
29820 * cgraph.h (varpool_output_debug_info): Remove.
29821 * cgraphunit.c (varpool_output_debug_info): Remove.
29822 * dwarf2out.c (deferred_locations_struct): New struct
29823 (deferred_locations): New type.
29824 (deferred_locations_list): New static var.
29825 (deffer_location): New function.
29826 (gen_variable_die): Use it.
29827 (decls_for_scope): Output info on local static vars.
29828 (dwarf2out_finish): Process deferred locations.
29829 * varpool.c (varpool_output_debug_info): Remove.
29831 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
29833 PR rtl-optimization/39241
29834 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
29835 to subreg_offset_representable_p.
29837 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
29839 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
29840 execute function prototype. Get f and nregs from max_reg_num
29841 and get_insns. Remove the first backward pass as it's dead,
29842 guard the forward pass by flag_expensive_optimizations.
29843 (rest_of_handle_regmove): Delete.
29844 (pass_regmove): Replace it with regmove_optimize.
29846 2009-02-25 Martin Jambor <mjambor@suse.cz>
29848 PR tree-optimization/39259
29849 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
29850 calls_alloca function flags.
29851 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
29852 calls are detected.
29854 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
29856 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
29857 flags_set_1_rtx, flags_set_1_set): Delete.
29858 (regmove_optimize): Do not call mark_flags_life_zones.
29860 2009-02-24 Julian Brown <julian@codesourcery.com>
29863 * config/arm/arm.c (require_pic_register): Only set
29864 cfun->machine->pic_reg once per function.
29866 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
29868 * doc/invoke.texi (Link Options): Document an easier way to pass
29869 options that take arguments to the GNU linker using -Xlinker and -Wl.
29871 2009-02-24 Steve Ellcey <sje@cup.hp.com>
29874 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
29876 2009-02-24 Richard Guenther <rguenther@suse.de>
29879 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
29881 2009-02-24 Richard Guenther <rguenther@suse.de>
29882 Zdenek Dvorak <ook@ucw.cz>
29884 PR tree-optimization/39233
29885 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
29886 from converting them to a generic type.
29888 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
29890 PR tree-optimization/39260
29891 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
29892 contains a condition with a real type.
29893 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
29895 2009-02-23 Jason Merrill <jason@redhat.com>
29898 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
29899 narrowing_initializer_constant_valid_p.
29900 (narrowing_initializer_constant_valid_p): Don't return
29901 null_pointer_node for adding a pointer to itself.
29903 2009-02-23 Jan Hubicka <jh@suse.cz>
29906 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
29909 2009-02-23 Jan Hubicka <jh@suse.cz>
29911 PR tree-optimization/37709
29912 * tree.c (block_ultimate_origin): Move here from dwarf2out.
29913 * tree.h (block_ultimate_origin): Declare.
29914 * dwarf2out.c (block_ultimate_origin): Move to tree.c
29915 * tree-ssa-live.c (remove_unused_scope_block_p):
29916 Eliminate blocks containig no instructions nor live variables nor
29918 (dump_scope_block): New function.
29919 (remove_unused_locals): Enable removal of dead blocks by default;
29920 enable dumping at TDF_DETAILS.
29922 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
29924 * config/i386/i386.c (classify_argument): Don't allow COImode
29926 (function_arg_advance_32): Don't allow OImode.
29927 (function_arg_32): Likewise.
29928 (function_value_32): Likewise.
29929 (return_in_memory_32): Likewise.
29930 (function_arg_64): Remove OImode comment.
29932 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
29935 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
29936 ix86_expand_vector_set for V4DImode in 64bit mode only.
29937 (ix86_expand_vector_init_one_var): Likewise.
29939 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
29941 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
29943 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
29946 * loop-iv.c: Revert last change.
29947 * emit-rtl.c: Likewise.
29949 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
29952 * config/i386/i386.c (type_natural_mode): Remove an extra
29953 space in the warning message.
29954 (function_value_32): Handle 32-byte vector modes.
29955 (return_in_memory_32): Likewise.
29957 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
29959 * loop-iv.c (truncate_value): New function.
29960 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
29962 (lowpart_subreg): Move to...
29963 * emit-rtl.c: ...here.
29965 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
29967 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
29968 accidental and undocumented change at revision 140860.
29970 2009-02-21 Joseph Myers <joseph@codesourcery.com>
29972 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
29973 take gimple_seq * arguments.
29974 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
29975 types_compatible_p langhook.
29977 2009-02-20 Mark Mitchell <mark@codesourcery.com>
29978 Joseph Myers <joseph@codesourcery.com>
29980 * config/arm/arm.c (arm_builtin_va_list): New function.
29981 (arm_expand_builtin_va_start): Likewise.
29982 (arm_gimplify_va_arg_expr): Likewise.
29983 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
29984 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
29985 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
29986 (va_list_type): New variable.
29987 (arm_mangle_type): Mangle va_list_type appropriately.
29989 2009-02-20 Jakub Jelinek <jakub@redhat.com>
29991 PR middle-end/39157
29992 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
29993 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
29994 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
29995 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
29996 parameter to 1000 for -O1 by default.
29997 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
29999 * loop-invariant.c: Include params.h.
30000 (move_loop_invariants): Don't call move_single_loop_invariants on
30003 2009-02-20 Jaka Mocnik <jaka@xlab.si>
30005 * calls.c (emit_library_call_value_1): Use slot_offset instead of
30006 offset when calculating bounds for indexing stack_usage_map. Fixes
30007 a buffer overflow with certain target setups.
30009 2009-02-20 Jakub Jelinek <jakub@redhat.com>
30012 * calls.c (expand_call): Clear try_tail_call if caller and callee
30013 disagree in promotion of function return value.
30015 2009-02-19 Jakub Jelinek <jakub@redhat.com>
30018 * c-common.c (c_determine_visibility): If visibility changed and
30019 DECL_RTL has been already set, call make_decl_rtl to update symbol
30022 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
30025 * varasm.c (assemble_variable): Don't check DECL_NAME when
30026 globalizing a variable.
30028 2009-02-19 Joseph Myers <joseph@codesourcery.com>
30031 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
30032 expression before any __builtin_trap call.
30033 * c-typeck.c (build_function_call): Convert and check function
30034 arguments before generating a call to a trap. Evaluate the
30035 function arguments before the trap.
30037 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
30040 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
30041 (UNSPEC_FXAM_MEM): New unspec.
30042 (fxam<mode>2_i387_with_temp): New insn and split pattern.
30043 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
30044 memory using fxam<mode>2_i387_with_temp to remove excess precision.
30046 2009-02-19 Richard Guenther <rguenther@suse.de>
30048 PR tree-optimization/39207
30049 PR tree-optimization/39074
30050 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
30051 storedanything_tree): New.
30052 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
30053 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
30054 (build_succ_graph): Add edges from STOREDANYTHING to all
30056 (init_base_vars): Initialize STOREDANYTHING.
30057 (compute_points_to_sets): Free substitution info after
30058 building the succ graph.
30059 (ipa_pta_execute): Likewise.
30061 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
30063 (do_ds_constraint): Do not add to special var or non-pointer
30065 (type_could_have_pointers): Split out from ...
30066 (could_have_pointers): ... here. For arrays use the element type.
30067 (create_variable_info_for): Initialize may_have_pointers.
30068 (new_var_info): Likewise.
30069 (handle_lhs_call): Make the HEAP variable unknown-sized.
30070 (intra_create_variable_infos): Use a type with pointers for
30071 PARM_NOALIAS, make it unknown-sized.
30073 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
30076 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
30078 2009-02-18 Jason Merrill <jason@redhat.com>
30081 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
30082 value if DECL_EXTERNAL.
30083 * tree-sra.c (sra_walk_gimple_assign): Likewise.
30084 * target.h (gcc_target::binds_local_p): Clarify "module".
30085 * tree.h (TREE_PUBLIC): Clarify "module".
30087 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
30090 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
30091 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
30093 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
30096 * c.opt (Wabi): Support C and ObjC.
30099 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
30101 * config/i386/i386.c (classify_argument): Warn once about the ABI
30102 change when passing union with long double.
30104 * doc/invoke.texi: Update -Wabi for warning psABI changes.
30106 2009-02-18 Joseph Myers <joseph@codesourcery.com>
30109 * c-parser.c (c_parser_compound_statement): Always enter and leave
30112 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30115 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
30117 2009-02-18 Jakub Jelinek <jakub@redhat.com>
30119 PR tree-optimization/36922
30120 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
30121 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
30124 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30126 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
30129 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30131 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
30133 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
30135 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
30138 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
30139 Richard Sandiford <rdsandiford@googlemail.com>
30141 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
30142 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
30143 (loongson_biadd): ...this.
30145 2009-02-17 Richard Guenther <rguenther@suse.de>
30147 PR tree-optimization/39202
30148 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
30149 a var make sure to follow existing collapses.
30151 2009-02-17 Richard Guenther <rguenther@suse.de>
30153 PR middle-end/39214
30154 * langhooks.c (lhd_print_error_function): Check for NULL block.
30156 2009-02-17 Richard Guenther <rguenther@suse.de>
30158 PR tree-optimization/39204
30159 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
30162 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
30164 * config/soft-fp/double.h: Update from glibc CVS.
30166 2009-02-17 Richard Guenther <rguenther@suse.de>
30168 PR tree-optimization/39207
30169 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
30170 strict-aliasing warnings for pointers pointing to NULL.
30172 2009-02-16 Joseph Myers <joseph@codesourcery.com>
30175 * c-parser.c (c_parser_braced_init): Call pop_init_level when
30176 skipping until next close brace.
30178 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
30181 * config/i386/i386.c (ix86_expand_push): Set memory alignment
30182 to function argument boundary.
30184 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
30186 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
30187 in the lea_add. Reload eventually constraints it properly.
30188 * config/picochip/constraints.md: Remove the target constraint
30189 "b", since it is not needed anymore.
30191 2009-02-16 Jakub Jelinek <jakub@redhat.com>
30193 * gthr-dce.h: Uglify function parameter and local variable names.
30194 * gthr-gnat.h: Likewise.
30195 * gthr-mipssde.h: Likewise.
30196 * gthr-nks.h: Likewise.
30197 * gthr-posix95.h: Likewise.
30198 * gthr-posix.h: Likewise.
30199 * gthr-rtems.h: Likewise.
30200 * gthr-single.h: Likewise.
30201 * gthr-solaris.h: Likewise.
30202 * gthr-tpf.h: Likewise.
30203 * gthr-vxworks.h: Likewise.
30204 * gthr-win32.h: Likewise.
30206 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
30209 * config/i386/i386.md: Restrict the new peephole2 to move
30210 between MMX/SSE registers.
30212 2009-02-15 Richard Guenther <rguenther@suse.de>
30215 2009-02-13 Richard Guenther <rguenther@suse.de>
30217 * configure.ac: Enable LFS.
30218 * configure: Re-generate.
30219 * config.in: Likewise.
30221 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30223 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
30224 spu_srqwbyte, spu_srqwbytebc): Define.
30225 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
30226 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
30227 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
30228 "shrqby_<mode>"): New insn-and-split patterns.
30229 * config/spu/spu.c (expand_builtin_args): Determine and return
30230 number of operands using spu_builtin_description data.
30231 (spu_expand_builtin_1): Use it.
30233 2009-02-13 Steve Ellcey <sje@cup.hp.com>
30236 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
30239 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
30242 * config/i386/i386.c (override_options): Correct warning
30243 messages for -malign-loops, -malign-jumps and -malign-functions.
30245 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
30248 * config/i386/i386.md: Restrict the new peephole2 to move
30249 between the general purpose registers.
30251 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
30254 * config/i386/i386.c (type_natural_mode): Add a new argument.
30255 Return the original mode and warn ABI change if vector size is 32byte.
30256 (function_arg_advance): Updated.
30257 (function_arg): Likewise.
30258 (ix86_function_value): Likewise.
30259 (ix86_return_in_memory): Likewise.
30260 (ix86_sol10_return_in_memory): Likewise.
30261 (ix86_gimplify_va_arg): Likewise.
30262 (function_arg_32): Don't warn ABX ABI change here.
30263 (function_arg_64): Likewise.
30265 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
30267 * loop-iv.c (implies_p): In the final case, test that operands 0
30268 of the two comparisons match.
30270 * config/bfin/bfin.c (find_prev_insn_start): New function.
30271 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
30272 (find_next_insn_start): Move.
30274 2009-02-13 Richard Guenther <rguenther@suse.de>
30276 * configure.ac: Enable LFS.
30277 * configure: Re-generate.
30278 * config.in: Likewise.
30280 2009-02-13 Joseph Myers <joseph@codesourcery.com>
30283 * c-parser.c (c_parser_parms_list_declarator): Discard pending
30284 sizes on syntax error after some arguments have been parsed.
30286 2009-02-12 Jakub Jelinek <jakub@redhat.com>
30288 * doc/invoke.texi (-fira): Remove.
30290 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
30292 * caller-save.c: Replace regclass.c with reginfo.c in comments.
30293 * recog.c: Likewise.
30296 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
30298 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
30299 (umul_ppmm): Likewise.
30300 (count_leading_zeros): Likewise.
30301 (count_trailing_zeros): Likewise.
30302 (UMUL_TIME): Likewise.
30304 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
30306 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
30307 soft-fp/t-softfp to tmake_file.
30309 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
30310 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
30311 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
30312 IA64_BUILTIN_INFQ]: New.
30313 (ia64_init_builtins): Initialize __builtin_infq,
30314 __builtin_fabsq and __builtin_copysignq if not HPUX.
30315 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
30316 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
30318 * config/ia64/lib1funcs.asm (__divtf3): Define only if
30320 (__fixtfti): Likewise.
30321 (__fixunstfti): Likewise.
30322 (__floattitf): Likewise.
30324 * config/ia64/libgcc-glibc.ver: New.
30325 * config/ia64/t-fprules-softfp: Likewise.
30326 * config/ia64/sfp-machine.h: Likewise.
30328 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
30329 (LIBGCC2_TF_CEXT): Likewise.
30330 (TF_SIZE): Likewise.
30331 (TARGET_INIT_LIBFUNCS): Likewise.
30333 * config/ia64/t-glibc (SHLINB_MAPFILES):
30334 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
30336 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
30338 * config/i386/i386.c (construct_container): Rewrite processing
30339 BLKmode with X86_64_SSE_CLASS.
30341 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
30344 * config/i386/i386.md: Replace simplify_replace_rtx with
30345 replace_rtx in the new peephole2.
30347 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
30349 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
30350 loop unrolling do not happen at -O2.
30352 2009-02-12 Michael Matz <matz@suse.de>
30354 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
30356 2009-02-12 Jakub Jelinek <jakub@redhat.com>
30358 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
30361 2009-02-12 Ben Elliston <bje@au.ibm.com>
30363 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
30364 patterns when updating the back chain. Missed in the 2009-02-10
30367 2009-02-11 Janis Johnson <janis187@us.ibm.com>
30369 * doc/extend.texi (Decimal Floating Types): Update identifier of
30370 draft TR and list of missing support.
30372 2009-02-11 Jakub Jelinek <jakub@redhat.com>
30374 PR middle-end/39154
30375 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
30376 bit to variable length decl's flags, add it also to its
30377 pointer replacement variable.
30379 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
30380 Jakub Jelinek <jakub@redhat.com>
30383 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
30384 (memory_blockage): New expander.
30385 (*memory_blockage): New insn pattern.
30386 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
30387 instead of general blockage at the end of function prologue when
30388 frame pointer is used to access red zone area. Do not emit blockage
30389 when profiling, it is emitted in generic code.
30390 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
30391 function epilogue when frame pointer is used to access red zone area.
30393 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
30396 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
30397 by arithmetic with memory operands.
30398 * config/i386/predicates.md (commutative_operator): New.
30400 2009-02-10 Janis Johnson <janis187@us.ibm.com>
30402 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
30405 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
30407 * alias.h (record_alias_subset): Declare.
30408 * alias.c (record_alias_subset): Make global.
30410 2009-02-10 Nick Clifton <nickc@redhat.com>
30412 * tree-parloops.c: Change license to GPLv3.
30413 * ipa-struct-reorg.c: Change license to GPLv3.
30414 * ipa-struct-reorg.h: Change license to GPLv3.
30416 2009-02-10 Steve Ellcey <sje@cup.hp.com>
30419 * c-decl.c (start_struct): Return NULL on error.
30421 2009-02-10 Jakub Jelinek <jakub@redhat.com>
30423 PR middle-end/39124
30424 * cfgloopmanip.c (remove_path): Call remove_bbs after
30425 cancel_loop_tree, not before it.
30428 * function.h (struct function): Add has_local_explicit_reg_vars bit.
30429 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
30430 VAR_DECLs were seen.
30431 * tree-ssa-live.c (remove_unused_locals): Recompute
30432 cfun->has_local_explicit_reg_vars.
30433 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
30434 copies or clearings if cfun->has_local_explicit_reg_vars.
30436 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
30439 * config/i386/i386.c (expand_prologue): Emit blockage at the end
30440 of function prologue when frame pointer is used to access
30443 2009-02-10 Richard Guenther <rguenther@suse.de>
30445 PR middle-end/39127
30446 * gimplify.c (gimple_regimplify_operands): Always look if
30447 we need to create a temporary.
30449 2009-02-10 Richard Guenther <rguenther@suse.de>
30451 PR tree-optimization/39132
30452 * tree-loop-distribution.c (todo): New global var.
30453 (generate_memset_zero): Trigger TODO_rebuild_alias.
30454 (tree_loop_distribution): Return todo.
30456 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
30459 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
30460 (x86_64_reg_class_name): Removed.
30461 (classify_argument): Return 0 if bytes > 32. Return 0 if the
30462 first one isn't X86_64_SSE_CLASS or any other ones aren't
30463 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
30464 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
30465 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
30466 and 3 X86_64_SSEUP_CLASS.
30467 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
30468 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
30470 2009-02-10 Ben Elliston <bje@au.ibm.com>
30472 * config/rs6000/rs6000.md (allocate_stack): Always use an update
30473 form instruction to update the stack back chain word, even if the
30474 user has disabled the generation of update instructions.
30475 (movdi_<mode>_update_stack): New.
30476 (movsi_update_stack): Likewise.
30477 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
30478 always use an update form instruction to update the stack back
30481 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
30483 PR middle-end/38953
30484 * graphite.c (if_region_set_false_region): After moving a region in
30485 the false branch of a condition, remove the empty dummy basic block.
30486 (gloog): Remove wrong fix for PR38953.
30488 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30490 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
30491 generation due to implicit sign extension.
30493 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
30495 PR middle-end/38981
30496 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
30497 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
30499 2009-02-09 Richard Guenther <rguenther@suse.de>
30501 PR middle-end/35202
30502 * convert.c (convert_to_real): Disable (float)fn((double)x)
30503 to fnf(x) conversion if errno differences may occur and
30504 -fmath-errno is set.
30506 2009-02-07 Anatoly Sokolov <aesok@post.ru>
30508 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
30509 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
30510 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
30512 2009-02-06 Joseph Myers <joseph@codesourcery.com>
30515 * c-common.c (handle_alias_attribute): Disallow attribute for
30516 anything not a FUNCTION_DECL or VAR_DECL.
30518 2009-02-06 Janis Johnson <janis187@us.ibm.com>
30521 * real.c (do_compare): Special-case compare of zero against
30522 decimal float value.
30524 2009-02-06 Joseph Myers <joseph@codesourcery.com>
30527 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
30528 as indicating flexible array members unless the field itself is
30529 being declarared as the incomplete array.
30531 2009-02-06 Jan Hubicka <jh@suse.cz>
30533 PR tree-optimization/38844
30534 * ipa-inline.c (try_inline): Stop inlining recursion when edge
30535 is already inlined.
30537 2009-02-06 Richard Guenther <rguenther@suse.de>
30539 PR middle-end/38977
30540 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
30541 fork because we may expand it as __gcov_fork.
30543 2009-02-06 Nick Clifton <nickc@redhat.com>
30545 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
30547 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
30549 PR tree-optimization/35659
30550 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
30551 vn_phi_eq): Shortcut if hashcode does not match.
30552 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
30554 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
30555 and avoid iterative_hash_expr.
30556 (FOR_EACH_VALUE_ID_IN_SET): New.
30557 (value_id_compare): Remove.
30558 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
30559 sort expressions by value id.
30561 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
30564 * config/sh/predicates.md (general_movsrc_operand): Don't check
30565 the subreg of system registers here.
30567 2009-02-05 Jakub Jelinek <jakub@redhat.com>
30570 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
30571 on the copied decl.
30573 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
30575 PR rtl-optimization/39110
30576 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
30577 addresses, not aligned ones.
30579 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
30580 Richard Guenther <rguenther@suse.de>
30582 PR tree-optimization/39100
30583 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
30584 comment says and add edges.
30586 2009-02-05 Joseph Myers <joseph@codesourcery.com>
30589 * c-common.c (handle_tls_model_attribute): Ignore attribute for
30590 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
30592 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
30594 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
30595 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
30596 register_bb_in_sese, new_sese, free_sese): Moved.
30597 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
30598 outermost_loop_in_scop, build_scop_iteration_domain,
30599 expand_scalar_variables_ssa_name, get_vdef_before_scop,
30600 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
30601 Use loop_in_sese_p instead of loop_in_scop_p.
30602 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
30603 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
30604 (scopdet_basic_block_info): Fix bug in scop detection.
30605 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
30606 eq_loop_to_cloog_loop): Remove.
30607 (nb_loops_around_loop_in_scop, nb_loop
30608 ref_nb_loops): Moved here...
30609 * graphite.h (ref_nb_loops): ... from here.
30610 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
30611 (loop_domain_dim, loop_iteration_vector_dim): Remove.
30612 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
30614 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
30615 Hans-Peter Nilsson <hp@axis.com>
30617 PR rtl-optimization/37889
30618 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
30619 Move offset handling from PLUS to before the switch. Use new
30620 arguments when considering SYMBOL_REFs too.
30621 (rtx_addr_can_trap_p): Pass dummy offset and size.
30622 (enum may_trap_p_flags): Remove.
30623 (may_trap_p_1): Pass size from MEM_SIZE.
30625 PR rtl-optimization/38921
30626 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
30627 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
30628 * rtlanal.c (may_trap_after_code_motion_p): Delete.
30629 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
30631 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
30633 AVX Programming Reference (January, 2009)
30634 * config/i386/sse.md (*vpclmulqdq): New.
30636 2009-02-04 Jakub Jelinek <jakub@redhat.com>
30638 PR tree-optimization/38977
30639 PR gcov-profile/38292
30640 * calls.c (special_function_p): Disregard __builtin_ prefix.
30642 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
30644 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
30645 non-indexable addresses even before reload.
30647 2009-02-03 Joseph Myers <joseph@codesourcery.com>
30650 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
30651 as having variable size. Do not give an error for unnamed
30652 parameters with [*] declarators. Give a warning for type names
30653 with [*] declarators and mark them as variable size.
30654 * c-parser.c (c_parser_sizeof_expression): Do not give an error
30655 for sizeof applied to [*] type names.
30657 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
30660 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
30662 2009-02-03 Jakub Jelinek <jakub@redhat.com>
30664 * gcc.c (process_command): Update copyright notice dates.
30665 * gcov.c (print_version): Likewise.
30666 * gcov-dump.c (print_version): Likewise.
30667 * mips-tfile.c (main): Likewise.
30668 * mips-tdump.c (main): Likewise.
30670 2009-02-03 Joseph Myers <joseph@codesourcery.com>
30673 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
30674 for composite type involving a zero-length array type.
30676 2009-02-03 Jakub Jelinek <jakub@redhat.com>
30679 * function.c (match_asm_constraints_1): Skip over
30680 initial optional % in the constraint.
30682 PR inline-asm/39059
30683 * c-parser.c (c_parser_postfix_expression): If fixed point is not
30684 supported, don't accept FIXED_CSTs.
30685 * c-decl.c (finish_declspecs): Error if fixed point is not supported
30686 and _Sat is used without _Fract/_Accum. Set specs->type to
30687 integer_type_node for cts_fract/cts_accum if fixed point is not
30690 2009-02-02 Catherine Moore <clm@codesourcery.com>
30692 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
30694 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
30696 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
30697 (ABI_HAS_64BIT_SYMBOLS): Use it.
30698 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
30700 2009-02-02 Paul Brook <paul@codesourcery.com>
30702 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
30704 2009-02-02 Jakub Jelinek <jakub@redhat.com>
30706 PR inline-asm/39058
30707 * recog.h (asm_operand_ok): Add constraints argument.
30708 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
30709 recurse on matching constraint.
30710 (check_asm_operands): Pass constraints as 3rd argument to
30711 asm_operand_ok. Don't look up matching constraint here.
30712 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
30715 2009-02-02 Ben Elliston <bje@au.ibm.com>
30717 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
30718 TARGET_NARROW_VOLATILE_BITFIELD macro names.
30720 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30722 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
30723 information. Remove some obsolete information. Reorganize.
30725 * config/pa/fptr.c: Revert license to GPL 2.
30726 * config/pa/milli64.S: Likewise.
30728 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
30731 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
30732 LIBRARY name in, instead of hard-coding it.
30733 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
30734 extra target make frag to tmake_files according to EH model.
30735 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
30736 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
30737 frags that define makefile variable EH_MODEL appropriately.
30738 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
30739 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
30740 to "-sjlj" according to type of EH configured.
30741 (LIBGCC_SONAME): Concatenate it to shared library base name.
30742 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
30743 to "_sjlj" according to type of EH configured.
30744 (LIBGCC_SONAME): Concatenate it to shared library base name.
30745 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
30746 (SHLIB_LINK): Add missing semicolon to if-else construct.
30747 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
30748 string value of "pe_dll" command-line option.
30749 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
30750 (SHLIB_SONAME): Use it when overriding t-cygming default.
30751 (SHLIB_IMPLIB): Override t-cygming default.
30752 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
30753 string value of "pe_dll" command-line option.
30755 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
30758 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
30759 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
30761 2009-01-31 Richard Guenther <rguenther@suse.de>
30763 PR tree-optimization/38937
30764 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
30765 computing the transitive closure.
30767 2009-01-30 Richard Guenther <rguenther@suse.de>
30769 PR tree-optimization/39041
30770 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
30771 Propagate variable indices only if the types match for this stmt.
30773 2009-01-30 Jakub Jelinek <jakub@redhat.com>
30776 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
30777 inline but never defined.
30779 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
30781 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
30782 (*insv_h_di_reg_extimm): New insn.
30783 (*insv_l<mode>_reg_extimm): New insn.
30785 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
30787 * config/picochip/picochip.c (flag_conserve_stack): set
30788 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
30789 fconserve-stack. Reduce call-overhead used by inliner.
30791 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
30794 * common.opt (flag_conserve_stack): Initialised to zero.
30796 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
30799 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
30800 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
30803 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
30805 * ira-color.c (allocno_reload_assign): Update comments.
30806 * regmove.c (regmove_optimize): Likewise.
30810 2009-01-29 Robert Millan <rmh@aybabtu.com>
30812 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
30813 * config/i386/kopensolaris-gnu.h: New file. Undefine
30814 `MD_UNWIND_SUPPORT'.
30815 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
30817 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
30819 PR tree-optimization/39007
30820 * tree-loop-distribution.c (generate_builtin): Use
30821 recompute_dominator to compute the immediate dominator of the
30822 basic block just after the loop.
30824 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30826 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
30827 (ASM_OUTPUT_DWARF_PCREL): Define.
30829 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
30831 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
30832 * doc/passes.texi: Remove entries about regclass, local-alloc, and
30833 global. Modify entries about regmove and IRA.
30835 * ra-conflict.c: Remove the file.
30837 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
30839 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
30840 (pass_regclass_init): Rename to pass_reginfo_init.
30842 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
30844 * toplev.h (flag_ira): Remove.
30846 * caller-save.c (setup_save_areas): Remove flag_ira.
30848 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
30850 * global.c: Remove the file.
30852 * opts.c (decode_options): Remove flag_ira.
30854 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
30856 * regmove.c: Modify file description.
30857 (find_use_as_address, try_auto_increment): Define them only if
30858 AUTO_INC_DEC is defined.
30859 (replacement_quality, replace_in_call_usage, fixup_match_1,
30860 stable_and_no_regs_but_for_p): Remove.
30861 (reg_set_in_bb): Make it static.
30862 (regmove_optimize): Remove flag_ira and code which worked for
30865 * local-alloc.c: Remove the file.
30867 * common.opt (fira): Remove.
30869 * ira.c: Include except.h.
30870 (eliminable_regset): Move from global.c.
30871 (mark_elimination): Ditto. Remove flag_ira.
30872 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
30873 equiv_mem_modified, validate_equiv_mem_from_store,
30874 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
30875 contains_replace_regs, memref_referenced_p, memref_used_between_p,
30876 no_equiv, recorded_label_ref): Move from local-alloc.c.
30877 (update_equiv_regs): Ditto. Make it static.
30878 (print_insn_chain, print_insn_chains): Move it from global.c.
30879 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
30880 (build_insn_chain): Ditto. Make it static.
30881 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
30882 Rename to init_live_subregs.
30883 (gate_ira): Remove flag_ira.
30885 * regclass.c: Rename reginfo.c. Change file description.
30886 (FORBIDDEN_INC_DEC_CLASSES): Remove.
30887 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
30888 (init_reg_sets_1): Remove code for evaluation of
30889 reg_class_superclasses and losing_caller_save_reg_set.
30890 (init_regs): Remove init_reg_autoinc.
30891 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
30892 ok_for_base_p_nonstrict): Remove.
30893 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
30894 (pass_regclass_init): Rename to pass_reginfo_init. Modify
30895 corresponding entries.
30896 (dump_regclass, record_operand_costs, scan_one_insn,
30897 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
30898 record_address_regs, auto_inc_dec_reg_p): Remove.
30899 (gt-regclass.h): Rename to gt-reginfo.h.
30901 * rtl.h (dump_global_regs, retry_global_alloc,
30902 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
30904 * Makefile.in (RA_H): Remove.
30905 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
30906 Rename regclass.o to reginfo.o.
30907 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
30909 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
30910 (GTFILES): Rename regclass.c to reginfo.c.
30912 * passes.c (init_optimization_passes): Remove pass_local_alloc and
30913 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
30915 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30916 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
30918 (finish_spills): Ditto. Remove code for !flag_ira.
30920 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
30922 PR middle-end/35854
30923 * doc/invoke.texi (rtl debug options): Complete rewrite.
30924 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
30926 * mode-switching.c (pass_mode_switching): Rename pass from
30927 "mode-sw" to "mode_sw".
30928 * except.c (pass_convert_to_eh_ranges): Rename pass from
30929 "eh-ranges" to "eh_ranges".
30930 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
30934 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
30935 Alexander Monakov <amonakov@ispras.ru>
30937 PR middle-end/38857
30938 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
30940 (move_exprs_to_boundary): Change return type and pass through
30941 should_move from move_op. Relax assert. Update usage ...
30942 (schedule_expr_on_boundary): ... here. Use should_move instead of
30944 (move_op_orig_expr_found): Indicate that insn was disconnected from
30946 (code_motion_process_successors): Do not call after_merge_succs
30947 callback if original expression was not found when traversing any of
30949 (code_motion_path_driver): Change return type. Update prototype.
30950 (move_op): Update comment. Add a new parameter (should_move). Update
30951 prototype. Set *should_move based on indication provided by
30952 move_op_orig_expr_found.
30954 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
30956 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
30957 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
30958 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
30959 * config/rs6000/rs6000.c (rs6000_override_options): Default
30960 avoid-indexed-addresses on for Power6, off for everything else.
30961 (avoiding_indexed_address_p): New function.
30962 (rs6000_legitimize_address): Use it.
30963 (rs6000_legitimate_address): Likewise.
30964 * config/rs6000/rs6000.md (movXX_updateX): Likewise
30966 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
30968 PR tree-optimization/38997
30969 * tree-loop-distribution.c (generate_memset_zero): Use
30970 POINTER_PLUS_EXPR for a pointer addition.
30972 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
30974 * config/s390/s390.md (bswap<mode>2): New pattern added.
30976 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
30978 * config/s390/s390.md (*tls_load_31): Added type attribute.
30980 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
30982 * config/s390/s390.md: Fix a few comments.
30984 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
30986 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
30987 (*tm<mode>_full): Fixed z10prop attribute.
30988 (*tst<mode>_extimm): Fixed z10prop attribute.
30989 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
30990 (*tstqiCCT_cconly): Fixed z10prop attribute.
30991 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
30992 (*movsi_larl): Fixed z10prop attribute.
30993 (*movsi_zarch): Fixed z10prop attribute.
30994 (*movsi_eas): Fixed z10prop attribute.
30995 (*movhi): Fixed z10prop attribute.
30996 (*movqi): Fixed z10prop attribute.
30997 (*movstrictqi): Fixed z10prop attribute.
30998 (*mov<mode>): Fixed z10prop attribute.
30999 (*movcc): Fixed z10prop attribute.
31000 (*sethighpartdi_64): Fixed z10prop attribute.
31001 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
31002 (*negdi2_sign_cc): Fixed z10prop attribute.
31003 (*negdi2_sign): Fixed z10prop attribute.
31004 (*absdi2_sign_cc): Fixed z10prop attribute.
31005 (*absdi2_sign): Fixed z10prop attribute.
31006 (*negabsdi2_sign_cc): Fixed z10prop attribute.
31007 (*negabsdi2_sign): Fixed z10prop attribute.
31008 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
31009 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
31010 (doloop_si64): Fixed z10prop attribute.
31011 (doloop_si31): Fixed z10prop attribute.
31012 (doloop_long): Fixed z10prop attribute.
31013 (indirect_jump): Fixed z10prop attribute.
31014 (nop): Fixed z10prop attribute.
31015 (main_base_64): Fixed z10prop attribute.
31016 (reload_base_64): Fixed z10prop attribute.
31018 2009-01-28 Jakub Jelinek <jakub@redhat.com>
31020 PR rtl-optimization/38740
31021 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
31023 * config/mips/mips.c (mips_reorg): Likewise.
31025 2009-01-28 Richard Guenther <rguenther@suse.de>
31027 PR tree-optimization/38926
31028 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
31029 with the correct value id to a value.
31030 (do_regular_insertion): Use the value number of edoubleprime
31031 for the value number of the expr.
31034 2008-08-21 Richard Guenther <rguenther@suse.de>
31036 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
31037 a PHI ask VN if it is already available.
31038 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
31039 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
31041 2009-01-28 Jakub Jelinek <jakub@redhat.com>
31043 PR middle-end/38934
31044 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
31045 set to varying whenever max has TREE_OVERFLOW set, similarly
31046 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
31048 2009-01-28 Richard Guenther <rguenther@suse.de>
31050 PR middle-end/38908
31051 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
31052 uninitialized aggregate uses in call arguments.
31054 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
31056 PR tree-optimization/38984
31057 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
31058 the nothing_id variable if -fno-delete-null-pointer-checks.
31060 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
31063 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
31064 (set_got_offset_rex64): Ditto.
31066 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
31069 * doc/extend.texi: Improve local variable with asm reg.
31071 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
31073 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
31074 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
31075 was not supplied then set warn_packed_bitfield_compat to the
31076 default value of 1.
31077 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
31080 2009-01-27 Richard Guenther <rguenther@suse.de>
31082 PR tree-optimization/38503
31083 * cfgexpand.c (expand_gimple_basic_block): Ignore
31084 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
31085 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
31086 variables that cannot have TBAA applied.
31087 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
31090 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
31092 PR middle-end/38969
31093 * calls.c (initialize_argument_information): Do not wrap complex
31094 arguments in SAVE_EXPR.
31096 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
31098 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
31099 (INSTALL_LIBGCC): Revert typo commit.
31101 2009-01-26 Richard Guenther <rguenther@suse.de>
31103 PR tree-optimization/38745
31104 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
31105 from special handling.
31107 2009-01-26 Richard Guenther <rguenther@suse.de>
31109 PR tree-optimization/38745
31110 * tree-ssa.c (execute_update_addresses_taken): Do not include
31111 variables that cannot possibly be a register in not_reg_needs.
31112 Do not clear TREE_ADDRESSABLE on vars that may not become
31114 * tree-ssa.c (update_alias_info_1): Include those in the set
31115 of addressable vars.
31117 2009-01-26 Richard Guenther <rguenther@suse.de>
31119 PR middle-end/38851
31120 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
31121 * tree-ssa-dse.c: Include langhooks.h
31122 (execute_simple_dse): Remove stores with zero size.
31124 2009-01-24 Jakub Jelinek <jakub@redhat.com>
31127 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
31130 2009-01-24 Julian Brown <julian@codesourcery.com>
31132 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
31133 config/arm/linux-atomic.c.
31134 * config/arm/linux-atomic.c: New.
31136 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
31138 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
31139 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
31140 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
31142 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
31145 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
31148 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
31150 PR tree-optimization/38953
31151 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
31152 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
31153 (gloog): Split the exit of the scop when the scop exit is a loop exit.
31154 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
31157 2009-01-24 Paul Brook <paul@codesourcery.com>
31159 * config/arm/neon.md (neon_type): Move to arm.md.
31160 (neon_mov<VSTRUCT>): Add neon_type attribute.
31161 * config/arm/arm.md (neon_type): Move to here.
31162 (conds): Add "unconditioal" and use as default for NEON insns.
31164 2009-01-24 Ben Elliston <bje@au.ibm.com>
31166 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
31167 void *' warning from -Wc++-compat.
31168 * Makefile.in (dominance.o-warn): Remove.
31170 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
31172 PR tree-optimization/38932
31173 * fold-const.c (fold_unary_ignore_overflow): New.
31174 * tree.h (fold_unary_ignore_overflow): Declare.
31175 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
31176 * tree-ssa-sccvn.c (visit_reference_op_load,
31177 simplify_unary_expression): Likewise.
31179 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
31181 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
31182 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
31183 regardless of their type.
31184 * c-common.c (handle_packed_attribute): Don't ignore packed on
31186 * c.opt (Wpacked-bitfield-compat): New warning option.
31187 * stor-layout.c (place_field): Warn if offset of a field changed.
31188 * doc/extend.texi (packed): Mention the ABI change.
31189 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
31190 (Warning Options): Add it to the list.
31192 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
31194 * c-opts.c (c_common_post_options): Fix a typo in comments.
31196 2009-01-22 Steve Ellcey <sje@cup.hp.com>
31198 PR middle-end/38615
31199 * gimplify.c (gimplify_init_constructor): Fix promotion of const
31200 variables to static.
31201 * doc/invoke.texi (-fmerge-all-constants): Update description.
31203 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
31206 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
31207 (*movdi_1_rex64): Use type "mmx" for alternative 5.
31209 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
31211 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
31213 (LOCAL_ALIGNMENT): Similarly.
31215 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
31216 Joseph Myers <joseph@codesourcery.com>
31218 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
31219 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
31220 * config/arm/arm-tune.md: Regenerate.
31221 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
31224 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
31226 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
31227 version number to five.
31229 2009-01-22 Dodji Seketeli <dodji@redhat.com>
31232 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
31233 * c-common.c (set_underlying_type): Likewise.
31234 (is_typedef_decl ): Likewise
31236 (set_underlying_type): Likewise.
31237 (is_typedef_type): Likewise.
31239 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
31241 PR middle-end/38587
31242 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
31245 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
31248 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
31249 (LIBGCC_SPEC): Don't define.
31250 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
31252 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
31254 PR rtl-optimization/38879
31255 * alias.c (base_alias_check): Unaligned access via AND address can
31256 alias all surrounding object types except those with sizes equal
31257 or wider than the size of unaligned access.
31259 2009-01-21 Dodji Seketeli <dodji@redhat.com>
31262 * c-decl.c (clone_underlying_type): Move this ...
31263 * c-common.c (set_underlying_type): ... here.
31264 Also, make sure the function properly sets TYPE_STUB_DECL() on
31265 the newly created typedef variant type.
31266 (is_typedef_decl ): New entry point.
31267 * tree.h: Added a new member member_types_needing_access_check to
31268 struct tree_decl_non_common.
31269 (set_underlying_type): New entry point.
31270 (is_typedef_type): Likewise.
31272 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
31274 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
31275 Check whether two instructions have memory references that
31276 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
31277 are helper functions for traversing.
31278 * alias.h (insn_alias_sets_confilict_p): New prototypes.
31279 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
31280 not to draw dependency edge for instructions with non-conflicting
31283 2009-01-20 Joseph Myers <joseph@codesourcery.com>
31286 * longlong.h: Update copyright years. Use soft-fp license notice.
31287 Sync __clz_tab declaration with glibc.
31289 2009-01-20 Steve Ellcey <sje@cup.hp.com>
31292 * doc/extend.texi (syscall_linkage): New.
31293 (version_id): Modify.
31295 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
31296 Richard Guenther <rguenther@suse.de>
31298 PR tree-optimization/38747
31299 PR tree-optimization/38748
31300 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
31301 conversion if the base address is an indirect reference and the
31302 aliasing sets could cause issues.
31304 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
31306 * common.opt (fgraphite, fgraphite-identity): Add comment for
31307 explaining why these options are not documented.
31309 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
31311 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
31312 gimple_call_lhs is NULL.
31314 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
31317 * emit-rtl.c (adjust_address_1): Make sure memref is never
31320 2009-01-20 Ben Elliston <bje@au.ibm.com>
31322 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
31323 const qualifier from arg parameter. Remove unnecessary cast to char *.
31324 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
31325 const qualifier from arg 2.
31327 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31329 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
31331 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
31334 * rtl.h (reinit_regs): New prototype.
31335 * regclass.c: Include ira.h.
31336 (reinit_regs): New.
31337 * Makefile.in (regclass.o): Add ira.h.
31338 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
31340 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
31343 * c-common.c (handle_aligned_attribute): Use
31344 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
31345 default alignment value.
31347 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
31349 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
31350 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
31352 * doc/extend.texi: Update __attribute__ ((aligned)). Document
31353 __BIGGEST_ALIGNMENT__.
31355 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
31357 2009-01-18 Richard Guenther <rguenther@suse.de>
31359 PR tree-optimization/38819
31360 * tree-flow.h (operation_could_trap_helper_p): Declare.
31361 * tree-eh.c (operation_could_trap_helper_p): Export.
31362 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
31363 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
31364 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
31365 are about to insert a possibly trapping instruction and fail
31368 2009-01-18 Andreas Schwab <schwab@suse.de>
31370 * doc/install.texi (Configuration): Remove obsolete paragraph
31371 about use of --with-gnu-ld with --with-gnu-as.
31373 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
31375 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
31376 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
31377 Follow spelling conventions.
31379 2009-01-18 Ben Elliston <bje@au.ibm.com>
31381 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
31382 C++ warning about implicit conversion from void * to struct
31384 (bitmap_obstack_free): Likewise for bitmap_element *.
31385 * Makefile.in (bitmap.o-warn): Remove.
31387 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
31389 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
31391 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
31392 Tobias Grosser <tobi.grosser@amd.com>
31394 * graphite.c (graphite_trans_scop_block): Do not block single
31397 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
31399 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
31400 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
31401 test with assertion.
31403 2009-01-16 Richard Guenther <rguenther@suse.de>
31405 PR tree-optimization/38835
31406 PR middle-end/36227
31407 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
31408 and INT + PTR -> (INT)(PTR p+ INT) folding.
31409 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
31411 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
31414 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
31415 the subreg from a lowpart subreg if it is also casting the value.
31417 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
31418 Tobias Grosser <tobi.grosser@amd.com>
31420 * graphite.c (compare_prefix_loops): New.
31421 (build_scop_canonical_schedules): Rewritten.
31422 (graphite_transform_loops): Move build_scop_canonical_schedules
31423 after build_scop_iteration_domain.
31425 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
31426 Tobias Grosser <tobi.grosser@amd.com>
31428 * graphite.c (add_conditions_to_domain): Add the loops to
31429 the dimension of the iteration domain. Do copy the domain
31430 only when it exists.
31431 (build_scop_conditions_1): Do not call add_conditions_to_domain.
31432 (add_conditions_to_constraints): New.
31433 (can_generate_code_stmt, can_generate_code): Removed.
31434 (gloog): Do not call can_generate_code.
31435 (graphite_transform_loops): Call add_conditions_to_constraints
31436 after building the iteration domain.
31438 2009-01-16 Jakub Jelinek <jakub@redhat.com>
31440 PR tree-optimization/38789
31441 * tree-ssa-threadedge.c
31442 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
31443 __builtin_constant_p.
31445 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
31447 * dce.c (delete_unmarked_insns): Reversed the order that insns are
31448 examined before deleting them.
31450 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
31452 * function.c (aggregate_value_p): Correctly extract the function
31453 type from CALL_EXPR_FN lookup.
31455 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
31457 * config/picochip/picochip.c (picochip_override_options): Revert
31458 CFI asm flag disable commited previously.
31460 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
31461 Tobias Grosser <tobi.grosser@amd.com>
31462 Jan Sjodin <jan.sjodin@amd.com>
31464 * graphite.c (scan_tree_for_params): On substractions negate
31465 all the coefficients of the term.
31466 (clast_to_gcc_expression_red): New. Handle reduction expressions
31467 of more than two operands.
31468 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
31469 (get_vdef_before_scop): Handle also the case of default definitions.
31471 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
31473 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
31474 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
31475 Also use them when walking CALL_INSN_FUNCTION_USAGE.
31477 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
31478 Joey Ye <joey.ye@intel.com>
31480 PR middle-end/37843
31481 * cfgexpand.c (expand_stack_alignment): Don't update stack
31482 boundary nor check incoming stack boundary here.
31483 (gimple_expand_cfg): Update stack boundary and check incoming
31484 stack boundary here.
31486 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
31488 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
31490 2009-01-14 Jakub Jelinek <jakub@redhat.com>
31492 PR rtl-optimization/38245
31493 * calls.c (expand_call): Add stack arguments to
31494 CALL_INSN_FUNCTION_USAGE even for pure calls (when
31495 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
31496 in regs and partially in memory or BLKmode arguments.
31497 (emit_library_call_value_1): Add stack arguments to
31498 CALL_INSN_FUNCTION_USAGE even for pure calls (when
31499 ACCUMULATE_OUTGOING_ARGS).
31500 * dce.c: Include tm_p.h.
31501 (find_call_stack_args): New function.
31502 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
31504 (mark_insn): Call find_call_stack_args for CALL_Ps.
31505 (prescan_insns_for_dce): Walk insns backwards in bb rather than
31506 forwards. Allocate and free arg_stores bitmap if needed, pass it
31507 down to deletable_insn_p, don't mark stores set in arg_stores
31508 bitmap, clear the bitmap at the beginning of each bb.
31509 * Makefile.in (dce.o): Depend on $(TM_P_H).
31511 2009-01-14 Michael Meissner <gnu@the-meissners.org>
31514 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
31515 to make sure the insn is a conditional test (bug 22599). Reformat a
31518 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
31520 PR middle-end/38431
31521 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
31522 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
31523 (gloog): Do not call cleanup_tree_cfg.
31524 (graphite_transform_loops): Call cleanup_tree_cfg after all
31525 scops have been code generated.
31527 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
31528 * doc/gty.texi (Invoking the garbage collector): Added new node
31529 and section documenting ggc_collect.
31531 2009-01-14 Richard Guenther <rguenther@suse.de>
31533 PR tree-optimization/38826
31534 PR middle-end/38477
31535 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
31536 initialization notes only if we actually emitted a warning.
31537 (intra_create_variable_infos): Add constraints for a result decl
31538 that is passed by hidden reference.
31539 (build_pred_graph): Mark all related variables non-direct on
31542 2009-01-14 Nick Clifton <nickc@redhat.com>
31544 * ira-conflicts.c: Include addresses.h for the definition of
31546 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
31547 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
31549 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
31552 * Makefile.in (ira-lives.o): Add except.h.
31554 * ira-lives.c: Include except.h.
31555 (process_bb_node_lives): Process can_throw_internal.
31557 2009-01-13 Jakub Jelinek <jakub@redhat.com>
31559 PR rtl-optimization/38774
31560 * combine.c (simplify_set): When undoing cc_use change, don't do
31561 PUT_CODE on the newly created comparison, but instead put back the
31564 2009-01-13 Joseph Myers <joseph@codesourcery.com>
31566 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
31567 values. Remove duplicate arm8 entry.
31569 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
31571 PR tree-optimization/38786
31572 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
31573 the SSA_NAME case of expand_scalar_variables_expr.
31574 Set the type of an expression to the type of its assign statement.
31575 (expand_scalar_variables_expr): Also gather the scalar computation
31576 used to index the memory access. Do not pass loop_p.
31577 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
31578 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
31579 the gimple_stmt_iterator where it inserts new code.
31580 Do not pass loop_p.
31581 (copy_bb_and_scalar_dependences): Do not pass loop_p.
31582 (translate_clast): Update call to copy_bb_and_scalar_dependences.
31584 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
31586 * graphite.h (debug_value): Removed.
31587 * graphite.c (debug_value): Removed.
31589 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
31591 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
31592 ldrd/strd with two 32-bit instructions.
31594 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
31596 * config/arm/arm.c (struct processors): Pass for speed down into
31597 cost helper functions.
31598 (const_ok_for_op): Handle COMPARE and inequality nodes.
31599 (arm_rtx_costs_1): Rewrite.
31600 (arm_size_rtx_costs): Update prototype.
31601 (arm_rtx_costs): Pass speed down to helper functions.
31602 (arm_slowmul_rtx_costs): Rework cost calculations.
31603 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
31604 (arm_9e_rtx_costs): Likewise.
31606 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
31608 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
31609 relocations of local symbols wider than UNITS_PER_WORD are not valid.
31610 (alpha_legitimize_address): Do not split local symbols wider than
31611 UNITS_PER_WORD into HIGH/LO_SUM parts.
31613 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
31616 * gcc.c (process_command): Replace call to execvp with calls
31617 to pex_one and exit.
31619 2009-01-03 Anatoly Sokolov <aesok@post.ru>
31622 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
31623 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
31624 variant for devices with 3-byte PC.
31625 (__tablejump_elpm__): New.
31627 2009-01-12 Jakub Jelinek <jakub@redhat.com>
31630 * c-parser.c (c_parser_postfix_expression): Allow `->' in
31631 offsetof member-designator, handle it as `[0].'.
31633 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31635 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
31636 function when not using named sections on targets with named sections
31637 if branch distance is less than 262132.
31639 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
31641 * combine.c (combine_instructions): Recompute
31642 optimize_this_for_speed_p for each BB in the main combine loop.
31644 2009-01-12 Tomas Bily <tbily@suse.cz>
31647 * tree-loop-distribution.c (prop_phis): New function.
31648 (generate_builtin): Call prop_phis.
31650 2009-01-12 Jakub Jelinek <jakub@redhat.com>
31652 PR tree-optimization/38807
31653 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
31654 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
31656 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
31658 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
31659 subreg of op0 to the original op0.
31661 2009-01-11 Laurent GUERBY <laurent@guerby.net>
31663 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
31665 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
31668 * mips-tfile.c (parse_def): Fix parsing of def strings
31669 starting with digits.
31671 2009-01-10 Jakub Jelinek <jakub@redhat.com>
31674 * config/arm/arm.c (arm_is_long_call_p): Don't call
31675 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
31677 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
31679 * regrename.c (regrename_optimize): Fix dumping.
31680 (find_oldest_value_reg): Preserve REG_POINTER.
31681 (copy_hardreg_forward_1): Likewise.
31683 2009-01-09 Diego Novillo <dnovillo@google.com>
31685 * gimple.h (struct gimple_statement_base) <uid>: Document
31686 the restrictions on its use.
31687 (gimple_uid): Tidy.
31688 (gimple_set_uid): Tidy.
31690 2009-01-09 Jakub Jelinek <jakub@redhat.com>
31692 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
31693 zero guard even if align_bytes != 0 and count is smaller than
31696 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
31698 PR rtl-optimization/38495
31699 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
31700 (add_range_and_copies_from_move_list): Print all added ranges.
31701 Add ranges to memory optimized destination.
31703 2009-01-09 Jakub Jelinek <jakub@redhat.com>
31707 * config/i386/i386.c (override_options): Reject
31708 -mstringop-strategy=rep_8byte with -m32.
31709 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
31710 to 1. Do count comparison against epilogue_size_needed at compile
31711 time even when count_exp was constant forced into register. For
31712 size_needed don't jump to epilogue, instead just avoid aligning
31713 and invoke the body algorithm. If need_zero_guard, add zero guard
31714 even if count is non-zero, but smaller than size_needed + number of
31715 bytes that could be stored for alignment.
31716 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
31717 to 1. If need_zero_guard, add zero guard even if count is non-zero,
31718 but smaller than size_needed + number of bytes that could be stored
31719 for alignment. Compare size_needed with epilogue_size_needed instead
31720 of desired_align - align, don't adjust size_needed, pass
31721 epilogue_size_needed to the epilogue expanders.
31724 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
31726 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31728 * pa.c (last_address): Change to unsigned.
31729 (update_total_code_bytes): Change argument to unsigned. Don't
31730 check if insn addresses are set.
31731 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
31732 addresses are not set.
31733 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
31735 2009-01-09 Nick Clifton <nickc@redhat.com>
31737 * config/sh/symbian.c: Replace uses of DECL_INLINE with
31738 DECL_DECLARED_INLINE_P.
31740 2009-01-09 Jakub Jelinek <jakub@redhat.com>
31742 PR middle-end/38347
31743 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
31744 GET_MODE (op0) in operand_subword_force calls.
31746 PR middle-end/38771
31747 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
31748 fold_convert arg0 operands to TREE_TYPE (op0) first.
31750 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
31752 * params.def (ira-max-conflict-table-size): Decrease default value
31755 2009-01-08 Jakub Jelinek <jakub@redhat.com>
31757 PR tree-optimization/37031
31758 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
31760 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
31761 allocate it using gc instead of heap, use VEC_quick_push instead of
31763 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
31764 instead of heap, use VEC_quick_push instead of VEC_safe_push.
31765 * tree-data-ref.h (struct access_matrix): Change matrix to gc
31766 allocated vector from heap allocated.
31767 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
31768 * tree-loop-linear.c (linear_transform_loops): Allocate nest
31769 vector only after perfect_loop_nest_depth call.
31771 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
31772 Jan Sjodin <jan.sjodin@amd.com>
31774 PR tree-optimization/38559
31775 * graphite.c (debug_value, copy_constraint,
31776 swap_constraint_variables, scale_constraint_variable, ): New.
31777 (get_lower_bound, get_upper_bound): Removed.
31778 (graphite_trans_bb_strip_mine): Clean up this code that works
31779 only for constant number of iterations. Fully copy upper and
31780 lower bound constraints, not only the constant part of them.
31781 * graphite.h (debug_value): Declared.
31783 2009-01-08 Ira Rosen <irar@il.ibm.com>
31785 PR tree-optimization/37194
31786 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
31787 Don't add the cost of cost model guard in prologue to scalar
31788 outside cost in case of known number of iterations.
31790 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
31791 Alan Modra <amodra@bigpond.net.au>
31793 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
31794 non-word-aligned REG+CONST addressing.
31796 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
31799 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
31800 free_after_compilation when outputting a thunk.
31801 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
31802 Do not call free_after_compilation here.
31804 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
31806 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
31807 (ix86_valid_target_attribute_inner_p): Ditto.
31809 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
31811 PR tree-optimization/38492
31812 PR tree-optimization/38498
31813 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
31814 * tree-chrec.h (scev_is_linear_expression): Declared.
31815 * graphite.c (graphite_cannot_represent_loop_niter): New.
31816 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
31817 (graphite_loop_normal_form): Use gcc_assert.
31818 (scan_tree_for_params): Use CASE_CONVERT.
31819 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
31820 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
31821 Use gcc_assert. Discard scops that contain unhandled cases.
31822 (build_scop_conditions): Return a boolean status for unhandled cases.
31823 (strip_mine_profitable_p): Print the loop number, not its depth.
31824 (is_interchange_valid): Pass the depth of the loop nest, don't
31825 recompute it wrongly.
31826 (graphite_trans_bb_block): Same.
31827 (graphite_trans_bb_block): Print tentative of loop blocking.
31828 (graphite_trans_scop_block): Do not print that the loop has been
31830 (graphite_transform_loops): Do not handle scops that contain condition
31833 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
31835 AVX Programming Reference (December, 2008)
31836 * config/i386/avxintrin.h (_mm256_stream_si256): New.
31837 (_mm256_stream_pd): Likewise.
31838 (_mm256_stream_ps): Likewise.
31840 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
31841 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
31842 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
31843 (bdesc_special_args): Add __builtin_ia32_movntdq256,
31844 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
31845 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
31846 (ix86_expand_special_args_builtin): Likewise.
31848 * config/i386/sse.md (AVXMODEDI): New.
31849 (avx_movnt<mode>): Likewise.
31850 (avx_movnt<mode>): Likewise.
31851 (<sse>_movnt<mode>): Remove AVX support.
31852 (sse2_movntv2di): Likewise.
31854 2009-01-07 Richard Guenther <rguenther@suse.de>
31856 PR middle-end/38751
31857 * fold-const.c (extract_muldiv): Remove obsolete comment.
31858 (fold_plusminus_mult_expr): Undo MINUS_EXPR
31859 to PLUS_EXPR canonicalization for the canonicalization.
31861 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
31863 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
31864 hosted cross-compilers generating less efficient code.
31866 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31868 * function.h (rtl_data): Add a dbr_scheduled_p field.
31869 * reorg.c (dbr_schedule): Set it.
31870 (gate_handle_delay_slots): Check it.
31871 * config/mips/mips.c (mips_base_delayed_branch): Delete.
31872 (mips_reorg): Check flag_delayed_branch instead of
31873 mips_base_delayed_branch.
31874 (mips_override_options): Don't set mips_base_delayed_branch
31875 or flag_delayed_branch.
31877 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
31879 PR rtl-optimization/38426.
31880 * ira.c (ira): Set current_function_is_leaf earlier.
31882 2009-01-06 Jakub Jelinek <jakub@redhat.com>
31884 PR rtl-optimization/38722
31885 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
31886 too early, only set a flag and modify after last possible
31889 2009-01-06 Janis Johnson <janis187@us.ibm.com>
31892 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
31893 * real.c (decimal_single_format): Correct values of emin and emax.
31894 (decimal_double_format): Ditto.
31895 (decimal_quad_format): Ditto.
31896 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
31897 computation of DECnn_MIN and DECnn_MAX for corrected values of
31898 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
31899 __DECnn_MIN__, and adjust its computation for the corrected value
31902 2009-01-06 Jan Hubicka <jh@suse.cz>
31905 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
31907 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
31909 * doc/contrib.texi (Contributors): Slightly adjust the end note.
31910 Add Robert Clark to the list of testers.
31912 2009-01-06 Jan Hubicka <jh@suse.cz>
31913 Kai Tietz <kai.tietz@onevision.com>
31915 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
31916 * config/i386/i386.c (ix86_expand_call): Add clobbers.
31918 2009-01-06 Jan Hubicka <jh@suse.cz>
31919 Kai Tietz <kai.tietz@onevision.com>
31921 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
31923 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
31924 (ix86_nsaved_regs): Count only general purpose regs.
31925 (ix86_nsaved_sseregs): New.
31926 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
31927 to 16 for w64; compute padding and size of sse reg save area.
31928 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
31929 general purpose regs.
31930 (ix86_emit_save_sse_regs_using_mov): New.
31931 (ix86_expand_prologue): Save SSE regs if needed.
31932 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
31933 (ix86_emit_restore_sse_regs_using_mov): New.
31934 (ix86_expand_epilogue): Save SSE regs if needed.
31936 2009-01-06 Jan Hubicka <jh@suse.cz>
31937 Kai Tietz <kai.tietz@onevision.com>
31939 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
31940 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
31941 functions when accumulate outgoing args is off.
31943 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
31946 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
31947 before using pseudos_have_intersected_live_ranges_p.
31949 * ira-int.h (ira_assert): Always define.
31951 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
31953 AVX Programming Reference (December, 2008)
31954 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
31955 (_mm256_permute2_pd): Likewise.
31956 (_mm_permute2_ps): Likewise.
31957 (_mm256_permute2_ps): Likewise.
31958 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
31959 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
31961 * config/i386/i386.c (ix86_builtins): Remove
31962 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
31963 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
31964 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
31965 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
31966 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
31967 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
31968 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
31969 __builtin_ia32_vpermil2ps256.
31970 (ix86_init_mmx_sse_builtins): Updated.
31971 (ix86_expand_args_builtin): Likewise.
31973 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31975 * pa.c (output_call): Relocate non-jump insns in the delay slot of
31976 long absolute calls when generating PA 2.0 code.
31978 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
31980 PR rtl-optimization/38583
31981 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
31983 * params.def (ira-max-conflict-table-size): New.
31985 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
31987 * ira.h (ira_conflicts_p): New external definition.
31989 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
31990 table. Report this. Return result of building.
31991 (ira_build_conflicts): Use ira_conflicts_p. Check result of
31992 building conflict table.
31994 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
31995 (ira_color): Use ira_conflicts_p.
31997 * global.c: Include ira.h.
31998 (pseudo_for_reload_consideration_p, build_insn_chain): Use
32001 * Makefile.in (global.o): Add ira.h.
32003 * ira-build.c (mark_all_loops_for_removal,
32004 propagate_some_info_from_allocno): New.
32005 (remove_unnecessary_allocnos): Call
32006 propagate_some_info_from_allocno.
32007 (remove_low_level_allocnos): New.
32008 (remove_unnecessary_regions): Add parameter. Call
32009 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
32010 parameter to remove_unnecessary_regions.
32011 (ira_build): Remove all regions but root if the conflict table was
32012 not built. Update conflict hard regs for allocnos crossing calls.
32014 * ira.c (ira_conflicts_p): New global.
32015 (ira): Define and use ira_conflicts_p.
32017 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
32018 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
32019 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
32021 2009-01-06 Ben Elliston <bje@au.ibm.com>
32023 * gengtype-lex.l (YY_NO_INPUT): Define.
32025 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
32028 * c-common.c (handle_vector_size_attribute): Also reject
32029 BOOLEAN_TYPE types.
32031 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
32033 PR tree-optimization/38492
32034 * graphite.c (rename_map_elt, debug_rename_elt,
32035 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
32036 rename_map_elt_info, eq_rename_map_elts,
32037 get_new_name_from_old_name, bb_in_sese_p): Moved around.
32038 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
32039 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
32040 (sese_build_livein_liveouts): New.
32041 (new_sese, free_sese): New.
32042 (new_scop): Call new_sese.
32043 (free_scop): Call free_sese.
32044 (rename_variables_from_edge, rename_phis_end_scop): Removed.
32045 (register_old_new_names): Renamed register_old_and_new_names.
32046 (register_scop_liveout_renames, add_loop_exit_phis,
32047 insert_loop_close_phis, struct igp,
32048 default_liveout_before_guard, add_guard_exit_phis,
32049 insert_guard_phis, copy_renames): New.
32050 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
32051 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
32052 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
32053 (scop_adjust_phis_for_liveouts): New.
32054 (gloog): Call scop_adjust_phis_for_liveouts.
32056 * graphite.h (struct sese): Documented. Added fields liveout,
32057 num_ver and livein.
32058 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
32059 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
32060 (struct scop): Added field liveout_renames.
32061 (SCOP_LIVEOUT_RENAMES): New.
32063 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
32065 PR tree-optimization/38510
32066 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
32067 (translate_clast): Call recompute_all_dominators before
32069 (gloog): Call recompute_all_dominators before graphite_verify.
32071 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
32072 Jan Sjodin <jan.sjodin@amd.com>
32074 PR tree-optimization/38500
32075 * graphite.c (create_sese_edges): Call fix_loop_structure after
32078 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
32080 * config.gcc: Add m32r*-*-rtems*.
32081 * config/m32r/rtems.h: New file.
32083 2009-01-05 Ben Elliston <bje@au.ibm.com>
32085 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
32086 (.po.pox): Likewise.
32087 (po/gcc.pot): Likewise.
32089 2009-01-04 David S. Miller <davem@davemloft.net>
32091 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
32092 (STARTING_FRAME_OFFSET): Always set to zero.
32094 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
32096 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
32097 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
32098 fixed-point types, and vectors of the same.
32100 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
32102 * config/mips/sync.md (*mb_barrier): Rename to...
32103 (*memory_barrier): ...this.
32105 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
32107 * doc/extend.texi (Function Attributes): Move @cindex after @item
32108 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
32109 and put in alphabetical order. Fix 'target' name and put in order.
32110 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
32113 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
32115 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
32116 (memory_barrier): Expand as unspec instead of unspec_volatile.
32117 Remove mem:BLK from insn operands. Use Pmode scratch register.
32118 (*memory_barrier): Define as unspec instead of unspec_volatile.
32119 Use (match_dup 0) as input operand.
32121 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
32122 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
32123 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
32124 scratch register. Remove operand 1.
32125 (*stbar): Define as unspec instead of unspec_volatile.
32126 Use (match_dup 0) as input operand, remove (const_int 8).
32127 (*membar): Define as unspec instead of unspec_volatile.
32128 Use (match_dup 0) as input operand, remove input operand 2.
32130 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
32131 (memory_barrier): Expand as unspec instead of unspec_volatile.
32132 Remove mem:BLK from insn operands. Use Pmode scratch register.
32133 (*memory_barrier): Define as unspec instead of unspec_volatile.
32134 Use (match_dup 0) as input operand.
32136 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
32137 Remove mem:BLK from insn operands. Use Pmode scratch register.
32138 Set volatile flag on operand 0.
32139 (*memory_barrier): New insn pattern.
32141 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
32143 (*memory_barrier): Use (match_dup 0) as input operand.
32145 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
32146 Remove mem:BLK from insn operands. Use Pmode scratch register.
32147 Set volatile flag on operand 0.
32148 (*mb_internal): New insn pattern.
32150 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
32152 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
32154 PR middle-end/38586
32155 * function.c (struct temp_slot): Move to the section of the file
32156 that deals with temp slots. Remove field 'address'.
32157 (temp_slot_address_table): New hash table of address -> temp slot.
32158 (struct temp_slot_address_entry): New struct, items for the table.
32159 (temp_slot_address_compute_hash, temp_slot_address_hash,
32160 temp_slot_address_eq, insert_temp_slot_address): Support functions
32162 (find_temp_slot_from_address): Rewrite to use the new hash table.
32163 (remove_unused_temp_slot_addresses): Remove addresses of temp
32164 slots that have been made available.
32165 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
32166 worker function for remove_unused_temp_slot_addresses.
32167 (assign_stack_temp_for_type): Don't clear the temp slot address list.
32168 Add the temp slot address to the address -> temp slot map.
32169 (update_temp_slot_address): Update via insert_temp_slot_address.
32170 (free_temp_slots): Call remove_unused_temp_slot_addresses.
32171 (pop_temp_slots): Likewise.
32172 (init_temp_slots): Allocate the address -> temp slot map, or empty
32173 the map if it is already allocated.
32174 (prepare_function_start): Initialize temp slot processing.
32176 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
32178 PR middle-end/38584
32179 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
32180 Calculate the size of all stack vars assuming no packing of stack
32181 vars will happen, replacing a quadratic algorithm with a linear one.
32183 2009-01-03 Jakub Jelinek <jakub@redhat.com>
32186 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
32189 2009-01-03 Diego Novillo <dnovillo@google.com>
32191 * doc/contrib.texi: Update contributions.
32193 2009-01-03 Jakub Jelinek <jakub@redhat.com>
32196 * builtins.c (fold_builtin_memory_op): Give up if either operand
32197 is volatile. Set srctype or desttype to non-qualified version
32201 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
32202 and FUNCTION_DECLs.
32204 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
32206 PR rtl-optimization/35805
32207 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
32208 problem if fast dce is able to remove any instructions.
32209 * dce.c (dce_process_block): Fix dump message.
32211 2009-01-02 Mark Mitchell <mark@codesourcery.com>
32214 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
32216 2009-01-02 Jakub Jelinek <jakub@redhat.com>
32218 PR middle-end/38690
32219 * tree-flow.h (op_code_prio, op_prio): New prototypes.
32220 * tree-pretty-print.c (op_code_prio): New function.
32221 (op_prio): No longer static. Use op_code_prio.
32222 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
32223 Use op_prio and op_code_prio to determine if () should be
32224 printed around operand(s) or not.
32226 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
32227 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
32228 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
32229 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
32230 pp_character instead of pp_string for single letter printing.
32232 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32234 * doc/extend.texi: Fix '#pragma GCC option' typo.
32236 2009-01-02 Richard Guenther <rguenther@suse.de>
32238 * doc/install.texi (--enable-checking): Mention different
32239 default for stage1.
32240 (--enable-stage1-checking): Document.
32242 2009-01-01 Andrew Pinski <pinskia@gmail.com>
32244 PR middle-end/30142
32245 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
32246 case to be an error.
32248 2009-01-02 Ben Elliston <bje@au.ibm.com>
32250 * config/fp-bit.h (pack_d): Constify argument.
32251 * config/fp-bit.c (makenan): Constify return type. Remove casts.
32252 (isnan): Constify argument.
32254 (iszero): Likewise.
32255 (pack_d): Likewise.
32256 (_fpadd_parts): Constify return type.
32257 (_fpmul_parts): Likewise.
32258 (_fpdiv_parts): Likewise.
32260 2009-01-01 Jakub Jelinek <jakub@redhat.com>
32263 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
32264 warn about overwriting initializer with side-effects or
32265 -Woverride-init if !IMPLICIT.
32266 (output_init_element): Likewise. Pass IMPLICIT down to
32268 (process_init_element): Add IMPLICIT argument. Pass it down
32269 to output_init_element.
32270 (push_init_element, pop_init_level, set_designator): Adjust
32271 process_init_element callers.
32272 (set_nonincremental_init, set_nonincremental_init_from_string):
32273 Adjust add_pending_init callers.
32274 (output_pending_init_elements): Adjust output_init_element callers.
32275 * c-tree.h (process_init_element): Adjust prototype.
32276 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
32277 process_init_element callers.
32280 Copyright (C) 2009 Free Software Foundation, Inc.
32282 Copying and distribution of this file, with or without modification,
32283 are permitted in any medium without royalty provided the copyright
32284 notice and this notice are preserved.