1 2007-03-11 Ira Rosen <irar@il.ibm.com>
3 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
4 indicate success/failure of the analysis. Add negation to subtrahend
5 in case of subtraction. Fail if both operands contain constants.
6 (create_data_ref): Fail if analyze_offset fails.
8 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/i386.md (frndintxf2): Rename to ...
11 (rintxf2): ... this. Remove expander having same name.
12 (rintsf2, rintdf2): Implement using SSEMODEF macro.
13 (roundsf2, rounddf2): Ditto.
14 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
15 (lround<mode>di2, lround<mode>si2): Ditto.
17 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
19 * lower-subreg.c: Include except.h.
20 (decompose_multiword_subregs): Verify that the only control flow
21 insns we can split are loads to multi-words pseudos.
22 Handle breaking such blocks after splitting, instead of calling
23 find_many_sub_basic_blocks.
25 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
26 on the new basic block. Add a lengthy comment explaining why we
27 thought this was necessary.
28 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
30 2007-03-10 Mark Mitchell <mark@codesourcery.com>
33 * tree.c (walk_type_fields): Recurse into the element type of
34 ARRAY_TYPEs if there is a pointer set.
36 2007-03-10 Dirk Mueller <dmueller@suse.de>
38 * c-common.c (warn_logical_operator): Fix condition.
40 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
42 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
44 * config/darwin.c (machopic_select_section): Remove superfluous
45 argument in call to categorize_decl_for_section. Remove unused
48 2007-03-10 Joseph Myers <joseph@codesourcery.com>
50 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
52 * configure: Regenerate.
54 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
57 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
58 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
59 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
60 Add LABEL_NUSES to emitted label.
61 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
62 branch probability value to emitted jump insn.
63 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
64 Do not check life information and do not re-arrange input operands
65 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
67 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
69 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
70 the change of decode_asm_operands.
72 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
74 * mode-switching.c (create_pre_exit): Skip blockage insn.
76 2007-03-09 Diego Novillo <dnovillo@redhat.com>
78 * tree-pass.h (TODO_update_smt_usage): Remove.
80 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
84 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
87 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
88 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
91 2007-03-09 Geoffrey Keating <geoffk@apple.com>
93 * gcc.c: Document %{, in big comment at top.
94 (input_suffix_matches): Remove special handling for .s and
96 (input_spec_matches): New.
97 (handle_braces): Handle %{,.
98 (validate_switches): ',' indicates a value which is not a switch.
99 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
100 to detect assembler input.
101 * config/i386/sol2.h (CPP_SPEC): Likewise.
102 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
103 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
104 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
105 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
106 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
107 -m64 causes deployment target to default to 10.5.
108 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
110 2007-03-09 Richard Henderson <rth@redhat.com>
113 * target.h (targetm.asm.out.reloc_rw_mask): New.
114 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
115 (TARGET_ASM_OUT): Use it.
116 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
117 * varasm.c (categorize_decl_for_section): Remove shlib argument;
118 use the new reloc_rw_mask target hook instead.
119 (default_section_type_flags_1): Merge into...
120 (default_section_type_flags): ... here.
121 (decl_readonly_section_1): Merge into...
122 (decl_readonly_section): ... here.
123 (default_elf_select_section_1): Merge into...
124 (default_elf_select_section): ... here.
125 (default_unique_section_1): Merge into...
126 (default_unique_section): ... here.
127 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
128 (default_select_rtx_section): Use it.
129 (default_elf_select_rtx_section): Likewise.
130 * output.h: Update to match.
131 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
132 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
133 (TARGET_ASM_RELOC_RW_MASK): New.
134 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
135 to categorize_decl_for_section.
136 (x86_64_elf_unique_section): Likewise.
137 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
138 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
139 (TARGET_ASM_RELOC_RW_MASK): New.
140 * config/ia64/ia64.c (ia64_rwreloc_select_section,
141 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
142 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
143 (TARGET_RWRELOC): Remove.
144 (ia64_section_type_flags): Adjust call to default_section_type_flags.
145 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
146 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
147 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
148 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
149 (rs6000_xcoff_select_section): Use decl_readonly_section.
150 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
151 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
152 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
153 (TARGET_SECTION_TYPE_FLAGS): Remove.
154 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
156 2007-03-09 Roger Sayle <roger@eyesopen.com>
158 * fold-const.c (fold_comparison): Remove compile-time evaluation of
159 complex constant equality/inequality comparisons for here.
160 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
161 known at compile-time or can be simplified to a scalar comparison.
162 (fold_relational_const): Move compile-time evaluation of complex
163 constant equality/inequality comparisons to here.
165 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
167 PR rtl-optimization/30643
168 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
170 (fold_rtx): Recurse, like before 2006-11-03.
172 2007-03-09 DJ Delorie <dj@redhat.com>
174 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
177 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
179 PR tree-optimization/30375
180 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
181 LHS of statements is not the same.
182 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
184 2007-03-09 Chao-ying Fu <fu@mips.com>
186 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
188 * doc/invoke.texi (-mdspr2): Document new option.
189 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
190 New unspec for DSP REV 2.
191 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
192 these instructions are extended in DSP REV 2.
193 (mips-dspr2.md): Include.
194 * config/mips/mips.opt (mdspr2): New option.
195 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
196 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
197 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
198 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
199 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
200 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
201 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
203 (bdesc_map): Add one field of unsupported_target_flags.
204 (bdesc_arrays): Update entries to have extra fields. Add
206 (mips_init_builtins): Initialize new function types.
207 Check unsupported_target_fileds to filter out builtins.
208 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
210 (ASM_SPEC): Pass mdspr2 to the assembler.
211 * config/mips/mips-dspr2.md: New file.
213 2007-03-09 Sa Liu <saliu@de.ibm.com>
215 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
217 2007-03-09 Ian Lance Taylor <iant@google.com>
219 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
220 argument) like -Wstrict-overflow=2.
221 * doc/invoke.texi (Warning Options): Update documentation.
223 2007-03-09 Dirk Mueller <dmueller@suse.de>
226 * doc/invoke.texi (-Wlogical-op): Document.
227 * common.opt (-Wlogical-op): New.
228 * c-common.h (warn_logical_operator): Declare.
229 * c-common.c (warn_logical_operator): Define.
230 * c-typeck.c (parser_build_binary_op): Call
231 warn_logical_operator.
233 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
235 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
236 * final.c (final_scan_insn): Test for non-"" file name.
238 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
240 * doc/loop.texi: Document the Omega linear constraints solver.
241 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
242 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
243 omega-hash-table-size, omega-max-keys, and
244 omega-eliminate-redundant-constraints.
245 * tree-pass.h (pass_check_data_deps): Declared.
248 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
249 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
250 pass_check_data_deps): New.
251 * tree-data-ref.c (init_data_ref): Remove declaration.
252 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
253 (analyze_array): Renamed init_array_ref, move up initializations.
254 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
255 Removed arguments that are set to NULL.
256 (analyze_indirect_ref): Correct indentation, correct call to
258 (object_analysis): Call init_array_ref instead of analyze_array.
259 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
260 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
261 of DR_ACCESS_FNS_ADDR.
262 (init_omega_eq_with_af, omega_extract_distance_vectors,
263 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
264 ddr_consistent_p): New.
265 (compute_affine_dependence): Check consistency of ddrs when
266 flag_check_data_deps is passed.
267 (analyze_all_data_dependences): Uncomment.
268 (tree_check_data_deps): New.
269 * tree-data-ref.h: Include omega.h.
270 (DR_ACCESS_FNS_ADDR): Removed.
271 (data_dependence_relation): Add inner_loop.
272 (DDR_INNER_LOOP): New.
273 * common.opt (fcheck-data-deps): New.
274 * tree-flow.h (tree_check_data_deps): Declare.
275 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
276 (OBJS-common): Depend on omega.o.
278 * passes.c (pass_check_data_deps): Scheduled.
279 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
280 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
281 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
282 PARAM_VECT_MAX_VERSION_CHECKS,
283 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
285 2007-03-09 Richard Guenther <rguenther@suse.de>
287 PR tree-optimization/30904
289 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
290 the same way as *_DIV_EXPR.
292 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
294 * recog.c (decode_asm_operands): No mixed declarations and code.
296 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
298 * rtl.def (ASM_INPUT): Add location.
299 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
300 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
301 (decode_asm_operands): Add loc operand.
302 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
303 * stmt.c (expand_asm): Rename to...
304 (expand_asm_loc): ... this. Add locus argument. Pass it on to
305 gen_rtx_ASM_INPUT_loc.
306 (expand_asm_expr): Adjust.
307 * recog.c (decode_asm_operands): Add loc operand.
308 (check_asm_operands, extract_insn): Adjust.
309 * reload1.c (maybe_fix_stack_asms): Likewise.
310 * final.c (asm_insn_count): Likewise.
311 (final_scan_insn): Output # line before and after asm.
313 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
315 * tree-ssa-structalias.c (variable_info): Remove
317 (new_var_info): Ditto.
318 (shared_bitmap_info_t): New structure.
319 (shared_bitmap_table): New variable.
320 (shared_bitmap_hash): New function.
321 (shared_bitmap_eq): Ditto
322 (shared_bitmap_lookup): Ditto.
323 (shared_bitmap_add): Ditto.
324 (merge_smts_into): Change to take bitmap directly.
325 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
326 (init_alias_vars): Init shared bitmap hashtable.
327 (delete_points_to_sets): Delete shared bitmap hashtable.
328 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
329 is_aliased removal as a change that was still necessary was
332 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
334 * config/i386/i386.h (override_options): Conditionally disable
335 x86_sahf for 64bit targets only.
337 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
340 * c-decl.c (merge_decls): Don't call make_var_volatile.
341 * varasm.c (make_var_volatile): Remove.
342 * output.h (make_var_volatile): Remove.
344 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
346 PR tree-optimization/31085
347 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
349 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
351 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
352 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
353 ATTR_CONST_NOTHROW_LIST.
355 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
358 2007-03-08 Diego Novillo <dnovillo@redhat.com>
360 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
362 2007-03-08 Geoffrey Keating <geoffk@apple.com>
365 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
367 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
368 passed, use shared libgcc.
370 2007-03-08 Roger Sayle <roger@eyesopen.com>
372 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
373 instead of calling build2 with a GIMPLE_MODIFY_STMT.
374 (honor_protect_cleanup_actions, lower_try_finally_switch):
376 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
377 ifc_temp_var): Likewise.
378 * tree-inline.c (setup_one_parameter): Likewise.
379 * tree-mudflap.c (mf_decl_cache_locals,
380 mf_build_check_statement_for): Likewise.
381 * tree-nested.c (init_tmp_var, save_tmp_var,
382 finalize_nesting_tree_1): Likewise.
383 * tree-outof-ssa.c (insert_copy_on_edge,
384 insert_backedge_copies): Likewise.
385 * tree-profile.c (tree_gen_edge_profiler,
386 tree_gen_ic_profiler): Likewise.
387 * tree-scalar-evolution.c (scev_const_prop): Likewise.
388 * tree-sra.c (sra_build_assignment): Likewise.
389 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
390 * tree-ssa-math-opts.c (insert_reciprocals,
391 execute_cse_sincos_1): Likewise.
392 * tree-tailcall.c (adjust_accumulator_values,
393 adjust_return_value): Likewise.
394 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
395 * tree-vect-transform.c (vect_create_data_ref_ptr,
396 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
397 vect_create_epilog_for_reduction, vectorizable_reduction,
398 vectorizable_call, vectorizable_conversion,
399 vectorizable_assignment, vectorizable_operation,
400 vectorizable_type_demotion, vect_gen_widened_results_half,
401 vect_permute_store_chain, vectorizable_store,
402 vect_setup_realignment, vect_permute_load_chain,
403 vectorizable_load, vectorizable_condition,
404 vect_create_cond_for_align_checks): Likewise.
405 * tree-vrp.c (build_assert_expr_for): Likewise.
407 2007-03-08 Ian Lance Taylor <iant@google.com>
409 * tree-vrp.c: Include "intl.h".
410 (usable_range_p): New static function.
411 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
412 overflowed values, juts set *strict_overflow_p.
413 (compare_values): Only return -2 if one of the operands is not a
415 (compare_ranges): Call usable_range_p.
416 (compare_range_with_value): Likewise.
417 (vrp_evaluate_conditional_warnv): Rename from
418 vrp_evaluate_conditional. Make static. Change all callers.
419 (vrp_evaluate_conditional): New function.
420 (simplify_div_or_mod_using_ranges): Issue warning about reliance
422 (simplify_abs_using_ranges): Likewise.
423 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
424 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
425 within_stmt parameter.
426 * tree-ssa-propagate.c (fold_predicate_in): Update call to
427 vrp_evaluate_conditional.
428 * tree-ssa-threadedge.c
429 (record_temporary_equivalences_from_stmts_at_dest): Change
430 simplify parameter to take a second tree parameter.
431 (simplify_control_stmt_condition): Likewise.
432 (thread_across_edge): Likewise.
433 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
434 (thread_across_edge): Likewise.
435 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
437 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
439 * config/i386/i386.h (TARGET_SAHF): New define.
440 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
441 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
442 (x86_sahf): New global variable.
443 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
444 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
445 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
446 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
448 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
449 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
450 when expanding fcomi/sahf based tests.
451 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
452 expanding sahf based alternative. Emit sahf based sequence when
453 optimizing for code size.
454 * config/i386/i386.md (x86_sahf_1): Do not disable for
455 TARGET_64BIT, enable for TARGET_SAHF.
457 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
459 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
460 spurious whitespace from error message.
462 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
465 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
467 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
469 * c-decl.c (grokdeclarator): Disable warnings for anonymous
471 * tree-sra.c (instantiate_element): Propagate disabled warnings
472 from the element itself to the created variable.
474 2007-03-07 Richard Henderson <rth@redhat.com>
477 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
478 silently fix up the stack in the case of a missing register.
480 2007-03-07 Paul Brook <paul@codesourcery.com>
482 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
484 2007-03-07 Joseph Myers <joseph@codesourcery.com>
486 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
488 (phase1_vrs): Use them.
489 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
490 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
491 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
492 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
493 __gnu_Unwind_Restore_WMMXC if required.
494 (_Unwind_VRS_Pop): Implement iWMMXt support.
495 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
496 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
497 gnu_Unwind_Save_WMMXC): Define.
499 2007-03-07 Richard Sandiford <richard@codesourcery.com>
501 * config/vxworks.h (vxworks_override_options): Declare.
502 (VXWORKS_OVERRIDE_OPTIONS): Use it.
503 * config/vxworks.c: Include target.h and toplev.h.
504 (vxworks_override_options): New function.
505 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
507 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
509 * config/s390/s390.c (override_options): Don't emit an error when
510 -mstack-size is used without providing -mstack-guard.
511 (s390_emit_prologue): Choose stack_guard value automatically if not
512 provided via command line.
513 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
515 2007-03-07 Richard Sandiford <richard@codesourcery.com>
517 * config/i386/i386.c (output_set_got): Add a GOT initialization
518 sequence for VxWorks PIC.
519 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
520 around labels as well as symbols. Use gotoff_operand instead
521 of local_symbolic_operand.
522 (legitimize_pic_address): Use gotoff_operand instead of
523 local_symbolic_operand. Use @GOT accesses for labels as
525 (ix86_output_addr_diff_elt): Use PC-relative rather than
526 GP-relative offsets for VxWorks PIC.
527 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
528 no_new_pseudos. Check whether the returned register is op0.
529 * config/i386/i386.md (tablejump): Use PC-relative rather than
530 GP-relative offsets for VxWorks PIC.
531 * config/i386/predicates.md (gotoff_operand): New predicate.
533 2007-03-06 Richard Sandiford <richard@codesourcery.com>
535 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
537 * config/vxworks-dummy.h: New file.
538 * config/i386/i386.h: Include it.
540 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
542 * dwarf2out.c (is_inlined_entry_point): New
543 (add_high_low_attributes): Emit DW_AT_entry_pc along with
544 DW_AT_ranges if the first subblock is the entry point.
546 2007-03-06 David Daney <ddaney@avtrex.com>
548 * doc/install.texi (mips-*-*): Change recommended binutils
551 2007-03-06 Anatoly Sokolov <aesok@post.ru>
553 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
554 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
556 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
557 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
559 2007-03-06 Jan Hubicka <jh@suse.cz>
561 * errors.h (warning, error, fatal, internal_error): Mark as cold.
562 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
564 (probably_cold_bb_p): Cold functions are cold.
565 (probably_never_executed_bb_p): Cold functions are cold.
566 (tree_bb_level_predictions): Predict calls to cold functions as not
568 (compute_function_frequency): Check hot/cold attributes.
569 * function.h (function_frequency): Update comments.
570 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
571 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
572 (c_common_att): Add cold and hot.
574 * doc/extend.texi (hot,cold attributes): Document.
576 2007-03-06 Andrew Haley <aph@redhat.com>
578 * function.c (expand_function_end): Move blockage to just after we
579 emit the label for the naked return from the function.
581 2007-03-06 Richard Sandiford <richard@codesourcery.com>
583 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
586 2007-03-06 Jan Hubicka <jh@suse.cz>
588 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
589 loaded for constant large models. Non-large 64bit PIC can do.
590 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
591 * cmodel.h: Add LARGE PIC.
592 * i386.md (UNSPEC_PLTOFF): New.
593 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
595 (*call_1_rex64): Disable for large models.
596 (*call_1_rex64_large): New.
597 (*call_value_1_rex64): Disable for large models.
598 (*call_value_1_rex64_large): New.
600 (set_got_offset_rex64): New.
601 * predicates.md (constant_call_address_operand): For large model
602 constant calls are not possible.
603 * i386-protos.h (construct_plt_address): Declare.
604 * i386.c (override_options): Accept large models.
605 (ix86_expand_prologue): Expand large PIC GOT pointer load.
606 (legitimate_constant_p): Add new UNSPECs.
607 (legitimate_pic_operand_p): Likewise.
608 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
609 (legitimize_pic_address): Do easy RIP relative way for TLS only for
611 (output_pic_addr_const): Add PLTOFF.
612 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
613 (ix86_expand_move): Legitimize pic address when in PIC mode.
614 (construct_plt_address): New function.
615 (ix86_expand_call): Offload the address to register and use GOT pointer
617 * invoke.texi (mcmodel=large): Update documentation.
619 2007-03-06 Richard Henderson <rth@redhat.com>
621 * config/i386/i386.c (x86_use_leave, x86_push_memory,
622 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
623 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
624 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
625 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
626 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
627 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
628 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
629 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
630 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
631 x86_partial_reg_dependency, x86_memory_mismatch_stall,
632 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
633 x86_sse_partial_reg_dependency, x86_sse_split_regs,
634 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
635 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
636 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
637 x86_schedule, x86_use_bt, x86_pad_returns,
638 x86_use_xchgb): Merge into ...
639 (ix86_tune_features): ... here. New array.
640 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
641 x86_bswap): Merge into ...
642 (ix86_arch_features): ... here. New array.
643 (x86_3dnow_a): Remove.
644 (x86_accumulate_outgoing_args): Make static.
645 (x86_arch_always_fancy_math_387): Make static.
646 (ix86_tune_mask, ix86_arch_mask): Move ...
647 (override_options): ... to local variables here. Apply the
648 appropriate mask to each element of ix86_arch_features and
649 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
650 as were done in the old macros.
651 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
652 * config/i386/i386.h (x86_use_leave, x86_push_memory,
653 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
654 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
655 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
656 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
657 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
658 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
659 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
660 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
661 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
662 x86_partial_reg_dependency, x86_memory_mismatch_stall,
663 x86_accumulate_outgoing_args, x86_prologue_using_move,
664 x86_epilogue_using_move, x86_decompose_lea,
665 x86_arch_always_fancy_math_387, x86_shift1,
666 x86_sse_partial_reg_dependency, x86_sse_split_regs,
667 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
668 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
669 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
670 x86_use_incdec, x86_pad_returns, x86_bswap,
671 x86_partial_flag_reg_stall): Remove.
672 (enum ix86_tune_indices): New.
673 (ix86_tune_features): New.
674 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
675 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
676 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
677 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
678 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
679 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
680 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
681 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
682 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
683 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
684 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
685 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
686 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
687 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
688 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
689 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
690 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
691 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
692 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
693 TARGET_EXT_80387_CONSTANTS): Use it.
694 (enum ix86_arch_indices): New.
695 (ix86_arch_features): New.
696 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
697 TARGET_BSWAP): Use it.
698 (ix86_tune_mask, ix86_arch_mask): Remove.
700 2007-03-06 Joseph Myers <joseph@codesourcery.com>
703 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
704 Define using $${sysroot_headers_suffix}.
705 * configure: Regenerate.
706 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
707 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
709 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
710 * gcc.c (print_sysroot_headers_suffix): New.
711 (option_map): Include --print-sysroot-headers-suffix.
712 (display_help): Mention -print-sysroot-headers-suffix.
713 (process_command): Handle -print-sysroot-headers-suffix.
714 (do_spec_1): Append multilib directory to include-fixed path if
715 sysroot suffixes in use.
716 (main): Handle -print-sysroot-headers-suffix.
717 * Makefile.in (start.encap): Don't depend on xlimits.h
719 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
720 limits.h for each multilib in fixinc_list.
721 (fixinc_list, s-fixinc_list): New.
722 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
723 generate them for each multilib in fixinc_list.
724 (stmp-fixproto): Use include-fixed. Run fixproto for each
725 multilib in fixinc_list.
726 (mostlyclean): Don't remove xlimits.h.
727 (clean): Remove include-fixed.
728 (real-install-headers-tar, real-install-headers-cpio,
729 real-install-headers-cp): Don't copy include, only include-fixed.
730 (install-mkheaders): Depend on fixinc_list. Don't depend on
731 xlimits.h. Save limits.h files for each multilib in fixinc_list.
732 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
733 SYSTEM_HEADER_DIR setting in mkheaders.conf.
735 2007-03-06 Jan Hubicka <jh@suse.cz>
737 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
740 2007-03-06 Richard Sandiford <richard@codesourcery.com>
742 * configure.ac: Allow tm_file to contain build-directory files.
743 * configure: Regenerate.
744 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
745 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
746 * config/m68k/print-sysroot-suffix.sh: New file.
748 2007-03-06 Richard Sandiford <richard@codesourcery.com>
750 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
751 of pic_offset_table_rtx if reload_completed.
752 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
753 PIC_OFFSET_TABLE_REGNUM.
754 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
756 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
757 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
759 2007-03-06 Richard Sandiford <richard@codesourcery.com>
761 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
762 functions that call eh_return.
764 2007-03-06 Richard Sandiford <richard@codesourcery.com>
766 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
767 functions that need a constant pool.
769 2007-03-06 Richard Sandiford <richard@codesourcery.com>
772 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
773 (m68k_preferred_reload_class): Likewise.
774 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
775 (SECONDARY_RELOAD_CLASS): Define.
776 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
777 (LIMIT_RELOAD_CLASS): Delete.
778 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
779 registers from storing bytes.
780 (m68k_secondary_reload_class): New function.
781 (m68k_preferred_reload_class): Likewise.
783 2007-03-06 Richard Sandiford <richard@codesourcery.com>
785 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
787 (m68k_expand_prologue): Likewise.
789 2007-03-06 Richard Sandiford <richard@codesourcery.com>
791 * config/m68k/m68k-protos.h (output_sibcall): Declare.
792 (mips_expand_epilogue): Add a bool parameter.
793 (m68k_legitimize_sibcall_address): Declare.
794 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
795 (m68k_expand_epilogue): Add a parameter to select between sibling
796 and normal epilogues. Only generate a return for the latter.
797 (m68k_ok_for_sibcall_p): New function.
798 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
799 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
800 (sibcall_value, *sibcall_value): Likewise.
801 (*call, *call_value): Require !SIBLING_CALL_P.
802 (epilogue): Update call to m68k_expand_epilogue.
803 (sibcall_epilogue): New pattern.
804 * config/m68k/predicates.md (const_call_operand): Say that this
805 predicate applies to sibling calls too.
806 (sibcall_operand): New predicate.
808 2007-03-06 Richard Sandiford <richard@codesourcery.com>
810 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
811 alternatives as movsi_cf.
812 (movsf_cf_hard): Add commentary.
814 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
815 Richard Sandiford <richard@codesourcery.com>
817 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
818 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
819 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
820 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
821 as being live on exit from an interrupt function.
822 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
823 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
824 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
825 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
826 (m68k_interrupt_function_p): Globalize.
827 (m68k_compute_frame_layout): Remove reverse mask code.
828 (m68k_emit_movem, m68k_set_frame_related): New functions.
829 (m68k_output_function_prologue): Delete in favor of...
830 (m68k_expand_prologue): ...this new function.
831 (m68k_output_function_epilogue): Delete in favor of...
832 (m68k_expand_epilogue): ...this new function.
833 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
835 (print_operand): Handle %?.
836 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
837 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
838 (prologue, epilogue): New patterns.
839 (return): Turn into a define_expand.
840 (*return): New pattern, derived from old "return" pattern. Use rte
841 rather than rts for interrupt functions. Only use rtd if the pop
843 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
844 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
845 (link, *link, unlink, *unlink, load_got): Likewise.
847 2007-03-06 Richard Sandiford <richard@codesourcery.com>
851 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
852 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
853 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
854 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
855 and m68k_matches_u_p.
856 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
857 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
858 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
859 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
860 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
861 (REG_STRICT_P): New macro.
862 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
863 PCREL_GENERAL_OPERAND_OK.
864 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
865 m68k_legitimate_base_reg_p.
866 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
867 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
868 (PIC_CASE_VECTOR_ADDRESS): Update comment.
869 * config/m68k/m68k.c (m68k_address): New structure.
870 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
871 (m68k_decompose_index, m68k_legitimate_constant_address_p)
872 (m68k_jump_table_ref_p, m68k_decompose_address)
873 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
874 (m68k_matches_u_p): New functions.
875 (print_operand_address): Rewrite to use m68k_decompose_index.
877 2007-03-05 David Taylor <dtaylor@emc.com>
879 * gcc.c: Correct copyright date in --version output.
881 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
883 * pa.md: In unamed move patterns, disparge copies between general
884 and floating point registers using '?' modifier. Don't include 'f'
885 constraint for register preferences in DImode, SImode, HImode and
886 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
887 Remove constraints for copies between general and floating registers
888 in soft-float DFmode pattern.
889 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
893 2007-03-05 Mike Stump <mrs@apple.com>
895 * c-common.c (targetcm): Add.
896 * c-opts.c (c_common_handle_option): Handle language specific
898 * opts.c (handle_option): Verify language for target options, if
900 * opth-gen.awk: Add CL_LANG_ALL.
901 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
902 (TARGETCM_INITIALIZER): Add.
903 * target.h (struct gcc_targetcm): Add.
905 * targhooks.c (default_handle_c_option): Add.
906 * targhooks.h (default_handle_c_option): Add.
907 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
909 * config/darwin.opt (iframework): Add.
910 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
911 * config/darwin-c.c (handle_c_option): Add.
912 (TARGET_HANDLE_C_OPTION): Add.
914 * doc/invoke.texi (Darwin Options): Add -iframework.
916 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
918 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
921 2007-03-05 Ian Lance Taylor <iant@google.com>
923 * c.opt (fgnu89-inline): New option.
924 * c-opts.c (c_common_post_options): Set default value for
926 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
927 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
929 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
930 (grokdeclarator, start_function): Likewise.
931 * c-cppbuiltin.c (c_cpp_builtins): Define either
932 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
933 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
934 (C Dialect Options): Document -fgnu89-inline.
935 * doc/extend.texi (Function Attributes): Explain what the
936 gnu_inline attribute does.
937 * doc/cpp.texi (Common Predefined Macros): Document
938 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
940 2007-03-05 Ian Lance Taylor <iant@google.com>
942 PR tree-optimization/31034
943 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
944 half-range if the other side is an overflow infinity.
946 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
948 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
949 (bfin*-linux-uclibc*): New configuration.
950 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
952 * config/bfin/linux.h: New file.
953 * config/bfin/libgcc-bfin.ver: New file.
954 * config/bfin/t-bfin-uclinux: New file.
955 * config/bfin/t-bfin-linux: New file.
956 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
957 (TARGET_OS_CPP_BUILTINS): New macro.
959 2007-03-05 Richard Guenther <rguenther@suse.de>
961 * fold-const.c (fold_binary): Remove duplicate folding
962 of comparison of non-null ADDR_EXPR against null.
964 2007-03-05 Richard Guenther <rguenther@suse.de>
965 Dorit Nuzman <dorit@il.ibm.com>
967 PR tree-optimization/26420
968 * tree-vectorizer.c (vectorize_loops): Bail out early if there
969 are no loops in the function. Only print the number of
970 vectorized loops if it is greater than zero or we are supposed
971 to print information about unvectorized loops.
973 2007-03-05 Revital Eres <eres@il.ibm.com>
975 * gcc.dg/var-expand1.c: New test.
976 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
977 when an accumulator is expanded.
979 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
982 * c-common.c (convert_and_check): Don't give warnings for
983 conversion if 'expr' already overflowed.
985 2007-03-04 Roger Sayle <roger@eyesopen.com>
988 * fold-const.c (fold_comparison): Enforce type consistency when
989 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
991 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
993 * tree-ssa-address.c (create_mem_ref): Do not put an expression
994 containing a cast to the base of TARGET_MEM_REF.
996 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
998 * tree.c (tree_contains_struct_check_failed): Remove spurious
999 whitespace from error message.
1001 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1004 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
1005 instead of precision.
1007 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
1008 Nathan Sidwell <nathan@codesourcery.com>
1010 * emit-rtl.c (find_auto_inc): New.
1011 (try_split): recreate REG_INC notes,
1012 Use regular for loops rather than whiles.
1014 2007-03-03 Andreas Schwab <schwab@suse.de>
1016 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1017 * configure: Regenerate.
1019 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1021 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1022 flag_rounding_math, not flag_unsafe_math_optimizations.
1024 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1026 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1027 alpha_fold_vector_minmax): Likewise.
1028 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1029 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1031 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1033 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1034 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1035 if the lhs has side-effects.
1036 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1038 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1040 * config/i386/i386.h (TUNEMASK): Remove define.
1041 (ARCHMASK): Remove define.
1042 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1043 Use ix86_arch_mask variable instead of ARCHMASK.
1044 * config/i386/i386.c (override_options): Ditto.
1045 (standard_80387_constant_p): Ditto.
1047 2007-03-02 Ian Lance Taylor <iant@google.com>
1049 Used signed infinities in VRP.
1050 * tree-vrp.c (uses_overflow_infinity): New static function.
1051 (supports_overflow_infinity): New static function.
1052 (make_overflow_infinity): New static function.
1053 (negative_overflow_infinity): New static function.
1054 (positive_overflow_infinity): New static function.
1055 (is_negative_overflow_infinity): New static function.
1056 (is_positive_overflow_infinity): New static function.
1057 (is_overflow_infinity): New static function.
1058 (overflow_infinity_range_p): New static function.
1059 (compare_values_warnv): New function split out of compare_values.
1060 (compare_value): Call it.
1061 (set_value_range_to_nonnegative): Add overflow_infinity
1062 parameter. Change caller.
1063 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1065 (vrp_expr_computes_nonzero): Likewise.
1066 (compare_ranges, compare_range_with_value): Likewise.
1067 (compare_name_with_value, compare_names): Likewise.
1068 (vrp_evaluate_conditional): Likewise.
1069 (set_value_range): Handle infinity
1070 (vrp_operand_equal_p, operand_less_p): Likewise.
1071 (extract_range_from_assert): Likewise.
1072 (vrp_int_const_binop): Likewise.
1073 (extract_range_from_binary_expr): Likewise.
1074 (extract_range_from_unary_expr): Likewise.
1075 (extract_range_from_comparison): Likewise.
1076 (extract_range_from_expr): Likewise.
1077 (dump_value_range): Likewise.
1078 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1079 (test_for_singularity): Likewise.
1080 (vrp_int_const_binop): Remove inline qualifier.
1081 (adjust_range_with_scev): Add comment.
1082 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1084 2007-03-02 Diego Novillo <dnovillo@redhat.com>
1086 * tree-ssa-structalias.c (could_have_pointers): Tidy.
1087 (get_constraint_for): Likewise.
1088 (do_structure_copy): Likewise.
1089 (find_func_aliases): Fix references to MODIFY_EXPR.
1090 (intra_create_variable_infos): Tidy.
1091 * tree-ssa-operands.c (add_virtual_operand): Add argument
1093 When adding members of alias sets, if IS_CALL_SITE is true and
1094 the symbol is not call-clobbered, skip it.
1097 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1099 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1100 entry by means of emit_insn_at_entry.
1102 2007-03-02 Richard Henderson <rth@redhat.com>
1104 * expr.h (promoted_input_arg): Remove decl.
1105 * function.c (promoted_input_arg): Merge into ...
1106 * combine.c (setup_incoming_promotions): ... only caller.
1107 Rearrange to avoid double loop.
1109 2007-03-02 Ben Elliston <bje@au.ibm.com>
1110 Peter Bergner <bergner@vnet.ibm.com>
1111 Janis Johnson <janis187@us.ibm.com>
1113 * config/rs6000/dfp.md: New file.
1114 * config/rs6000/rs6000.md: Include dfp.md.
1115 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1116 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1117 and TDmode decimal float modes in FP registers.
1118 (num_insns_constant): Likewise.
1119 (rs6000_legitimate_offset_address_p): Likewise.
1120 (rs6000_legitimize_address): Likewise.
1121 (rs6000_legitimize_reload_address): Likewise.
1122 (rs6000_legitimate_address): Likewise.
1123 (rs6000_emit_move): Likewise.
1124 (function_arg_boundary): Likewise.
1125 (function_arg_advance): Likewise.
1126 (rs6000_darwin64_record_arg_recurse): Likewise.
1127 (function_arg): Likewise.
1128 (rs6000_gimplify_va_arg): Likewise.
1129 (rs6000_split_multireg_move): Likewise.
1130 (rs6000_output_function_epilogue): Likewise.
1131 (rs6000_output_function_epilogue): Likewise.
1132 (rs6000_register_move_cost): Likewise.
1133 (rs6000_function_value): Likewise.
1134 (rs6000_libcall_value): Likewise.
1136 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1138 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1140 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1142 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1143 Use $MULTIDIR to choose between the kernel and RTP headers,
1144 and use $WIND_BASE and $WIND_USR to locate them.
1146 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1148 * config/i386/i386.c (override_options): Put initialization of
1149 ix86_tune_mask and ix86_arch_mask to the correct place.
1151 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1152 Michael Meissner <michael.meissner@amd.com>
1155 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1157 (TARGET_CMOVE): Use ARCHMASK.
1158 (TARGET_CMPXCHG): Ditto.
1159 (TARGET_CMPXCHG8B): Ditto.
1160 (TARGET_XADD): Ditto.
1161 (TARGET_BSWAP): Ditto.
1162 * config/i386/i386.c (ix86_tune_mask): New global variable.
1163 (ix86_arch_mask): Ditto.
1164 (override_options): Initialize ix86_tune_mask and
1165 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1168 2007-03-02 Ben Elliston <bje@au.ibm.com>
1171 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1173 2007-03-02 Joseph Myers <joseph@codesourcery.com>
1175 * target.h (init_dwarf_reg_sizes_extra): New target hook.
1176 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1177 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1178 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1180 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1181 rs6000_init_dwarf_reg_sizes_extra): New.
1182 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1183 SPE register high parts.
1185 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1187 * Makefile.in: Add install-pdf target as
1188 copied from automake v1.10 rules.
1189 * configure.ac: Add install-pdf to target list.
1190 * configure: Regenerate.
1192 2007-03-01 Paul Brook <paul@codesourcery.com>
1194 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1195 modes to LDRD for DImode.
1196 (output_move_double): Fixup out of range ldrd/strd.
1197 (vfp_secondary_reload_class): Rename...
1198 (coproc_secondary_reload_class): ... to this. Add wb argument.
1199 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1200 coproc_secondary_reload_class for CLASS_IWMMXT.
1201 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1202 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1204 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
1206 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
1207 factor by the estimated number of iterations.
1208 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1211 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1212 decode_caches_intel, detect_caches_intel): New functions.
1213 (host_detect_local_cpu): Use detect_caches_amd and
1214 detect_caches_intel.
1216 2007-03-01 Richard Henderson <rth@redhat.com>
1218 * expr.c (emit_move_complex_push): Export.
1219 (emit_move_complex_parts): Split out from ...
1220 (emit_move_complex): ... here.
1221 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1222 * config/i386/i386.md (movcdi): New.
1224 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
1226 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1227 size of mode1 to check for tieable modes in MMX case.
1229 2007-03-01 Richard Sandiford <richard@codesourcery.com>
1231 * Makefile.in (rtlanal.o): Depend on tree.h.
1232 * rtl.h (offset_within_section_p, split_const): Declare.
1233 * rtlanal.c: Include tree.h.
1234 (offset_within_block_p): New function, taken from
1235 mips_offset_within_object_p.
1236 (split_const): New function, taken from mips_split_const.
1237 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1239 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1240 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1241 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1242 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1243 (m68k_illegitimate_symbolic_constant_p): New function.
1244 * config/m68k/m68k.md (movsi): Remove misleading predicates.
1245 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1246 symbolic constant that might be outside the symbol's section,
1247 move the symbol first and then add the offset.
1248 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1250 * config/mips/mips.c (mips_split_const): Delete.
1251 (mips_offset_within_object_p): Delete.
1252 (mips_symbolic_constant_p): Use offset_within_section_p and
1253 split_const instead of mips_offset_within_object_p and
1255 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1256 (mips_legitimize_const_move, print_operand_reloc)
1257 (mips_dangerous_for_la25_p): Use split_const instead of
1260 2007-02-28 Eric Christopher <echristo@apple.com>
1262 * Makefile.in (install-include-dir): Don't rm -rf include.
1264 2007-02-28 Richard Guenther <rguenther@suse.de>
1267 * fold-const.c (fold_binary): Do not associate expressions
1268 with more than one variable for integer types that do not wrap.
1270 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
1272 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1273 Delete, and replace with...
1274 (fold_builtin_call_array): This. Update callers to use it.
1275 * fold-const.c (fold_build_call_list): Delete, and replace with...
1276 (fold_build_call_array): This.
1277 (fold_build_call_list_initializer): Delete, and replace with...
1278 (fold_build_call_array_initializer): This.
1279 * tree.h: Update declarations to reflect above changes.
1281 * c-typeck.c (build_function_call): Store converted arguments
1282 in a stack-allocated array instead of building a list.
1283 (convert_arguments): Store arguments in the array passed in as an
1284 argument, and return the actual number of arguments.
1285 * c-format.c: (check_function_format): Pass arguments in an
1286 array instead of a list.
1287 * c-common.c (check_function_nonnull): Likewise.
1288 (check_function_sentinel): Likewise.
1289 (check_function_arguments): Likewise.
1290 * c-common.h: Update declarations to reflect above changes.
1292 2007-02-28 Jan Hubicka <jh@suse.cz>
1294 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1295 PRED_NEGATIVE_RETURN): Update outcomes.
1297 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
1299 * calls.c (emit_library_call_value_1): Handle partial registers
1300 correctly when building up CALL_INSN_FUNCTION_USAGE.
1302 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1304 * pa/predicates.md (move_src_operand): Allow zero for mode.
1305 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1308 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
1311 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1312 *movv2df_internal): Enable pattern only for valid operand
1314 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1315 tie only 128bit modes. For MMX registers, tie only 64bit modes.
1317 2007-02-27 Mike Stump <mrs@apple.com>
1319 * config/darwin-crt3.c: Avoid compilation when compiling for a
1322 2007-02-27 Joseph Myers <joseph@codesourcery.com>
1324 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1326 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1327 for fixed headers and limits.h.
1328 (install-include-dir, install-headers-tar, install-headers-cpio,
1329 install-headers-cp, real-install-headers-tar,
1330 real-install-headers-cpio, real-install-headers-cp): Handle
1331 include-fixed as well as include.
1332 (install-mkheaders): Don't install files that go only in include
1334 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1335 from GCC_INCLUDE_DIR.
1336 * gcc.c (process_command): Remove special -BstageN/ handling.
1337 (do_spec_1): Add include-fixed directories.
1339 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1341 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1343 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1345 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1348 2007-02-27 Mark Mitchell <mark@codesourcery.com>
1350 * c-common.c (get_priority): Add check for
1351 SUPPORTS_INIT_PRIORITY.
1353 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1355 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1357 * config/bfin/bfin.c: Include "cfglayout.h".
1358 (MAX_LSETUP_DISTANCE): New macro.
1359 (struct loop_info): New members incoming, incoming_src and
1360 incoming_dest. Delete member predecessor.
1361 (length_for_loop): New function.
1362 (bfin_optimize_loop): Handle more different loop structures.
1363 (bfin_discover_loop): Rework detection of predecessor blocks by
1364 examining incoming edges.
1365 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1367 (bfin_reorder_loops): New function.
1368 (bfin_reorg_loops): Use these three new functions.
1370 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1371 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1372 (CONSTRAINT_LEN): Add entry for 'q'.
1373 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1374 Add 'q' constraints.
1375 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1376 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1378 * config/bfin/bfin.md (add_with_carry): New pattern.
1379 (s_or_u, su_optab, su_modifier): New code macros/attrs.
1380 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1381 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1382 support unsigned multiplies too. Removed incorrect commutativity from
1383 operand 1 constraint where appropriate.
1384 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1386 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1387 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1389 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1390 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1391 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1392 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1393 usmulhisi_hh_huh): New patterns.
1395 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1396 lshifthi3): Fix output template to use half reg for operand 2.
1398 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1401 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1403 2007-02-27 Andreas Schwab <schwab@suse.de>
1405 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1407 2007-02-27 Jan Hubicka <jh@suse.cz>
1409 * predict.c (last_basic_block_p): Remove.
1410 (tree_estimate_probability): Update return heuristic for commonized
1413 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1415 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1417 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1419 * doc/include/gcc-common.texi (versionsubtitle): New macro.
1420 * doc/cpp.texi: Standardize title page.
1421 * doc/cppinternals.texi: Likewise.
1422 * doc/gcc.texi: Standardize title page, remove version number
1423 from copyright page.
1424 * doc/gccint.texi: Likewise.
1425 * doc/install.texi: Standardize title page, add table of
1428 2007-02-26 Jan Hubicka <jh@suse.cz>
1430 * predict.def: Set outcomes according to more recent results.
1431 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1432 Remove dead predictors.
1433 * predict.c (return_prediction): Fix pasto.
1435 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1437 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1438 change; avoid a memory leak when returning early.
1440 2007-02-26 Mark Mitchell <mark@codesourcery.com>
1442 * c-decl.c (static_ctors): Move to c-common.c.
1443 (static_dtors): Likewise.
1444 (finish_function): Use c_record_cdtor_fn.
1445 (build_cdtor): Move to c-common.c.
1446 (c_write_global_declarations): Use c_build_cdtor_fns.
1447 * c-common.h (static_ctors): Declare.
1448 (static_dtors): Likewise.
1449 (c_record_cdtor_fn): Likewise.
1450 (c_build_cdtor_fns): Likewise.
1451 * c-common.c (static_ctors): New variable.
1452 (static_dtors): Likewise.
1453 (c_record_cdtor_fn): New function.
1454 (build_cdtor): Move from c-decl.c
1455 (c_build_cdtor_fns): New function.
1457 * output.h (assemble_addr_to_section): Declare.
1458 (get_cdtor_priority_section): Likewise.
1459 * varasm.c (assemble_addr_to_section): New function.
1460 (get_cdtor_priority_section): Likewise.
1461 (default_named_section_asm_out_destructor): Use them.
1462 (destor_dtor_section_asm_out_destructor): Likewise.
1463 (default_named_section_asm_out_constructor): Likewise.
1464 (default_ctor_section_asm_out_constructor): Likewise.
1465 * config.gcc (*-*-vxworks*): Include vxworks.o.
1466 * config/t-vxworks (vxworks.o): New target.
1467 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1468 (TARGET_ASM_CONSTRUCTOR): Define.
1469 (TARGET_ASM_DESTRUCTOR): Likewise.
1470 (vxworks_asm_out_constructor): Declare.
1471 (vxworks_asm_out_destructor): Likewise.
1473 * c-common.c (get_priority): Check that we have not just an
1474 INTEGER_CST, but an integer constant with integeral type.
1476 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
1478 PR tree-optimization/30938
1479 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1480 use &dt[nargs-1] instead of &dt[nargs] in the call to
1481 vect_is_simple_use().
1483 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
1485 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1486 from register elimination as PRE_MODIFY / POST_MODIFY increments.
1487 Do not attempt to handle MEM inside auto-inc expressions.
1488 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1489 of a register modified by an auto-inc expression. However, do handle
1490 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1491 (elimination_effects): Prohibit elimination of a register modified
1492 by an auto-inc expression. Disable register elimination rules whose
1493 target register is modified by an auto-inc expression with variable
1496 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
1498 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1500 (array_at_struct_end_p): New function.
1501 (idx_infer_loop_bounds): Use it.
1502 (estimate_numbers_of_iterations_loop): Export.
1503 * predict.c (predict_loops): Use estimated_loop_iterations_int.
1504 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1505 (tree_estimate_probability): Call record_loop_exits.
1506 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1507 (estimated_loop_iterations, estimated_loop_iterations_int,
1508 estimated_loop_iterations_tree): New functions.
1509 (analyze_siv_subscript_cst_affine,
1510 compute_overlap_steps_for_affine_1_2,
1511 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1512 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1513 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1514 (PRED_LOOP_ITERATIONS_GUESSED): New.
1515 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1516 * cfgloop.h (estimate_numbers_of_iterations_loop,
1517 estimated_loop_iterations_int): Declare.
1519 2007-02-25 Mark Mitchell <mark@codesourcery.com>
1521 * doc/extend.texi: Document optional priority argument to
1522 constructors and destructors.
1523 * tree.c (init_priority_for_decl): Adjust GTY markers.
1524 (init_ttree): Use priority-info hash functions for
1525 init_priority_for_decl.
1526 (tree_map_eq): Rename to ...
1527 (tree_map_base_eq): ... this.
1528 (tree_map_marked_p): Rename to ...
1529 (tree_map_base_marked_p): ... this.
1530 (tree_map_base_hash): New function.
1531 (decl_init_priority_lookup): Rework.
1532 (decl_fini_priority_lookup): New function.
1533 (decl_priority_info): New function.
1534 (decl_init_priority_insert): Use it.
1535 (decl_fini_priority_insert): Likewise.
1536 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1538 (decl_restrict_base_insert): Likewise.
1539 (decl_debug_expr_insert): Likewise.
1540 (decl_value_expr_lookup): Likewise.
1541 (decl_value_expr_insert): Likewise.
1542 * tree.h (priority_type): New type.
1543 (decl_init_priority_lookup): Use priority_type.
1544 (decl_fini_priority_lookup): New function.
1545 (decl_init_priority_insert): Use priority_type.
1546 (decl_fini_priority_insert): New function.
1547 (DECL_HAS_INIT_PRIORITY): Tweak comments.
1548 (DECL_INIT_PRIORITY): Likewise.
1549 (SET_DECL_INIT_PRIORITY): Add comment.
1550 (DECL_FINI_PRIORITY): New macro.
1551 (SET_DECL_FINI_PRIORITY): Likewise.
1552 (DEFAULT_INIT_PRIORITY): Document.
1553 (MAX_INIT_PRIORITY): Likewise.
1554 (MAX_RESERVED_INIT_PRIORITY): Likewise.
1555 (tree_map_base): New type.
1556 (tree_map_base_eq): New function.
1557 (tree_map_base_hash): Likewise.
1558 (tree_map_base_marked_p): Likewise.
1559 (tree_map): Inherit from tree_map_base.
1560 (tree_map_eq): Make it a macro.
1561 (tree_map_marked_p): Likewise.
1562 (tree_int_map): Inherit from tree_map_base.
1563 (tree_int_map_eq): Make it a macro.
1564 (tree_int_map_hash): Likewise.
1565 (tree_int_map_marked_p): Likewise.
1566 (tree_priority_map): New type.
1567 (tree_priority_map_eq): New macro.
1568 (tree_priority_map_hash): Likewise.
1569 (tree_priority_map_marked_p): Likewise.
1570 * varasm.c (emults_decl): Adjust for refactoring of tree_map
1572 (emutls_common_1): Likewise.
1573 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1574 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1575 of tree_map hierarchy.
1576 * tree-cfg.c (move_stmt_r): Likewise.
1577 (new_label_mapper): Likewise.
1578 * c-tree.h (c_expand_body): Move to ...
1579 * c-common.h (c_expand_body): ... here.
1580 * c-decl.c (c_expand_body): Move to ...
1581 * c-common.c (c_expand_body): ... here.
1582 (c_common_attribute_table): Allow 1 argument for the constructor
1583 and destructor attributes.
1584 (get_priority): New function.
1585 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
1586 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
1588 2007-02-24 Jan Hubicka <jh@suse.cz>
1591 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
1593 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1594 Jan Hubicka <jh@suse.cz>
1597 * i386.c (counter_mode): New function.
1598 (expand_set_or_movmem_via_loop): Use it.
1599 (expand_movmem_epilogue): Likewise; fix pasto.
1600 (ix86_expand_movmem): Do emit guard even for constant counts.
1601 (ix86_expand_setmem): Likewise.
1603 2007-02-25 Nick Clifton <nickc@redhat.com>
1605 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
1606 (JUMP_TABLES_IN_TEXT_SECTION): Define.
1608 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1611 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
1612 count argument with 0x10, not with 0x16.
1613 (expand_setmem_epilogue): Ditto.
1615 2007-02-24 Mike Stump <mrs@apple.com>
1617 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
1620 2007-02-24 Richard Guenther <rguenther@suse.de>
1623 * fold-const.c (fold_binary): Fold x +- CST op x for
1624 EQ_EXPR and NE_EXPR.
1626 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1628 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
1630 2007-02-24 Jan Hubicka <jh@suse.cz>
1632 * cgraphunit.c (decide_is_function_needed): Honor
1633 -fkeep-inline-functions.
1635 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1637 * builtins.c (fold_builtin_modf): New.
1638 (fold_builtin_2): Use it.
1640 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
1642 * loop-iv.c (implies_p): Detect additional cases where A implies B.
1643 (determine_max_iter): Take additional LOOP arg; all callers changed.
1644 Lose broken logic dealing with PLUS. Try to limit the upper bound by
1645 one using simplifications.
1646 (simplify_using_initial_values): Return if the expression becomes
1647 invalid due to altered regs.
1649 2007-02-23 DJ Delorie <dj@redhat.com>
1651 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
1653 2007-02-23 Mike Stump <mrs@apple.com>
1655 * tlink.c (scan_linker_output): Parse linker messages from
1656 darwin9's linker better.
1658 2007-02-23 Steve Ellcey <sje@cup.hp.com>
1661 * varpool.c (varpool_assemble_pending_decls): Set
1662 varpool_last_needed_node to null.
1664 2007-02-23 DJ Delorie <dj@redhat.com>
1666 * config/i386/i386.c (ix86_data_alignment): Don't specify an
1667 alignment bigger than the object file can handle.
1669 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
1672 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
1673 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
1674 (*movsf_1): Penalize MMX moves.
1676 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
1678 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
1679 2^32-1 or more times unless flag_unsafe_loop_optimizations.
1681 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
1683 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1685 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
1686 (fold_builtin_1): Use them.
1687 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1688 BUILT_IN_SIGNIFICAND.
1690 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
1692 * config/i386/i386.c (bdesc_1arg): Initialize
1693 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
1694 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
1695 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
1696 and IX86_BUILTIN_MOVSLDUP.
1698 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
1700 PR rtl-optimization/30841
1701 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
1703 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1705 * builtins.c (fold_builtin_frexp): New.
1706 (fold_builtin_2): Use it.
1708 2007-02-22 Mark Mitchell <mark@codesourcery.com>
1710 * doc/invoke.texi (Spec Files): Document getenv spec function.
1712 * gcc.c (getenv_spec_function): New function.
1713 (static_spec_functions): Add it.
1714 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
1715 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
1718 2007-02-22 Michael Matz <matz@suse.de
1721 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
1722 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
1724 2007-02-22 Ian Lance Taylor <iant@google.com>
1727 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
1728 (mem_loc_descriptor): Call it.
1730 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
1731 Ira Rosen <irar@il.ibm.com>
1733 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
1735 2007-02-22 Ira Rosen <irar@il.ibm.com>
1737 PR tree-optimization/30843
1738 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
1739 stores only after all the group is vectorized.
1741 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
1743 PR tree-optimization/30858
1744 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
1745 in the reduction cycle have a single use in the loop.
1746 * tree-vectorizer.h (relevant): Add documentation.
1748 2007-02-20 Mike Stump <mrs@apple.com>
1750 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
1751 * configure: Regenerate.
1753 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1755 Change the defaults of some parameters and options.
1756 * config/spu/spu-protos.h (spu_optimization_options): Declare.
1757 * config/spu/spu.c (spu_optimization_options): Add.
1758 (spu_override_options): Change params in spu_optimization_options.
1759 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
1761 Register 127 is only 16 byte aligned when used as a frame pointer.
1762 * config/spu/spu-protos.h (spu_init_expanders): Declare.
1763 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
1764 HARD_FRAME_POINTER_REGNUM.
1765 (spu_legitimate_address): Use regno_aligned_for_reload.
1766 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
1767 aligned when frame_pointer_needed is true.
1768 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
1770 * config/spu/spu.h (INIT_EXPANDERS): Define.
1772 Make sure shift and rotate instructions have valid immediate operands.
1773 * config/spu/predicates.md (spu_shift_operand): Remove.
1774 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
1775 * config/spu/constraints.md (W, O): Extend range.
1776 * config/spu/spu.md (umask, nmask): Define.
1777 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
1778 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
1779 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
1780 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
1781 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
1782 (lshr<mode>3_reg): Fix rtl description.
1784 Make sure mulhisi immediate operands are valid.
1785 * config/spu/predicates.md (imm_K_operand): Add.
1786 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
1788 Generate constants using fsmbi and andi.
1789 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
1790 (print_operand, spu_split_immediate, classify_immediate,
1791 fsmbi_const_p): Handle IC_FSMBI2.
1793 Correctly handle a CONST_VECTOR containing symbols.
1794 * config/spu/spu.c (print_operand): Handle HIGH correctly.
1795 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
1796 (immediate_load_p): Allow symbols that use 2 instructions to create.
1797 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
1798 with symbols when flag_pic is set.
1799 (const_vector_immediate_p): New.
1800 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
1801 accept a CONST_VECTOR with symbols.
1802 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
1803 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
1805 * config/spu/spu.md (high, low): Delete.
1806 (low_<mode>): Define.
1808 Remove INTRmode and INTR_REGNUM, which didn't work.
1809 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
1811 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
1812 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
1813 peephole2 pattern): Don't use INTR or 131.
1814 (movintrcc): Delete.
1815 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
1816 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
1817 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
1818 (UNSPEC_SET_INTR): Add.
1819 * config/spu/spu-modes.def (INTR): Remove.
1821 More accurate warnings about run-time relocations.
1822 * config/spu/spu.c (reloc_diagnostic): Test in_section.
1824 Correctly warn about immediate arguments to specific intrinsics.
1825 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
1826 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
1827 the instruction predicate.
1829 Fix tree check errors with latest update.
1830 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
1832 (spu_expand_builtin): Use CALL_EXPR_FN.
1834 Add missing specific intrinsics.
1835 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
1837 * config/spu/spu_internals.h: Ditto.
1839 Fix incorrect operand modifiers.
1840 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
1841 * config/spu/spu.md (xor<mode>3): Change %S to %J.
1843 Optimize one case of zero_extend of a vec_select.
1844 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
1846 Accept any immediate for hbr.
1847 * config/spu/spu.md (hbr): Change s constraints to i.
1849 2007-02-21 Paul Brook <paul@codesourcery.com>
1851 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
1852 condexec_count when skipping USE and CLOBBER.
1854 2007-02-21 Nick Clifton <nickc@redhat.com>
1856 * common.opt (Warray-bounds): Add Warning attribute.
1857 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
1859 (fsized-zeroes): Add Optimization attribute.
1860 (fsplit-wide-types, ftree-scev-cprop): Likewise.
1861 * c.opt (Wc++0x-compat): Add Warning attribute.
1863 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
1866 * reload1.c (eliminate_regs_in_insn): In the single_set special
1867 case, attempt to re-recognize the insn before falling back to
1868 having reload fix it up.
1870 2007-02-20 Eric Christopher <echristo@gmail.com>
1872 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
1873 Rewrite accordingly.
1874 (frv_read_iacc_argument): Ditto.
1875 (frv_expand_set_builtin): Take a call instead of arglist, update for
1877 (frv_expand_unop_builtin): Ditto.
1878 (frv_expand_binop_builtin): Ditto.
1879 (frv_expand_cut_builtin): Ditto.
1880 (frv_expand_binopimm_builtin): Ditto.
1881 (frv_expand_voidbinop_builtin): Ditto.
1882 (frv_expand_int_void2arg): Ditto.
1883 (frv_expand_prefetches): Ditto.
1884 (frv_expand_voidtriop_builtin): Ditto.
1885 (frv_expand_voidaccop_builtin): Ditto.
1886 (frv_expand_load_builtin): Ditto.
1887 (frv_expand_store_builtin): Ditto.
1888 (frv_expand_mdpackh_builtin): Ditto.
1889 (frv_expand_mclracc_builtin): Ditto.
1890 (frv_expand_mrdacc_builtin): Ditto.
1891 (frv_expand_mwtacc_builtin): Ditto.
1892 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
1895 2007-02-20 Janis Johnson <janis187@us.ibm.com>
1897 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
1898 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
1900 (HAVE_GAS_DFP): Check for assembler support of decimal floating
1902 * configure: Regenerate.
1903 * config.in: Regenerate.
1904 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
1905 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
1906 masks to power6 and power6x and to POWERPC_MASKS.
1907 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1909 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
1910 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
1911 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1912 Access PROTOTYPE as variable, not mask.
1914 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
1916 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
1917 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
1918 * combine.c (adjust_for_new_dest): Use it.
1919 * postreload.c (reload_combine): Likewise.
1921 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
1923 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
1924 notes on an insn with multiple sets, even if single_set returns
1925 non-NULL for that insn.
1927 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1929 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
1932 2007-02-20 Geoffrey Keating <geoffk@apple.com>
1934 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
1935 if user didn't pass it.
1936 * config/i386/darwin.h (CC1_SPEC): Likewise.
1937 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
1938 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
1939 -mmacosx-version-min.
1941 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1942 Uros Bizjak <ubizjak@gmail.com>
1944 * optabs.h (enum optab_index): Add new OTI_scalb.
1945 (scalb_optab): Define corresponding macro.
1946 * optabs.c (init_optabs): Initialize scalb_optab.
1947 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
1949 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
1950 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
1951 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
1952 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
1953 flag_unsafe_math_optimizations is set.
1955 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
1956 to implement scalbf, scalb and scalbl built-ins as inline x87
1959 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1960 DJ Delorie <dj@redhat.com>
1963 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
1964 (diagnostic_report_diagnostic): ... here, and turn them into real
1965 errors. If warnings are inhibited, no need to do anything.
1967 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
1969 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
1970 better code generation.
1972 2007-02-20 Ben Elliston <bje@au.ibm.com>
1974 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
1976 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
1978 * config/alpha/alpha.c, config/alpha/alpha.md,
1979 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
1980 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
1981 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
1982 config/arm/lib1funcs.asm: Follow spelling conventions.
1984 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
1985 config/fr30/fr30.md, config/i386/i386.h,
1986 config/iq2000/iq2000.h, config/iq2000/predicates.md,
1987 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
1988 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1989 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
1990 config/rs6000/altivec.md, config/rs6000/rs6000.c,
1991 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
1992 config/sparc/sparc.c, config/sparc/sparc.h,
1993 config/sparc/sparc.md, config/spu/constraints.md,
1994 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
1997 2007-02-20 Alan Modra <amodra@bigpond.net.au>
2000 * varasm.c (use_blocks_for_decl_p): Return false for decls with
2003 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2005 * doc/invoke.texi (-ftree-lrs): Remove.
2007 2007-02-19 Diego Novillo <dnovillo@redhat.com>
2009 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2012 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
2014 * config/ia64/ia64.c (ia64_expand_builtin): Use the
2015 new CALL_EXPR_FN macro for retrieving the function
2016 declaration of the input expression.
2018 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2020 * c.opt (Waddress): New.
2021 * common.opt (Walways-true): Delete.
2022 (Wstring-literal-comparison): Delete.
2023 * doc/invoke.texi (Warning Options): Delete -Walways-true and
2024 -Wstring-literal-comparison. Add -Waddress.
2026 (Walways-true): Delete.
2027 (Wstring-literal-comparison): Delete.
2028 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2029 consistently instead of -Walways-true in example.
2030 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2031 * c-typeck.c (parser_build_binary_op): Replace
2032 -Wstring-literal-comparison and -Walways-true with -Waddress.
2033 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2036 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2038 * tree-cfg.c (dump_function_to_file): Be prepared for functions
2039 without DECL_STRUCT_FUNCTION initialized.
2041 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2043 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2044 due to calls to functions taking pointers as parameters.
2046 2007-02-19 Richard Henderson <rth@redhat.com>
2049 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2052 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
2054 * config/s390/s390.c (s390_call_saved_register_used,
2055 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2056 accessed to the new scheme.
2058 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2060 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2061 (cris_print_index, cris_print_operand, cris_print_operand_address)
2062 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2063 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2064 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2066 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2067 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2068 GO_IF_LEGITIMATE_ADDRESS): Ditto.
2069 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2070 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2071 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2072 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2073 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2074 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2075 (uminsi3, call, call_value): Ditto.
2076 (define_split: indir_to_reg_split, unnamed): Ditto.
2078 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
2080 PR tree-optimization/30975
2081 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2084 2007-02-18 Eric Christopher <echristo@gmail.com>
2086 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2087 Remove use of arglist.
2088 (mips_expand_builtin): Remove use of arglist, pass in expr.
2089 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2090 (mips_expand_builtin_movtf): Ditto.
2091 (mips_expand_builtin_compare): Ditto.
2093 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2095 * tree-sra.c (sra_build_assignment): Replace assertion
2096 checking with a comment explaining why it can't be done.
2098 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2101 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2102 during CALL_EXPR representation conversion.
2103 * tree-ssa-propagate.c (set_rhs): Likewise.
2105 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2107 * tree-sra.c (sra_build_assignment): Disable assertion checking
2110 2007-02-18 Roger Sayle <roger@eyesopen.com>
2112 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2113 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2114 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2116 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2117 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
2118 gimplify_init_ctor_eval_range, gimple_push_cleanup,
2119 gimplify_omp_for, gimplify_omp_atomic_pipeline,
2120 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2121 force_gimple_operand): Likewise.
2122 * ipa-cp.c (constant_val_insert): Likewise.
2123 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2124 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2125 perfect_nestify): Likewise.
2126 * langhooks.c (lhd_omp_assignment): Likewise.
2127 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2128 lower_copyprivate_clauses, lower_send_clauses,
2129 lower_send_shared_vars, expand_parallel_call,
2130 expand_omp_for_generic, expand_omp_for_static_nochunk,
2131 expand_omp_for_static_chunk, expand_omp_sections,
2132 lower_omp_single_copy, lower_omp_for_lastprivate,
2133 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2134 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2135 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2138 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2140 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2141 config/sh/sh.md: Follow spelling conventions.
2143 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2144 config/frv/predicates.md: Follow spelling conventions.
2146 * config/m68k/linux-unwind.h: Fix a comment typo.
2147 * target.h: Follow spelling conventions.
2149 2007-02-18 Roger Sayle <roger@eyesopen.com>
2151 PR rtl-optimization/28173
2152 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
2153 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2154 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2155 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2156 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2158 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2160 * builtins.c (fold_builtin_load_exponent): New.
2161 (fold_builtin_2): Use it.
2163 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
2165 PR rtl-optimization/30773
2166 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2167 if we fail to attach a REG_EQUIV note.
2169 2007-02-18 David Edelsohn <edelsohn@gnu.org>
2170 Roger Sayle <roger@eyesopen.com>
2172 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2174 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2176 * calls.c (initialize_argument_information): Pass original EXP
2177 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
2178 code to split complex arguments here, as part of initializing the
2180 (expand_call): Remove code that builds a list of arguments and
2181 inserts implicit arguments into it. Instead, just count how many
2182 implicit arguments there will be so we can determine the size of
2183 the ARGS array, and let initialize_argument_information do the work.
2184 (split_complex_values): Delete unused function.
2186 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2188 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2190 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2192 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2193 for arg pointer based indexed addressing.
2195 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2197 * config/ia64/ia64.h, config/ia64/ia64.md,
2198 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2199 spelling conventions.
2201 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2203 * config/m68k/m68k.c (split_di): New.
2204 * config/m68k/m68k-protos.h: Declare split_di.
2205 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2206 Improve predicate handling and split constant shifts.
2208 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2210 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2211 parameter for register bitfield operations, general predicates
2214 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2216 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2217 * config/m68k/linux-unwind.h: New file.
2219 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2221 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2222 config/i386/athlon.md, config/ia64/ia64.md,
2223 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2224 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2225 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2226 tree-ssa-loop-niter.c, tree-vect-analyze.c,
2227 tree-vect-transform.c: Fix comment typos.
2229 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
2231 * sched-deps.c (find_insn_list): Remove.
2232 * sched-int.h: Remove the prototype for find_insn_list.
2234 2007-02-16 Geoffrey Keating <geoffk@apple.com>
2236 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2238 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2239 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2240 darwin_rs6000_override_options.
2241 (C_COMMON_OVERRIDE_OPTIONS): Expect
2242 darwin_macosx_version_min to be non-NULL always.
2243 (TARGET_C99_FUNCTIONS): Likewise.
2244 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2245 (DARWIN_MINVERSION_SPEC): New.
2246 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2247 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2249 (DARWIN_MINVERSION_SPEC): New.
2250 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2252 * config/darwin-c.c (darwin_cpp_builtins): Expect
2253 darwin_macosx_version_min to be non-NULL always.
2255 * config/rs6000/rs6000.c: Clean up trailing whitespace.
2257 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
2259 * config/i386/i386.h (x86_use_xchgb): New.
2260 (TARGET_USE_XCHGB): New macro.
2261 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2262 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2263 Split after reload into bswaphi for shifts of 8.
2264 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2265 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2266 or when optimizing for size.
2268 2007-02-16 Richard Guenther <rguenther@suse.de>
2269 Christian Bruel <christian.bruel@st.com>
2271 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2272 DECLs but prefer SSA_NAMEs over DECLs.
2274 2007-02-16 Richard Guenther <rguenther@suse.de>
2276 * tree-flow-inline.h (single_imm_use_p): Remove.
2277 (zero_imm_uses_p): Likewise.
2278 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2279 instead of single_imm_use_p.
2280 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2283 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2286 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2287 nested double- and backquotes.
2289 2007-02-15 Roger Sayle <roger@eyesopen.com>
2292 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
2293 should be unreachable.
2294 (build2_stat): Allow construction of MODIFY_EXPR at any time.
2295 For the time being redirect GIMPLE_MODIFY_STMT to the new
2296 (renamed) build_gimple_modify_stmt_stat.
2297 (build2_gimple_stat): Rename to...
2298 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2299 Always build a GIMPLE_MODIFY_STMT node.
2300 * tree.h (build2_gimple, build2_gimple_stat): Delete.
2301 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2304 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2305 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2306 * tree-complex.c (set_component_ssa_name, expand_complex_move,
2307 expand_complex_div_wide): Likewise.
2308 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2309 * tree-ssa-loop-im.c (schedule_sm): Likewise.
2310 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2311 * tree-ssa-loop-manip.c (create_iv): Likewise.
2312 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2313 abs_replacement): Likewise.
2314 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2315 realify_fake_stores): Likewise.
2317 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2318 node rather than a GIMPLE_MODIFY_STMT node.
2319 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2320 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2322 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2323 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2326 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2329 * fold-const.c (fold_comparison): Add back the
2330 folding of constant complex comparisions.
2332 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2335 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2336 effects unknown to this function, return early.
2338 2007-02-15 Ian Lance Taylor <iant@google.com>
2340 * lower-subreg.c (move_eh_region_note): New static function.
2341 (resolve_simple_move): Call it.
2342 (decompose_multiword_subregs): Track blocks for which we resolve a
2343 simple move which is also a control flow insn. Pass them to
2344 find_many_sub_basic_blocks.
2345 (pass_lower_subreg): Add TODO_verify_flow.
2346 (pass_lower_subreg2): Likewise.
2348 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2349 Brooks Moses <brooks.moses@codesourcery.com>
2350 Lee Millward <lee.millward@codesourcery.com>
2352 * tree.h (enum tree_code_class): Add tcc_vl_exp.
2353 (VL_EXP_CLASS_P): New.
2354 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2356 (TREE_OPERAND_CHECK_CODE): Likewise.
2357 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2358 (TREE_RTL_OPERAND_CHECK): Likewise.
2359 (tree_operand_check_failed): Make second parameter the whole tree
2360 instead of its code. Fixed callers.
2361 (VL_EXP_CHECK): New.
2362 (TREE_OPERAND_LENGTH): New.
2363 (VL_EXP_OPERAND_LENGTH): New.
2364 (CALL_EXPR_FN): New.
2365 (CALL_EXPR_STATIC_CHAIN): New.
2366 (CALL_EXPR_ARGS): New.
2367 (CALL_EXPR_ARG): New.
2368 (call_expr_nargs): New.
2369 (CALL_EXPR_ARGP): New.
2370 (build_nt_call_list): Declare.
2371 (build_vl_exp_stat): Declare.
2372 (build_vl_exp): New.
2373 (build_call_list): Declare.
2374 (build_call_nary): Declare.
2375 (build_call_valist): Declare.
2376 (build_call_array): Declare.
2377 (call_expr_arg): Declare.
2378 (call_expr_argp): Declare.
2379 (call_expr_arglist): Declare.
2380 (fold_build_call_list): Declare.
2381 (fold_build_call_list_initializer): Declare.
2382 (fold_call_expr): Declare to replace fold_builtin.
2383 (fold_builtin_fputs): Update to agree with modified definition.
2384 (fold_builtin_strcpy): Likewise.
2385 (fold_builtin_strncpy): Likewise.
2386 (fold_builtin_memory_chk): Likewise.
2387 (fold_builtin_stxcpy_chk): Likewise.
2388 (fold_builtin_strncpy_chk): Likewise.
2389 (fold_builtin_next_arg): Likewise.
2390 (fold_build_call_expr): Declare.
2391 (fold_builtin_call_list): Declare.
2392 (fold_builtin_call_valist): Declare.
2393 (build_call_expr): Declare.
2394 (validate_arglist): Update to agree with modified definition.
2395 (tree_operand_length): New.
2396 (call_expr_arg_iterator): New.
2397 (init_call_expr_arg_iterator): New.
2398 (next_call_expr_arg): New.
2399 (first_call_expr_arg): New.
2400 (more_call_expr_args_p): New.
2401 (FOR_EACH_CALL_EXPR_ARG): New.
2403 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2404 and tcc_gimple_stmt.
2405 (tree_code_size): Update documentation. Use sizeof (tree) rather
2406 than sizeof (char *).
2407 (tree_size): Likewise. Add case for tcc_vl_exp.
2408 (tree_node_structure): Add case for tcc_vl_exp.
2409 (contains_placeholder_p): Likewise.
2410 (substitute_in_expr): Likewise.
2411 (substitute_placeholder_in_expr): Likewise.
2412 (stabilize_reference_1): Likewise.
2413 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
2414 to diagnose breakage of this interface for constructing CALL_EXPRs.
2415 (build_nt): Add similar assertion here.
2416 (build_nt_call_list): New.
2417 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2418 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2420 (get_callee_fndecl): Use new CALL_EXPR accessors.
2421 (tree_operand_check_failed): Change parameters to pass entire node
2422 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2423 (process_call_operands): New.
2424 (build_vl_exp_stat): New.
2425 (build_call_list): New.
2426 (build_call_nary): New.
2427 (build_call_valist): New.
2428 (build_call_array): New.
2429 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2430 (call_expr_arglist): New.
2432 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2433 tcc_vl_exp instead of a fixed-size tcc_expression.
2435 * doc/c-tree.texi (CALL_EXPR): Document new representation and
2436 accessors for CALL_EXPRs.
2437 (AGGR_INIT_EXPR): Likewise.
2439 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2440 Brooks Moses <brooks.moses@codesourcery.com>
2441 Lee Millward <lee.millward@codesourcery.com>
2443 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2444 (expand_builtin_nonlocal_goto): Change parameter to be entire
2445 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
2446 (expand_builtin_prefetch): Likewise.
2447 (expand_builtin_classify_type): Likewise.
2448 (mathfn_built_in): Return NULL_TREE instead of 0.
2449 (expand_errno_check): Use new CALL_EXPR accessors.
2450 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2451 Return NULL_RTX instead of 0.
2452 (expand_builtin_mathfn_2): Likewise.
2453 (expand_builtin_mathfn_3): Likewise.
2454 (expand_builtin_interclass_mathfn): Likewise.
2455 (expand_builtin_sincos): Likewise.
2456 (expand_builtin_cexpi): Likewise.
2457 (expand_builtin_int_roundingfn): Likewise.
2458 (expand_builtin_int_roundingfn_2): Likewise.
2459 (expand_builtin_pow): Likewise.
2460 (expand_builtin_powi): Likewise.
2461 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2462 of arglist, fixing callers appropriately. Use new CALL_EXPR
2463 accessors and constructors. Return NULL_RTX instead of 0.
2464 (expand_builtin_strstr): Likewise.
2465 (expand_builtin_strchr): Likewise.
2466 (expand_builtin_strrchr): Likewise.
2467 (expand_builtin_strpbrk): Likewise.
2468 (expand_builtin_memcpy): Likewise.
2469 (expand_builtin_mempcpy): Likewise.
2470 (expand_builtin_mempcpy_args): New.
2471 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2472 (expand_builtin_memmove_args): New.
2473 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2474 (expand_movstr): Likewise.
2475 (expand_builtin_strcpy): Likewise.
2476 (expand_builtin_strcpy_args): New.
2477 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2478 (expand_builtin_strncpy): Likewise.
2479 (expand_builtin_memset): Likewise.
2480 (expand_builtin_memset_args): New.
2481 (expand_builtin_bzero): Similarly to expand_builtin_memset.
2482 (expand_builtin_memcmp): Likewise.
2483 (expand_builtin_strcmp): Likewise.
2484 (expand_builtin_strncmp): Likewise.
2485 (expand_builtin_strcat): Likewise.
2486 (expand_builtin_strncat): Likewise.
2487 (expand_builtin_strspn): Likewise.
2488 (expand_builtin_strcspn): Likewise.
2489 (expand_builtin_args_info): Likewise.
2490 (expand_builtin_va_start): Likewise.
2491 (gimplify_va_arg_expr): Likewise.
2492 (expand_builtin_va_end): Likewise.
2493 (expand_builtin_va_copy): Likewise.
2494 (expand_builtin_frame_address): Likewise.
2495 (expand_builtin_alloca): Likewise.
2496 (expand_builtin_bswap): Likewise.
2497 (expand_builtin_unop): Likewise.
2498 (expand_builtin_fputs): Likewise.
2499 (expand_builtin_expect): Likewise.
2500 (expand_builtin_fabs): Likewise.
2501 (expand_builtin_copysign): Likewise.
2502 (expand_builtin_printf): Likewise.
2503 (expand_builtin_fprintf): Likewise.
2504 (expand_builtin_sprintf): Likewise.
2505 (expand_builtin_init_trampoline): Likewise.
2506 (expand_builtin_signbit): Likewise.
2507 (expand_builtin_fork_or_exec): Likewise.
2508 (expand_builtin_sync_operation): Likewise.
2509 (expand_builtin_compare_and_swap): Likewise.
2510 (expand_builtin_lock_test_and_set): Likewise.
2511 (expand_builtin_lock_release): Likewise.
2512 (expand_builtin): Likewise.
2513 (builtin_mathfn_code): Likewise.
2515 (fold_builtin_constant_p): Pass call arguments individually instead
2516 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2517 accessors and constructors. Return NULL_TREE instead of 0.
2518 (fold_builtin_expect): Likewise.
2519 (fold_builtin_classify_type): Likewise.
2520 (fold_builtin_strlen): Likewise.
2521 (fold_builtin_nan): Likewise.
2522 (integer_valued_real_p): Likewise.
2523 (fold_trunc_transparent_mathfn): Likewise.
2524 (fold_fixed_mathfn): Likewise.
2525 (fold_builtin_cabs): Likewise.
2526 (fold_builtin_sqrt): Likewise.
2527 (fold_builtin_cbrt): Likewise.
2528 (fold_builtin_cos): Likewise.
2529 (fold_builtin_cosh): Likewise.
2530 (fold_builtin_tan): Likewise.
2531 (fold_builtin_sincos): Likewise.
2532 (fold_builtin_cexp): Likewise.
2533 (fold_builtin_trunc): Likewise.
2534 (fold_builtin_floor): Likewise.
2535 (fold_builtin_ceil): Likewise.
2536 (fold_builtin_round): Likewise.
2537 (fold_builtin_int_roundingfn): Likewise.
2538 (fold_builtin_bitop): Likewise.
2539 (fold_builtin_bswap): Likewise.
2540 (fold_builtin_logarithm): Likewise.
2541 (fold_builtin_hypot): Likewise.
2542 (fold_builtin_pow): Likewise.
2543 (fold_builtin_powi): Likewise.
2544 (fold_builtin_exponent): Likewise.
2545 (fold_builtin_memset): Likewise.
2546 (fold_builtin_bzero): Likewise.
2547 (fold_builtin_memory_op): Likewise.
2548 (fold_builtin_bcopy): Deleted; call site changed to invoke
2549 fold_builtin_memory_op directly.
2550 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2551 (fold_builtin_strncpy): Likewise.
2552 (fold_builtin_memcmp): Likewise.
2553 (fold_builtin_strcmp): Likewise.
2554 (fold_builtin_strncmp): Likewise.
2555 (fold_builtin_signbit): Likewise.
2556 (fold_builtin_copysign): Likewise.
2557 (fold_builtin_isascii): Likewise.
2558 (fold_builtin_toascii): Likewise.
2559 (fold_builtin_isdigit): Likewise.
2560 (fold_builtin_fabs): Likewise.
2561 (fold_builtin_abs): Likewise.
2562 (fold_builtin_fmin_fmax): Likewise.
2563 (fold_builtin_carg): Likewise.
2564 (fold_builtin_classify): Likewise.
2565 (fold_builtin_unordered_cmp): Likewise.
2567 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2568 New functions split out from fold_builtin_1.
2569 (fold_builtin_n): New.
2570 (fold_builtin_varargs): New.
2571 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
2573 (fold_call_expr): New.
2574 (build_function_call_expr): Rewrite to use new helper function.
2575 (fold_builtin_call_list): New.
2576 (build_call_expr): New.
2577 (fold_builtin_call_valist): New.
2578 (rewrite_call_expr): New.
2579 (validate_arg): New.
2580 (validate_arglist): Change parameter to be entire CALL_EXPR instead
2581 of an arglist. Change return type to bool. Use new CALL_EXPR
2584 (fold_builtin_strstr): Pass call arguments individually instead
2585 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2586 accessors and constructors. Return NULL_TREE instead of 0.
2587 (fold_builtin_strchr): Likewise.
2588 (fold_builtin_strrchr): Likewise.
2589 (fold_builtin_strpbrk): Likewise.
2590 (fold_builtin_strcat): Likewise.
2591 (fold_builtin_strncat): Likewise.
2592 (fold_builtin_strspn): Likewise.
2593 (fold_builtin_strcspn): Likewise.
2594 (fold_builtin_fputs): Likewise.
2595 (fold_builtin_next_arg): Likewise.
2596 (fold_builtin_sprintf): Likewise.
2598 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
2599 NULL_RTX instead of 0.
2600 (expand_builtin_memory_chk): Likewise.
2601 (maybe_emit_chk_warning): Likewise.
2602 (maybe_emit_sprintf_chk_warning): Likewise.
2604 (fold_builtin_object_size): Pass call arguments individually instead
2605 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2606 accessors and constructors. Return NULL_TREE instead of 0.
2607 (fold_builtin_memory_chk): Likewise.
2608 (fold_builtin_stxcpy_chk): Likewise.
2609 (fold_builtin_strncpy_chk): Likewise.
2610 (fold_builtin_strcat_chk): Likewise.
2611 (fold_builtin_strcat_chk): Likewise.
2612 (fold_builtin_strncat_chk): Likewise.
2613 (fold_builtin_sprintf_chk): Likewise.
2614 (fold_builtin_snprintf_chk): Likewise.
2615 (fold_builtin_printf): Likewise.
2616 (fold_builtin_vprintf): Likewise.
2618 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
2620 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
2621 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2622 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
2623 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
2624 (fold_unary): Likewise.
2625 (fold_binary): Likewise.
2626 (fold_ternary): Remove CALL_EXPR case, since they are no longer
2627 ternary expressions.
2628 (fold): Add logic for tcc_vl_exp.
2629 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
2630 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2631 (fold_build3_stat): Add assertion to flag broken interface for
2632 constructing CALL_EXPRs.
2633 (fold_build_call_list): New.
2634 (fold_build_call_list_initializer): New.
2635 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
2637 (fold_strip_sign_ops): Likewise.
2639 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2640 Brooks Moses <brooks.moses@codesourcery.com>
2641 Lee Millward <lee.millward@codesourcery.com>
2643 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
2644 accessors and dump arguments explicitly.
2646 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
2648 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
2650 (print_call_name): Use new CALL_EXPR accessors.
2652 * print-tree.c (print_node): Add case tcc_vl_exp. Print
2653 CALL_EXPR arguments explicitly instead of as a list. Use
2654 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2656 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
2657 (vrp_visit_stmt): Likewise.
2659 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
2660 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
2662 (force_move_till_expr): Likewise.
2664 * targhooks.c (default_external_stack_protect_fail): Use
2665 build_call_expr instead of build_function_call_expr.
2666 (default_hidden_stack_protect_fail): Likewise.
2668 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
2671 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
2672 and walk arguments explicitly.
2674 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
2675 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2676 (expand_simple_operations): Likewise.
2677 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
2679 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
2680 of TREE_CODE_LENGTH.
2681 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
2683 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
2684 instead of TREE_CODE_LENGTH.
2686 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
2687 (tree_ic_transform): Likewise.
2688 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
2689 parameter instead of arglist. Fix callers.
2690 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
2691 (tree_stringops_transform): Likewise.
2692 (tree_indirect_call_to_profile): Likewise.
2693 (tree_stringops_values_to_profile): Likewise.
2695 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
2696 (eliminate_tail_call): Likewise.
2698 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
2700 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2701 Use TREE_OPERAND_LENGTH and generalize to handle any number of
2703 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
2705 * omp-low.c (build_omp_barrier): Use build_call_expr.
2706 (lower_rec_input_clauses): Likewise.
2707 (lower_reduction_clauses): Likewise.
2708 (expand_parallel_call): Likewise.
2709 (maybe_catch_exception): Likewise.
2710 (expand_omp_for_generic): Likewise.
2711 (expand_omp_for_static_nochunk): Likewise.
2712 (expand_omp_sections): Likewise.
2713 (lower_omp_single_simple): Likewise.
2714 (lower_omp_single_copy): Likewise.
2715 (lower_omp_master): Likewise.
2716 (lower_omp_ordered): Likewise.
2717 (lower_omp_critical): Likewise.
2719 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
2720 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
2722 * tree-gimple.c (is_gimple_call_addr): Fix doc.
2723 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
2724 TREE_CODE_LENGTH. Add tcc_vl_exp case.
2726 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
2727 and generalize to handle any number of operands.
2728 (chrec_contains_undetermined): Likewise.
2729 (tree_contains_chrecs): Likewise.
2730 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
2732 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
2734 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
2735 fold_call_expr instead of fold_builtin.
2736 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
2737 match declarations there.
2738 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
2741 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
2742 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2744 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
2745 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
2747 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
2750 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
2751 (execute_cse_sincos): Use new CALL_EXPR accessors.
2753 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
2755 * gimple-low.c (lower_function_body): Use build_call_expr.
2756 (lower_builtin_setjmp): Likewise.
2758 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
2759 (set_storage_via_libcall): Likewise.
2760 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
2761 instead of TREE_CODE_LENGTH.
2762 (expand_expr_real_1): Use new CALL_EXPR accessors.
2764 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
2765 generalize to handle any number of operands.
2766 (TB_parent_eq): Likewise.
2768 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
2769 (strip_builtin_expect): Likewise.
2771 * function.c (gimplify_parameters): Use build_call_expr.
2773 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
2774 instead of TREE_CODE_LENGTH.
2776 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
2777 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
2779 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
2782 * gimplify.c (build_stack_save_restore): Use build_call_expr.
2783 (gimplify_decl_expr): Likewise.
2784 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
2785 Use new CALL_EXPR iterators.
2786 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
2787 (gimplify_modify_expr_to_memset): Likewise.
2788 (gimplify_variable_sized_compare): Likewise.
2789 (gimplify_omp_atomic_fetch_op): Likewise.
2790 (gimplify_omp_atomic_pipeline): Likewise.
2791 (gimplify_omp_atomic_mutex): Likewise.
2792 (gimplify_function_tree): Likewise.
2794 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
2795 (call_expr_flags): Likewise.
2796 (expand_call): Likewise.
2798 * except.c (expand_builtin_eh_return_data_regno): Pass entire
2799 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2802 * coverage.c (create_coverage): Use build_call_expr.
2804 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
2805 (temp_call_expr_obstack): New.
2806 (pool_copy_list): Delete.
2807 (temp_copy_call_expr): New.
2808 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
2809 CALL_EXPR accessors. Get rid of special goo for copying argument
2810 lists and use temp_copy_call_expr instead.
2811 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
2812 CALL_EXPR accessors.
2813 (create_expression_by_pieces): Likewise. Use build_call_array
2814 to construct the result instead of fold_build3.
2815 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
2816 dealing with argument lists.
2817 (init_pre): Remove references to expression_node_pool and
2818 list_node_pool. Init temp_call_expr_obstack instead.
2819 (fini_pre): Remove references to expression_node_pool and
2822 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
2823 and walk arguments explicitly instead of as a list.
2825 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
2826 (mx_register_decls): Likewise.
2827 (mudflap_register_call): Likewise.
2828 (mudflap_finish_file): Likewise.
2830 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
2831 (ipa_callsite_compute_param): Likewise.
2833 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
2834 accessors and constructor.
2836 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
2837 accessors and constructor.
2838 (convert_tramp_reference): Likewise.
2839 (convert_call_expr): Likewise.
2840 (finalize_nesting_tree_1): Likewise.
2842 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
2845 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
2847 * tree-inline.c (initialize_inlined_parameters): Pass entire
2848 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2850 (estimate_num_insns_1): Use new CALL_EXPR accessors.
2851 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
2853 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
2854 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2855 (vectorizable_reduction): Likewise.
2856 (vectorizable_call): Use new CALL_EXPR iterators.
2857 (vectorizable_conversion): Use build_call_expr.
2858 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
2859 (vect_gen_widened_results_half): Use build_call_expr.
2860 (vect_setup_realignment): Likewise.
2861 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
2863 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
2864 (pass_through_call): Likewise.
2865 (compute_object_sizes): Likewise. Use fold_call_expr instead of
2868 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
2869 (tree_gen_pow2_profiler): Likewise.
2870 (tree_gen_one_value_profiler): Likewise.
2871 (tree_gen_ic_func_profiler): Likewise.
2872 (tree_gen_average_profiler): Likewise.
2873 (tree_gen_ior_profiler): Likewise.
2875 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
2876 (find_func_aliases): Use new CALL_EXPR accessors. Add case
2877 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2879 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
2880 of TREE_CODE_LENGTH.
2882 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
2883 of TREE_CODE_LENGTH.
2885 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
2887 (convert_to_integer): Likewise.
2889 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
2892 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2893 Brooks Moses <brooks.moses@codesourcery.com>
2894 Lee Millward <lee.millward@codesourcery.com>
2896 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
2898 * config/frv/frv.c (frv_expand_builtin): Likewise.
2899 * config/s390/s390.c (s390_expand_builtin): Likewise.
2901 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
2902 (sparc_expand_builtin): Use new CALL_EXPR accessors.
2904 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
2905 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
2906 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
2907 (ix86_expand_store_builtin): Likewise.
2908 (ix86_expand_unop_builtin): Likewise.
2909 (ix86_expand_unop1_builtin): Likewise.
2910 (ix86_expand_sse_compare): Likewise.
2911 (ix86_expand_sse_comi): Likewise.
2912 (ix86_expand_vec_init_builtin): Likewise.
2913 (ix86_expand_vec_ext_builtin): Likewise.
2914 (ix86_expand_vec_set_builtin): Likewise.
2915 (ix86_expand_builtin): Use new CALL_EXPR accessors.
2917 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
2918 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2920 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
2921 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2922 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
2924 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
2926 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2927 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
2928 arglist. Use new CALL_EXPR accessors. Fix callers.
2929 (altivec_expand_abs_builtin): Likewise.
2930 (rs6000_expand_binop_builtin): Likewise.
2931 (altivec_expand_predicate_builtin): Likewise.
2932 (altivec_expand_lv_builtin): Likewise.
2933 (spe_expand_stv_builtin): Likewise.
2934 (altivec_expand_stv_builtin): Likewise.
2935 (rs6000_expand_ternop_builtin): Likewise.
2936 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
2937 (altivec_expand_st_builtin): Likewise.
2938 (altivec_expand_dst_builtin): Likewise.
2939 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
2940 arglist. Use new CALL_EXPR accessors. Fix callers.
2941 (altivec_expand_vec_set_builtin): Likewise.
2942 (altivec_expand_vec_ext_builtin): Likewise.
2943 (altivec_expand_builtin): Use new CALL_EXPR accessors.
2944 (spe_expand_builtin): Likewise.
2945 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
2946 arglist. Use new CALL_EXPR accessors. Fix callers.
2947 (spe_expand_evsel_builtin): Likewise.
2948 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
2949 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
2951 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
2952 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2953 (arm_expand_unop_builtin): Likewise.
2954 (arm_expand_builtin): Use new CALL_EXPR accessors.
2956 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
2959 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
2960 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
2961 (bfin_expand_unop_builtin): Likewise.
2962 (bfin_expand_builtin): Use new CALL_EXPR accessors.
2964 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2965 Brooks Moses <brooks.moses@codesourcery.com>
2966 Lee Millward <lee.millward@codesourcery.com>
2968 * c-semantics.c (build_stmt): Add internal diagnostic check.
2970 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
2971 accessors. Print arguments explicitly instead of as a list.
2973 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
2975 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
2976 (c_finish_omp_flish): Likewise.
2978 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
2979 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
2980 instead of TREE_CODE_LENGTH.
2981 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
2982 (c_warn_unused_result): Likewise.
2984 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2987 * doc/invoke.texi (Warning Options): Remove
2988 -Werror-implicit-function-declaration.
2989 (Wimplicit-function-declaration): Update description.
2990 * opts.c (common_handle_option): Move handling of -Werror=* to...
2991 (enable_warning_as_error): ...here.
2992 * opts.h (enable_warning_as_error): Declare.
2993 * c-decl.c (implicit_decl_warning): Unless
2994 -Wno-implicit-function-declaration is given, emit a pedwarn if
2995 -std=c99 or emit a warning if -Wimplicit-function-declaration.
2996 * c.opt (Wimplicit-function-declaration): Replace
2997 mesg_implicit_function_declaration with
2998 warn_implicit_function_declaration.
2999 * c-opts.c (c_common_handle_option):
3000 -Werror-implicit-function-declaration is exactly equal as
3001 -Werror=implicit-function-declaration.
3002 (set_Wimplicit): Replace mesg_implicit_function_declaration with
3003 warn_implicit_function_declaration.
3004 (c_common_post_options): -Wimplict-function-declaration is enabled
3005 by default by -std=c99, otherwise is disabled by default.
3006 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
3008 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3010 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
3011 DECL on the rhs to a DECL on the lhs for debug info purposes if the
3012 former is ignored but not the latter.
3014 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3016 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
3017 is made and the reference doesn't use the alias set of its type,
3018 do not create the temporary using that type.
3020 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
3022 * jump.c: Remove prototypes for delete_computation and
3023 delete_prior_computation.
3025 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3027 * jump.c (get_label_after): Delete.
3028 (get_label_before, delete_computation, delete_jump,
3029 delete_prior_computation, follow_jumps): Move...
3030 * reorg.c (delete_computation, delete_prior_computation): ... here...
3031 (get_label_before, delete_jump): ... making these static ...
3032 (follow_jumps): ... and simplifying this since it only runs after
3034 * rtl.h (get_label_after, get_label_before, delete_jump,
3035 follow_jumps): Delete prototypes.
3037 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3039 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3041 2007-02-15 Nick Clifton <nickc@redhat.com>
3043 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3044 order to prevent it from being munged by the target.
3046 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
3048 * config/i386/i386.md: Remove misleading comment.
3050 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3052 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3053 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3056 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3058 * tree-sra.c (instantiate_missing_elements): Canonicalize
3060 (sra_build_assignment): New.
3061 (generate_copy_inout, generate_element_copy,
3062 generate_element_zero, generate_one_element_init): Use it.
3064 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3066 * tree-sra.c (instantiate_missing_elements): Canonicalize
3068 (sra_build_assignment): New.
3069 (generate_copy_inout, generate_element_copy,
3070 generate_element_zero, generate_one_element_init): Use it.
3072 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3074 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3077 2007-02-14 Joseph Myers <joseph@codesourcery.com>
3079 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3080 types as aggregates not scalars.
3081 * function.c (assign_stack_temp_for_type): Likewise.
3083 2007-02-14 Roger Sayle <roger@eyesopen.com>
3084 Zdenek Dvorak <dvorakz@suse.cz>
3086 * tree-dump.c (dump_switch_p_1): Require exact match of the option
3089 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
3091 * passes.c (next_pass_1): Clear the next field of the copied
3094 2007-02-14 Richard Henderson <rth@redhat.com>
3096 * tree-sra.c (early_sra): New.
3097 (decl_can_be_decomposed_p): Deny va_list if early_sra.
3098 (tree_sra_early, pass_sra_early): New.
3099 * tree-pass.h (pass_sra_early): Declare.
3100 * passes.c (init_optimization_passes): Use it.
3102 2007-02-14 Richard Guenther <rguenther@suse.de>
3104 * flags.h (issue_strict_overflow_warning): Convert to a macro.
3106 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
3108 PR tree-optimization/30771
3109 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3111 (vect_analyze_operations): Induction phis can now be marked as
3113 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3114 Update documentation accordingly.
3116 2007-02-14 Nick Clifton <nickc@redhat.com>
3118 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3119 most 3 arguments are supported.
3120 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3122 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
3124 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3125 Ensure dst->current is valid.
3127 2007-02-13 Paul Brook <paul@codesourcery.com>
3129 * config.gcc: Add arm*-*-uclinux-*eabi.
3130 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3131 (SUBTARGET_EXTRA_LINK_SPEC): Define.
3132 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3133 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3134 (LINK_SPEC): Define.
3136 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3138 * config/arm/uclinux-eabi.h: New file.
3139 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3140 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3143 2007-02-13 Ian Lance Taylor <iant@google.com>
3145 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3146 * flags.h (warn_strict_overflow): Declare.
3147 (enum warn_strict_overflow_code): Define.
3148 (issue_strict_overflow_warning): New static inline function.
3149 * opts.c (warn_strict_overflow): New variable.
3150 (common_handle_option): Handle OPT_Wstrict_overflow and
3151 OPT_Wstrict_overflow_.
3152 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3154 * fold-const.c: Include intl.h.
3155 (fold_deferring_overflow_warnings): New static variable.
3156 (fold_deferred_overflow_warning): New static variable.
3157 (fold_deferred_overflow_code): New static variable.
3158 (fold_defer_overflow_warnings): New function.
3159 (fold_undefer_overflow_warnings): New function.
3160 (fold_undefer_and_ignore_overflow_warnings): New function.
3161 (fold_deferring_overflow_warnings_p): New function.
3162 (fold_overflow_warning): New static function.
3163 (make_range): Add strict_overflow_p parameter. Change all
3165 (extract_muldiv, extract_muldiv_1): Likewise.
3166 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3167 tree_expr_nonnegative_p.
3168 (fold_negate_expr): Call fold_overflow_warning.
3169 (fold_range_test): Likewise.
3170 (fold_comparison): Likewise.
3171 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
3172 instead of tree_expr_nonnegative_p.
3173 (tree_expr_nonnegative_warnv_p): Rename from
3174 tree_expr_nonnegative_p, add strict_overflow_p parameter.
3175 (tree_expr_nonnegative_p): New function.
3176 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3177 strict_overflow_p parameter.
3178 (tree_expr_nonzero_p): New function.
3179 * passes.c (verify_interpass_invariants): New static function.
3180 (execute_one_pass): Call it.
3181 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3183 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3184 (estimate_numbers_of_iterations): Likewise.
3185 (scev_probably_wraps_p): Likewise.
3186 * tree-ssa-ccp.c: Include "toplev.h".
3187 (evaluate_stmt): Defer fold overflow warnings until we know we are
3189 (struct fold_stmt_r_data): Add stmt field.
3190 (fold_stmt_r): Defer fold overflow warnings until we know we
3192 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3193 (fold_stmt_inplace): Likewise.
3194 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3195 (cleanup_control_expr_graph): Defer fold overflow warnings until
3196 we know we are going to optimize.
3197 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3198 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3200 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3201 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3202 * tree-ssa-loop-manip.c (create_iv): Likewise.
3203 * c-typeck.c (build_conditional_expr): Likewise.
3204 (build_binary_op): Likewise.
3205 * tree-vrp.c (vrp_expr_computes_nonzero): Call
3206 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3207 (extract_range_from_unary_expr): Likewise.
3208 * simplify-rtx.c (simplify_const_relational_operation): Warn when
3209 assuming that signed overflow does not occur.
3210 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3211 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3212 (fold_defer_overflow_warnings): Declare.
3213 (fold_undefer_overflow_warnings): Declare.
3214 (fold_undefer_and_ignore_overflow_warnings): Declare.
3215 (fold_deferring_overflow_warnings_p): Declare.
3216 (tree_expr_nonzero_warnv_p): Declare.
3217 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3219 (Warning Options): Document -Wstrict-overflow.
3220 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3221 (tree-ssa-ccp.o): Likewise.
3222 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3223 (fold-const.o): Depend on intl.h.
3225 2007-02-13 Ian Lance Taylor <iant@google.com>
3228 * lower-subreg.c (resolve_simple_move): Decompose subregs in
3231 2007-02-13 Stuart Hastings <stuart@apple.com>
3233 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3235 2007-02-13 Richard Henderson <rth@redhat.com>
3237 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3238 handled_component_p before looking for the indirect_ref.
3240 2007-02-13 Richard Henderson <rth@redhat.com>
3242 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3243 remove flags clobber.
3244 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3245 (bswaphi_lowpart): New.
3246 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3247 remove TARGET_BSWAP test. Delete expander of the same name.
3249 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3250 (expand_unop): Use them.
3252 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
3254 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3255 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3256 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3257 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3258 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3259 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3260 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3261 assembler dialect choice from asm templates.
3263 2007-02-12 Richard Henderson <rth@redhat.com>
3265 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3266 (fixuns_trunc<SSEMODEF>si2): Use it.
3267 * config/i386/sse.md (vec_setv4sf_0): Export.
3268 * config/i386/i386.c (ix86_build_const_vector): Export.
3269 (ix86_split_convert_uns_si_sse): Rename from
3270 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3271 * config/i386/i386-protos.h: Update.
3273 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3276 * c-typeck.c (c_finish_return): Improve warning message.
3278 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3280 * alias.c (find_symbolic_term): Delete unused function.
3282 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
3284 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3285 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3286 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3288 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3290 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3291 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3292 the function, temporarily point the debug interface to the null one.
3294 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3296 * dwarf2out.c (round_up_to_align): New static function.
3297 (field_byte_offset): Use it to round the offset.
3299 2007-02-12 Richard Henderson <rth@redhat.com>
3301 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3302 (inswl_const): Export.
3304 2007-02-12 Richard Henderson <rth@redhat.com>
3306 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3307 result mode of the libcall, convert back to outmode.
3309 2007-02-12 Roger Sayle <roger@eyesopen.com>
3311 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3312 (bswapdi2): New define_expand to implement 32-bit implementation.
3314 2007-02-12 Nick Clifton <nickc@redhat.com>
3316 * doc/invoke.texi (Overall Options): Document --help=.
3317 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3318 (cc1_options): Pass --help= on to cc1.
3319 (display_help): Add description of --help=.
3320 (process_command): Add code to handle --help=. Allow translated
3321 --help and --target-help switches to be passed on to compiler
3323 (main): Remove unused if statement.
3324 * opts.c (columns): Remove.
3325 (LEFT_COLUMN): Define.
3326 (wrap_help): Add columns argument.
3327 (print_filtered_help): Change parameters to be an include bitmask,
3328 an exclude bitmask, an any bitmask and the column width. Move the
3329 code to display the params list here. Add code to display the
3330 status of options rather than their descriptions if the quiet flag
3332 (print_specific_help): Change parameters to be an include bitmask,
3333 an exclude bitmask and an any bitmask. Move code to look up the
3334 column width here. Decide upon the title for an options listing.
3335 (common_handle_options): Add code to handle --help=. Adapt code
3336 for --help and --target-help to use the revised form of the
3337 print_specific_help function.
3338 (print_help): Delete.
3339 (print_param_help): Delete.
3340 (print_switch): Delete.
3341 * opts.h (cl_lang_count): Add prototype.
3342 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3343 CL_MAX_OPTION_CLASS): New defines.
3344 * optc-gen.awk: Add construction of cl_lang_count.
3345 * c.opt: Add Warning attribute to warning options and Optimization
3346 attribute to optimization options.
3347 * common.opt: Likewise.
3349 Add -fhelp and -ftarget-help as aliases for the transformed --help
3350 and --target-help options.
3351 * opt-functions.awk: Add code to handle Warning and Optimization
3354 2007-02-12 Richard Henderson <rth@redhat.com>
3356 * config/alpha/constraints.md: New file.
3357 * config/alpha/alpha.c: Include tm-constrs.h.
3358 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3359 alpha_extra_constraint): Remove.
3360 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3361 * config/alpha/alpha-protos.h: Update.
3362 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3363 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3364 (EXTRA_CONSTRAINT): Remove.
3365 * config/alpha/alpha.md: Include constraints.md.
3366 (adddi splitter): Use satisfies_constraint_*.
3367 * config/alpha/predicates.md (add_operand): Likewise.
3368 (sext_add_operand, addition_operation): Likewise.
3370 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
3372 PR tree-optimization/29145
3373 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3374 in our handling of restrict qualified pointers.
3376 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3379 * doc/invoke.texi (Wunused-value): Update description.
3380 (Wextra): Delete item.
3381 * opts.c (set_Wextra): Don't use the value of Wextra to set the
3382 value of Wunused-value.
3383 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3384 (c_finish_stmt_expr): Don't check extra_warnings.
3385 (emit_side_effect_warnings): The caller is responsible to check
3388 2007-02-11 Roger Sayle <roger@eyesopen.com>
3389 Matt Thomas <matt@3am-software.com>
3391 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3393 2007-02-11 Roger Sayle <roger@eyesopen.com>
3395 * simplify-rtx.c (simplify_relational_operation_1): Optimize
3396 comparisons of POPCOUNT against zero.
3397 (simplify_const_relational_operation): Likewise.
3399 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3401 * doc/invoke.texi (Wextra): Delete outdated paragraph.
3403 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3405 * dwarf2out.c (root_type): Delete unused function.
3407 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>