1 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (frndintxf2): Rename to ...
4 (rintxf2): ... this. Remove expander having same name.
5 (rintsf2, rintdf2): Implement using SSEMODEF macro.
6 (roundsf2, rounddf2): Ditto.
7 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
8 (lround<mode>di2, lround<mode>si2): Ditto.
10 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
12 * lower-subreg.c: Include except.h.
13 (decompose_multiword_subregs): Verify that the only control flow
14 insns we can split are loads to multi-words pseudos.
15 Handle breaking such blocks after splitting, instead of calling
16 find_many_sub_basic_blocks.
18 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
19 on the new basic block. Add a lengthy comment explaining why we
20 thought this was necessary.
21 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
23 2007-03-10 Mark Mitchell <mark@codesourcery.com>
26 * tree.c (walk_type_fields): Recurse into the element type of
27 ARRAY_TYPEs if there is a pointer set.
29 2007-03-10 Dirk Mueller <dmueller@suse.de>
31 * c-common.c (warn_logical_operator): Fix condition.
33 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
35 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
37 * config/darwin.c (machopic_select_section): Remove superfluous
38 argument in call to categorize_decl_for_section. Remove unused
41 2007-03-10 Joseph Myers <joseph@codesourcery.com>
43 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
45 * configure: Regenerate.
47 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
50 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
51 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
52 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
53 Add LABEL_NUSES to emitted label.
54 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
55 branch probability value to emitted jump insn.
56 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
57 Do not check life information and do not re-arrange input operands
58 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
60 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
62 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
63 the change of decode_asm_operands.
65 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
67 * mode-switching.c (create_pre_exit): Skip blockage insn.
69 2007-03-09 Diego Novillo <dnovillo@redhat.com>
71 * tree-pass.h (TODO_update_smt_usage): Remove.
73 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
77 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
79 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
80 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
81 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
84 2007-03-09 Geoffrey Keating <geoffk@apple.com>
86 * gcc.c: Document %{, in big comment at top.
87 (input_suffix_matches): Remove special handling for .s and
89 (input_spec_matches): New.
90 (handle_braces): Handle %{,.
91 (validate_switches): ',' indicates a value which is not a switch.
92 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
93 to detect assembler input.
94 * config/i386/sol2.h (CPP_SPEC): Likewise.
95 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
96 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
97 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
98 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
99 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
100 -m64 causes deployment target to default to 10.5.
101 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
103 2007-03-09 Richard Henderson <rth@redhat.com>
106 * target.h (targetm.asm.out.reloc_rw_mask): New.
107 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
108 (TARGET_ASM_OUT): Use it.
109 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
110 * varasm.c (categorize_decl_for_section): Remove shlib argument;
111 use the new reloc_rw_mask target hook instead.
112 (default_section_type_flags_1): Merge into...
113 (default_section_type_flags): ... here.
114 (decl_readonly_section_1): Merge into...
115 (decl_readonly_section): ... here.
116 (default_elf_select_section_1): Merge into...
117 (default_elf_select_section): ... here.
118 (default_unique_section_1): Merge into...
119 (default_unique_section): ... here.
120 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
121 (default_select_rtx_section): Use it.
122 (default_elf_select_rtx_section): Likewise.
123 * output.h: Update to match.
124 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
125 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
126 (TARGET_ASM_RELOC_RW_MASK): New.
127 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
128 to categorize_decl_for_section.
129 (x86_64_elf_unique_section): Likewise.
130 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
131 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
132 (TARGET_ASM_RELOC_RW_MASK): New.
133 * config/ia64/ia64.c (ia64_rwreloc_select_section,
134 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
135 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
136 (TARGET_RWRELOC): Remove.
137 (ia64_section_type_flags): Adjust call to default_section_type_flags.
138 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
139 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
140 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
141 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
142 (rs6000_xcoff_select_section): Use decl_readonly_section.
143 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
144 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
145 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
146 (TARGET_SECTION_TYPE_FLAGS): Remove.
147 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
149 2007-03-09 Roger Sayle <roger@eyesopen.com>
151 * fold-const.c (fold_comparison): Remove compile-time evaluation of
152 complex constant equality/inequality comparisons for here.
153 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
154 known at compile-time or can be simplified to a scalar comparison.
155 (fold_relational_const): Move compile-time evaluation of complex
156 constant equality/inequality comparisons to here.
158 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
160 PR rtl-optimization/30643
161 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
163 (fold_rtx): Recurse, like before 2006-11-03.
165 2007-03-09 DJ Delorie <dj@redhat.com>
167 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
170 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
172 PR tree-optimization/30375
173 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
174 LHS of statements is not the same.
175 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
177 2007-03-09 Chao-ying Fu <fu@mips.com>
179 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
181 * doc/invoke.texi (-mdspr2): Document new option.
182 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
183 New unspec for DSP REV 2.
184 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
185 these instructions are extended in DSP REV 2.
186 (mips-dspr2.md): Include.
187 * config/mips/mips.opt (mdspr2): New option.
188 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
189 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
190 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
191 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
192 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
193 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
194 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
196 (bdesc_map): Add one field of unsupported_target_flags.
197 (bdesc_arrays): Update entries to have extra fields. Add
199 (mips_init_builtins): Initialize new function types.
200 Check unsupported_target_fileds to filter out builtins.
201 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
203 (ASM_SPEC): Pass mdspr2 to the assembler.
204 * config/mips/mips-dspr2.md: New file.
206 2007-03-09 Sa Liu <saliu@de.ibm.com>
208 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
210 2007-03-09 Ian Lance Taylor <iant@google.com>
212 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
213 argument) like -Wstrict-overflow=2.
214 * doc/invoke.texi (Warning Options): Update documentation.
216 2007-03-09 Dirk Mueller <dmueller@suse.de>
219 * doc/invoke.texi (-Wlogical-op): Document.
220 * common.opt (-Wlogical-op): New.
221 * c-common.h (warn_logical_operator): Declare.
222 * c-common.c (warn_logical_operator): Define.
223 * c-typeck.c (parser_build_binary_op): Call
224 warn_logical_operator.
226 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
228 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
229 * final.c (final_scan_insn): Test for non-"" file name.
231 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
233 * doc/loop.texi: Document the Omega linear constraints solver.
234 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
235 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
236 omega-hash-table-size, omega-max-keys, and
237 omega-eliminate-redundant-constraints.
238 * tree-pass.h (pass_check_data_deps): Declared.
241 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
242 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
243 pass_check_data_deps): New.
244 * tree-data-ref.c (init_data_ref): Remove declaration.
245 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
246 (analyze_array): Renamed init_array_ref, move up initializations.
247 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
248 Removed arguments that are set to NULL.
249 (analyze_indirect_ref): Correct indentation, correct call to
251 (object_analysis): Call init_array_ref instead of analyze_array.
252 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
253 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
254 of DR_ACCESS_FNS_ADDR.
255 (init_omega_eq_with_af, omega_extract_distance_vectors,
256 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
257 ddr_consistent_p): New.
258 (compute_affine_dependence): Check consistency of ddrs when
259 flag_check_data_deps is passed.
260 (analyze_all_data_dependences): Uncomment.
261 (tree_check_data_deps): New.
262 * tree-data-ref.h: Include omega.h.
263 (DR_ACCESS_FNS_ADDR): Removed.
264 (data_dependence_relation): Add inner_loop.
265 (DDR_INNER_LOOP): New.
266 * common.opt (fcheck-data-deps): New.
267 * tree-flow.h (tree_check_data_deps): Declare.
268 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
269 (OBJS-common): Depend on omega.o.
271 * passes.c (pass_check_data_deps): Scheduled.
272 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
273 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
274 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
275 PARAM_VECT_MAX_VERSION_CHECKS,
276 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
278 2007-03-09 Richard Guenther <rguenther@suse.de>
280 PR tree-optimization/30904
282 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
283 the same way as *_DIV_EXPR.
285 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
287 * recog.c (decode_asm_operands): No mixed declarations and code.
289 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
291 * rtl.def (ASM_INPUT): Add location.
292 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
293 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
294 (decode_asm_operands): Add loc operand.
295 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
296 * stmt.c (expand_asm): Rename to...
297 (expand_asm_loc): ... this. Add locus argument. Pass it on to
298 gen_rtx_ASM_INPUT_loc.
299 (expand_asm_expr): Adjust.
300 * recog.c (decode_asm_operands): Add loc operand.
301 (check_asm_operands, extract_insn): Adjust.
302 * reload1.c (maybe_fix_stack_asms): Likewise.
303 * final.c (asm_insn_count): Likewise.
304 (final_scan_insn): Output # line before and after asm.
306 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
308 * tree-ssa-structalias.c (variable_info): Remove
310 (new_var_info): Ditto.
311 (shared_bitmap_info_t): New structure.
312 (shared_bitmap_table): New variable.
313 (shared_bitmap_hash): New function.
314 (shared_bitmap_eq): Ditto
315 (shared_bitmap_lookup): Ditto.
316 (shared_bitmap_add): Ditto.
317 (merge_smts_into): Change to take bitmap directly.
318 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
319 (init_alias_vars): Init shared bitmap hashtable.
320 (delete_points_to_sets): Delete shared bitmap hashtable.
321 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
322 is_aliased removal as a change that was still necessary was
325 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
327 * config/i386/i386.h (override_options): Conditionally disable
328 x86_sahf for 64bit targets only.
330 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
333 * c-decl.c (merge_decls): Don't call make_var_volatile.
334 * varasm.c (make_var_volatile): Remove.
335 * output.h (make_var_volatile): Remove.
337 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
339 PR tree-optimization/31085
340 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
342 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
344 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
345 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
346 ATTR_CONST_NOTHROW_LIST.
348 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
351 2007-03-08 Diego Novillo <dnovillo@redhat.com>
353 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
355 2007-03-08 Geoffrey Keating <geoffk@apple.com>
358 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
360 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
361 passed, use shared libgcc.
363 2007-03-08 Roger Sayle <roger@eyesopen.com>
365 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
366 instead of calling build2 with a GIMPLE_MODIFY_STMT.
367 (honor_protect_cleanup_actions, lower_try_finally_switch):
369 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
370 ifc_temp_var): Likewise.
371 * tree-inline.c (setup_one_parameter): Likewise.
372 * tree-mudflap.c (mf_decl_cache_locals,
373 mf_build_check_statement_for): Likewise.
374 * tree-nested.c (init_tmp_var, save_tmp_var,
375 finalize_nesting_tree_1): Likewise.
376 * tree-outof-ssa.c (insert_copy_on_edge,
377 insert_backedge_copies): Likewise.
378 * tree-profile.c (tree_gen_edge_profiler,
379 tree_gen_ic_profiler): Likewise.
380 * tree-scalar-evolution.c (scev_const_prop): Likewise.
381 * tree-sra.c (sra_build_assignment): Likewise.
382 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
383 * tree-ssa-math-opts.c (insert_reciprocals,
384 execute_cse_sincos_1): Likewise.
385 * tree-tailcall.c (adjust_accumulator_values,
386 adjust_return_value): Likewise.
387 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
388 * tree-vect-transform.c (vect_create_data_ref_ptr,
389 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
390 vect_create_epilog_for_reduction, vectorizable_reduction,
391 vectorizable_call, vectorizable_conversion,
392 vectorizable_assignment, vectorizable_operation,
393 vectorizable_type_demotion, vect_gen_widened_results_half,
394 vect_permute_store_chain, vectorizable_store,
395 vect_setup_realignment, vect_permute_load_chain,
396 vectorizable_load, vectorizable_condition,
397 vect_create_cond_for_align_checks): Likewise.
398 * tree-vrp.c (build_assert_expr_for): Likewise.
400 2007-03-08 Ian Lance Taylor <iant@google.com>
402 * tree-vrp.c: Include "intl.h".
403 (usable_range_p): New static function.
404 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
405 overflowed values, juts set *strict_overflow_p.
406 (compare_values): Only return -2 if one of the operands is not a
408 (compare_ranges): Call usable_range_p.
409 (compare_range_with_value): Likewise.
410 (vrp_evaluate_conditional_warnv): Rename from
411 vrp_evaluate_conditional. Make static. Change all callers.
412 (vrp_evaluate_conditional): New function.
413 (simplify_div_or_mod_using_ranges): Issue warning about reliance
415 (simplify_abs_using_ranges): Likewise.
416 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
417 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
418 within_stmt parameter.
419 * tree-ssa-propagate.c (fold_predicate_in): Update call to
420 vrp_evaluate_conditional.
421 * tree-ssa-threadedge.c
422 (record_temporary_equivalences_from_stmts_at_dest): Change
423 simplify parameter to take a second tree parameter.
424 (simplify_control_stmt_condition): Likewise.
425 (thread_across_edge): Likewise.
426 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
427 (thread_across_edge): Likewise.
428 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
430 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
432 * config/i386/i386.h (TARGET_SAHF): New define.
433 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
434 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
435 (x86_sahf): New global variable.
436 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
437 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
438 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
439 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
441 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
442 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
443 when expanding fcomi/sahf based tests.
444 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
445 expanding sahf based alternative. Emit sahf based sequence when
446 optimizing for code size.
447 * config/i386/i386.md (x86_sahf_1): Do not disable for
448 TARGET_64BIT, enable for TARGET_SAHF.
450 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
452 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
453 spurious whitespace from error message.
455 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
458 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
460 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
462 * c-decl.c (grokdeclarator): Disable warnings for anonymous
464 * tree-sra.c (instantiate_element): Propagate disabled warnings
465 from the element itself to the created variable.
467 2007-03-07 Richard Henderson <rth@redhat.com>
470 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
471 silently fix up the stack in the case of a missing register.
473 2007-03-07 Paul Brook <paul@codesourcery.com>
475 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
477 2007-03-07 Joseph Myers <joseph@codesourcery.com>
479 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
481 (phase1_vrs): Use them.
482 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
483 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
484 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
485 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
486 __gnu_Unwind_Restore_WMMXC if required.
487 (_Unwind_VRS_Pop): Implement iWMMXt support.
488 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
489 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
490 gnu_Unwind_Save_WMMXC): Define.
492 2007-03-07 Richard Sandiford <richard@codesourcery.com>
494 * config/vxworks.h (vxworks_override_options): Declare.
495 (VXWORKS_OVERRIDE_OPTIONS): Use it.
496 * config/vxworks.c: Include target.h and toplev.h.
497 (vxworks_override_options): New function.
498 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
500 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
502 * config/s390/s390.c (override_options): Don't emit an error when
503 -mstack-size is used without providing -mstack-guard.
504 (s390_emit_prologue): Choose stack_guard value automatically if not
505 provided via command line.
506 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
508 2007-03-07 Richard Sandiford <richard@codesourcery.com>
510 * config/i386/i386.c (output_set_got): Add a GOT initialization
511 sequence for VxWorks PIC.
512 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
513 around labels as well as symbols. Use gotoff_operand instead
514 of local_symbolic_operand.
515 (legitimize_pic_address): Use gotoff_operand instead of
516 local_symbolic_operand. Use @GOT accesses for labels as
518 (ix86_output_addr_diff_elt): Use PC-relative rather than
519 GP-relative offsets for VxWorks PIC.
520 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
521 no_new_pseudos. Check whether the returned register is op0.
522 * config/i386/i386.md (tablejump): Use PC-relative rather than
523 GP-relative offsets for VxWorks PIC.
524 * config/i386/predicates.md (gotoff_operand): New predicate.
526 2007-03-06 Richard Sandiford <richard@codesourcery.com>
528 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
530 * config/vxworks-dummy.h: New file.
531 * config/i386/i386.h: Include it.
533 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
535 * dwarf2out.c (is_inlined_entry_point): New
536 (add_high_low_attributes): Emit DW_AT_entry_pc along with
537 DW_AT_ranges if the first subblock is the entry point.
539 2007-03-06 David Daney <ddaney@avtrex.com>
541 * doc/install.texi (mips-*-*): Change recommended binutils
544 2007-03-06 Anatoly Sokolov <aesok@post.ru>
546 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
547 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
549 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
550 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
552 2007-03-06 Jan Hubicka <jh@suse.cz>
554 * errors.h (warning, error, fatal, internal_error): Mark as cold.
555 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
557 (probably_cold_bb_p): Cold functions are cold.
558 (probably_never_executed_bb_p): Cold functions are cold.
559 (tree_bb_level_predictions): Predict calls to cold functions as not
561 (compute_function_frequency): Check hot/cold attributes.
562 * function.h (function_frequency): Update comments.
563 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
564 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
565 (c_common_att): Add cold and hot.
567 * doc/extend.texi (hot,cold attributes): Document.
569 2007-03-06 Andrew Haley <aph@redhat.com>
571 * function.c (expand_function_end): Move blockage to just after we
572 emit the label for the naked return from the function.
574 2007-03-06 Richard Sandiford <richard@codesourcery.com>
576 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
579 2007-03-06 Jan Hubicka <jh@suse.cz>
581 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
582 loaded for constant large models. Non-large 64bit PIC can do.
583 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
584 * cmodel.h: Add LARGE PIC.
585 * i386.md (UNSPEC_PLTOFF): New.
586 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
588 (*call_1_rex64): Disable for large models.
589 (*call_1_rex64_large): New.
590 (*call_value_1_rex64): Disable for large models.
591 (*call_value_1_rex64_large): New.
593 (set_got_offset_rex64): New.
594 * predicates.md (constant_call_address_operand): For large model
595 constant calls are not possible.
596 * i386-protos.h (construct_plt_address): Declare.
597 * i386.c (override_options): Accept large models.
598 (ix86_expand_prologue): Expand large PIC GOT pointer load.
599 (legitimate_constant_p): Add new UNSPECs.
600 (legitimate_pic_operand_p): Likewise.
601 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
602 (legitimize_pic_address): Do easy RIP relative way for TLS only for
604 (output_pic_addr_const): Add PLTOFF.
605 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
606 (ix86_expand_move): Legitimize pic address when in PIC mode.
607 (construct_plt_address): New function.
608 (ix86_expand_call): Offload the address to register and use GOT pointer
610 * invoke.texi (mcmodel=large): Update documentation.
612 2007-03-06 Richard Henderson <rth@redhat.com>
614 * config/i386/i386.c (x86_use_leave, x86_push_memory,
615 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
616 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
617 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
618 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
619 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
620 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
621 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
622 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
623 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
624 x86_partial_reg_dependency, x86_memory_mismatch_stall,
625 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
626 x86_sse_partial_reg_dependency, x86_sse_split_regs,
627 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
628 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
629 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
630 x86_schedule, x86_use_bt, x86_pad_returns,
631 x86_use_xchgb): Merge into ...
632 (ix86_tune_features): ... here. New array.
633 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
634 x86_bswap): Merge into ...
635 (ix86_arch_features): ... here. New array.
636 (x86_3dnow_a): Remove.
637 (x86_accumulate_outgoing_args): Make static.
638 (x86_arch_always_fancy_math_387): Make static.
639 (ix86_tune_mask, ix86_arch_mask): Move ...
640 (override_options): ... to local variables here. Apply the
641 appropriate mask to each element of ix86_arch_features and
642 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
643 as were done in the old macros.
644 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
645 * config/i386/i386.h (x86_use_leave, x86_push_memory,
646 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
647 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
648 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
649 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
650 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
651 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
652 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
653 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
654 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
655 x86_partial_reg_dependency, x86_memory_mismatch_stall,
656 x86_accumulate_outgoing_args, x86_prologue_using_move,
657 x86_epilogue_using_move, x86_decompose_lea,
658 x86_arch_always_fancy_math_387, x86_shift1,
659 x86_sse_partial_reg_dependency, x86_sse_split_regs,
660 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
661 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
662 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
663 x86_use_incdec, x86_pad_returns, x86_bswap,
664 x86_partial_flag_reg_stall): Remove.
665 (enum ix86_tune_indices): New.
666 (ix86_tune_features): New.
667 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
668 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
669 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
670 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
671 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
672 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
673 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
674 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
675 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
676 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
677 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
678 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
679 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
680 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
681 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
682 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
683 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
684 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
685 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
686 TARGET_EXT_80387_CONSTANTS): Use it.
687 (enum ix86_arch_indices): New.
688 (ix86_arch_features): New.
689 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
690 TARGET_BSWAP): Use it.
691 (ix86_tune_mask, ix86_arch_mask): Remove.
693 2007-03-06 Joseph Myers <joseph@codesourcery.com>
696 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
697 Define using $${sysroot_headers_suffix}.
698 * configure: Regenerate.
699 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
700 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
702 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
703 * gcc.c (print_sysroot_headers_suffix): New.
704 (option_map): Include --print-sysroot-headers-suffix.
705 (display_help): Mention -print-sysroot-headers-suffix.
706 (process_command): Handle -print-sysroot-headers-suffix.
707 (do_spec_1): Append multilib directory to include-fixed path if
708 sysroot suffixes in use.
709 (main): Handle -print-sysroot-headers-suffix.
710 * Makefile.in (start.encap): Don't depend on xlimits.h
712 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
713 limits.h for each multilib in fixinc_list.
714 (fixinc_list, s-fixinc_list): New.
715 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
716 generate them for each multilib in fixinc_list.
717 (stmp-fixproto): Use include-fixed. Run fixproto for each
718 multilib in fixinc_list.
719 (mostlyclean): Don't remove xlimits.h.
720 (clean): Remove include-fixed.
721 (real-install-headers-tar, real-install-headers-cpio,
722 real-install-headers-cp): Don't copy include, only include-fixed.
723 (install-mkheaders): Depend on fixinc_list. Don't depend on
724 xlimits.h. Save limits.h files for each multilib in fixinc_list.
725 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
726 SYSTEM_HEADER_DIR setting in mkheaders.conf.
728 2007-03-06 Jan Hubicka <jh@suse.cz>
730 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
733 2007-03-06 Richard Sandiford <richard@codesourcery.com>
735 * configure.ac: Allow tm_file to contain build-directory files.
736 * configure: Regenerate.
737 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
738 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
739 * config/m68k/print-sysroot-suffix.sh: New file.
741 2007-03-06 Richard Sandiford <richard@codesourcery.com>
743 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
744 of pic_offset_table_rtx if reload_completed.
745 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
746 PIC_OFFSET_TABLE_REGNUM.
747 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
749 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
750 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
752 2007-03-06 Richard Sandiford <richard@codesourcery.com>
754 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
755 functions that call eh_return.
757 2007-03-06 Richard Sandiford <richard@codesourcery.com>
759 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
760 functions that need a constant pool.
762 2007-03-06 Richard Sandiford <richard@codesourcery.com>
765 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
766 (m68k_preferred_reload_class): Likewise.
767 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
768 (SECONDARY_RELOAD_CLASS): Define.
769 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
770 (LIMIT_RELOAD_CLASS): Delete.
771 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
772 registers from storing bytes.
773 (m68k_secondary_reload_class): New function.
774 (m68k_preferred_reload_class): Likewise.
776 2007-03-06 Richard Sandiford <richard@codesourcery.com>
778 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
780 (m68k_expand_prologue): Likewise.
782 2007-03-06 Richard Sandiford <richard@codesourcery.com>
784 * config/m68k/m68k-protos.h (output_sibcall): Declare.
785 (mips_expand_epilogue): Add a bool parameter.
786 (m68k_legitimize_sibcall_address): Declare.
787 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
788 (m68k_expand_epilogue): Add a parameter to select between sibling
789 and normal epilogues. Only generate a return for the latter.
790 (m68k_ok_for_sibcall_p): New function.
791 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
792 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
793 (sibcall_value, *sibcall_value): Likewise.
794 (*call, *call_value): Require !SIBLING_CALL_P.
795 (epilogue): Update call to m68k_expand_epilogue.
796 (sibcall_epilogue): New pattern.
797 * config/m68k/predicates.md (const_call_operand): Say that this
798 predicate applies to sibling calls too.
799 (sibcall_operand): New predicate.
801 2007-03-06 Richard Sandiford <richard@codesourcery.com>
803 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
804 alternatives as movsi_cf.
805 (movsf_cf_hard): Add commentary.
807 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
808 Richard Sandiford <richard@codesourcery.com>
810 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
811 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
812 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
813 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
814 as being live on exit from an interrupt function.
815 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
816 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
817 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
818 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
819 (m68k_interrupt_function_p): Globalize.
820 (m68k_compute_frame_layout): Remove reverse mask code.
821 (m68k_emit_movem, m68k_set_frame_related): New functions.
822 (m68k_output_function_prologue): Delete in favor of...
823 (m68k_expand_prologue): ...this new function.
824 (m68k_output_function_epilogue): Delete in favor of...
825 (m68k_expand_epilogue): ...this new function.
826 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
828 (print_operand): Handle %?.
829 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
830 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
831 (prologue, epilogue): New patterns.
832 (return): Turn into a define_expand.
833 (*return): New pattern, derived from old "return" pattern. Use rte
834 rather than rts for interrupt functions. Only use rtd if the pop
836 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
837 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
838 (link, *link, unlink, *unlink, load_got): Likewise.
840 2007-03-06 Richard Sandiford <richard@codesourcery.com>
844 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
845 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
846 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
847 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
848 and m68k_matches_u_p.
849 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
850 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
851 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
852 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
853 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
854 (REG_STRICT_P): New macro.
855 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
856 PCREL_GENERAL_OPERAND_OK.
857 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
858 m68k_legitimate_base_reg_p.
859 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
860 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
861 (PIC_CASE_VECTOR_ADDRESS): Update comment.
862 * config/m68k/m68k.c (m68k_address): New structure.
863 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
864 (m68k_decompose_index, m68k_legitimate_constant_address_p)
865 (m68k_jump_table_ref_p, m68k_decompose_address)
866 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
867 (m68k_matches_u_p): New functions.
868 (print_operand_address): Rewrite to use m68k_decompose_index.
870 2007-03-05 David Taylor <dtaylor@emc.com>
872 * gcc.c: Correct copyright date in --version output.
874 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
876 * pa.md: In unamed move patterns, disparge copies between general
877 and floating point registers using '?' modifier. Don't include 'f'
878 constraint for register preferences in DImode, SImode, HImode and
879 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
880 Remove constraints for copies between general and floating registers
881 in soft-float DFmode pattern.
882 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
886 2007-03-05 Mike Stump <mrs@apple.com>
888 * c-common.c (targetcm): Add.
889 * c-opts.c (c_common_handle_option): Handle language specific
891 * opts.c (handle_option): Verify language for target options, if
893 * opth-gen.awk: Add CL_LANG_ALL.
894 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
895 (TARGETCM_INITIALIZER): Add.
896 * target.h (struct gcc_targetcm): Add.
898 * targhooks.c (default_handle_c_option): Add.
899 * targhooks.h (default_handle_c_option): Add.
900 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
902 * config/darwin.opt (iframework): Add.
903 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
904 * config/darwin-c.c (handle_c_option): Add.
905 (TARGET_HANDLE_C_OPTION): Add.
907 * doc/invoke.texi (Darwin Options): Add -iframework.
909 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
911 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
914 2007-03-05 Ian Lance Taylor <iant@google.com>
916 * c.opt (fgnu89-inline): New option.
917 * c-opts.c (c_common_post_options): Set default value for
919 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
920 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
922 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
923 (grokdeclarator, start_function): Likewise.
924 * c-cppbuiltin.c (c_cpp_builtins): Define either
925 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
926 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
927 (C Dialect Options): Document -fgnu89-inline.
928 * doc/extend.texi (Function Attributes): Explain what the
929 gnu_inline attribute does.
930 * doc/cpp.texi (Common Predefined Macros): Document
931 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
933 2007-03-05 Ian Lance Taylor <iant@google.com>
935 PR tree-optimization/31034
936 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
937 half-range if the other side is an overflow infinity.
939 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
941 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
942 (bfin*-linux-uclibc*): New configuration.
943 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
945 * config/bfin/linux.h: New file.
946 * config/bfin/libgcc-bfin.ver: New file.
947 * config/bfin/t-bfin-uclinux: New file.
948 * config/bfin/t-bfin-linux: New file.
949 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
950 (TARGET_OS_CPP_BUILTINS): New macro.
952 2007-03-05 Richard Guenther <rguenther@suse.de>
954 * fold-const.c (fold_binary): Remove duplicate folding
955 of comparison of non-null ADDR_EXPR against null.
957 2007-03-05 Richard Guenther <rguenther@suse.de>
958 Dorit Nuzman <dorit@il.ibm.com>
960 PR tree-optimization/26420
961 * tree-vectorizer.c (vectorize_loops): Bail out early if there
962 are no loops in the function. Only print the number of
963 vectorized loops if it is greater than zero or we are supposed
964 to print information about unvectorized loops.
966 2007-03-05 Revital Eres <eres@il.ibm.com>
968 * gcc.dg/var-expand1.c: New test.
969 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
970 when an accumulator is expanded.
972 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
975 * c-common.c (convert_and_check): Don't give warnings for
976 conversion if 'expr' already overflowed.
978 2007-03-04 Roger Sayle <roger@eyesopen.com>
981 * fold-const.c (fold_comparison): Enforce type consistency when
982 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
984 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
986 * tree-ssa-address.c (create_mem_ref): Do not put an expression
987 containing a cast to the base of TARGET_MEM_REF.
989 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
991 * tree.c (tree_contains_struct_check_failed): Remove spurious
992 whitespace from error message.
994 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
997 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
998 instead of precision.
1000 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
1001 Nathan Sidwell <nathan@codesourcery.com>
1003 * emit-rtl.c (find_auto_inc): New.
1004 (try_split): recreate REG_INC notes,
1005 Use regular for loops rather than whiles.
1007 2007-03-03 Andreas Schwab <schwab@suse.de>
1009 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1010 * configure: Regenerate.
1012 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1015 flag_rounding_math, not flag_unsafe_math_optimizations.
1017 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1019 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1020 alpha_fold_vector_minmax): Likewise.
1021 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1022 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1024 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1026 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1027 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1028 if the lhs has side-effects.
1029 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1031 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1033 * config/i386/i386.h (TUNEMASK): Remove define.
1034 (ARCHMASK): Remove define.
1035 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1036 Use ix86_arch_mask variable instead of ARCHMASK.
1037 * config/i386/i386.c (override_options): Ditto.
1038 (standard_80387_constant_p): Ditto.
1040 2007-03-02 Ian Lance Taylor <iant@google.com>
1042 Used signed infinities in VRP.
1043 * tree-vrp.c (uses_overflow_infinity): New static function.
1044 (supports_overflow_infinity): New static function.
1045 (make_overflow_infinity): New static function.
1046 (negative_overflow_infinity): New static function.
1047 (positive_overflow_infinity): New static function.
1048 (is_negative_overflow_infinity): New static function.
1049 (is_positive_overflow_infinity): New static function.
1050 (is_overflow_infinity): New static function.
1051 (overflow_infinity_range_p): New static function.
1052 (compare_values_warnv): New function split out of compare_values.
1053 (compare_value): Call it.
1054 (set_value_range_to_nonnegative): Add overflow_infinity
1055 parameter. Change caller.
1056 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1058 (vrp_expr_computes_nonzero): Likewise.
1059 (compare_ranges, compare_range_with_value): Likewise.
1060 (compare_name_with_value, compare_names): Likewise.
1061 (vrp_evaluate_conditional): Likewise.
1062 (set_value_range): Handle infinity
1063 (vrp_operand_equal_p, operand_less_p): Likewise.
1064 (extract_range_from_assert): Likewise.
1065 (vrp_int_const_binop): Likewise.
1066 (extract_range_from_binary_expr): Likewise.
1067 (extract_range_from_unary_expr): Likewise.
1068 (extract_range_from_comparison): Likewise.
1069 (extract_range_from_expr): Likewise.
1070 (dump_value_range): Likewise.
1071 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1072 (test_for_singularity): Likewise.
1073 (vrp_int_const_binop): Remove inline qualifier.
1074 (adjust_range_with_scev): Add comment.
1075 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1077 2007-03-02 Diego Novillo <dnovillo@redhat.com>
1079 * tree-ssa-structalias.c (could_have_pointers): Tidy.
1080 (get_constraint_for): Likewise.
1081 (do_structure_copy): Likewise.
1082 (find_func_aliases): Fix references to MODIFY_EXPR.
1083 (intra_create_variable_infos): Tidy.
1084 * tree-ssa-operands.c (add_virtual_operand): Add argument
1086 When adding members of alias sets, if IS_CALL_SITE is true and
1087 the symbol is not call-clobbered, skip it.
1090 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1092 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1093 entry by means of emit_insn_at_entry.
1095 2007-03-02 Richard Henderson <rth@redhat.com>
1097 * expr.h (promoted_input_arg): Remove decl.
1098 * function.c (promoted_input_arg): Merge into ...
1099 * combine.c (setup_incoming_promotions): ... only caller.
1100 Rearrange to avoid double loop.
1102 2007-03-02 Ben Elliston <bje@au.ibm.com>
1103 Peter Bergner <bergner@vnet.ibm.com>
1104 Janis Johnson <janis187@us.ibm.com>
1106 * config/rs6000/dfp.md: New file.
1107 * config/rs6000/rs6000.md: Include dfp.md.
1108 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1109 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1110 and TDmode decimal float modes in FP registers.
1111 (num_insns_constant): Likewise.
1112 (rs6000_legitimate_offset_address_p): Likewise.
1113 (rs6000_legitimize_address): Likewise.
1114 (rs6000_legitimize_reload_address): Likewise.
1115 (rs6000_legitimate_address): Likewise.
1116 (rs6000_emit_move): Likewise.
1117 (function_arg_boundary): Likewise.
1118 (function_arg_advance): Likewise.
1119 (rs6000_darwin64_record_arg_recurse): Likewise.
1120 (function_arg): Likewise.
1121 (rs6000_gimplify_va_arg): Likewise.
1122 (rs6000_split_multireg_move): Likewise.
1123 (rs6000_output_function_epilogue): Likewise.
1124 (rs6000_output_function_epilogue): Likewise.
1125 (rs6000_register_move_cost): Likewise.
1126 (rs6000_function_value): Likewise.
1127 (rs6000_libcall_value): Likewise.
1129 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1131 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1133 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1135 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1136 Use $MULTIDIR to choose between the kernel and RTP headers,
1137 and use $WIND_BASE and $WIND_USR to locate them.
1139 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1141 * config/i386/i386.c (override_options): Put initialization of
1142 ix86_tune_mask and ix86_arch_mask to the correct place.
1144 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1145 Michael Meissner <michael.meissner@amd.com>
1148 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1150 (TARGET_CMOVE): Use ARCHMASK.
1151 (TARGET_CMPXCHG): Ditto.
1152 (TARGET_CMPXCHG8B): Ditto.
1153 (TARGET_XADD): Ditto.
1154 (TARGET_BSWAP): Ditto.
1155 * config/i386/i386.c (ix86_tune_mask): New global variable.
1156 (ix86_arch_mask): Ditto.
1157 (override_options): Initialize ix86_tune_mask and
1158 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1161 2007-03-02 Ben Elliston <bje@au.ibm.com>
1164 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1166 2007-03-02 Joseph Myers <joseph@codesourcery.com>
1168 * target.h (init_dwarf_reg_sizes_extra): New target hook.
1169 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1170 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1171 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1173 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1174 rs6000_init_dwarf_reg_sizes_extra): New.
1175 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1176 SPE register high parts.
1178 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1180 * Makefile.in: Add install-pdf target as
1181 copied from automake v1.10 rules.
1182 * configure.ac: Add install-pdf to target list.
1183 * configure: Regenerate.
1185 2007-03-01 Paul Brook <paul@codesourcery.com>
1187 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1188 modes to LDRD for DImode.
1189 (output_move_double): Fixup out of range ldrd/strd.
1190 (vfp_secondary_reload_class): Rename...
1191 (coproc_secondary_reload_class): ... to this. Add wb argument.
1192 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1193 coproc_secondary_reload_class for CLASS_IWMMXT.
1194 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1195 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1197 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
1199 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
1200 factor by the estimated number of iterations.
1201 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1204 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1205 decode_caches_intel, detect_caches_intel): New functions.
1206 (host_detect_local_cpu): Use detect_caches_amd and
1207 detect_caches_intel.
1209 2007-03-01 Richard Henderson <rth@redhat.com>
1211 * expr.c (emit_move_complex_push): Export.
1212 (emit_move_complex_parts): Split out from ...
1213 (emit_move_complex): ... here.
1214 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1215 * config/i386/i386.md (movcdi): New.
1217 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
1219 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1220 size of mode1 to check for tieable modes in MMX case.
1222 2007-03-01 Richard Sandiford <richard@codesourcery.com>
1224 * Makefile.in (rtlanal.o): Depend on tree.h.
1225 * rtl.h (offset_within_section_p, split_const): Declare.
1226 * rtlanal.c: Include tree.h.
1227 (offset_within_block_p): New function, taken from
1228 mips_offset_within_object_p.
1229 (split_const): New function, taken from mips_split_const.
1230 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1232 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1233 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1234 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1235 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1236 (m68k_illegitimate_symbolic_constant_p): New function.
1237 * config/m68k/m68k.md (movsi): Remove misleading predicates.
1238 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1239 symbolic constant that might be outside the symbol's section,
1240 move the symbol first and then add the offset.
1241 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1243 * config/mips/mips.c (mips_split_const): Delete.
1244 (mips_offset_within_object_p): Delete.
1245 (mips_symbolic_constant_p): Use offset_within_section_p and
1246 split_const instead of mips_offset_within_object_p and
1248 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1249 (mips_legitimize_const_move, print_operand_reloc)
1250 (mips_dangerous_for_la25_p): Use split_const instead of
1253 2007-02-28 Eric Christopher <echristo@apple.com>
1255 * Makefile.in (install-include-dir): Don't rm -rf include.
1257 2007-02-28 Richard Guenther <rguenther@suse.de>
1260 * fold-const.c (fold_binary): Do not associate expressions
1261 with more than one variable for integer types that do not wrap.
1263 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
1265 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1266 Delete, and replace with...
1267 (fold_builtin_call_array): This. Update callers to use it.
1268 * fold-const.c (fold_build_call_list): Delete, and replace with...
1269 (fold_build_call_array): This.
1270 (fold_build_call_list_initializer): Delete, and replace with...
1271 (fold_build_call_array_initializer): This.
1272 * tree.h: Update declarations to reflect above changes.
1274 * c-typeck.c (build_function_call): Store converted arguments
1275 in a stack-allocated array instead of building a list.
1276 (convert_arguments): Store arguments in the array passed in as an
1277 argument, and return the actual number of arguments.
1278 * c-format.c: (check_function_format): Pass arguments in an
1279 array instead of a list.
1280 * c-common.c (check_function_nonnull): Likewise.
1281 (check_function_sentinel): Likewise.
1282 (check_function_arguments): Likewise.
1283 * c-common.h: Update declarations to reflect above changes.
1285 2007-02-28 Jan Hubicka <jh@suse.cz>
1287 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1288 PRED_NEGATIVE_RETURN): Update outcomes.
1290 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
1292 * calls.c (emit_library_call_value_1): Handle partial registers
1293 correctly when building up CALL_INSN_FUNCTION_USAGE.
1295 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1297 * pa/predicates.md (move_src_operand): Allow zero for mode.
1298 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1301 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
1304 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1305 *movv2df_internal): Enable pattern only for valid operand
1307 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1308 tie only 128bit modes. For MMX registers, tie only 64bit modes.
1310 2007-02-27 Mike Stump <mrs@apple.com>
1312 * config/darwin-crt3.c: Avoid compilation when compiling for a
1315 2007-02-27 Joseph Myers <joseph@codesourcery.com>
1317 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1319 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1320 for fixed headers and limits.h.
1321 (install-include-dir, install-headers-tar, install-headers-cpio,
1322 install-headers-cp, real-install-headers-tar,
1323 real-install-headers-cpio, real-install-headers-cp): Handle
1324 include-fixed as well as include.
1325 (install-mkheaders): Don't install files that go only in include
1327 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1328 from GCC_INCLUDE_DIR.
1329 * gcc.c (process_command): Remove special -BstageN/ handling.
1330 (do_spec_1): Add include-fixed directories.
1332 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1334 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1336 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1338 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1341 2007-02-27 Mark Mitchell <mark@codesourcery.com>
1343 * c-common.c (get_priority): Add check for
1344 SUPPORTS_INIT_PRIORITY.
1346 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1348 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1350 * config/bfin/bfin.c: Include "cfglayout.h".
1351 (MAX_LSETUP_DISTANCE): New macro.
1352 (struct loop_info): New members incoming, incoming_src and
1353 incoming_dest. Delete member predecessor.
1354 (length_for_loop): New function.
1355 (bfin_optimize_loop): Handle more different loop structures.
1356 (bfin_discover_loop): Rework detection of predecessor blocks by
1357 examining incoming edges.
1358 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1360 (bfin_reorder_loops): New function.
1361 (bfin_reorg_loops): Use these three new functions.
1363 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1364 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1365 (CONSTRAINT_LEN): Add entry for 'q'.
1366 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1367 Add 'q' constraints.
1368 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1369 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1371 * config/bfin/bfin.md (add_with_carry): New pattern.
1372 (s_or_u, su_optab, su_modifier): New code macros/attrs.
1373 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1374 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1375 support unsigned multiplies too. Removed incorrect commutativity from
1376 operand 1 constraint where appropriate.
1377 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1379 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1380 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1382 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1383 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1384 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1385 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1386 usmulhisi_hh_huh): New patterns.
1388 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1389 lshifthi3): Fix output template to use half reg for operand 2.
1391 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1394 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1396 2007-02-27 Andreas Schwab <schwab@suse.de>
1398 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1400 2007-02-27 Jan Hubicka <jh@suse.cz>
1402 * predict.c (last_basic_block_p): Remove.
1403 (tree_estimate_probability): Update return heuristic for commonized
1406 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1408 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1410 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1412 * doc/include/gcc-common.texi (versionsubtitle): New macro.
1413 * doc/cpp.texi: Standardize title page.
1414 * doc/cppinternals.texi: Likewise.
1415 * doc/gcc.texi: Standardize title page, remove version number
1416 from copyright page.
1417 * doc/gccint.texi: Likewise.
1418 * doc/install.texi: Standardize title page, add table of
1421 2007-02-26 Jan Hubicka <jh@suse.cz>
1423 * predict.def: Set outcomes according to more recent results.
1424 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1425 Remove dead predictors.
1426 * predict.c (return_prediction): Fix pasto.
1428 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1430 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1431 change; avoid a memory leak when returning early.
1433 2007-02-26 Mark Mitchell <mark@codesourcery.com>
1435 * c-decl.c (static_ctors): Move to c-common.c.
1436 (static_dtors): Likewise.
1437 (finish_function): Use c_record_cdtor_fn.
1438 (build_cdtor): Move to c-common.c.
1439 (c_write_global_declarations): Use c_build_cdtor_fns.
1440 * c-common.h (static_ctors): Declare.
1441 (static_dtors): Likewise.
1442 (c_record_cdtor_fn): Likewise.
1443 (c_build_cdtor_fns): Likewise.
1444 * c-common.c (static_ctors): New variable.
1445 (static_dtors): Likewise.
1446 (c_record_cdtor_fn): New function.
1447 (build_cdtor): Move from c-decl.c
1448 (c_build_cdtor_fns): New function.
1450 * output.h (assemble_addr_to_section): Declare.
1451 (get_cdtor_priority_section): Likewise.
1452 * varasm.c (assemble_addr_to_section): New function.
1453 (get_cdtor_priority_section): Likewise.
1454 (default_named_section_asm_out_destructor): Use them.
1455 (destor_dtor_section_asm_out_destructor): Likewise.
1456 (default_named_section_asm_out_constructor): Likewise.
1457 (default_ctor_section_asm_out_constructor): Likewise.
1458 * config.gcc (*-*-vxworks*): Include vxworks.o.
1459 * config/t-vxworks (vxworks.o): New target.
1460 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1461 (TARGET_ASM_CONSTRUCTOR): Define.
1462 (TARGET_ASM_DESTRUCTOR): Likewise.
1463 (vxworks_asm_out_constructor): Declare.
1464 (vxworks_asm_out_destructor): Likewise.
1466 * c-common.c (get_priority): Check that we have not just an
1467 INTEGER_CST, but an integer constant with integeral type.
1469 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
1471 PR tree-optimization/30938
1472 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1473 use &dt[nargs-1] instead of &dt[nargs] in the call to
1474 vect_is_simple_use().
1476 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
1478 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1479 from register elimination as PRE_MODIFY / POST_MODIFY increments.
1480 Do not attempt to handle MEM inside auto-inc expressions.
1481 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1482 of a register modified by an auto-inc expression. However, do handle
1483 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1484 (elimination_effects): Prohibit elimination of a register modified
1485 by an auto-inc expression. Disable register elimination rules whose
1486 target register is modified by an auto-inc expression with variable
1489 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
1491 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1493 (array_at_struct_end_p): New function.
1494 (idx_infer_loop_bounds): Use it.
1495 (estimate_numbers_of_iterations_loop): Export.
1496 * predict.c (predict_loops): Use estimated_loop_iterations_int.
1497 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1498 (tree_estimate_probability): Call record_loop_exits.
1499 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1500 (estimated_loop_iterations, estimated_loop_iterations_int,
1501 estimated_loop_iterations_tree): New functions.
1502 (analyze_siv_subscript_cst_affine,
1503 compute_overlap_steps_for_affine_1_2,
1504 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1505 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1506 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1507 (PRED_LOOP_ITERATIONS_GUESSED): New.
1508 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1509 * cfgloop.h (estimate_numbers_of_iterations_loop,
1510 estimated_loop_iterations_int): Declare.
1512 2007-02-25 Mark Mitchell <mark@codesourcery.com>
1514 * doc/extend.texi: Document optional priority argument to
1515 constructors and destructors.
1516 * tree.c (init_priority_for_decl): Adjust GTY markers.
1517 (init_ttree): Use priority-info hash functions for
1518 init_priority_for_decl.
1519 (tree_map_eq): Rename to ...
1520 (tree_map_base_eq): ... this.
1521 (tree_map_marked_p): Rename to ...
1522 (tree_map_base_marked_p): ... this.
1523 (tree_map_base_hash): New function.
1524 (decl_init_priority_lookup): Rework.
1525 (decl_fini_priority_lookup): New function.
1526 (decl_priority_info): New function.
1527 (decl_init_priority_insert): Use it.
1528 (decl_fini_priority_insert): Likewise.
1529 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1531 (decl_restrict_base_insert): Likewise.
1532 (decl_debug_expr_insert): Likewise.
1533 (decl_value_expr_lookup): Likewise.
1534 (decl_value_expr_insert): Likewise.
1535 * tree.h (priority_type): New type.
1536 (decl_init_priority_lookup): Use priority_type.
1537 (decl_fini_priority_lookup): New function.
1538 (decl_init_priority_insert): Use priority_type.
1539 (decl_fini_priority_insert): New function.
1540 (DECL_HAS_INIT_PRIORITY): Tweak comments.
1541 (DECL_INIT_PRIORITY): Likewise.
1542 (SET_DECL_INIT_PRIORITY): Add comment.
1543 (DECL_FINI_PRIORITY): New macro.
1544 (SET_DECL_FINI_PRIORITY): Likewise.
1545 (DEFAULT_INIT_PRIORITY): Document.
1546 (MAX_INIT_PRIORITY): Likewise.
1547 (MAX_RESERVED_INIT_PRIORITY): Likewise.
1548 (tree_map_base): New type.
1549 (tree_map_base_eq): New function.
1550 (tree_map_base_hash): Likewise.
1551 (tree_map_base_marked_p): Likewise.
1552 (tree_map): Inherit from tree_map_base.
1553 (tree_map_eq): Make it a macro.
1554 (tree_map_marked_p): Likewise.
1555 (tree_int_map): Inherit from tree_map_base.
1556 (tree_int_map_eq): Make it a macro.
1557 (tree_int_map_hash): Likewise.
1558 (tree_int_map_marked_p): Likewise.
1559 (tree_priority_map): New type.
1560 (tree_priority_map_eq): New macro.
1561 (tree_priority_map_hash): Likewise.
1562 (tree_priority_map_marked_p): Likewise.
1563 * varasm.c (emults_decl): Adjust for refactoring of tree_map
1565 (emutls_common_1): Likewise.
1566 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1567 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1568 of tree_map hierarchy.
1569 * tree-cfg.c (move_stmt_r): Likewise.
1570 (new_label_mapper): Likewise.
1571 * c-tree.h (c_expand_body): Move to ...
1572 * c-common.h (c_expand_body): ... here.
1573 * c-decl.c (c_expand_body): Move to ...
1574 * c-common.c (c_expand_body): ... here.
1575 (c_common_attribute_table): Allow 1 argument for the constructor
1576 and destructor attributes.
1577 (get_priority): New function.
1578 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
1579 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
1581 2007-02-24 Jan Hubicka <jh@suse.cz>
1584 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
1586 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1587 Jan Hubicka <jh@suse.cz>
1590 * i386.c (counter_mode): New function.
1591 (expand_set_or_movmem_via_loop): Use it.
1592 (expand_movmem_epilogue): Likewise; fix pasto.
1593 (ix86_expand_movmem): Do emit guard even for constant counts.
1594 (ix86_expand_setmem): Likewise.
1596 2007-02-25 Nick Clifton <nickc@redhat.com>
1598 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
1599 (JUMP_TABLES_IN_TEXT_SECTION): Define.
1601 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1604 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
1605 count argument with 0x10, not with 0x16.
1606 (expand_setmem_epilogue): Ditto.
1608 2007-02-24 Mike Stump <mrs@apple.com>
1610 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
1613 2007-02-24 Richard Guenther <rguenther@suse.de>
1616 * fold-const.c (fold_binary): Fold x +- CST op x for
1617 EQ_EXPR and NE_EXPR.
1619 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1621 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
1623 2007-02-24 Jan Hubicka <jh@suse.cz>
1625 * cgraphunit.c (decide_is_function_needed): Honor
1626 -fkeep-inline-functions.
1628 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1630 * builtins.c (fold_builtin_modf): New.
1631 (fold_builtin_2): Use it.
1633 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
1635 * loop-iv.c (implies_p): Detect additional cases where A implies B.
1636 (determine_max_iter): Take additional LOOP arg; all callers changed.
1637 Lose broken logic dealing with PLUS. Try to limit the upper bound by
1638 one using simplifications.
1639 (simplify_using_initial_values): Return if the expression becomes
1640 invalid due to altered regs.
1642 2007-02-23 DJ Delorie <dj@redhat.com>
1644 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
1646 2007-02-23 Mike Stump <mrs@apple.com>
1648 * tlink.c (scan_linker_output): Parse linker messages from
1649 darwin9's linker better.
1651 2007-02-23 Steve Ellcey <sje@cup.hp.com>
1654 * varpool.c (varpool_assemble_pending_decls): Set
1655 varpool_last_needed_node to null.
1657 2007-02-23 DJ Delorie <dj@redhat.com>
1659 * config/i386/i386.c (ix86_data_alignment): Don't specify an
1660 alignment bigger than the object file can handle.
1662 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
1665 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
1666 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
1667 (*movsf_1): Penalize MMX moves.
1669 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
1671 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
1672 2^32-1 or more times unless flag_unsafe_loop_optimizations.
1674 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
1676 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1678 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
1679 (fold_builtin_1): Use them.
1680 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1681 BUILT_IN_SIGNIFICAND.
1683 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
1685 * config/i386/i386.c (bdesc_1arg): Initialize
1686 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
1687 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
1688 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
1689 and IX86_BUILTIN_MOVSLDUP.
1691 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
1693 PR rtl-optimization/30841
1694 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
1696 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1698 * builtins.c (fold_builtin_frexp): New.
1699 (fold_builtin_2): Use it.
1701 2007-02-22 Mark Mitchell <mark@codesourcery.com>
1703 * doc/invoke.texi (Spec Files): Document getenv spec function.
1705 * gcc.c (getenv_spec_function): New function.
1706 (static_spec_functions): Add it.
1707 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
1708 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
1711 2007-02-22 Michael Matz <matz@suse.de
1714 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
1715 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
1717 2007-02-22 Ian Lance Taylor <iant@google.com>
1720 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
1721 (mem_loc_descriptor): Call it.
1723 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
1724 Ira Rosen <irar@il.ibm.com>
1726 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
1728 2007-02-22 Ira Rosen <irar@il.ibm.com>
1730 PR tree-optimization/30843
1731 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
1732 stores only after all the group is vectorized.
1734 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
1736 PR tree-optimization/30858
1737 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
1738 in the reduction cycle have a single use in the loop.
1739 * tree-vectorizer.h (relevant): Add documentation.
1741 2007-02-20 Mike Stump <mrs@apple.com>
1743 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
1744 * configure: Regenerate.
1746 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1748 Change the defaults of some parameters and options.
1749 * config/spu/spu-protos.h (spu_optimization_options): Declare.
1750 * config/spu/spu.c (spu_optimization_options): Add.
1751 (spu_override_options): Change params in spu_optimization_options.
1752 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
1754 Register 127 is only 16 byte aligned when used as a frame pointer.
1755 * config/spu/spu-protos.h (spu_init_expanders): Declare.
1756 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
1757 HARD_FRAME_POINTER_REGNUM.
1758 (spu_legitimate_address): Use regno_aligned_for_reload.
1759 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
1760 aligned when frame_pointer_needed is true.
1761 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
1763 * config/spu/spu.h (INIT_EXPANDERS): Define.
1765 Make sure shift and rotate instructions have valid immediate operands.
1766 * config/spu/predicates.md (spu_shift_operand): Remove.
1767 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
1768 * config/spu/constraints.md (W, O): Extend range.
1769 * config/spu/spu.md (umask, nmask): Define.
1770 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
1771 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
1772 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
1773 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
1774 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
1775 (lshr<mode>3_reg): Fix rtl description.
1777 Make sure mulhisi immediate operands are valid.
1778 * config/spu/predicates.md (imm_K_operand): Add.
1779 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
1781 Generate constants using fsmbi and andi.
1782 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
1783 (print_operand, spu_split_immediate, classify_immediate,
1784 fsmbi_const_p): Handle IC_FSMBI2.
1786 Correctly handle a CONST_VECTOR containing symbols.
1787 * config/spu/spu.c (print_operand): Handle HIGH correctly.
1788 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
1789 (immediate_load_p): Allow symbols that use 2 instructions to create.
1790 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
1791 with symbols when flag_pic is set.
1792 (const_vector_immediate_p): New.
1793 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
1794 accept a CONST_VECTOR with symbols.
1795 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
1796 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
1798 * config/spu/spu.md (high, low): Delete.
1799 (low_<mode>): Define.
1801 Remove INTRmode and INTR_REGNUM, which didn't work.
1802 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
1804 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
1805 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
1806 peephole2 pattern): Don't use INTR or 131.
1807 (movintrcc): Delete.
1808 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
1809 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
1810 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
1811 (UNSPEC_SET_INTR): Add.
1812 * config/spu/spu-modes.def (INTR): Remove.
1814 More accurate warnings about run-time relocations.
1815 * config/spu/spu.c (reloc_diagnostic): Test in_section.
1817 Correctly warn about immediate arguments to specific intrinsics.
1818 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
1819 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
1820 the instruction predicate.
1822 Fix tree check errors with latest update.
1823 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
1825 (spu_expand_builtin): Use CALL_EXPR_FN.
1827 Add missing specific intrinsics.
1828 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
1830 * config/spu/spu_internals.h: Ditto.
1832 Fix incorrect operand modifiers.
1833 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
1834 * config/spu/spu.md (xor<mode>3): Change %S to %J.
1836 Optimize one case of zero_extend of a vec_select.
1837 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
1839 Accept any immediate for hbr.
1840 * config/spu/spu.md (hbr): Change s constraints to i.
1842 2007-02-21 Paul Brook <paul@codesourcery.com>
1844 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
1845 condexec_count when skipping USE and CLOBBER.
1847 2007-02-21 Nick Clifton <nickc@redhat.com>
1849 * common.opt (Warray-bounds): Add Warning attribute.
1850 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
1852 (fsized-zeroes): Add Optimization attribute.
1853 (fsplit-wide-types, ftree-scev-cprop): Likewise.
1854 * c.opt (Wc++0x-compat): Add Warning attribute.
1856 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1859 * reload1.c (eliminate_regs_in_insn): In the single_set special
1860 case, attempt to re-recognize the insn before falling back to
1861 having reload fix it up.
1863 2007-02-20 Eric Christopher <echristo@gmail.com>
1865 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
1866 Rewrite accordingly.
1867 (frv_read_iacc_argument): Ditto.
1868 (frv_expand_set_builtin): Take a call instead of arglist, update for
1870 (frv_expand_unop_builtin): Ditto.
1871 (frv_expand_binop_builtin): Ditto.
1872 (frv_expand_cut_builtin): Ditto.
1873 (frv_expand_binopimm_builtin): Ditto.
1874 (frv_expand_voidbinop_builtin): Ditto.
1875 (frv_expand_int_void2arg): Ditto.
1876 (frv_expand_prefetches): Ditto.
1877 (frv_expand_voidtriop_builtin): Ditto.
1878 (frv_expand_voidaccop_builtin): Ditto.
1879 (frv_expand_load_builtin): Ditto.
1880 (frv_expand_store_builtin): Ditto.
1881 (frv_expand_mdpackh_builtin): Ditto.
1882 (frv_expand_mclracc_builtin): Ditto.
1883 (frv_expand_mrdacc_builtin): Ditto.
1884 (frv_expand_mwtacc_builtin): Ditto.
1885 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
1888 2007-02-20 Janis Johnson <janis187@us.ibm.com>
1890 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
1891 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
1893 (HAVE_GAS_DFP): Check for assembler support of decimal floating
1895 * configure: Regenerate.
1896 * config.in: Regenerate.
1897 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
1898 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
1899 masks to power6 and power6x and to POWERPC_MASKS.
1900 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1902 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
1903 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
1904 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1905 Access PROTOTYPE as variable, not mask.
1907 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
1909 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
1910 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
1911 * combine.c (adjust_for_new_dest): Use it.
1912 * postreload.c (reload_combine): Likewise.
1914 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
1916 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
1917 notes on an insn with multiple sets, even if single_set returns
1918 non-NULL for that insn.
1920 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1922 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
1925 2007-02-20 Geoffrey Keating <geoffk@apple.com>
1927 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
1928 if user didn't pass it.
1929 * config/i386/darwin.h (CC1_SPEC): Likewise.
1930 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
1931 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
1932 -mmacosx-version-min.
1934 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1935 Uros Bizjak <ubizjak@gmail.com>
1937 * optabs.h (enum optab_index): Add new OTI_scalb.
1938 (scalb_optab): Define corresponding macro.
1939 * optabs.c (init_optabs): Initialize scalb_optab.
1940 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
1942 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
1943 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
1944 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
1945 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
1946 flag_unsafe_math_optimizations is set.
1948 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
1949 to implement scalbf, scalb and scalbl built-ins as inline x87
1952 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1953 DJ Delorie <dj@redhat.com>
1956 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
1957 (diagnostic_report_diagnostic): ... here, and turn them into real
1958 errors. If warnings are inhibited, no need to do anything.
1960 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
1962 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
1963 better code generation.
1965 2007-02-20 Ben Elliston <bje@au.ibm.com>
1967 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
1969 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
1971 * config/alpha/alpha.c, config/alpha/alpha.md,
1972 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
1973 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
1974 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
1975 config/arm/lib1funcs.asm: Follow spelling conventions.
1977 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
1978 config/fr30/fr30.md, config/i386/i386.h,
1979 config/iq2000/iq2000.h, config/iq2000/predicates.md,
1980 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
1981 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1982 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
1983 config/rs6000/altivec.md, config/rs6000/rs6000.c,
1984 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
1985 config/sparc/sparc.c, config/sparc/sparc.h,
1986 config/sparc/sparc.md, config/spu/constraints.md,
1987 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
1990 2007-02-20 Alan Modra <amodra@bigpond.net.au>
1993 * varasm.c (use_blocks_for_decl_p): Return false for decls with
1996 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
1998 * doc/invoke.texi (-ftree-lrs): Remove.
2000 2007-02-19 Diego Novillo <dnovillo@redhat.com>
2002 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2005 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
2007 * config/ia64/ia64.c (ia64_expand_builtin): Use the
2008 new CALL_EXPR_FN macro for retrieving the function
2009 declaration of the input expression.
2011 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2013 * c.opt (Waddress): New.
2014 * common.opt (Walways-true): Delete.
2015 (Wstring-literal-comparison): Delete.
2016 * doc/invoke.texi (Warning Options): Delete -Walways-true and
2017 -Wstring-literal-comparison. Add -Waddress.
2019 (Walways-true): Delete.
2020 (Wstring-literal-comparison): Delete.
2021 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2022 consistently instead of -Walways-true in example.
2023 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2024 * c-typeck.c (parser_build_binary_op): Replace
2025 -Wstring-literal-comparison and -Walways-true with -Waddress.
2026 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2029 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2031 * tree-cfg.c (dump_function_to_file): Be prepared for functions
2032 without DECL_STRUCT_FUNCTION initialized.
2034 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2036 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2037 due to calls to functions taking pointers as parameters.
2039 2007-02-19 Richard Henderson <rth@redhat.com>
2042 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2045 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
2047 * config/s390/s390.c (s390_call_saved_register_used,
2048 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2049 accessed to the new scheme.
2051 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2053 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2054 (cris_print_index, cris_print_operand, cris_print_operand_address)
2055 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2056 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2057 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2059 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2060 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2061 GO_IF_LEGITIMATE_ADDRESS): Ditto.
2062 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2063 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2064 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2065 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2066 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2067 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2068 (uminsi3, call, call_value): Ditto.
2069 (define_split: indir_to_reg_split, unnamed): Ditto.
2071 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
2073 PR tree-optimization/30975
2074 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2077 2007-02-18 Eric Christopher <echristo@gmail.com>
2079 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2080 Remove use of arglist.
2081 (mips_expand_builtin): Remove use of arglist, pass in expr.
2082 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2083 (mips_expand_builtin_movtf): Ditto.
2084 (mips_expand_builtin_compare): Ditto.
2086 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2088 * tree-sra.c (sra_build_assignment): Replace assertion
2089 checking with a comment explaining why it can't be done.
2091 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2094 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2095 during CALL_EXPR representation conversion.
2096 * tree-ssa-propagate.c (set_rhs): Likewise.
2098 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2100 * tree-sra.c (sra_build_assignment): Disable assertion checking
2103 2007-02-18 Roger Sayle <roger@eyesopen.com>
2105 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2106 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2107 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2109 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2110 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
2111 gimplify_init_ctor_eval_range, gimple_push_cleanup,
2112 gimplify_omp_for, gimplify_omp_atomic_pipeline,
2113 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2114 force_gimple_operand): Likewise.
2115 * ipa-cp.c (constant_val_insert): Likewise.
2116 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2117 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2118 perfect_nestify): Likewise.
2119 * langhooks.c (lhd_omp_assignment): Likewise.
2120 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2121 lower_copyprivate_clauses, lower_send_clauses,
2122 lower_send_shared_vars, expand_parallel_call,
2123 expand_omp_for_generic, expand_omp_for_static_nochunk,
2124 expand_omp_for_static_chunk, expand_omp_sections,
2125 lower_omp_single_copy, lower_omp_for_lastprivate,
2126 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2127 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2128 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2131 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2133 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2134 config/sh/sh.md: Follow spelling conventions.
2136 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2137 config/frv/predicates.md: Follow spelling conventions.
2139 * config/m68k/linux-unwind.h: Fix a comment typo.
2140 * target.h: Follow spelling conventions.
2142 2007-02-18 Roger Sayle <roger@eyesopen.com>
2144 PR rtl-optimization/28173
2145 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
2146 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2147 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2148 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2149 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2151 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2153 * builtins.c (fold_builtin_load_exponent): New.
2154 (fold_builtin_2): Use it.
2156 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
2158 PR rtl-optimization/30773
2159 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2160 if we fail to attach a REG_EQUIV note.
2162 2007-02-18 David Edelsohn <edelsohn@gnu.org>
2163 Roger Sayle <roger@eyesopen.com>
2165 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2167 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2169 * calls.c (initialize_argument_information): Pass original EXP
2170 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
2171 code to split complex arguments here, as part of initializing the
2173 (expand_call): Remove code that builds a list of arguments and
2174 inserts implicit arguments into it. Instead, just count how many
2175 implicit arguments there will be so we can determine the size of
2176 the ARGS array, and let initialize_argument_information do the work.
2177 (split_complex_values): Delete unused function.
2179 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2181 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2183 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2185 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2186 for arg pointer based indexed addressing.
2188 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2190 * config/ia64/ia64.h, config/ia64/ia64.md,
2191 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2192 spelling conventions.
2194 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2196 * config/m68k/m68k.c (split_di): New.
2197 * config/m68k/m68k-protos.h: Declare split_di.
2198 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2199 Improve predicate handling and split constant shifts.
2201 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2203 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2204 parameter for register bitfield operations, general predicates
2207 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2209 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2210 * config/m68k/linux-unwind.h: New file.
2212 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2214 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2215 config/i386/athlon.md, config/ia64/ia64.md,
2216 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2217 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2218 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2219 tree-ssa-loop-niter.c, tree-vect-analyze.c,
2220 tree-vect-transform.c: Fix comment typos.
2222 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
2224 * sched-deps.c (find_insn_list): Remove.
2225 * sched-int.h: Remove the prototype for find_insn_list.
2227 2007-02-16 Geoffrey Keating <geoffk@apple.com>
2229 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2231 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2232 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2233 darwin_rs6000_override_options.
2234 (C_COMMON_OVERRIDE_OPTIONS): Expect
2235 darwin_macosx_version_min to be non-NULL always.
2236 (TARGET_C99_FUNCTIONS): Likewise.
2237 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2238 (DARWIN_MINVERSION_SPEC): New.
2239 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2240 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2242 (DARWIN_MINVERSION_SPEC): New.
2243 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2245 * config/darwin-c.c (darwin_cpp_builtins): Expect
2246 darwin_macosx_version_min to be non-NULL always.
2248 * config/rs6000/rs6000.c: Clean up trailing whitespace.
2250 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
2252 * config/i386/i386.h (x86_use_xchgb): New.
2253 (TARGET_USE_XCHGB): New macro.
2254 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2255 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2256 Split after reload into bswaphi for shifts of 8.
2257 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2258 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2259 or when optimizing for size.
2261 2007-02-16 Richard Guenther <rguenther@suse.de>
2262 Christian Bruel <christian.bruel@st.com>
2264 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2265 DECLs but prefer SSA_NAMEs over DECLs.
2267 2007-02-16 Richard Guenther <rguenther@suse.de>
2269 * tree-flow-inline.h (single_imm_use_p): Remove.
2270 (zero_imm_uses_p): Likewise.
2271 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2272 instead of single_imm_use_p.
2273 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2276 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2279 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2280 nested double- and backquotes.
2282 2007-02-15 Roger Sayle <roger@eyesopen.com>
2285 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
2286 should be unreachable.
2287 (build2_stat): Allow construction of MODIFY_EXPR at any time.
2288 For the time being redirect GIMPLE_MODIFY_STMT to the new
2289 (renamed) build_gimple_modify_stmt_stat.
2290 (build2_gimple_stat): Rename to...
2291 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2292 Always build a GIMPLE_MODIFY_STMT node.
2293 * tree.h (build2_gimple, build2_gimple_stat): Delete.
2294 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2297 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2298 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2299 * tree-complex.c (set_component_ssa_name, expand_complex_move,
2300 expand_complex_div_wide): Likewise.
2301 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2302 * tree-ssa-loop-im.c (schedule_sm): Likewise.
2303 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2304 * tree-ssa-loop-manip.c (create_iv): Likewise.
2305 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2306 abs_replacement): Likewise.
2307 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2308 realify_fake_stores): Likewise.
2310 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2311 node rather than a GIMPLE_MODIFY_STMT node.
2312 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2313 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2315 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2316 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2319 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2322 * fold-const.c (fold_comparison): Add back the
2323 folding of constant complex comparisions.
2325 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2328 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2329 effects unknown to this function, return early.
2331 2007-02-15 Ian Lance Taylor <iant@google.com>
2333 * lower-subreg.c (move_eh_region_note): New static function.
2334 (resolve_simple_move): Call it.
2335 (decompose_multiword_subregs): Track blocks for which we resolve a
2336 simple move which is also a control flow insn. Pass them to
2337 find_many_sub_basic_blocks.
2338 (pass_lower_subreg): Add TODO_verify_flow.
2339 (pass_lower_subreg2): Likewise.
2341 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2342 Brooks Moses <brooks.moses@codesourcery.com>
2343 Lee Millward <lee.millward@codesourcery.com>
2345 * tree.h (enum tree_code_class): Add tcc_vl_exp.
2346 (VL_EXP_CLASS_P): New.
2347 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2349 (TREE_OPERAND_CHECK_CODE): Likewise.
2350 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2351 (TREE_RTL_OPERAND_CHECK): Likewise.
2352 (tree_operand_check_failed): Make second parameter the whole tree
2353 instead of its code. Fixed callers.
2354 (VL_EXP_CHECK): New.
2355 (TREE_OPERAND_LENGTH): New.
2356 (VL_EXP_OPERAND_LENGTH): New.
2357 (CALL_EXPR_FN): New.
2358 (CALL_EXPR_STATIC_CHAIN): New.
2359 (CALL_EXPR_ARGS): New.
2360 (CALL_EXPR_ARG): New.
2361 (call_expr_nargs): New.
2362 (CALL_EXPR_ARGP): New.
2363 (build_nt_call_list): Declare.
2364 (build_vl_exp_stat): Declare.
2365 (build_vl_exp): New.
2366 (build_call_list): Declare.
2367 (build_call_nary): Declare.
2368 (build_call_valist): Declare.
2369 (build_call_array): Declare.
2370 (call_expr_arg): Declare.
2371 (call_expr_argp): Declare.
2372 (call_expr_arglist): Declare.
2373 (fold_build_call_list): Declare.
2374 (fold_build_call_list_initializer): Declare.
2375 (fold_call_expr): Declare to replace fold_builtin.
2376 (fold_builtin_fputs): Update to agree with modified definition.
2377 (fold_builtin_strcpy): Likewise.
2378 (fold_builtin_strncpy): Likewise.
2379 (fold_builtin_memory_chk): Likewise.
2380 (fold_builtin_stxcpy_chk): Likewise.
2381 (fold_builtin_strncpy_chk): Likewise.
2382 (fold_builtin_next_arg): Likewise.
2383 (fold_build_call_expr): Declare.
2384 (fold_builtin_call_list): Declare.
2385 (fold_builtin_call_valist): Declare.
2386 (build_call_expr): Declare.
2387 (validate_arglist): Update to agree with modified definition.
2388 (tree_operand_length): New.
2389 (call_expr_arg_iterator): New.
2390 (init_call_expr_arg_iterator): New.
2391 (next_call_expr_arg): New.
2392 (first_call_expr_arg): New.
2393 (more_call_expr_args_p): New.
2394 (FOR_EACH_CALL_EXPR_ARG): New.
2396 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2397 and tcc_gimple_stmt.
2398 (tree_code_size): Update documentation. Use sizeof (tree) rather
2399 than sizeof (char *).
2400 (tree_size): Likewise. Add case for tcc_vl_exp.
2401 (tree_node_structure): Add case for tcc_vl_exp.
2402 (contains_placeholder_p): Likewise.
2403 (substitute_in_expr): Likewise.
2404 (substitute_placeholder_in_expr): Likewise.
2405 (stabilize_reference_1): Likewise.
2406 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
2407 to diagnose breakage of this interface for constructing CALL_EXPRs.
2408 (build_nt): Add similar assertion here.
2409 (build_nt_call_list): New.
2410 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2411 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2413 (get_callee_fndecl): Use new CALL_EXPR accessors.
2414 (tree_operand_check_failed): Change parameters to pass entire node
2415 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2416 (process_call_operands): New.
2417 (build_vl_exp_stat): New.
2418 (build_call_list): New.
2419 (build_call_nary): New.
2420 (build_call_valist): New.
2421 (build_call_array): New.
2422 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2423 (call_expr_arglist): New.
2425 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2426 tcc_vl_exp instead of a fixed-size tcc_expression.
2428 * doc/c-tree.texi (CALL_EXPR): Document new representation and
2429 accessors for CALL_EXPRs.
2430 (AGGR_INIT_EXPR): Likewise.
2432 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2433 Brooks Moses <brooks.moses@codesourcery.com>
2434 Lee Millward <lee.millward@codesourcery.com>
2436 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2437 (expand_builtin_nonlocal_goto): Change parameter to be entire
2438 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
2439 (expand_builtin_prefetch): Likewise.
2440 (expand_builtin_classify_type): Likewise.
2441 (mathfn_built_in): Return NULL_TREE instead of 0.
2442 (expand_errno_check): Use new CALL_EXPR accessors.
2443 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2444 Return NULL_RTX instead of 0.
2445 (expand_builtin_mathfn_2): Likewise.
2446 (expand_builtin_mathfn_3): Likewise.
2447 (expand_builtin_interclass_mathfn): Likewise.
2448 (expand_builtin_sincos): Likewise.
2449 (expand_builtin_cexpi): Likewise.
2450 (expand_builtin_int_roundingfn): Likewise.
2451 (expand_builtin_int_roundingfn_2): Likewise.
2452 (expand_builtin_pow): Likewise.
2453 (expand_builtin_powi): Likewise.
2454 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2455 of arglist, fixing callers appropriately. Use new CALL_EXPR
2456 accessors and constructors. Return NULL_RTX instead of 0.
2457 (expand_builtin_strstr): Likewise.
2458 (expand_builtin_strchr): Likewise.
2459 (expand_builtin_strrchr): Likewise.
2460 (expand_builtin_strpbrk): Likewise.
2461 (expand_builtin_memcpy): Likewise.
2462 (expand_builtin_mempcpy): Likewise.
2463 (expand_builtin_mempcpy_args): New.
2464 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2465 (expand_builtin_memmove_args): New.
2466 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2467 (expand_movstr): Likewise.
2468 (expand_builtin_strcpy): Likewise.
2469 (expand_builtin_strcpy_args): New.
2470 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2471 (expand_builtin_strncpy): Likewise.
2472 (expand_builtin_memset): Likewise.
2473 (expand_builtin_memset_args): New.
2474 (expand_builtin_bzero): Similarly to expand_builtin_memset.
2475 (expand_builtin_memcmp): Likewise.
2476 (expand_builtin_strcmp): Likewise.
2477 (expand_builtin_strncmp): Likewise.
2478 (expand_builtin_strcat): Likewise.
2479 (expand_builtin_strncat): Likewise.
2480 (expand_builtin_strspn): Likewise.
2481 (expand_builtin_strcspn): Likewise.
2482 (expand_builtin_args_info): Likewise.
2483 (expand_builtin_va_start): Likewise.
2484 (gimplify_va_arg_expr): Likewise.
2485 (expand_builtin_va_end): Likewise.
2486 (expand_builtin_va_copy): Likewise.
2487 (expand_builtin_frame_address): Likewise.
2488 (expand_builtin_alloca): Likewise.
2489 (expand_builtin_bswap): Likewise.
2490 (expand_builtin_unop): Likewise.
2491 (expand_builtin_fputs): Likewise.
2492 (expand_builtin_expect): Likewise.
2493 (expand_builtin_fabs): Likewise.
2494 (expand_builtin_copysign): Likewise.
2495 (expand_builtin_printf): Likewise.
2496 (expand_builtin_fprintf): Likewise.
2497 (expand_builtin_sprintf): Likewise.
2498 (expand_builtin_init_trampoline): Likewise.
2499 (expand_builtin_signbit): Likewise.
2500 (expand_builtin_fork_or_exec): Likewise.
2501 (expand_builtin_sync_operation): Likewise.
2502 (expand_builtin_compare_and_swap): Likewise.
2503 (expand_builtin_lock_test_and_set): Likewise.
2504 (expand_builtin_lock_release): Likewise.
2505 (expand_builtin): Likewise.
2506 (builtin_mathfn_code): Likewise.
2508 (fold_builtin_constant_p): Pass call arguments individually instead
2509 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2510 accessors and constructors. Return NULL_TREE instead of 0.
2511 (fold_builtin_expect): Likewise.
2512 (fold_builtin_classify_type): Likewise.
2513 (fold_builtin_strlen): Likewise.
2514 (fold_builtin_nan): Likewise.
2515 (integer_valued_real_p): Likewise.
2516 (fold_trunc_transparent_mathfn): Likewise.
2517 (fold_fixed_mathfn): Likewise.
2518 (fold_builtin_cabs): Likewise.
2519 (fold_builtin_sqrt): Likewise.
2520 (fold_builtin_cbrt): Likewise.
2521 (fold_builtin_cos): Likewise.
2522 (fold_builtin_cosh): Likewise.
2523 (fold_builtin_tan): Likewise.
2524 (fold_builtin_sincos): Likewise.
2525 (fold_builtin_cexp): Likewise.
2526 (fold_builtin_trunc): Likewise.
2527 (fold_builtin_floor): Likewise.
2528 (fold_builtin_ceil): Likewise.
2529 (fold_builtin_round): Likewise.
2530 (fold_builtin_int_roundingfn): Likewise.
2531 (fold_builtin_bitop): Likewise.
2532 (fold_builtin_bswap): Likewise.
2533 (fold_builtin_logarithm): Likewise.
2534 (fold_builtin_hypot): Likewise.
2535 (fold_builtin_pow): Likewise.
2536 (fold_builtin_powi): Likewise.
2537 (fold_builtin_exponent): Likewise.
2538 (fold_builtin_memset): Likewise.
2539 (fold_builtin_bzero): Likewise.
2540 (fold_builtin_memory_op): Likewise.
2541 (fold_builtin_bcopy): Deleted; call site changed to invoke
2542 fold_builtin_memory_op directly.
2543 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2544 (fold_builtin_strncpy): Likewise.
2545 (fold_builtin_memcmp): Likewise.
2546 (fold_builtin_strcmp): Likewise.
2547 (fold_builtin_strncmp): Likewise.
2548 (fold_builtin_signbit): Likewise.
2549 (fold_builtin_copysign): Likewise.
2550 (fold_builtin_isascii): Likewise.
2551 (fold_builtin_toascii): Likewise.
2552 (fold_builtin_isdigit): Likewise.
2553 (fold_builtin_fabs): Likewise.
2554 (fold_builtin_abs): Likewise.
2555 (fold_builtin_fmin_fmax): Likewise.
2556 (fold_builtin_carg): Likewise.
2557 (fold_builtin_classify): Likewise.
2558 (fold_builtin_unordered_cmp): Likewise.
2560 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2561 New functions split out from fold_builtin_1.
2562 (fold_builtin_n): New.
2563 (fold_builtin_varargs): New.
2564 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
2566 (fold_call_expr): New.
2567 (build_function_call_expr): Rewrite to use new helper function.
2568 (fold_builtin_call_list): New.
2569 (build_call_expr): New.
2570 (fold_builtin_call_valist): New.
2571 (rewrite_call_expr): New.
2572 (validate_arg): New.
2573 (validate_arglist): Change parameter to be entire CALL_EXPR instead
2574 of an arglist. Change return type to bool. Use new CALL_EXPR
2577 (fold_builtin_strstr): Pass call arguments individually instead
2578 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2579 accessors and constructors. Return NULL_TREE instead of 0.
2580 (fold_builtin_strchr): Likewise.
2581 (fold_builtin_strrchr): Likewise.
2582 (fold_builtin_strpbrk): Likewise.
2583 (fold_builtin_strcat): Likewise.
2584 (fold_builtin_strncat): Likewise.
2585 (fold_builtin_strspn): Likewise.
2586 (fold_builtin_strcspn): Likewise.
2587 (fold_builtin_fputs): Likewise.
2588 (fold_builtin_next_arg): Likewise.
2589 (fold_builtin_sprintf): Likewise.
2591 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
2592 NULL_RTX instead of 0.
2593 (expand_builtin_memory_chk): Likewise.
2594 (maybe_emit_chk_warning): Likewise.
2595 (maybe_emit_sprintf_chk_warning): Likewise.
2597 (fold_builtin_object_size): Pass call arguments individually instead
2598 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2599 accessors and constructors. Return NULL_TREE instead of 0.
2600 (fold_builtin_memory_chk): Likewise.
2601 (fold_builtin_stxcpy_chk): Likewise.
2602 (fold_builtin_strncpy_chk): Likewise.
2603 (fold_builtin_strcat_chk): Likewise.
2604 (fold_builtin_strcat_chk): Likewise.
2605 (fold_builtin_strncat_chk): Likewise.
2606 (fold_builtin_sprintf_chk): Likewise.
2607 (fold_builtin_snprintf_chk): Likewise.
2608 (fold_builtin_printf): Likewise.
2609 (fold_builtin_vprintf): Likewise.
2611 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
2613 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
2614 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2615 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
2616 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
2617 (fold_unary): Likewise.
2618 (fold_binary): Likewise.
2619 (fold_ternary): Remove CALL_EXPR case, since they are no longer
2620 ternary expressions.
2621 (fold): Add logic for tcc_vl_exp.
2622 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
2623 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2624 (fold_build3_stat): Add assertion to flag broken interface for
2625 constructing CALL_EXPRs.
2626 (fold_build_call_list): New.
2627 (fold_build_call_list_initializer): New.
2628 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
2630 (fold_strip_sign_ops): Likewise.
2632 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2633 Brooks Moses <brooks.moses@codesourcery.com>
2634 Lee Millward <lee.millward@codesourcery.com>
2636 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
2637 accessors and dump arguments explicitly.
2639 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
2641 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
2643 (print_call_name): Use new CALL_EXPR accessors.
2645 * print-tree.c (print_node): Add case tcc_vl_exp. Print
2646 CALL_EXPR arguments explicitly instead of as a list. Use
2647 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2649 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
2650 (vrp_visit_stmt): Likewise.
2652 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
2653 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
2655 (force_move_till_expr): Likewise.
2657 * targhooks.c (default_external_stack_protect_fail): Use
2658 build_call_expr instead of build_function_call_expr.
2659 (default_hidden_stack_protect_fail): Likewise.
2661 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
2664 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
2665 and walk arguments explicitly.
2667 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
2668 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2669 (expand_simple_operations): Likewise.
2670 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
2672 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
2673 of TREE_CODE_LENGTH.
2674 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
2676 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
2677 instead of TREE_CODE_LENGTH.
2679 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
2680 (tree_ic_transform): Likewise.
2681 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
2682 parameter instead of arglist. Fix callers.
2683 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
2684 (tree_stringops_transform): Likewise.
2685 (tree_indirect_call_to_profile): Likewise.
2686 (tree_stringops_values_to_profile): Likewise.
2688 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
2689 (eliminate_tail_call): Likewise.
2691 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
2693 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2694 Use TREE_OPERAND_LENGTH and generalize to handle any number of
2696 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
2698 * omp-low.c (build_omp_barrier): Use build_call_expr.
2699 (lower_rec_input_clauses): Likewise.
2700 (lower_reduction_clauses): Likewise.
2701 (expand_parallel_call): Likewise.
2702 (maybe_catch_exception): Likewise.
2703 (expand_omp_for_generic): Likewise.
2704 (expand_omp_for_static_nochunk): Likewise.
2705 (expand_omp_sections): Likewise.
2706 (lower_omp_single_simple): Likewise.
2707 (lower_omp_single_copy): Likewise.
2708 (lower_omp_master): Likewise.
2709 (lower_omp_ordered): Likewise.
2710 (lower_omp_critical): Likewise.
2712 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
2713 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
2715 * tree-gimple.c (is_gimple_call_addr): Fix doc.
2716 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
2717 TREE_CODE_LENGTH. Add tcc_vl_exp case.
2719 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
2720 and generalize to handle any number of operands.
2721 (chrec_contains_undetermined): Likewise.
2722 (tree_contains_chrecs): Likewise.
2723 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
2725 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
2727 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
2728 fold_call_expr instead of fold_builtin.
2729 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
2730 match declarations there.
2731 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
2734 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
2735 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2737 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
2738 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
2740 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
2743 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
2744 (execute_cse_sincos): Use new CALL_EXPR accessors.
2746 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
2748 * gimple-low.c (lower_function_body): Use build_call_expr.
2749 (lower_builtin_setjmp): Likewise.
2751 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
2752 (set_storage_via_libcall): Likewise.
2753 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
2754 instead of TREE_CODE_LENGTH.
2755 (expand_expr_real_1): Use new CALL_EXPR accessors.
2757 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
2758 generalize to handle any number of operands.
2759 (TB_parent_eq): Likewise.
2761 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
2762 (strip_builtin_expect): Likewise.
2764 * function.c (gimplify_parameters): Use build_call_expr.
2766 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
2767 instead of TREE_CODE_LENGTH.
2769 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
2770 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
2772 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
2775 * gimplify.c (build_stack_save_restore): Use build_call_expr.
2776 (gimplify_decl_expr): Likewise.
2777 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
2778 Use new CALL_EXPR iterators.
2779 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
2780 (gimplify_modify_expr_to_memset): Likewise.
2781 (gimplify_variable_sized_compare): Likewise.
2782 (gimplify_omp_atomic_fetch_op): Likewise.
2783 (gimplify_omp_atomic_pipeline): Likewise.
2784 (gimplify_omp_atomic_mutex): Likewise.
2785 (gimplify_function_tree): Likewise.
2787 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
2788 (call_expr_flags): Likewise.
2789 (expand_call): Likewise.
2791 * except.c (expand_builtin_eh_return_data_regno): Pass entire
2792 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2795 * coverage.c (create_coverage): Use build_call_expr.
2797 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
2798 (temp_call_expr_obstack): New.
2799 (pool_copy_list): Delete.
2800 (temp_copy_call_expr): New.
2801 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
2802 CALL_EXPR accessors. Get rid of special goo for copying argument
2803 lists and use temp_copy_call_expr instead.
2804 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
2805 CALL_EXPR accessors.
2806 (create_expression_by_pieces): Likewise. Use build_call_array
2807 to construct the result instead of fold_build3.
2808 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
2809 dealing with argument lists.
2810 (init_pre): Remove references to expression_node_pool and
2811 list_node_pool. Init temp_call_expr_obstack instead.
2812 (fini_pre): Remove references to expression_node_pool and
2815 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
2816 and walk arguments explicitly instead of as a list.
2818 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
2819 (mx_register_decls): Likewise.
2820 (mudflap_register_call): Likewise.
2821 (mudflap_finish_file): Likewise.
2823 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
2824 (ipa_callsite_compute_param): Likewise.
2826 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
2827 accessors and constructor.
2829 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
2830 accessors and constructor.
2831 (convert_tramp_reference): Likewise.
2832 (convert_call_expr): Likewise.
2833 (finalize_nesting_tree_1): Likewise.
2835 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
2838 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
2840 * tree-inline.c (initialize_inlined_parameters): Pass entire
2841 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2843 (estimate_num_insns_1): Use new CALL_EXPR accessors.
2844 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
2846 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
2847 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2848 (vectorizable_reduction): Likewise.
2849 (vectorizable_call): Use new CALL_EXPR iterators.
2850 (vectorizable_conversion): Use build_call_expr.
2851 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
2852 (vect_gen_widened_results_half): Use build_call_expr.
2853 (vect_setup_realignment): Likewise.
2854 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
2856 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
2857 (pass_through_call): Likewise.
2858 (compute_object_sizes): Likewise. Use fold_call_expr instead of
2861 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
2862 (tree_gen_pow2_profiler): Likewise.
2863 (tree_gen_one_value_profiler): Likewise.
2864 (tree_gen_ic_func_profiler): Likewise.
2865 (tree_gen_average_profiler): Likewise.
2866 (tree_gen_ior_profiler): Likewise.
2868 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
2869 (find_func_aliases): Use new CALL_EXPR accessors. Add case
2870 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2872 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
2873 of TREE_CODE_LENGTH.
2875 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
2876 of TREE_CODE_LENGTH.
2878 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
2880 (convert_to_integer): Likewise.
2882 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
2885 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2886 Brooks Moses <brooks.moses@codesourcery.com>
2887 Lee Millward <lee.millward@codesourcery.com>
2889 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
2891 * config/frv/frv.c (frv_expand_builtin): Likewise.
2892 * config/s390/s390.c (s390_expand_builtin): Likewise.
2894 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
2895 (sparc_expand_builtin): Use new CALL_EXPR accessors.
2897 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
2898 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
2899 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
2900 (ix86_expand_store_builtin): Likewise.
2901 (ix86_expand_unop_builtin): Likewise.
2902 (ix86_expand_unop1_builtin): Likewise.
2903 (ix86_expand_sse_compare): Likewise.
2904 (ix86_expand_sse_comi): Likewise.
2905 (ix86_expand_vec_init_builtin): Likewise.
2906 (ix86_expand_vec_ext_builtin): Likewise.
2907 (ix86_expand_vec_set_builtin): Likewise.
2908 (ix86_expand_builtin): Use new CALL_EXPR accessors.
2910 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
2911 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2913 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
2914 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2915 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
2917 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
2919 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2920 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
2921 arglist. Use new CALL_EXPR accessors. Fix callers.
2922 (altivec_expand_abs_builtin): Likewise.
2923 (rs6000_expand_binop_builtin): Likewise.
2924 (altivec_expand_predicate_builtin): Likewise.
2925 (altivec_expand_lv_builtin): Likewise.
2926 (spe_expand_stv_builtin): Likewise.
2927 (altivec_expand_stv_builtin): Likewise.
2928 (rs6000_expand_ternop_builtin): Likewise.
2929 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
2930 (altivec_expand_st_builtin): Likewise.
2931 (altivec_expand_dst_builtin): Likewise.
2932 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
2933 arglist. Use new CALL_EXPR accessors. Fix callers.
2934 (altivec_expand_vec_set_builtin): Likewise.
2935 (altivec_expand_vec_ext_builtin): Likewise.
2936 (altivec_expand_builtin): Use new CALL_EXPR accessors.
2937 (spe_expand_builtin): Likewise.
2938 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
2939 arglist. Use new CALL_EXPR accessors. Fix callers.
2940 (spe_expand_evsel_builtin): Likewise.
2941 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
2942 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
2944 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
2945 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2946 (arm_expand_unop_builtin): Likewise.
2947 (arm_expand_builtin): Use new CALL_EXPR accessors.
2949 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
2952 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
2953 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2954 (bfin_expand_unop_builtin): Likewise.
2955 (bfin_expand_builtin): Use new CALL_EXPR accessors.
2957 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2958 Brooks Moses <brooks.moses@codesourcery.com>
2959 Lee Millward <lee.millward@codesourcery.com>
2961 * c-semantics.c (build_stmt): Add internal diagnostic check.
2963 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
2964 accessors. Print arguments explicitly instead of as a list.
2966 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
2968 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
2969 (c_finish_omp_flish): Likewise.
2971 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
2972 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
2973 instead of TREE_CODE_LENGTH.
2974 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
2975 (c_warn_unused_result): Likewise.
2977 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2980 * doc/invoke.texi (Warning Options): Remove
2981 -Werror-implicit-function-declaration.
2982 (Wimplicit-function-declaration): Update description.
2983 * opts.c (common_handle_option): Move handling of -Werror=* to...
2984 (enable_warning_as_error): ...here.
2985 * opts.h (enable_warning_as_error): Declare.
2986 * c-decl.c (implicit_decl_warning): Unless
2987 -Wno-implicit-function-declaration is given, emit a pedwarn if
2988 -std=c99 or emit a warning if -Wimplicit-function-declaration.
2989 * c.opt (Wimplicit-function-declaration): Replace
2990 mesg_implicit_function_declaration with
2991 warn_implicit_function_declaration.
2992 * c-opts.c (c_common_handle_option):
2993 -Werror-implicit-function-declaration is exactly equal as
2994 -Werror=implicit-function-declaration.
2995 (set_Wimplicit): Replace mesg_implicit_function_declaration with
2996 warn_implicit_function_declaration.
2997 (c_common_post_options): -Wimplict-function-declaration is enabled
2998 by default by -std=c99, otherwise is disabled by default.
2999 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
3001 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3003 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
3004 DECL on the rhs to a DECL on the lhs for debug info purposes if the
3005 former is ignored but not the latter.
3007 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3009 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
3010 is made and the reference doesn't use the alias set of its type,
3011 do not create the temporary using that type.
3013 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
3015 * jump.c: Remove prototypes for delete_computation and
3016 delete_prior_computation.
3018 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3020 * jump.c (get_label_after): Delete.
3021 (get_label_before, delete_computation, delete_jump,
3022 delete_prior_computation, follow_jumps): Move...
3023 * reorg.c (delete_computation, delete_prior_computation): ... here...
3024 (get_label_before, delete_jump): ... making these static ...
3025 (follow_jumps): ... and simplifying this since it only runs after
3027 * rtl.h (get_label_after, get_label_before, delete_jump,
3028 follow_jumps): Delete prototypes.
3030 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3032 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3034 2007-02-15 Nick Clifton <nickc@redhat.com>
3036 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3037 order to prevent it from being munged by the target.
3039 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
3041 * config/i386/i386.md: Remove misleading comment.
3043 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3045 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3046 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3049 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3051 * tree-sra.c (instantiate_missing_elements): Canonicalize
3053 (sra_build_assignment): New.
3054 (generate_copy_inout, generate_element_copy,
3055 generate_element_zero, generate_one_element_init): Use it.
3057 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3059 * tree-sra.c (instantiate_missing_elements): Canonicalize
3061 (sra_build_assignment): New.
3062 (generate_copy_inout, generate_element_copy,
3063 generate_element_zero, generate_one_element_init): Use it.
3065 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3067 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3070 2007-02-14 Joseph Myers <joseph@codesourcery.com>
3072 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3073 types as aggregates not scalars.
3074 * function.c (assign_stack_temp_for_type): Likewise.
3076 2007-02-14 Roger Sayle <roger@eyesopen.com>
3077 Zdenek Dvorak <dvorakz@suse.cz>
3079 * tree-dump.c (dump_switch_p_1): Require exact match of the option
3082 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
3084 * passes.c (next_pass_1): Clear the next field of the copied
3087 2007-02-14 Richard Henderson <rth@redhat.com>
3089 * tree-sra.c (early_sra): New.
3090 (decl_can_be_decomposed_p): Deny va_list if early_sra.
3091 (tree_sra_early, pass_sra_early): New.
3092 * tree-pass.h (pass_sra_early): Declare.
3093 * passes.c (init_optimization_passes): Use it.
3095 2007-02-14 Richard Guenther <rguenther@suse.de>
3097 * flags.h (issue_strict_overflow_warning): Convert to a macro.
3099 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
3101 PR tree-optimization/30771
3102 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3104 (vect_analyze_operations): Induction phis can now be marked as
3106 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3107 Update documentation accordingly.
3109 2007-02-14 Nick Clifton <nickc@redhat.com>
3111 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3112 most 3 arguments are supported.
3113 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3115 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
3117 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3118 Ensure dst->current is valid.
3120 2007-02-13 Paul Brook <paul@codesourcery.com>
3122 * config.gcc: Add arm*-*-uclinux-*eabi.
3123 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3124 (SUBTARGET_EXTRA_LINK_SPEC): Define.
3125 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3126 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3127 (LINK_SPEC): Define.
3129 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3131 * config/arm/uclinux-eabi.h: New file.
3132 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3133 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3136 2007-02-13 Ian Lance Taylor <iant@google.com>
3138 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3139 * flags.h (warn_strict_overflow): Declare.
3140 (enum warn_strict_overflow_code): Define.
3141 (issue_strict_overflow_warning): New static inline function.
3142 * opts.c (warn_strict_overflow): New variable.
3143 (common_handle_option): Handle OPT_Wstrict_overflow and
3144 OPT_Wstrict_overflow_.
3145 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3147 * fold-const.c: Include intl.h.
3148 (fold_deferring_overflow_warnings): New static variable.
3149 (fold_deferred_overflow_warning): New static variable.
3150 (fold_deferred_overflow_code): New static variable.
3151 (fold_defer_overflow_warnings): New function.
3152 (fold_undefer_overflow_warnings): New function.
3153 (fold_undefer_and_ignore_overflow_warnings): New function.
3154 (fold_deferring_overflow_warnings_p): New function.
3155 (fold_overflow_warning): New static function.
3156 (make_range): Add strict_overflow_p parameter. Change all
3158 (extract_muldiv, extract_muldiv_1): Likewise.
3159 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3160 tree_expr_nonnegative_p.
3161 (fold_negate_expr): Call fold_overflow_warning.
3162 (fold_range_test): Likewise.
3163 (fold_comparison): Likewise.
3164 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
3165 instead of tree_expr_nonnegative_p.
3166 (tree_expr_nonnegative_warnv_p): Rename from
3167 tree_expr_nonnegative_p, add strict_overflow_p parameter.
3168 (tree_expr_nonnegative_p): New function.
3169 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3170 strict_overflow_p parameter.
3171 (tree_expr_nonzero_p): New function.
3172 * passes.c (verify_interpass_invariants): New static function.
3173 (execute_one_pass): Call it.
3174 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3176 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3177 (estimate_numbers_of_iterations): Likewise.
3178 (scev_probably_wraps_p): Likewise.
3179 * tree-ssa-ccp.c: Include "toplev.h".
3180 (evaluate_stmt): Defer fold overflow warnings until we know we are
3182 (struct fold_stmt_r_data): Add stmt field.
3183 (fold_stmt_r): Defer fold overflow warnings until we know we
3185 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3186 (fold_stmt_inplace): Likewise.
3187 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3188 (cleanup_control_expr_graph): Defer fold overflow warnings until
3189 we know we are going to optimize.
3190 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3191 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3193 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3194 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3195 * tree-ssa-loop-manip.c (create_iv): Likewise.
3196 * c-typeck.c (build_conditional_expr): Likewise.
3197 (build_binary_op): Likewise.
3198 * tree-vrp.c (vrp_expr_computes_nonzero): Call
3199 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3200 (extract_range_from_unary_expr): Likewise.
3201 * simplify-rtx.c (simplify_const_relational_operation): Warn when
3202 assuming that signed overflow does not occur.
3203 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3204 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3205 (fold_defer_overflow_warnings): Declare.
3206 (fold_undefer_overflow_warnings): Declare.
3207 (fold_undefer_and_ignore_overflow_warnings): Declare.
3208 (fold_deferring_overflow_warnings_p): Declare.
3209 (tree_expr_nonzero_warnv_p): Declare.
3210 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3212 (Warning Options): Document -Wstrict-overflow.
3213 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3214 (tree-ssa-ccp.o): Likewise.
3215 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3216 (fold-const.o): Depend on intl.h.
3218 2007-02-13 Ian Lance Taylor <iant@google.com>
3221 * lower-subreg.c (resolve_simple_move): Decompose subregs in
3224 2007-02-13 Stuart Hastings <stuart@apple.com>
3226 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3228 2007-02-13 Richard Henderson <rth@redhat.com>
3230 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3231 handled_component_p before looking for the indirect_ref.
3233 2007-02-13 Richard Henderson <rth@redhat.com>
3235 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3236 remove flags clobber.
3237 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3238 (bswaphi_lowpart): New.
3239 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3240 remove TARGET_BSWAP test. Delete expander of the same name.
3242 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3243 (expand_unop): Use them.
3245 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
3247 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3248 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3249 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3250 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3251 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3252 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3253 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3254 assembler dialect choice from asm templates.
3256 2007-02-12 Richard Henderson <rth@redhat.com>
3258 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3259 (fixuns_trunc<SSEMODEF>si2): Use it.
3260 * config/i386/sse.md (vec_setv4sf_0): Export.
3261 * config/i386/i386.c (ix86_build_const_vector): Export.
3262 (ix86_split_convert_uns_si_sse): Rename from
3263 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3264 * config/i386/i386-protos.h: Update.
3266 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3269 * c-typeck.c (c_finish_return): Improve warning message.
3271 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3273 * alias.c (find_symbolic_term): Delete unused function.
3275 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
3277 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3278 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3279 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3281 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3283 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3284 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3285 the function, temporarily point the debug interface to the null one.
3287 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3289 * dwarf2out.c (round_up_to_align): New static function.
3290 (field_byte_offset): Use it to round the offset.
3292 2007-02-12 Richard Henderson <rth@redhat.com>
3294 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3295 (inswl_const): Export.
3297 2007-02-12 Richard Henderson <rth@redhat.com>
3299 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3300 result mode of the libcall, convert back to outmode.
3302 2007-02-12 Roger Sayle <roger@eyesopen.com>
3304 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3305 (bswapdi2): New define_expand to implement 32-bit implementation.
3307 2007-02-12 Nick Clifton <nickc@redhat.com>
3309 * doc/invoke.texi (Overall Options): Document --help=.
3310 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3311 (cc1_options): Pass --help= on to cc1.
3312 (display_help): Add description of --help=.
3313 (process_command): Add code to handle --help=. Allow translated
3314 --help and --target-help switches to be passed on to compiler
3316 (main): Remove unused if statement.
3317 * opts.c (columns): Remove.
3318 (LEFT_COLUMN): Define.
3319 (wrap_help): Add columns argument.
3320 (print_filtered_help): Change parameters to be an include bitmask,
3321 an exclude bitmask, an any bitmask and the column width. Move the
3322 code to display the params list here. Add code to display the
3323 status of options rather than their descriptions if the quiet flag
3325 (print_specific_help): Change parameters to be an include bitmask,
3326 an exclude bitmask and an any bitmask. Move code to look up the
3327 column width here. Decide upon the title for an options listing.
3328 (common_handle_options): Add code to handle --help=. Adapt code
3329 for --help and --target-help to use the revised form of the
3330 print_specific_help function.
3331 (print_help): Delete.
3332 (print_param_help): Delete.
3333 (print_switch): Delete.
3334 * opts.h (cl_lang_count): Add prototype.
3335 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3336 CL_MAX_OPTION_CLASS): New defines.
3337 * optc-gen.awk: Add construction of cl_lang_count.
3338 * c.opt: Add Warning attribute to warning options and Optimization
3339 attribute to optimization options.
3340 * common.opt: Likewise.
3342 Add -fhelp and -ftarget-help as aliases for the transformed --help
3343 and --target-help options.
3344 * opt-functions.awk: Add code to handle Warning and Optimization
3347 2007-02-12 Richard Henderson <rth@redhat.com>
3349 * config/alpha/constraints.md: New file.
3350 * config/alpha/alpha.c: Include tm-constrs.h.
3351 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3352 alpha_extra_constraint): Remove.
3353 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3354 * config/alpha/alpha-protos.h: Update.
3355 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3356 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3357 (EXTRA_CONSTRAINT): Remove.
3358 * config/alpha/alpha.md: Include constraints.md.
3359 (adddi splitter): Use satisfies_constraint_*.
3360 * config/alpha/predicates.md (add_operand): Likewise.
3361 (sext_add_operand, addition_operation): Likewise.
3363 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
3365 PR tree-optimization/29145
3366 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3367 in our handling of restrict qualified pointers.
3369 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3372 * doc/invoke.texi (Wunused-value): Update description.
3373 (Wextra): Delete item.
3374 * opts.c (set_Wextra): Don't use the value of Wextra to set the
3375 value of Wunused-value.
3376 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3377 (c_finish_stmt_expr): Don't check extra_warnings.
3378 (emit_side_effect_warnings): The caller is responsible to check
3381 2007-02-11 Roger Sayle <roger@eyesopen.com>
3382 Matt Thomas <matt@3am-software.com>
3384 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3386 2007-02-11 Roger Sayle <roger@eyesopen.com>
3388 * simplify-rtx.c (simplify_relational_operation_1): Optimize
3389 comparisons of POPCOUNT against zero.
3390 (simplify_const_relational_operation): Likewise.
3392 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3394 * doc/invoke.texi (Wextra): Delete outdated paragraph.
3396 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3398 * dwarf2out.c (root_type): Delete unused function.
3400 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3402 * genattrtab.c (contained_in_p): Delete unused function.
3403 (write_expr_attr_cache): Likewise.
3405 2007-02-11 Jan Hubicka <jh@suse.cz>
3407 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3410 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
3412 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3413 to add the REG_EQ* note.
3414 * see.c (see_merge_one_use_extension): Likewise.
3415 * local-alloc.c (update_equiv_regs): Likewise. Also don't
3416 turn REG_EQUAL notes into REG_EQUIV notes if the target
3417 register may have more than one set.
3418 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3419 * gcse.c (try_replace_reg): Likewise.
3420 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3421 * calls.c (fixup_tail_calls): Likewise. Abort if there is
3422 more than one REG_EQUIV note.
3423 * reload1.c (gen_reload): Use set_unique_reg_note.
3425 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
3427 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3428 (ix86_builtin_conversion): New function.
3430 2007-02-06 Mark Mitchell <mark@codesourcery.com>
3433 * tree.h (DECL_REPLACEABLE_P): New macro.
3434 * except.c (set_nothrow_function_flags): Likewise.
3436 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
3437 Ira Rosen <irar@il.ibm.com>
3438 Dorit Nuzman <dorit@il.ibm.com>
3440 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3441 * targhooks.c (default_builtin_vectorized_conversion): New.
3442 * targhooks.h (default_builtin_vectorized_function): New declaration.
3443 * target.h (struct vectorize): Add builtin_conversion field.
3444 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3445 stmt_vec_info_type value.
3446 (vectorizable_conversion): New declaration.
3447 * tree-vect-analyze.c (vect_analyze_operations): Add
3448 vectorizable_conversion call.
3449 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3450 * tree-vect-transform.c (vectorizable_conversion): New function.
3451 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
3452 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
3454 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
3455 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
3456 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
3457 or ALTIVEC_BUILTIN_VCFSX.
3459 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3462 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
3463 CONST_DOUBLE and operand 0 is a hard register.
3464 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
3465 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
3466 is a hard floating-point register.
3468 2007-02-10 Richard Henderson <rth@redhat.com>
3469 Jakub Jelinek <jakub@redhat.com>
3470 Alexandre Oliva <aoliva@redhat.com>
3472 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
3473 * builtin-types.def (BT_WORD): Make unsigned.
3474 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3475 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
3476 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
3477 * c-decl.c (grokdeclarator): Don't error if !have_tls.
3478 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3479 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
3481 * expr.c (emutls_var_address): New.
3482 (expand_expr_real_1): Expand emulated tls.
3483 (expand_expr_addr_expr_1): Likewise.
3484 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
3485 * output.h (emutls_finish): Declare.
3486 * toplev.c (compile_file): Call it.
3487 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
3488 address before wrapping in CONST.
3489 * varasm.c (emutls_htab, emutls_object_type): New.
3490 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
3491 (get_emutls_object_name, get_emutls_object_type): New.
3492 (get_emutls_init_templ_addr, emutls_decl): New.
3493 (emutls_common_1, emutls_finish): New.
3494 (assemble_variable): When emulating tls, swap decls; generate
3495 constructor for the emutls objects.
3496 (do_assemble_alias): When emulating tls, swap decl and target name.
3497 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
3499 * varpool.c (decide_is_variable_needed): Look at force_output.
3500 Recurse for emulated tls.
3501 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
3502 with decide_is_variable_needed.
3503 * emutls.c: New file.
3504 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
3505 tls_object for real tls.
3507 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
3509 PR rtl-optimization/29599
3510 * reload1.c (eliminate_regs_in_insn): Take the destination
3511 mode into account when computing the offset.
3513 2007-02-09 Stuart Hastings <stuart@apple.com>
3514 Richard Henderson <rth@redhat.com>
3516 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3517 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3518 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
3519 fixuns_truncdfhi2): New.
3520 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
3521 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
3522 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
3523 (floatunssidf2): Allow nonimmediate source.
3524 * gcc/config/i386/sse.md (movdi_to_sse): New.
3525 (vec_concatv2di): Drop '*'.
3526 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
3527 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3528 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
3530 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
3531 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3532 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
3533 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3534 (ix86_build_signbit_mask): Fix decl of v, refactor to call
3535 ix86_build_const_vector.
3536 (x86_emit_floatuns): Rewrite.
3538 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3540 * genautomata.c (longest_path_length): Delete unused function.
3541 (struct state): Delete unused longest_path_length.
3542 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
3543 (get_free_state): Delete unused.
3545 2007-02-09 Jan Hubicka <jh@suse.cz>
3547 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
3548 * doc/invoke.texi (inline-unit-growth): Update default value.
3550 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
3551 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
3552 (rebuild_cgraph_edges): Likewise.
3553 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
3554 (dump_cgraph_node): Dump frequencies.
3555 (cgraph_clone_edge): Add frequency scales.
3556 (cgraph_clone_node): Add freuqnecy.
3557 * cgraph.h (cgraph_edge): Add freuqnecy argument.
3558 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
3559 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
3560 * tree-pass.h (TODO_rebuild_frequencies): New constant.
3561 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
3562 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
3563 (save_inline_function_body): Likewise.
3564 * ipa-inline.c: inluce rtl.h
3565 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
3566 (cgraph_edge_badness): Use frequencies.
3567 (cgraph_decide_recursive_inlining): Update clonning.
3568 (cgraph_decide_inlining_of_small_function): Dump frequency.
3569 * predict.c (estimate_bb_frequencies): Export.
3570 * predict.h (estimate_bb_frequencies): Declare.
3571 * tree-inline.c (copy_bb): Watch overflows.
3572 (expand_call_inline): Update call of cgraph_create_edge.
3573 (optimize_inline_calls): Use TODO flags to update frequnecies.
3574 * passes.h: Include predict.h
3575 (init_optimization_passes): Move profile ahead.
3576 (execute_function_todo): Handle TODO_rebuild_frequencies.
3578 2007-02-09 Roger Sayle <roger@eyesopen.com>
3580 * config/alpha/alpha.c (emit_insxl): Force the first operand of
3581 the insbl or inswl pattern into a register.
3583 2007-02-09 Roger Sayle <roger@eyesopen.com>
3585 * config/ia64/ia64.md (bswapdi2): New define_insn.
3587 2007-02-09 Richard Henderson <rth@redhat.com>
3589 * config/i386/constraints.md (Ym): New constraint.
3590 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
3591 (movdi_1_rex64): Split sse and xmm general register moves from
3592 memory move alternatives. Use conditional register constraints.
3593 (movsf_1, movdf_integer): Likewise.
3594 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
3595 (movdf_integer_rex64): New.
3596 (pushsf_rex64): Fix output constraints.
3597 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
3598 (sse2_stored): Likewise.
3599 (sse2_storeq_rex64): New.
3600 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
3601 amd and not generic.
3602 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
3603 for optimize_size. Remove SF/DFmode hack.
3605 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3607 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
3610 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
3611 Richard Sandiford <richard@codesourcery.com>
3613 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
3614 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
3615 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
3616 m68k/t-mlib to tmake_file.
3617 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
3618 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
3619 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
3620 Allow it to be cf or m68k. Set m68k_arch_family. If that
3621 variable is not empty, add t-$m68k_arch_family to tmake_file.
3622 Add t-mlibs to tmake_file.
3623 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
3624 * config/m68k/t-cf: New file.
3625 * config/m68k/t-m68k: Likewise.
3626 * config/m68k/t-mlibs: Likewise.
3627 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3628 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3629 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3630 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3631 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
3633 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
3634 (INSTALL_LIBGCC): Delete.
3635 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3636 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3637 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3638 (M68K_MLIB_CPU): Define.
3639 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3640 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3641 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
3643 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
3644 Richard Guenther <rguenther@suse.de>
3647 * fold-const.c (fold_comparison): Handle obfuscated comparisons
3648 against INT_MIN/INT_MAX.
3649 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
3650 file if a loop is removed.
3652 2007-02-09 Joseph Myers <joseph@codesourcery.com>
3654 * calls.c (store_one_arg): Pass correct alignment to
3655 emit_push_insn for non-BLKmode values.
3656 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
3657 unaligned stack slot via a suitably aligned slot.
3659 2007-02-08 DJ Delorie <dj@redhat.com>
3661 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
3663 (legal_subregs): Use unsigned char, make const.
3664 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
3666 2007-02-08 Paul Brook <paul@codesourcery.com>
3668 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
3669 special interworking needed.
3671 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
3673 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
3674 conditional to __SSE2__.
3675 (Entries below should have been added to first ChangeLog
3676 entry for amdfam10 dated 2007-02-05)
3677 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
3679 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
3681 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
3684 2007-02-08 DJ Delorie <dj@redhat.com>
3686 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
3687 * config/m32c/m32c.c (legal_subregs): New.
3688 (m32c_illegal_subreg_p): New.
3689 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
3690 unsupported subregs of hard regs.
3692 2007-02-08 Jan Hubicka <jh@suse.cz>
3694 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
3695 the same one; always update histograms.
3697 2007-02-08 Diego Novillo <dnovillo@redhat.com>
3699 * passes.c (init_optimization_passes): Tidy comment.
3701 2007-02-08 Roger Sayle <roger@eyesopen.com>
3703 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
3704 strip zero_extend, bswap and rotates from POCOUNT's argument.
3705 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
3706 zero_extend and rotates from PARITY's argument.
3707 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
3708 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
3709 of an integer constant at compile-time.
3711 2007-02-08 Diego Novillo <dnovillo@redhat.com>
3714 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
3716 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
3719 * tree-ssa-live.c (remove_unused_locals): Do not remove
3720 TREE_ADDRESSABLE variables.
3721 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
3722 * tree-ssa-operands.c (add_virtual_operand): Remove argument
3723 FOR_CLOBBER. Update all users.
3724 If VAR has an associated alias set, add a virtual operand for
3725 it if no alias is found to conflict with the memory reference.
3727 2007-02-07 Jan Hubicka <jh@suse.cz>
3728 Robert Kidd <rkidd@crhc.uiuc.edu>
3730 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
3732 2007-02-07 Ian Lance Taylor <iant@google.com>
3734 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
3736 2007-02-07 Roger Sayle <roger@eyesopen.com>
3738 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3739 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
3740 tablejumpdi, movsi_to_cr_one): Remove constraints from
3741 define_expand's match_operands.
3743 2007-02-07 Roger Sayle <roger@eyesopen.com>
3745 * global.c (compute_regsets): Move declatation of "i" inside of
3746 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
3748 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3751 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
3752 of INDIRECT_REF <RESULT_DECL>.
3754 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
3756 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
3757 Kaz Kojima <kkojima@gcc.gnu.org>
3760 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
3762 (sh_initialize_trampoline): Add parentheses to avoid a warning.
3764 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
3766 * doc/loop.texi: Document possibility not to perform disambiguation
3767 of loops with multiple latches.
3768 * cfgloopmanip.c (alp_enum_p): Removed.
3769 (add_loop): Handle subloops. Use get_loop_body_with_size.
3770 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
3771 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
3772 the new forwarder block.
3773 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
3774 Handle the case latch is NULL.
3775 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
3776 when marking loop exits.
3777 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
3779 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
3780 disambiguate_loops_with_multiple_latches.
3781 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
3782 before fix_loop_structure.
3783 * cfgloop.c: Include pointer-set.h and output.h.
3784 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
3785 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
3786 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
3787 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
3788 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
3789 disambiguate_multiple_latches, get_loop_body_with_size,
3790 disambiguate_loops_with_multiple_latches): New functions.
3791 (flow_loop_dump): Dump multiple latch edges.
3792 (flow_loop_nodes_find): Handle loops with multiple latches.
3793 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
3794 (glb_enum_p): Modified.
3795 (get_loop_body): Use get_loop_body_with_size.
3796 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
3797 (AVOID_CFG_MODIFICATIONS): New constant.
3798 (disambiguate_loops_with_multiple_latches, add_loop,
3799 get_loop_body_with_size): Declare.
3800 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
3802 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
3805 * global.c (compute_regsets): New function.
3806 (global_alloc): Refactored ELIMINABLE_REGSET
3807 and NO_GLOBAL_ALLOC_REGS computation out.
3808 (rest_of_handle_global_alloc): Call compute_regsets()
3809 for non-optimizing case.
3811 2007-02-06 Richard Henderson <rth@redhat.com>
3813 * config/i386/constraints.md (Y2): Rename from Y.
3814 (Yi): New constraint.
3815 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
3816 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
3817 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
3818 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
3819 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
3820 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
3821 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
3822 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
3823 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
3824 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
3825 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
3826 vec_extractv2si_1): Change Y constraints to Y2.
3827 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
3828 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
3829 Change Y constraints to Y2.
3830 (sse2_loadld): Change Y constraints to x.
3832 2007-02-06 Roger Sayle <roger@eyesopen.com>
3834 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
3835 (parity<mode>2): New define_expand using rs6000_emit_parity.
3836 * config/rs6000/rs6000.c (rs6000_emit_popcount,
3837 rs6000_emit_parity): New functions.
3838 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
3839 rs6000_emit_parity): Prototype here.
3841 2007-02-06 Ian Lance Taylor <iant@google.com>
3843 * lower-subreg.c (simple_move_operand): Reject CONST.
3844 (resolve_clobber): Call validate_change rather than directly
3845 assigning to XEXP (pat, 0).
3847 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
3849 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
3850 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
3851 (tree-cfg.o): Remove hashtab.h dependency.
3853 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
3854 (struct ivopts_data): Change niters to pointer_map_t.
3855 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
3856 (niter_for_exit): Create pointer_map on demand. Change for
3858 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
3859 (free_loop_data): Destroy data->niters if created and reset field.
3860 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
3861 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
3863 * tree-ssa-reassoc.c: Include pointer-set.h.
3864 (bb_rank): Change to long *.
3865 (operand_rank): Change to pointer_map_t.
3866 (find_operand_rank): Return long, -1 if not found. Declare as inline.
3867 (insert_operand_rank): Accept long.
3868 (operand_entry_hash, operand_entry_eq): Remove.
3869 (get_rank): Return long. Adjust for changes above.
3870 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
3872 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
3874 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
3875 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
3876 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
3878 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
3879 directly since it cannot be NULL.
3880 (get_vi_for_tree): Rewrite for pointer_map API.
3881 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
3882 (init_alias_vars): Create vi_for_tree as pointer_map.
3883 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
3885 * tree-cfg.c: Don't include hashtab.h.
3886 (edge_to_cases): Declare as pointer_map.
3887 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
3889 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
3890 (start_recording_case_labels): Create edge_to_cases as pointer_map.
3891 (end_recoding_case_labels): Cleanup edge_to_cases manually before
3893 (record_switch_edge): Delete.
3894 (get_cases_for_edge): Adjust for pointer_map API, inline
3895 record_switch_edge (rewritten for new API), remove goto.
3897 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
3899 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
3900 * tree-nested.c: Include pointer-set.h.
3901 (var_map_elt, var_map_eq, var_map_hash): Delete.
3902 (struct nesting_info): Remove GTY marker. Change the two htab_t's
3904 (nesting_info_bitmap_obstack): New.
3905 (lookup_field_for_decl): Adjust for pointer_map API.
3906 (lookup_tramp_for_decl): Adjust for pointer_map API.
3907 (get_nonlocal_debug_decl): Adjust for pointer_map API.
3908 (get_local_debug_decl): Adjust for pointer_map API.
3909 (convert_nl_goto_reference): Adjust for pointer_map API.
3910 (convert_nl_goto_receiver): Adjust for pointer_map API.
3911 (create_nesting_tree): Create outside GGC space. Create bitmap on
3912 the new obstack. Create field_map and var_map as pointer_maps.
3913 (free_nesting_tree): Adjust for changes to create_nesting_tree.
3915 (lower_nested_functions): Move root here, no need to NULL it.
3916 Initialize and release the obstack.
3918 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
3920 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
3921 Remove prototypes and make them non-static.
3922 (struct tree_int_map): Remove.
3923 * tree.h (struct tree_int_map): Move here, turning TO into an
3925 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
3927 * tree.h (TREE_COMPLEXITY): Remove.
3928 (struct tree_exp): Remove complexity field.
3929 * tree.c (build1_stat): Don't set it.
3931 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
3932 Victor Kaplansky <victork@il.ibm.com>
3934 * tree-vectorizer.c (vect_is_simple_use): Support induction.
3935 (vect_is_simple_reduction): Support reduction with induction as
3936 one of the operands.
3937 (vect_is_simple_iv_evolution): Fix formatting.
3938 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
3939 formatting. Don't mark induction phis for vectorization.
3940 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
3941 * tree-vect-transform.c (get_initial_def_for_induction): New function.
3942 (vect_get_vec_def_for_operand): Support induction.
3943 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
3945 (vectorizable_reduction): Support reduction with induction as one of
3947 (vectorizable_type_demotion): Use def-type of stmt argument rather
3948 than dummy def-type.
3950 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
3951 flag_tree_scev_cprop.
3952 * common.opt (tree-scev-cprop): New flag.
3954 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
3955 call to vect_get_new_vect_var.
3957 2007-02-06 Ira Rosen <irar@il.ibm.com>
3959 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
3960 vectype is not NULL.
3961 (vect_pattern_recog_1): Likewise.
3963 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3965 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
3966 (fold_negate_expr): Likewise.
3968 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
3971 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
3972 even if cv-qualification is the same.
3974 2007-02-05 Geoffrey Keating <geoff