1 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.opt (mcx16, msahf): New options.
4 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
5 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
7 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
8 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
9 Output -mcx16 and -msahf options when corresponding bit is set.
11 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
14 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
16 * configure.ac: Test for assembler tolerance to # 0 "".
17 * configure, config.in: Rebuilt.
18 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
20 2007-03-13 Geoffrey Keating <geoffk@apple.com>
22 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
24 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
25 (handle_syscall): Handle direct system calls.
26 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
28 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
30 * doc/invoke.texi: Fix cpp.info cross-reference.
31 * doc/passes.texi: Fix gcc.info cross-reference.
33 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
35 PR tree-optimization/30835
36 * lambda-code.c (can_convert_to_perfect_nest): Check whether
37 bb_for_stmt is not NULL before accessing it.
39 2007-03-12 Joseph Myers <joseph@codesourcery.com>
41 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
44 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
47 * doc/install.texi: Document --enable-stage1-languages
49 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
51 * tree-pass.h (pass_into_cfg_layout_mode,
52 pass_outof_cfg_layout_mode): Declare.
53 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
54 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
55 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
56 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
58 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
60 * c-decl.c (warn_variable_length_array): New function.
61 Refactored from grokdeclarator to handle warn_vla
62 and handle unnamed array case.
63 (grokdeclarator): Refactored VLA warning case.
64 * c.opt (Wvla): New flag.
65 * doc/invoke.texi (Wvla): New warning.
67 2007-03-12 Richard Henderson <rth@redhat.com>
69 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
70 (TARGET_SECTION_TYPE_FLAGS): New.
72 2007-03-12 Richard Henderson <rth@redhat.com>
74 * config/darwin.c (machopic_reloc_rw_mask): New.
75 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
76 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
78 2007-03-12 Mark Mitchell <mark@codesourcery.com>
80 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
81 * cppdefault.h (cpp_PREFIX): Document.
82 (cpp_PREFIX_len): Likewise.
83 (cpp_EXEC_PREFIX): New variable.
84 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
85 * c-incpath.c (add_standard_paths): Correct logic for relocating
88 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
90 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
91 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
93 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
94 fix_truncdfdi_sse using SSEMODEF mode macro.
95 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
96 fix_truncdfsi_sse using SSEMODEF mode macro.
97 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
98 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
100 2007-03-12 Richard Sandiford <richard@codesourcery.com>
102 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
105 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
107 * tree.h : Add multiple_of_p declaration.
108 * fold-const.c (multiple_of_p): Make multiple_of_p public.
109 * ipa-type-escape.c (results_of_malloc): Redundant.
110 (visited_stmts): New. Visited stmt for walk_use_def_chains.
111 (cast_type): Extended with new members.
112 (check_cast): Returns cast_type.
113 (cast): New structure for data of walk_use_def_chains.
114 (is_malloc_result, is_cast_from_non_pointer_1,
115 is_cast_from_non_pointer,
116 is_array_access_through_pointer_and_index): New functions.
117 (look_for_casts): Returns cast types.
118 (check_call): Returns void.
119 (okay_pointer_operation): Use support of pointer plus index,
120 pointer plus constant and allow all multiplications.
122 2007-03-11 Richard Guenther <rguenther@suse.de>
124 PR tree-optimization/31115
125 * tree-vrp.c (extract_range_from_binary_expr): Make sure
126 the shift count is positive and non-anti-range for RSHIFT_EXPR.
127 A shift count of zero is not special as with *_DIV_EXPR.
128 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
131 2007-03-11 Ian Lance Taylor <iant@google.com>
133 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
134 the *_DIV_EXPR codes correctly with overflow infinities.
136 2007-03-11 Ira Rosen <irar@il.ibm.com>
138 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
139 indicate success/failure of the analysis. Add negation to subtrahend
140 in case of subtraction. Fail if both operands contain constants.
141 (create_data_ref): Fail if analyze_offset fails.
143 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
145 * config/i386/i386.md (frndintxf2): Rename to ...
146 (rintxf2): ... this. Remove expander having same name.
147 (rintsf2, rintdf2): Implement using SSEMODEF macro.
148 (roundsf2, rounddf2): Ditto.
149 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
150 (lround<mode>di2, lround<mode>si2): Ditto.
152 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
154 * lower-subreg.c: Include except.h.
155 (decompose_multiword_subregs): Verify that the only control flow
156 insns we can split are loads to multi-words pseudos.
157 Handle breaking such blocks after splitting, instead of calling
158 find_many_sub_basic_blocks.
160 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
161 on the new basic block. Add a lengthy comment explaining why we
162 thought this was necessary.
163 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
165 2007-03-10 Mark Mitchell <mark@codesourcery.com>
168 * tree.c (walk_type_fields): Recurse into the element type of
169 ARRAY_TYPEs if there is a pointer set.
171 2007-03-10 Dirk Mueller <dmueller@suse.de>
173 * c-common.c (warn_logical_operator): Fix condition.
175 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
177 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
179 * config/darwin.c (machopic_select_section): Remove superfluous
180 argument in call to categorize_decl_for_section. Remove unused
183 2007-03-10 Joseph Myers <joseph@codesourcery.com>
185 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
187 * configure: Regenerate.
189 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
192 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
193 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
194 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
195 Add LABEL_NUSES to emitted label.
196 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
197 branch probability value to emitted jump insn.
198 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
199 Do not check life information and do not re-arrange input operands
200 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
202 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
204 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
205 the change of decode_asm_operands.
207 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
209 * mode-switching.c (create_pre_exit): Skip blockage insn.
211 2007-03-09 Diego Novillo <dnovillo@redhat.com>
213 * tree-pass.h (TODO_update_smt_usage): Remove.
215 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
219 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
221 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
222 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
223 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
226 2007-03-09 Geoffrey Keating <geoffk@apple.com>
228 * gcc.c: Document %{, in big comment at top.
229 (input_suffix_matches): Remove special handling for .s and
231 (input_spec_matches): New.
232 (handle_braces): Handle %{,.
233 (validate_switches): ',' indicates a value which is not a switch.
234 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
235 to detect assembler input.
236 * config/i386/sol2.h (CPP_SPEC): Likewise.
237 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
238 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
239 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
240 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
241 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
242 -m64 causes deployment target to default to 10.5.
243 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
245 2007-03-09 Richard Henderson <rth@redhat.com>
248 * target.h (targetm.asm.out.reloc_rw_mask): New.
249 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
250 (TARGET_ASM_OUT): Use it.
251 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
252 * varasm.c (categorize_decl_for_section): Remove shlib argument;
253 use the new reloc_rw_mask target hook instead.
254 (default_section_type_flags_1): Merge into...
255 (default_section_type_flags): ... here.
256 (decl_readonly_section_1): Merge into...
257 (decl_readonly_section): ... here.
258 (default_elf_select_section_1): Merge into...
259 (default_elf_select_section): ... here.
260 (default_unique_section_1): Merge into...
261 (default_unique_section): ... here.
262 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
263 (default_select_rtx_section): Use it.
264 (default_elf_select_rtx_section): Likewise.
265 * output.h: Update to match.
266 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
267 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
268 (TARGET_ASM_RELOC_RW_MASK): New.
269 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
270 to categorize_decl_for_section.
271 (x86_64_elf_unique_section): Likewise.
272 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
273 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
274 (TARGET_ASM_RELOC_RW_MASK): New.
275 * config/ia64/ia64.c (ia64_rwreloc_select_section,
276 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
277 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
278 (TARGET_RWRELOC): Remove.
279 (ia64_section_type_flags): Adjust call to default_section_type_flags.
280 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
281 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
282 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
283 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
284 (rs6000_xcoff_select_section): Use decl_readonly_section.
285 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
286 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
287 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
288 (TARGET_SECTION_TYPE_FLAGS): Remove.
289 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
291 2007-03-09 Roger Sayle <roger@eyesopen.com>
293 * fold-const.c (fold_comparison): Remove compile-time evaluation of
294 complex constant equality/inequality comparisons for here.
295 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
296 known at compile-time or can be simplified to a scalar comparison.
297 (fold_relational_const): Move compile-time evaluation of complex
298 constant equality/inequality comparisons to here.
300 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
302 PR rtl-optimization/30643
303 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
305 (fold_rtx): Recurse, like before 2006-11-03.
307 2007-03-09 DJ Delorie <dj@redhat.com>
309 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
312 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
314 PR tree-optimization/30375
315 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
316 LHS of statements is not the same.
317 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
319 2007-03-09 Chao-ying Fu <fu@mips.com>
321 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
323 * doc/invoke.texi (-mdspr2): Document new option.
324 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
325 New unspec for DSP REV 2.
326 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
327 these instructions are extended in DSP REV 2.
328 (mips-dspr2.md): Include.
329 * config/mips/mips.opt (mdspr2): New option.
330 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
331 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
332 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
333 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
334 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
335 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
336 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
338 (bdesc_map): Add one field of unsupported_target_flags.
339 (bdesc_arrays): Update entries to have extra fields. Add
341 (mips_init_builtins): Initialize new function types.
342 Check unsupported_target_fileds to filter out builtins.
343 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
345 (ASM_SPEC): Pass mdspr2 to the assembler.
346 * config/mips/mips-dspr2.md: New file.
348 2007-03-09 Sa Liu <saliu@de.ibm.com>
350 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
352 2007-03-09 Ian Lance Taylor <iant@google.com>
354 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
355 argument) like -Wstrict-overflow=2.
356 * doc/invoke.texi (Warning Options): Update documentation.
358 2007-03-09 Dirk Mueller <dmueller@suse.de>
361 * doc/invoke.texi (-Wlogical-op): Document.
362 * common.opt (-Wlogical-op): New.
363 * c-common.h (warn_logical_operator): Declare.
364 * c-common.c (warn_logical_operator): Define.
365 * c-typeck.c (parser_build_binary_op): Call
366 warn_logical_operator.
368 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
370 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
371 * final.c (final_scan_insn): Test for non-"" file name.
373 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
375 * doc/loop.texi: Document the Omega linear constraints solver.
376 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
377 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
378 omega-hash-table-size, omega-max-keys, and
379 omega-eliminate-redundant-constraints.
380 * tree-pass.h (pass_check_data_deps): Declared.
383 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
384 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
385 pass_check_data_deps): New.
386 * tree-data-ref.c (init_data_ref): Remove declaration.
387 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
388 (analyze_array): Renamed init_array_ref, move up initializations.
389 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
390 Removed arguments that are set to NULL.
391 (analyze_indirect_ref): Correct indentation, correct call to
393 (object_analysis): Call init_array_ref instead of analyze_array.
394 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
395 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
396 of DR_ACCESS_FNS_ADDR.
397 (init_omega_eq_with_af, omega_extract_distance_vectors,
398 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
399 ddr_consistent_p): New.
400 (compute_affine_dependence): Check consistency of ddrs when
401 flag_check_data_deps is passed.
402 (analyze_all_data_dependences): Uncomment.
403 (tree_check_data_deps): New.
404 * tree-data-ref.h: Include omega.h.
405 (DR_ACCESS_FNS_ADDR): Removed.
406 (data_dependence_relation): Add inner_loop.
407 (DDR_INNER_LOOP): New.
408 * common.opt (fcheck-data-deps): New.
409 * tree-flow.h (tree_check_data_deps): Declare.
410 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
411 (OBJS-common): Depend on omega.o.
413 * passes.c (pass_check_data_deps): Scheduled.
414 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
415 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
416 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
417 PARAM_VECT_MAX_VERSION_CHECKS,
418 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
420 2007-03-09 Richard Guenther <rguenther@suse.de>
422 PR tree-optimization/30904
424 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
425 the same way as *_DIV_EXPR.
427 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
429 * recog.c (decode_asm_operands): No mixed declarations and code.
431 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
433 * rtl.def (ASM_INPUT): Add location.
434 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
435 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
436 (decode_asm_operands): Add loc operand.
437 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
438 * stmt.c (expand_asm): Rename to...
439 (expand_asm_loc): ... this. Add locus argument. Pass it on to
440 gen_rtx_ASM_INPUT_loc.
441 (expand_asm_expr): Adjust.
442 * recog.c (decode_asm_operands): Add loc operand.
443 (check_asm_operands, extract_insn): Adjust.
444 * reload1.c (maybe_fix_stack_asms): Likewise.
445 * final.c (asm_insn_count): Likewise.
446 (final_scan_insn): Output # line before and after asm.
448 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
450 * tree-ssa-structalias.c (variable_info): Remove
452 (new_var_info): Ditto.
453 (shared_bitmap_info_t): New structure.
454 (shared_bitmap_table): New variable.
455 (shared_bitmap_hash): New function.
456 (shared_bitmap_eq): Ditto
457 (shared_bitmap_lookup): Ditto.
458 (shared_bitmap_add): Ditto.
459 (merge_smts_into): Change to take bitmap directly.
460 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
461 (init_alias_vars): Init shared bitmap hashtable.
462 (delete_points_to_sets): Delete shared bitmap hashtable.
463 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
464 is_aliased removal as a change that was still necessary was
467 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
469 * config/i386/i386.h (override_options): Conditionally disable
470 x86_sahf for 64bit targets only.
472 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
475 * c-decl.c (merge_decls): Don't call make_var_volatile.
476 * varasm.c (make_var_volatile): Remove.
477 * output.h (make_var_volatile): Remove.
479 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
481 PR tree-optimization/31085
482 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
484 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
486 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
487 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
488 ATTR_CONST_NOTHROW_LIST.
490 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
493 2007-03-08 Diego Novillo <dnovillo@redhat.com>
495 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
497 2007-03-08 Geoffrey Keating <geoffk@apple.com>
500 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
502 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
503 passed, use shared libgcc.
505 2007-03-08 Roger Sayle <roger@eyesopen.com>
507 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
508 instead of calling build2 with a GIMPLE_MODIFY_STMT.
509 (honor_protect_cleanup_actions, lower_try_finally_switch):
511 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
512 ifc_temp_var): Likewise.
513 * tree-inline.c (setup_one_parameter): Likewise.
514 * tree-mudflap.c (mf_decl_cache_locals,
515 mf_build_check_statement_for): Likewise.
516 * tree-nested.c (init_tmp_var, save_tmp_var,
517 finalize_nesting_tree_1): Likewise.
518 * tree-outof-ssa.c (insert_copy_on_edge,
519 insert_backedge_copies): Likewise.
520 * tree-profile.c (tree_gen_edge_profiler,
521 tree_gen_ic_profiler): Likewise.
522 * tree-scalar-evolution.c (scev_const_prop): Likewise.
523 * tree-sra.c (sra_build_assignment): Likewise.
524 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
525 * tree-ssa-math-opts.c (insert_reciprocals,
526 execute_cse_sincos_1): Likewise.
527 * tree-tailcall.c (adjust_accumulator_values,
528 adjust_return_value): Likewise.
529 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
530 * tree-vect-transform.c (vect_create_data_ref_ptr,
531 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
532 vect_create_epilog_for_reduction, vectorizable_reduction,
533 vectorizable_call, vectorizable_conversion,
534 vectorizable_assignment, vectorizable_operation,
535 vectorizable_type_demotion, vect_gen_widened_results_half,
536 vect_permute_store_chain, vectorizable_store,
537 vect_setup_realignment, vect_permute_load_chain,
538 vectorizable_load, vectorizable_condition,
539 vect_create_cond_for_align_checks): Likewise.
540 * tree-vrp.c (build_assert_expr_for): Likewise.
542 2007-03-08 Ian Lance Taylor <iant@google.com>
544 * tree-vrp.c: Include "intl.h".
545 (usable_range_p): New static function.
546 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
547 overflowed values, juts set *strict_overflow_p.
548 (compare_values): Only return -2 if one of the operands is not a
550 (compare_ranges): Call usable_range_p.
551 (compare_range_with_value): Likewise.
552 (vrp_evaluate_conditional_warnv): Rename from
553 vrp_evaluate_conditional. Make static. Change all callers.
554 (vrp_evaluate_conditional): New function.
555 (simplify_div_or_mod_using_ranges): Issue warning about reliance
557 (simplify_abs_using_ranges): Likewise.
558 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
559 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
560 within_stmt parameter.
561 * tree-ssa-propagate.c (fold_predicate_in): Update call to
562 vrp_evaluate_conditional.
563 * tree-ssa-threadedge.c
564 (record_temporary_equivalences_from_stmts_at_dest): Change
565 simplify parameter to take a second tree parameter.
566 (simplify_control_stmt_condition): Likewise.
567 (thread_across_edge): Likewise.
568 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
569 (thread_across_edge): Likewise.
570 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
572 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
574 * config/i386/i386.h (TARGET_SAHF): New define.
575 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
576 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
577 (x86_sahf): New global variable.
578 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
579 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
580 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
581 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
583 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
584 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
585 when expanding fcomi/sahf based tests.
586 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
587 expanding sahf based alternative. Emit sahf based sequence when
588 optimizing for code size.
589 * config/i386/i386.md (x86_sahf_1): Do not disable for
590 TARGET_64BIT, enable for TARGET_SAHF.
592 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
594 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
595 spurious whitespace from error message.
597 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
600 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
602 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
604 * c-decl.c (grokdeclarator): Disable warnings for anonymous
606 * tree-sra.c (instantiate_element): Propagate disabled warnings
607 from the element itself to the created variable.
609 2007-03-07 Richard Henderson <rth@redhat.com>
612 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
613 silently fix up the stack in the case of a missing register.
615 2007-03-07 Paul Brook <paul@codesourcery.com>
617 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
619 2007-03-07 Joseph Myers <joseph@codesourcery.com>
621 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
623 (phase1_vrs): Use them.
624 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
625 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
626 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
627 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
628 __gnu_Unwind_Restore_WMMXC if required.
629 (_Unwind_VRS_Pop): Implement iWMMXt support.
630 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
631 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
632 gnu_Unwind_Save_WMMXC): Define.
634 2007-03-07 Richard Sandiford <richard@codesourcery.com>
636 * config/vxworks.h (vxworks_override_options): Declare.
637 (VXWORKS_OVERRIDE_OPTIONS): Use it.
638 * config/vxworks.c: Include target.h and toplev.h.
639 (vxworks_override_options): New function.
640 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
642 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
644 * config/s390/s390.c (override_options): Don't emit an error when
645 -mstack-size is used without providing -mstack-guard.
646 (s390_emit_prologue): Choose stack_guard value automatically if not
647 provided via command line.
648 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
650 2007-03-07 Richard Sandiford <richard@codesourcery.com>
652 * config/i386/i386.c (output_set_got): Add a GOT initialization
653 sequence for VxWorks PIC.
654 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
655 around labels as well as symbols. Use gotoff_operand instead
656 of local_symbolic_operand.
657 (legitimize_pic_address): Use gotoff_operand instead of
658 local_symbolic_operand. Use @GOT accesses for labels as
660 (ix86_output_addr_diff_elt): Use PC-relative rather than
661 GP-relative offsets for VxWorks PIC.
662 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
663 no_new_pseudos. Check whether the returned register is op0.
664 * config/i386/i386.md (tablejump): Use PC-relative rather than
665 GP-relative offsets for VxWorks PIC.
666 * config/i386/predicates.md (gotoff_operand): New predicate.
668 2007-03-06 Richard Sandiford <richard@codesourcery.com>
670 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
672 * config/vxworks-dummy.h: New file.
673 * config/i386/i386.h: Include it.
675 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
677 * dwarf2out.c (is_inlined_entry_point): New
678 (add_high_low_attributes): Emit DW_AT_entry_pc along with
679 DW_AT_ranges if the first subblock is the entry point.
681 2007-03-06 David Daney <ddaney@avtrex.com>
683 * doc/install.texi (mips-*-*): Change recommended binutils
686 2007-03-06 Anatoly Sokolov <aesok@post.ru>
688 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
689 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
691 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
692 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
694 2007-03-06 Jan Hubicka <jh@suse.cz>
696 * errors.h (warning, error, fatal, internal_error): Mark as cold.
697 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
699 (probably_cold_bb_p): Cold functions are cold.
700 (probably_never_executed_bb_p): Cold functions are cold.
701 (tree_bb_level_predictions): Predict calls to cold functions as not
703 (compute_function_frequency): Check hot/cold attributes.
704 * function.h (function_frequency): Update comments.
705 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
706 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
707 (c_common_att): Add cold and hot.
709 * doc/extend.texi (hot,cold attributes): Document.
711 2007-03-06 Andrew Haley <aph@redhat.com>
713 * function.c (expand_function_end): Move blockage to just after we
714 emit the label for the naked return from the function.
716 2007-03-06 Richard Sandiford <richard@codesourcery.com>
718 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
721 2007-03-06 Jan Hubicka <jh@suse.cz>
723 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
724 loaded for constant large models. Non-large 64bit PIC can do.
725 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
726 * cmodel.h: Add LARGE PIC.
727 * i386.md (UNSPEC_PLTOFF): New.
728 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
730 (*call_1_rex64): Disable for large models.
731 (*call_1_rex64_large): New.
732 (*call_value_1_rex64): Disable for large models.
733 (*call_value_1_rex64_large): New.
735 (set_got_offset_rex64): New.
736 * predicates.md (constant_call_address_operand): For large model
737 constant calls are not possible.
738 * i386-protos.h (construct_plt_address): Declare.
739 * i386.c (override_options): Accept large models.
740 (ix86_expand_prologue): Expand large PIC GOT pointer load.
741 (legitimate_constant_p): Add new UNSPECs.
742 (legitimate_pic_operand_p): Likewise.
743 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
744 (legitimize_pic_address): Do easy RIP relative way for TLS only for
746 (output_pic_addr_const): Add PLTOFF.
747 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
748 (ix86_expand_move): Legitimize pic address when in PIC mode.
749 (construct_plt_address): New function.
750 (ix86_expand_call): Offload the address to register and use GOT pointer
752 * invoke.texi (mcmodel=large): Update documentation.
754 2007-03-06 Richard Henderson <rth@redhat.com>
756 * config/i386/i386.c (x86_use_leave, x86_push_memory,
757 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
758 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
759 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
760 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
761 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
762 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
763 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
764 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
765 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
766 x86_partial_reg_dependency, x86_memory_mismatch_stall,
767 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
768 x86_sse_partial_reg_dependency, x86_sse_split_regs,
769 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
770 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
771 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
772 x86_schedule, x86_use_bt, x86_pad_returns,
773 x86_use_xchgb): Merge into ...
774 (ix86_tune_features): ... here. New array.
775 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
776 x86_bswap): Merge into ...
777 (ix86_arch_features): ... here. New array.
778 (x86_3dnow_a): Remove.
779 (x86_accumulate_outgoing_args): Make static.
780 (x86_arch_always_fancy_math_387): Make static.
781 (ix86_tune_mask, ix86_arch_mask): Move ...
782 (override_options): ... to local variables here. Apply the
783 appropriate mask to each element of ix86_arch_features and
784 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
785 as were done in the old macros.
786 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
787 * config/i386/i386.h (x86_use_leave, x86_push_memory,
788 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
789 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
790 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
791 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
792 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
793 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
794 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
795 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
796 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
797 x86_partial_reg_dependency, x86_memory_mismatch_stall,
798 x86_accumulate_outgoing_args, x86_prologue_using_move,
799 x86_epilogue_using_move, x86_decompose_lea,
800 x86_arch_always_fancy_math_387, x86_shift1,
801 x86_sse_partial_reg_dependency, x86_sse_split_regs,
802 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
803 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
804 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
805 x86_use_incdec, x86_pad_returns, x86_bswap,
806 x86_partial_flag_reg_stall): Remove.
807 (enum ix86_tune_indices): New.
808 (ix86_tune_features): New.
809 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
810 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
811 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
812 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
813 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
814 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
815 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
816 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
817 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
818 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
819 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
820 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
821 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
822 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
823 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
824 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
825 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
826 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
827 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
828 TARGET_EXT_80387_CONSTANTS): Use it.
829 (enum ix86_arch_indices): New.
830 (ix86_arch_features): New.
831 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
832 TARGET_BSWAP): Use it.
833 (ix86_tune_mask, ix86_arch_mask): Remove.
835 2007-03-06 Joseph Myers <joseph@codesourcery.com>
838 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
839 Define using $${sysroot_headers_suffix}.
840 * configure: Regenerate.
841 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
842 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
844 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
845 * gcc.c (print_sysroot_headers_suffix): New.
846 (option_map): Include --print-sysroot-headers-suffix.
847 (display_help): Mention -print-sysroot-headers-suffix.
848 (process_command): Handle -print-sysroot-headers-suffix.
849 (do_spec_1): Append multilib directory to include-fixed path if
850 sysroot suffixes in use.
851 (main): Handle -print-sysroot-headers-suffix.
852 * Makefile.in (start.encap): Don't depend on xlimits.h
854 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
855 limits.h for each multilib in fixinc_list.
856 (fixinc_list, s-fixinc_list): New.
857 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
858 generate them for each multilib in fixinc_list.
859 (stmp-fixproto): Use include-fixed. Run fixproto for each
860 multilib in fixinc_list.
861 (mostlyclean): Don't remove xlimits.h.
862 (clean): Remove include-fixed.
863 (real-install-headers-tar, real-install-headers-cpio,
864 real-install-headers-cp): Don't copy include, only include-fixed.
865 (install-mkheaders): Depend on fixinc_list. Don't depend on
866 xlimits.h. Save limits.h files for each multilib in fixinc_list.
867 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
868 SYSTEM_HEADER_DIR setting in mkheaders.conf.
870 2007-03-06 Jan Hubicka <jh@suse.cz>
872 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
875 2007-03-06 Richard Sandiford <richard@codesourcery.com>
877 * configure.ac: Allow tm_file to contain build-directory files.
878 * configure: Regenerate.
879 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
880 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
881 * config/m68k/print-sysroot-suffix.sh: New file.
883 2007-03-06 Richard Sandiford <richard@codesourcery.com>
885 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
886 of pic_offset_table_rtx if reload_completed.
887 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
888 PIC_OFFSET_TABLE_REGNUM.
889 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
891 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
892 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
894 2007-03-06 Richard Sandiford <richard@codesourcery.com>
896 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
897 functions that call eh_return.
899 2007-03-06 Richard Sandiford <richard@codesourcery.com>
901 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
902 functions that need a constant pool.
904 2007-03-06 Richard Sandiford <richard@codesourcery.com>
907 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
908 (m68k_preferred_reload_class): Likewise.
909 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
910 (SECONDARY_RELOAD_CLASS): Define.
911 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
912 (LIMIT_RELOAD_CLASS): Delete.
913 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
914 registers from storing bytes.
915 (m68k_secondary_reload_class): New function.
916 (m68k_preferred_reload_class): Likewise.
918 2007-03-06 Richard Sandiford <richard@codesourcery.com>
920 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
922 (m68k_expand_prologue): Likewise.
924 2007-03-06 Richard Sandiford <richard@codesourcery.com>
926 * config/m68k/m68k-protos.h (output_sibcall): Declare.
927 (mips_expand_epilogue): Add a bool parameter.
928 (m68k_legitimize_sibcall_address): Declare.
929 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
930 (m68k_expand_epilogue): Add a parameter to select between sibling
931 and normal epilogues. Only generate a return for the latter.
932 (m68k_ok_for_sibcall_p): New function.
933 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
934 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
935 (sibcall_value, *sibcall_value): Likewise.
936 (*call, *call_value): Require !SIBLING_CALL_P.
937 (epilogue): Update call to m68k_expand_epilogue.
938 (sibcall_epilogue): New pattern.
939 * config/m68k/predicates.md (const_call_operand): Say that this
940 predicate applies to sibling calls too.
941 (sibcall_operand): New predicate.
943 2007-03-06 Richard Sandiford <richard@codesourcery.com>
945 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
946 alternatives as movsi_cf.
947 (movsf_cf_hard): Add commentary.
949 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
950 Richard Sandiford <richard@codesourcery.com>
952 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
953 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
954 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
955 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
956 as being live on exit from an interrupt function.
957 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
958 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
959 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
960 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
961 (m68k_interrupt_function_p): Globalize.
962 (m68k_compute_frame_layout): Remove reverse mask code.
963 (m68k_emit_movem, m68k_set_frame_related): New functions.
964 (m68k_output_function_prologue): Delete in favor of...
965 (m68k_expand_prologue): ...this new function.
966 (m68k_output_function_epilogue): Delete in favor of...
967 (m68k_expand_epilogue): ...this new function.
968 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
970 (print_operand): Handle %?.
971 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
972 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
973 (prologue, epilogue): New patterns.
974 (return): Turn into a define_expand.
975 (*return): New pattern, derived from old "return" pattern. Use rte
976 rather than rts for interrupt functions. Only use rtd if the pop
978 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
979 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
980 (link, *link, unlink, *unlink, load_got): Likewise.
982 2007-03-06 Richard Sandiford <richard@codesourcery.com>
986 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
987 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
988 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
989 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
990 and m68k_matches_u_p.
991 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
992 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
993 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
994 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
995 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
996 (REG_STRICT_P): New macro.
997 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
998 PCREL_GENERAL_OPERAND_OK.
999 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
1000 m68k_legitimate_base_reg_p.
1001 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
1002 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
1003 (PIC_CASE_VECTOR_ADDRESS): Update comment.
1004 * config/m68k/m68k.c (m68k_address): New structure.
1005 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
1006 (m68k_decompose_index, m68k_legitimate_constant_address_p)
1007 (m68k_jump_table_ref_p, m68k_decompose_address)
1008 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
1009 (m68k_matches_u_p): New functions.
1010 (print_operand_address): Rewrite to use m68k_decompose_index.
1012 2007-03-05 David Taylor <dtaylor@emc.com>
1014 * gcc.c: Correct copyright date in --version output.
1016 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1018 * pa.md: In unamed move patterns, disparge copies between general
1019 and floating point registers using '?' modifier. Don't include 'f'
1020 constraint for register preferences in DImode, SImode, HImode and
1021 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
1022 Remove constraints for copies between general and floating registers
1023 in soft-float DFmode pattern.
1024 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
1028 2007-03-05 Mike Stump <mrs@apple.com>
1030 * c-common.c (targetcm): Add.
1031 * c-opts.c (c_common_handle_option): Handle language specific
1033 * opts.c (handle_option): Verify language for target options, if
1035 * opth-gen.awk: Add CL_LANG_ALL.
1036 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
1037 (TARGETCM_INITIALIZER): Add.
1038 * target.h (struct gcc_targetcm): Add.
1040 * targhooks.c (default_handle_c_option): Add.
1041 * targhooks.h (default_handle_c_option): Add.
1042 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
1044 * config/darwin.opt (iframework): Add.
1045 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
1046 * config/darwin-c.c (handle_c_option): Add.
1047 (TARGET_HANDLE_C_OPTION): Add.
1049 * doc/invoke.texi (Darwin Options): Add -iframework.
1051 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1053 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
1056 2007-03-05 Ian Lance Taylor <iant@google.com>
1058 * c.opt (fgnu89-inline): New option.
1059 * c-opts.c (c_common_post_options): Set default value for
1061 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
1062 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
1064 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
1065 (grokdeclarator, start_function): Likewise.
1066 * c-cppbuiltin.c (c_cpp_builtins): Define either
1067 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
1068 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
1069 (C Dialect Options): Document -fgnu89-inline.
1070 * doc/extend.texi (Function Attributes): Explain what the
1071 gnu_inline attribute does.
1072 * doc/cpp.texi (Common Predefined Macros): Document
1073 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
1075 2007-03-05 Ian Lance Taylor <iant@google.com>
1077 PR tree-optimization/31034
1078 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
1079 half-range if the other side is an overflow infinity.
1081 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
1083 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
1084 (bfin*-linux-uclibc*): New configuration.
1085 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
1087 * config/bfin/linux.h: New file.
1088 * config/bfin/libgcc-bfin.ver: New file.
1089 * config/bfin/t-bfin-uclinux: New file.
1090 * config/bfin/t-bfin-linux: New file.
1091 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
1092 (TARGET_OS_CPP_BUILTINS): New macro.
1094 2007-03-05 Richard Guenther <rguenther@suse.de>
1096 * fold-const.c (fold_binary): Remove duplicate folding
1097 of comparison of non-null ADDR_EXPR against null.
1099 2007-03-05 Richard Guenther <rguenther@suse.de>
1100 Dorit Nuzman <dorit@il.ibm.com>
1102 PR tree-optimization/26420
1103 * tree-vectorizer.c (vectorize_loops): Bail out early if there
1104 are no loops in the function. Only print the number of
1105 vectorized loops if it is greater than zero or we are supposed
1106 to print information about unvectorized loops.
1108 2007-03-05 Revital Eres <eres@il.ibm.com>
1110 * gcc.dg/var-expand1.c: New test.
1111 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
1112 when an accumulator is expanded.
1114 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1117 * c-common.c (convert_and_check): Don't give warnings for
1118 conversion if 'expr' already overflowed.
1120 2007-03-04 Roger Sayle <roger@eyesopen.com>
1123 * fold-const.c (fold_comparison): Enforce type consistency when
1124 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
1126 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
1128 * tree-ssa-address.c (create_mem_ref): Do not put an expression
1129 containing a cast to the base of TARGET_MEM_REF.
1131 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
1133 * tree.c (tree_contains_struct_check_failed): Remove spurious
1134 whitespace from error message.
1136 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1139 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
1140 instead of precision.
1142 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
1143 Nathan Sidwell <nathan@codesourcery.com>
1145 * emit-rtl.c (find_auto_inc): New.
1146 (try_split): recreate REG_INC notes,
1147 Use regular for loops rather than whiles.
1149 2007-03-03 Andreas Schwab <schwab@suse.de>
1151 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1152 * configure: Regenerate.
1154 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1156 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1157 flag_rounding_math, not flag_unsafe_math_optimizations.
1159 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1161 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1162 alpha_fold_vector_minmax): Likewise.
1163 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1164 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1166 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1168 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1169 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1170 if the lhs has side-effects.
1171 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1173 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1175 * config/i386/i386.h (TUNEMASK): Remove define.
1176 (ARCHMASK): Remove define.
1177 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1178 Use ix86_arch_mask variable instead of ARCHMASK.
1179 * config/i386/i386.c (override_options): Ditto.
1180 (standard_80387_constant_p): Ditto.
1182 2007-03-02 Ian Lance Taylor <iant@google.com>
1184 Used signed infinities in VRP.
1185 * tree-vrp.c (uses_overflow_infinity): New static function.
1186 (supports_overflow_infinity): New static function.
1187 (make_overflow_infinity): New static function.
1188 (negative_overflow_infinity): New static function.
1189 (positive_overflow_infinity): New static function.
1190 (is_negative_overflow_infinity): New static function.
1191 (is_positive_overflow_infinity): New static function.
1192 (is_overflow_infinity): New static function.
1193 (overflow_infinity_range_p): New static function.
1194 (compare_values_warnv): New function split out of compare_values.
1195 (compare_value): Call it.
1196 (set_value_range_to_nonnegative): Add overflow_infinity
1197 parameter. Change caller.
1198 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1200 (vrp_expr_computes_nonzero): Likewise.
1201 (compare_ranges, compare_range_with_value): Likewise.
1202 (compare_name_with_value, compare_names): Likewise.
1203 (vrp_evaluate_conditional): Likewise.
1204 (set_value_range): Handle infinity
1205 (vrp_operand_equal_p, operand_less_p): Likewise.
1206 (extract_range_from_assert): Likewise.
1207 (vrp_int_const_binop): Likewise.
1208 (extract_range_from_binary_expr): Likewise.
1209 (extract_range_from_unary_expr): Likewise.
1210 (extract_range_from_comparison): Likewise.
1211 (extract_range_from_expr): Likewise.
1212 (dump_value_range): Likewise.
1213 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1214 (test_for_singularity): Likewise.
1215 (vrp_int_const_binop): Remove inline qualifier.
1216 (adjust_range_with_scev): Add comment.
1217 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1219 2007-03-02 Diego Novillo <dnovillo@redhat.com>
1221 * tree-ssa-structalias.c (could_have_pointers): Tidy.
1222 (get_constraint_for): Likewise.
1223 (do_structure_copy): Likewise.
1224 (find_func_aliases): Fix references to MODIFY_EXPR.
1225 (intra_create_variable_infos): Tidy.
1226 * tree-ssa-operands.c (add_virtual_operand): Add argument
1228 When adding members of alias sets, if IS_CALL_SITE is true and
1229 the symbol is not call-clobbered, skip it.
1232 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1234 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1235 entry by means of emit_insn_at_entry.
1237 2007-03-02 Richard Henderson <rth@redhat.com>
1239 * expr.h (promoted_input_arg): Remove decl.
1240 * function.c (promoted_input_arg): Merge into ...
1241 * combine.c (setup_incoming_promotions): ... only caller.
1242 Rearrange to avoid double loop.
1244 2007-03-02 Ben Elliston <bje@au.ibm.com>
1245 Peter Bergner <bergner@vnet.ibm.com>
1246 Janis Johnson <janis187@us.ibm.com>
1248 * config/rs6000/dfp.md: New file.
1249 * config/rs6000/rs6000.md: Include dfp.md.
1250 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1251 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1252 and TDmode decimal float modes in FP registers.
1253 (num_insns_constant): Likewise.
1254 (rs6000_legitimate_offset_address_p): Likewise.
1255 (rs6000_legitimize_address): Likewise.
1256 (rs6000_legitimize_reload_address): Likewise.
1257 (rs6000_legitimate_address): Likewise.
1258 (rs6000_emit_move): Likewise.
1259 (function_arg_boundary): Likewise.
1260 (function_arg_advance): Likewise.
1261 (rs6000_darwin64_record_arg_recurse): Likewise.
1262 (function_arg): Likewise.
1263 (rs6000_gimplify_va_arg): Likewise.
1264 (rs6000_split_multireg_move): Likewise.
1265 (rs6000_output_function_epilogue): Likewise.
1266 (rs6000_output_function_epilogue): Likewise.
1267 (rs6000_register_move_cost): Likewise.
1268 (rs6000_function_value): Likewise.
1269 (rs6000_libcall_value): Likewise.
1271 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1273 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1275 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1277 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1278 Use $MULTIDIR to choose between the kernel and RTP headers,
1279 and use $WIND_BASE and $WIND_USR to locate them.
1281 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1283 * config/i386/i386.c (override_options): Put initialization of
1284 ix86_tune_mask and ix86_arch_mask to the correct place.
1286 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1287 Michael Meissner <michael.meissner@amd.com>
1290 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1292 (TARGET_CMOVE): Use ARCHMASK.
1293 (TARGET_CMPXCHG): Ditto.
1294 (TARGET_CMPXCHG8B): Ditto.
1295 (TARGET_XADD): Ditto.
1296 (TARGET_BSWAP): Ditto.
1297 * config/i386/i386.c (ix86_tune_mask): New global variable.
1298 (ix86_arch_mask): Ditto.
1299 (override_options): Initialize ix86_tune_mask and
1300 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1303 2007-03-02 Ben Elliston <bje@au.ibm.com>
1306 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1308 2007-03-02 Joseph Myers <joseph@codesourcery.com>
1310 * target.h (init_dwarf_reg_sizes_extra): New target hook.
1311 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1312 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1313 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1315 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1316 rs6000_init_dwarf_reg_sizes_extra): New.
1317 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1318 SPE register high parts.
1320 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1322 * Makefile.in: Add install-pdf target as
1323 copied from automake v1.10 rules.
1324 * configure.ac: Add install-pdf to target list.
1325 * configure: Regenerate.
1327 2007-03-01 Paul Brook <paul@codesourcery.com>
1329 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1330 modes to LDRD for DImode.
1331 (output_move_double): Fixup out of range ldrd/strd.
1332 (vfp_secondary_reload_class): Rename...
1333 (coproc_secondary_reload_class): ... to this. Add wb argument.
1334 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1335 coproc_secondary_reload_class for CLASS_IWMMXT.
1336 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1337 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1339 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
1341 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
1342 factor by the estimated number of iterations.
1343 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1346 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1347 decode_caches_intel, detect_caches_intel): New functions.
1348 (host_detect_local_cpu): Use detect_caches_amd and
1349 detect_caches_intel.
1351 2007-03-01 Richard Henderson <rth@redhat.com>
1353 * expr.c (emit_move_complex_push): Export.
1354 (emit_move_complex_parts): Split out from ...
1355 (emit_move_complex): ... here.
1356 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1357 * config/i386/i386.md (movcdi): New.
1359 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
1361 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1362 size of mode1 to check for tieable modes in MMX case.
1364 2007-03-01 Richard Sandiford <richard@codesourcery.com>
1366 * Makefile.in (rtlanal.o): Depend on tree.h.
1367 * rtl.h (offset_within_section_p, split_const): Declare.
1368 * rtlanal.c: Include tree.h.
1369 (offset_within_block_p): New function, taken from
1370 mips_offset_within_object_p.
1371 (split_const): New function, taken from mips_split_const.
1372 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1374 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1375 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1376 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1377 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1378 (m68k_illegitimate_symbolic_constant_p): New function.
1379 * config/m68k/m68k.md (movsi): Remove misleading predicates.
1380 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1381 symbolic constant that might be outside the symbol's section,
1382 move the symbol first and then add the offset.
1383 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1385 * config/mips/mips.c (mips_split_const): Delete.
1386 (mips_offset_within_object_p): Delete.
1387 (mips_symbolic_constant_p): Use offset_within_section_p and
1388 split_const instead of mips_offset_within_object_p and
1390 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1391 (mips_legitimize_const_move, print_operand_reloc)
1392 (mips_dangerous_for_la25_p): Use split_const instead of
1395 2007-02-28 Eric Christopher <echristo@apple.com>
1397 * Makefile.in (install-include-dir): Don't rm -rf include.
1399 2007-02-28 Richard Guenther <rguenther@suse.de>
1402 * fold-const.c (fold_binary): Do not associate expressions
1403 with more than one variable for integer types that do not wrap.
1405 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
1407 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1408 Delete, and replace with...
1409 (fold_builtin_call_array): This. Update callers to use it.
1410 * fold-const.c (fold_build_call_list): Delete, and replace with...
1411 (fold_build_call_array): This.
1412 (fold_build_call_list_initializer): Delete, and replace with...
1413 (fold_build_call_array_initializer): This.
1414 * tree.h: Update declarations to reflect above changes.
1416 * c-typeck.c (build_function_call): Store converted arguments
1417 in a stack-allocated array instead of building a list.
1418 (convert_arguments): Store arguments in the array passed in as an
1419 argument, and return the actual number of arguments.
1420 * c-format.c: (check_function_format): Pass arguments in an
1421 array instead of a list.
1422 * c-common.c (check_function_nonnull): Likewise.
1423 (check_function_sentinel): Likewise.
1424 (check_function_arguments): Likewise.
1425 * c-common.h: Update declarations to reflect above changes.
1427 2007-02-28 Jan Hubicka <jh@suse.cz>
1429 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1430 PRED_NEGATIVE_RETURN): Update outcomes.
1432 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
1434 * calls.c (emit_library_call_value_1): Handle partial registers
1435 correctly when building up CALL_INSN_FUNCTION_USAGE.
1437 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1439 * pa/predicates.md (move_src_operand): Allow zero for mode.
1440 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1443 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
1446 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1447 *movv2df_internal): Enable pattern only for valid operand
1449 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1450 tie only 128bit modes. For MMX registers, tie only 64bit modes.
1452 2007-02-27 Mike Stump <mrs@apple.com>
1454 * config/darwin-crt3.c: Avoid compilation when compiling for a
1457 2007-02-27 Joseph Myers <joseph@codesourcery.com>
1459 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1461 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1462 for fixed headers and limits.h.
1463 (install-include-dir, install-headers-tar, install-headers-cpio,
1464 install-headers-cp, real-install-headers-tar,
1465 real-install-headers-cpio, real-install-headers-cp): Handle
1466 include-fixed as well as include.
1467 (install-mkheaders): Don't install files that go only in include
1469 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1470 from GCC_INCLUDE_DIR.
1471 * gcc.c (process_command): Remove special -BstageN/ handling.
1472 (do_spec_1): Add include-fixed directories.
1474 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1476 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1478 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1480 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1483 2007-02-27 Mark Mitchell <mark@codesourcery.com>
1485 * c-common.c (get_priority): Add check for
1486 SUPPORTS_INIT_PRIORITY.
1488 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1490 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1492 * config/bfin/bfin.c: Include "cfglayout.h".
1493 (MAX_LSETUP_DISTANCE): New macro.
1494 (struct loop_info): New members incoming, incoming_src and
1495 incoming_dest. Delete member predecessor.
1496 (length_for_loop): New function.
1497 (bfin_optimize_loop): Handle more different loop structures.
1498 (bfin_discover_loop): Rework detection of predecessor blocks by
1499 examining incoming edges.
1500 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1502 (bfin_reorder_loops): New function.
1503 (bfin_reorg_loops): Use these three new functions.
1505 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1506 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1507 (CONSTRAINT_LEN): Add entry for 'q'.
1508 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1509 Add 'q' constraints.
1510 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1511 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1513 * config/bfin/bfin.md (add_with_carry): New pattern.
1514 (s_or_u, su_optab, su_modifier): New code macros/attrs.
1515 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1516 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1517 support unsigned multiplies too. Removed incorrect commutativity from
1518 operand 1 constraint where appropriate.
1519 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1521 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1522 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1524 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1525 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1526 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1527 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1528 usmulhisi_hh_huh): New patterns.
1530 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1531 lshifthi3): Fix output template to use half reg for operand 2.
1533 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1536 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1538 2007-02-27 Andreas Schwab <schwab@suse.de>
1540 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1542 2007-02-27 Jan Hubicka <jh@suse.cz>
1544 * predict.c (last_basic_block_p): Remove.
1545 (tree_estimate_probability): Update return heuristic for commonized
1548 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1550 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1552 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1554 * doc/include/gcc-common.texi (versionsubtitle): New macro.
1555 * doc/cpp.texi: Standardize title page.
1556 * doc/cppinternals.texi: Likewise.
1557 * doc/gcc.texi: Standardize title page, remove version number
1558 from copyright page.
1559 * doc/gccint.texi: Likewise.
1560 * doc/install.texi: Standardize title page, add table of
1563 2007-02-26 Jan Hubicka <jh@suse.cz>
1565 * predict.def: Set outcomes according to more recent results.
1566 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1567 Remove dead predictors.
1568 * predict.c (return_prediction): Fix pasto.
1570 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1572 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1573 change; avoid a memory leak when returning early.
1575 2007-02-26 Mark Mitchell <mark@codesourcery.com>
1577 * c-decl.c (static_ctors): Move to c-common.c.
1578 (static_dtors): Likewise.
1579 (finish_function): Use c_record_cdtor_fn.
1580 (build_cdtor): Move to c-common.c.
1581 (c_write_global_declarations): Use c_build_cdtor_fns.
1582 * c-common.h (static_ctors): Declare.
1583 (static_dtors): Likewise.
1584 (c_record_cdtor_fn): Likewise.
1585 (c_build_cdtor_fns): Likewise.
1586 * c-common.c (static_ctors): New variable.
1587 (static_dtors): Likewise.
1588 (c_record_cdtor_fn): New function.
1589 (build_cdtor): Move from c-decl.c
1590 (c_build_cdtor_fns): New function.
1592 * output.h (assemble_addr_to_section): Declare.
1593 (get_cdtor_priority_section): Likewise.
1594 * varasm.c (assemble_addr_to_section): New function.
1595 (get_cdtor_priority_section): Likewise.
1596 (default_named_section_asm_out_destructor): Use them.
1597 (destor_dtor_section_asm_out_destructor): Likewise.
1598 (default_named_section_asm_out_constructor): Likewise.
1599 (default_ctor_section_asm_out_constructor): Likewise.
1600 * config.gcc (*-*-vxworks*): Include vxworks.o.
1601 * config/t-vxworks (vxworks.o): New target.
1602 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1603 (TARGET_ASM_CONSTRUCTOR): Define.
1604 (TARGET_ASM_DESTRUCTOR): Likewise.
1605 (vxworks_asm_out_constructor): Declare.
1606 (vxworks_asm_out_destructor): Likewise.
1608 * c-common.c (get_priority): Check that we have not just an
1609 INTEGER_CST, but an integer constant with integeral type.
1611 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
1613 PR tree-optimization/30938
1614 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1615 use &dt[nargs-1] instead of &dt[nargs] in the call to
1616 vect_is_simple_use().
1618 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
1620 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1621 from register elimination as PRE_MODIFY / POST_MODIFY increments.
1622 Do not attempt to handle MEM inside auto-inc expressions.
1623 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1624 of a register modified by an auto-inc expression. However, do handle
1625 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1626 (elimination_effects): Prohibit elimination of a register modified
1627 by an auto-inc expression. Disable register elimination rules whose
1628 target register is modified by an auto-inc expression with variable
1631 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
1633 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1635 (array_at_struct_end_p): New function.
1636 (idx_infer_loop_bounds): Use it.
1637 (estimate_numbers_of_iterations_loop): Export.
1638 * predict.c (predict_loops): Use estimated_loop_iterations_int.
1639 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1640 (tree_estimate_probability): Call record_loop_exits.
1641 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1642 (estimated_loop_iterations, estimated_loop_iterations_int,
1643 estimated_loop_iterations_tree): New functions.
1644 (analyze_siv_subscript_cst_affine,
1645 compute_overlap_steps_for_affine_1_2,
1646 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1647 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1648 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1649 (PRED_LOOP_ITERATIONS_GUESSED): New.
1650 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1651 * cfgloop.h (estimate_numbers_of_iterations_loop,
1652 estimated_loop_iterations_int): Declare.
1654 2007-02-25 Mark Mitchell <mark@codesourcery.com>
1656 * doc/extend.texi: Document optional priority argument to
1657 constructors and destructors.
1658 * tree.c (init_priority_for_decl): Adjust GTY markers.
1659 (init_ttree): Use priority-info hash functions for
1660 init_priority_for_decl.
1661 (tree_map_eq): Rename to ...
1662 (tree_map_base_eq): ... this.
1663 (tree_map_marked_p): Rename to ...
1664 (tree_map_base_marked_p): ... this.
1665 (tree_map_base_hash): New function.
1666 (decl_init_priority_lookup): Rework.
1667 (decl_fini_priority_lookup): New function.
1668 (decl_priority_info): New function.
1669 (decl_init_priority_insert): Use it.
1670 (decl_fini_priority_insert): Likewise.
1671 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1673 (decl_restrict_base_insert): Likewise.
1674 (decl_debug_expr_insert): Likewise.
1675 (decl_value_expr_lookup): Likewise.
1676 (decl_value_expr_insert): Likewise.
1677 * tree.h (priority_type): New type.
1678 (decl_init_priority_lookup): Use priority_type.
1679 (decl_fini_priority_lookup): New function.
1680 (decl_init_priority_insert): Use priority_type.
1681 (decl_fini_priority_insert): New function.
1682 (DECL_HAS_INIT_PRIORITY): Tweak comments.
1683 (DECL_INIT_PRIORITY): Likewise.
1684 (SET_DECL_INIT_PRIORITY): Add comment.
1685 (DECL_FINI_PRIORITY): New macro.
1686 (SET_DECL_FINI_PRIORITY): Likewise.
1687 (DEFAULT_INIT_PRIORITY): Document.
1688 (MAX_INIT_PRIORITY): Likewise.
1689 (MAX_RESERVED_INIT_PRIORITY): Likewise.
1690 (tree_map_base): New type.
1691 (tree_map_base_eq): New function.
1692 (tree_map_base_hash): Likewise.
1693 (tree_map_base_marked_p): Likewise.
1694 (tree_map): Inherit from tree_map_base.
1695 (tree_map_eq): Make it a macro.
1696 (tree_map_marked_p): Likewise.
1697 (tree_int_map): Inherit from tree_map_base.
1698 (tree_int_map_eq): Make it a macro.
1699 (tree_int_map_hash): Likewise.
1700 (tree_int_map_marked_p): Likewise.
1701 (tree_priority_map): New type.
1702 (tree_priority_map_eq): New macro.
1703 (tree_priority_map_hash): Likewise.
1704 (tree_priority_map_marked_p): Likewise.
1705 * varasm.c (emults_decl): Adjust for refactoring of tree_map
1707 (emutls_common_1): Likewise.
1708 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1709 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1710 of tree_map hierarchy.
1711 * tree-cfg.c (move_stmt_r): Likewise.
1712 (new_label_mapper): Likewise.
1713 * c-tree.h (c_expand_body): Move to ...
1714 * c-common.h (c_expand_body): ... here.
1715 * c-decl.c (c_expand_body): Move to ...
1716 * c-common.c (c_expand_body): ... here.
1717 (c_common_attribute_table): Allow 1 argument for the constructor
1718 and destructor attributes.
1719 (get_priority): New function.
1720 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
1721 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
1723 2007-02-24 Jan Hubicka <jh@suse.cz>
1726 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
1728 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1729 Jan Hubicka <jh@suse.cz>
1732 * i386.c (counter_mode): New function.
1733 (expand_set_or_movmem_via_loop): Use it.
1734 (expand_movmem_epilogue): Likewise; fix pasto.
1735 (ix86_expand_movmem): Do emit guard even for constant counts.
1736 (ix86_expand_setmem): Likewise.
1738 2007-02-25 Nick Clifton <nickc@redhat.com>
1740 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
1741 (JUMP_TABLES_IN_TEXT_SECTION): Define.
1743 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
1746 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
1747 count argument with 0x10, not with 0x16.
1748 (expand_setmem_epilogue): Ditto.
1750 2007-02-24 Mike Stump <mrs@apple.com>
1752 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
1755 2007-02-24 Richard Guenther <rguenther@suse.de>
1758 * fold-const.c (fold_binary): Fold x +- CST op x for
1759 EQ_EXPR and NE_EXPR.
1761 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1763 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
1765 2007-02-24 Jan Hubicka <jh@suse.cz>
1767 * cgraphunit.c (decide_is_function_needed): Honor
1768 -fkeep-inline-functions.
1770 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1772 * builtins.c (fold_builtin_modf): New.
1773 (fold_builtin_2): Use it.
1775 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
1777 * loop-iv.c (implies_p): Detect additional cases where A implies B.
1778 (determine_max_iter): Take additional LOOP arg; all callers changed.
1779 Lose broken logic dealing with PLUS. Try to limit the upper bound by
1780 one using simplifications.
1781 (simplify_using_initial_values): Return if the expression becomes
1782 invalid due to altered regs.
1784 2007-02-23 DJ Delorie <dj@redhat.com>
1786 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
1788 2007-02-23 Mike Stump <mrs@apple.com>
1790 * tlink.c (scan_linker_output): Parse linker messages from
1791 darwin9's linker better.
1793 2007-02-23 Steve Ellcey <sje@cup.hp.com>
1796 * varpool.c (varpool_assemble_pending_decls): Set
1797 varpool_last_needed_node to null.
1799 2007-02-23 DJ Delorie <dj@redhat.com>
1801 * config/i386/i386.c (ix86_data_alignment): Don't specify an
1802 alignment bigger than the object file can handle.
1804 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
1807 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
1808 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
1809 (*movsf_1): Penalize MMX moves.
1811 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
1813 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
1814 2^32-1 or more times unless flag_unsafe_loop_optimizations.
1816 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
1818 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1820 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
1821 (fold_builtin_1): Use them.
1822 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1823 BUILT_IN_SIGNIFICAND.
1825 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
1827 * config/i386/i386.c (bdesc_1arg): Initialize
1828 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
1829 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
1830 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
1831 and IX86_BUILTIN_MOVSLDUP.
1833 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
1835 PR rtl-optimization/30841
1836 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
1838 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1840 * builtins.c (fold_builtin_frexp): New.
1841 (fold_builtin_2): Use it.
1843 2007-02-22 Mark Mitchell <mark@codesourcery.com>
1845 * doc/invoke.texi (Spec Files): Document getenv spec function.
1847 * gcc.c (getenv_spec_function): New function.
1848 (static_spec_functions): Add it.
1849 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
1850 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
1853 2007-02-22 Michael Matz <matz@suse.de
1856 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
1857 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
1859 2007-02-22 Ian Lance Taylor <iant@google.com>
1862 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
1863 (mem_loc_descriptor): Call it.
1865 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
1866 Ira Rosen <irar@il.ibm.com>
1868 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
1870 2007-02-22 Ira Rosen <irar@il.ibm.com>
1872 PR tree-optimization/30843
1873 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
1874 stores only after all the group is vectorized.
1876 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
1878 PR tree-optimization/30858
1879 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
1880 in the reduction cycle have a single use in the loop.
1881 * tree-vectorizer.h (relevant): Add documentation.
1883 2007-02-20 Mike Stump <mrs@apple.com>
1885 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
1886 * configure: Regenerate.
1888 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1890 Change the defaults of some parameters and options.
1891 * config/spu/spu-protos.h (spu_optimization_options): Declare.
1892 * config/spu/spu.c (spu_optimization_options): Add.
1893 (spu_override_options): Change params in spu_optimization_options.
1894 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
1896 Register 127 is only 16 byte aligned when used as a frame pointer.
1897 * config/spu/spu-protos.h (spu_init_expanders): Declare.
1898 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
1899 HARD_FRAME_POINTER_REGNUM.
1900 (spu_legitimate_address): Use regno_aligned_for_reload.
1901 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
1902 aligned when frame_pointer_needed is true.
1903 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
1905 * config/spu/spu.h (INIT_EXPANDERS): Define.
1907 Make sure shift and rotate instructions have valid immediate operands.
1908 * config/spu/predicates.md (spu_shift_operand): Remove.
1909 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
1910 * config/spu/constraints.md (W, O): Extend range.
1911 * config/spu/spu.md (umask, nmask): Define.
1912 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
1913 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
1914 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
1915 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
1916 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
1917 (lshr<mode>3_reg): Fix rtl description.
1919 Make sure mulhisi immediate operands are valid.
1920 * config/spu/predicates.md (imm_K_operand): Add.
1921 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
1923 Generate constants using fsmbi and andi.
1924 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
1925 (print_operand, spu_split_immediate, classify_immediate,
1926 fsmbi_const_p): Handle IC_FSMBI2.
1928 Correctly handle a CONST_VECTOR containing symbols.
1929 * config/spu/spu.c (print_operand): Handle HIGH correctly.
1930 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
1931 (immediate_load_p): Allow symbols that use 2 instructions to create.
1932 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
1933 with symbols when flag_pic is set.
1934 (const_vector_immediate_p): New.
1935 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
1936 accept a CONST_VECTOR with symbols.
1937 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
1938 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
1940 * config/spu/spu.md (high, low): Delete.
1941 (low_<mode>): Define.
1943 Remove INTRmode and INTR_REGNUM, which didn't work.
1944 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
1946 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
1947 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
1948 peephole2 pattern): Don't use INTR or 131.
1949 (movintrcc): Delete.
1950 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
1951 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
1952 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
1953 (UNSPEC_SET_INTR): Add.
1954 * config/spu/spu-modes.def (INTR): Remove.
1956 More accurate warnings about run-time relocations.
1957 * config/spu/spu.c (reloc_diagnostic): Test in_section.
1959 Correctly warn about immediate arguments to specific intrinsics.
1960 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
1961 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
1962 the instruction predicate.
1964 Fix tree check errors with latest update.
1965 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
1967 (spu_expand_builtin): Use CALL_EXPR_FN.
1969 Add missing specific intrinsics.
1970 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
1972 * config/spu/spu_internals.h: Ditto.
1974 Fix incorrect operand modifiers.
1975 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
1976 * config/spu/spu.md (xor<mode>3): Change %S to %J.
1978 Optimize one case of zero_extend of a vec_select.
1979 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
1981 Accept any immediate for hbr.
1982 * config/spu/spu.md (hbr): Change s constraints to i.
1984 2007-02-21 Paul Brook <paul@codesourcery.com>
1986 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
1987 condexec_count when skipping USE and CLOBBER.
1989 2007-02-21 Nick Clifton <nickc@redhat.com>
1991 * common.opt (Warray-bounds): Add Warning attribute.
1992 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
1994 (fsized-zeroes): Add Optimization attribute.
1995 (fsplit-wide-types, ftree-scev-cprop): Likewise.
1996 * c.opt (Wc++0x-compat): Add Warning attribute.
1998 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2001 * reload1.c (eliminate_regs_in_insn): In the single_set special
2002 case, attempt to re-recognize the insn before falling back to
2003 having reload fix it up.
2005 2007-02-20 Eric Christopher <echristo@gmail.com>
2007 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
2008 Rewrite accordingly.
2009 (frv_read_iacc_argument): Ditto.
2010 (frv_expand_set_builtin): Take a call instead of arglist, update for
2012 (frv_expand_unop_builtin): Ditto.
2013 (frv_expand_binop_builtin): Ditto.
2014 (frv_expand_cut_builtin): Ditto.
2015 (frv_expand_binopimm_builtin): Ditto.
2016 (frv_expand_voidbinop_builtin): Ditto.
2017 (frv_expand_int_void2arg): Ditto.
2018 (frv_expand_prefetches): Ditto.
2019 (frv_expand_voidtriop_builtin): Ditto.
2020 (frv_expand_voidaccop_builtin): Ditto.
2021 (frv_expand_load_builtin): Ditto.
2022 (frv_expand_store_builtin): Ditto.
2023 (frv_expand_mdpackh_builtin): Ditto.
2024 (frv_expand_mclracc_builtin): Ditto.
2025 (frv_expand_mrdacc_builtin): Ditto.
2026 (frv_expand_mwtacc_builtin): Ditto.
2027 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
2030 2007-02-20 Janis Johnson <janis187@us.ibm.com>
2032 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
2033 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
2035 (HAVE_GAS_DFP): Check for assembler support of decimal floating
2037 * configure: Regenerate.
2038 * config.in: Regenerate.
2039 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
2040 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
2041 masks to power6 and power6x and to POWERPC_MASKS.
2042 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2044 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
2045 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
2046 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2047 Access PROTOTYPE as variable, not mask.
2049 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
2051 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
2052 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
2053 * combine.c (adjust_for_new_dest): Use it.
2054 * postreload.c (reload_combine): Likewise.
2056 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
2058 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
2059 notes on an insn with multiple sets, even if single_set returns
2060 non-NULL for that insn.
2062 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2064 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
2067 2007-02-20 Geoffrey Keating <geoffk@apple.com>
2069 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
2070 if user didn't pass it.
2071 * config/i386/darwin.h (CC1_SPEC): Likewise.
2072 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
2073 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
2074 -mmacosx-version-min.
2076 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2077 Uros Bizjak <ubizjak@gmail.com>
2079 * optabs.h (enum optab_index): Add new OTI_scalb.
2080 (scalb_optab): Define corresponding macro.
2081 * optabs.c (init_optabs): Initialize scalb_optab.
2082 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
2084 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
2085 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
2086 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
2087 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
2088 flag_unsafe_math_optimizations is set.
2090 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
2091 to implement scalbf, scalb and scalbl built-ins as inline x87
2094 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2095 DJ Delorie <dj@redhat.com>
2098 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
2099 (diagnostic_report_diagnostic): ... here, and turn them into real
2100 errors. If warnings are inhibited, no need to do anything.
2102 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
2104 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
2105 better code generation.
2107 2007-02-20 Ben Elliston <bje@au.ibm.com>
2109 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
2111 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
2113 * config/alpha/alpha.c, config/alpha/alpha.md,
2114 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
2115 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
2116 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
2117 config/arm/lib1funcs.asm: Follow spelling conventions.
2119 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
2120 config/fr30/fr30.md, config/i386/i386.h,
2121 config/iq2000/iq2000.h, config/iq2000/predicates.md,
2122 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
2123 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2124 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
2125 config/rs6000/altivec.md, config/rs6000/rs6000.c,
2126 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
2127 config/sparc/sparc.c, config/sparc/sparc.h,
2128 config/sparc/sparc.md, config/spu/constraints.md,
2129 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
2132 2007-02-20 Alan Modra <amodra@bigpond.net.au>
2135 * varasm.c (use_blocks_for_decl_p): Return false for decls with
2138 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2140 * doc/invoke.texi (-ftree-lrs): Remove.
2142 2007-02-19 Diego Novillo <dnovillo@redhat.com>
2144 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2147 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
2149 * config/ia64/ia64.c (ia64_expand_builtin): Use the
2150 new CALL_EXPR_FN macro for retrieving the function
2151 declaration of the input expression.
2153 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2155 * c.opt (Waddress): New.
2156 * common.opt (Walways-true): Delete.
2157 (Wstring-literal-comparison): Delete.
2158 * doc/invoke.texi (Warning Options): Delete -Walways-true and
2159 -Wstring-literal-comparison. Add -Waddress.
2161 (Walways-true): Delete.
2162 (Wstring-literal-comparison): Delete.
2163 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2164 consistently instead of -Walways-true in example.
2165 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2166 * c-typeck.c (parser_build_binary_op): Replace
2167 -Wstring-literal-comparison and -Walways-true with -Waddress.
2168 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2171 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2173 * tree-cfg.c (dump_function_to_file): Be prepared for functions
2174 without DECL_STRUCT_FUNCTION initialized.
2176 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2178 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2179 due to calls to functions taking pointers as parameters.
2181 2007-02-19 Richard Henderson <rth@redhat.com>
2184 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2187 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
2189 * config/s390/s390.c (s390_call_saved_register_used,
2190 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2191 accessed to the new scheme.
2193 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2195 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2196 (cris_print_index, cris_print_operand, cris_print_operand_address)
2197 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2198 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2199 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2201 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2202 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2203 GO_IF_LEGITIMATE_ADDRESS): Ditto.
2204 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2205 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2206 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2207 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2208 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2209 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2210 (uminsi3, call, call_value): Ditto.
2211 (define_split: indir_to_reg_split, unnamed): Ditto.
2213 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
2215 PR tree-optimization/30975
2216 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2219 2007-02-18 Eric Christopher <echristo@gmail.com>
2221 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2222 Remove use of arglist.
2223 (mips_expand_builtin): Remove use of arglist, pass in expr.
2224 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2225 (mips_expand_builtin_movtf): Ditto.
2226 (mips_expand_builtin_compare): Ditto.
2228 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2230 * tree-sra.c (sra_build_assignment): Replace assertion
2231 checking with a comment explaining why it can't be done.
2233 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2236 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2237 during CALL_EXPR representation conversion.
2238 * tree-ssa-propagate.c (set_rhs): Likewise.
2240 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2242 * tree-sra.c (sra_build_assignment): Disable assertion checking
2245 2007-02-18 Roger Sayle <roger@eyesopen.com>
2247 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2248 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2249 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2251 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2252 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
2253 gimplify_init_ctor_eval_range, gimple_push_cleanup,
2254 gimplify_omp_for, gimplify_omp_atomic_pipeline,
2255 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2256 force_gimple_operand): Likewise.
2257 * ipa-cp.c (constant_val_insert): Likewise.
2258 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2259 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2260 perfect_nestify): Likewise.
2261 * langhooks.c (lhd_omp_assignment): Likewise.
2262 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2263 lower_copyprivate_clauses, lower_send_clauses,
2264 lower_send_shared_vars, expand_parallel_call,
2265 expand_omp_for_generic, expand_omp_for_static_nochunk,
2266 expand_omp_for_static_chunk, expand_omp_sections,
2267 lower_omp_single_copy, lower_omp_for_lastprivate,
2268 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2269 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2270 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2273 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2275 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2276 config/sh/sh.md: Follow spelling conventions.
2278 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2279 config/frv/predicates.md: Follow spelling conventions.
2281 * config/m68k/linux-unwind.h: Fix a comment typo.
2282 * target.h: Follow spelling conventions.
2284 2007-02-18 Roger Sayle <roger@eyesopen.com>
2286 PR rtl-optimization/28173
2287 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
2288 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2289 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2290 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2291 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2293 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295 * builtins.c (fold_builtin_load_exponent): New.
2296 (fold_builtin_2): Use it.
2298 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
2300 PR rtl-optimization/30773
2301 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2302 if we fail to attach a REG_EQUIV note.
2304 2007-02-18 David Edelsohn <edelsohn@gnu.org>
2305 Roger Sayle <roger@eyesopen.com>
2307 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2309 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2311 * calls.c (initialize_argument_information): Pass original EXP
2312 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
2313 code to split complex arguments here, as part of initializing the
2315 (expand_call): Remove code that builds a list of arguments and
2316 inserts implicit arguments into it. Instead, just count how many
2317 implicit arguments there will be so we can determine the size of
2318 the ARGS array, and let initialize_argument_information do the work.
2319 (split_complex_values): Delete unused function.
2321 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2323 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2325 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2327 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2328 for arg pointer based indexed addressing.
2330 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2332 * config/ia64/ia64.h, config/ia64/ia64.md,
2333 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2334 spelling conventions.
2336 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2338 * config/m68k/m68k.c (split_di): New.
2339 * config/m68k/m68k-protos.h: Declare split_di.
2340 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2341 Improve predicate handling and split constant shifts.
2343 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2345 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2346 parameter for register bitfield operations, general predicates
2349 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2351 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2352 * config/m68k/linux-unwind.h: New file.
2354 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2356 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2357 config/i386/athlon.md, config/ia64/ia64.md,
2358 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2359 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2360 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2361 tree-ssa-loop-niter.c, tree-vect-analyze.c,
2362 tree-vect-transform.c: Fix comment typos.
2364 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
2366 * sched-deps.c (find_insn_list): Remove.
2367 * sched-int.h: Remove the prototype for find_insn_list.
2369 2007-02-16 Geoffrey Keating <geoffk@apple.com>
2371 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2373 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2374 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2375 darwin_rs6000_override_options.
2376 (C_COMMON_OVERRIDE_OPTIONS): Expect
2377 darwin_macosx_version_min to be non-NULL always.
2378 (TARGET_C99_FUNCTIONS): Likewise.
2379 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2380 (DARWIN_MINVERSION_SPEC): New.
2381 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2382 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2384 (DARWIN_MINVERSION_SPEC): New.
2385 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2387 * config/darwin-c.c (darwin_cpp_builtins): Expect
2388 darwin_macosx_version_min to be non-NULL always.
2390 * config/rs6000/rs6000.c: Clean up trailing whitespace.
2392 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
2394 * config/i386/i386.h (x86_use_xchgb): New.
2395 (TARGET_USE_XCHGB): New macro.
2396 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2397 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2398 Split after reload into bswaphi for shifts of 8.
2399 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2400 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2401 or when optimizing for size.
2403 2007-02-16 Richard Guenther <rguenther@suse.de>
2404 Christian Bruel <christian.bruel@st.com>
2406 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2407 DECLs but prefer SSA_NAMEs over DECLs.
2409 2007-02-16 Richard Guenther <rguenther@suse.de>
2411 * tree-flow-inline.h (single_imm_use_p): Remove.
2412 (zero_imm_uses_p): Likewise.
2413 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2414 instead of single_imm_use_p.
2415 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2418 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2421 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2422 nested double- and backquotes.
2424 2007-02-15 Roger Sayle <roger@eyesopen.com>
2427 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
2428 should be unreachable.
2429 (build2_stat): Allow construction of MODIFY_EXPR at any time.
2430 For the time being redirect GIMPLE_MODIFY_STMT to the new
2431 (renamed) build_gimple_modify_stmt_stat.
2432 (build2_gimple_stat): Rename to...
2433 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2434 Always build a GIMPLE_MODIFY_STMT node.
2435 * tree.h (build2_gimple, build2_gimple_stat): Delete.
2436 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2439 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2440 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2441 * tree-complex.c (set_component_ssa_name, expand_complex_move,
2442 expand_complex_div_wide): Likewise.
2443 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2444 * tree-ssa-loop-im.c (schedule_sm): Likewise.
2445 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2446 * tree-ssa-loop-manip.c (create_iv): Likewise.
2447 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2448 abs_replacement): Likewise.
2449 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2450 realify_fake_stores): Likewise.
2452 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2453 node rather than a GIMPLE_MODIFY_STMT node.
2454 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2455 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2457 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2458 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2461 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2464 * fold-const.c (fold_comparison): Add back the
2465 folding of constant complex comparisions.
2467 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2470 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2471 effects unknown to this function, return early.
2473 2007-02-15 Ian Lance Taylor <iant@google.com>
2475 * lower-subreg.c (move_eh_region_note): New static function.
2476 (resolve_simple_move): Call it.
2477 (decompose_multiword_subregs): Track blocks for which we resolve a
2478 simple move which is also a control flow insn. Pass them to
2479 find_many_sub_basic_blocks.
2480 (pass_lower_subreg): Add TODO_verify_flow.
2481 (pass_lower_subreg2): Likewise.
2483 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2484 Brooks Moses <brooks.moses@codesourcery.com>
2485 Lee Millward <lee.millward@codesourcery.com>
2487 * tree.h (enum tree_code_class): Add tcc_vl_exp.
2488 (VL_EXP_CLASS_P): New.
2489 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2491 (TREE_OPERAND_CHECK_CODE): Likewise.
2492 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2493 (TREE_RTL_OPERAND_CHECK): Likewise.
2494 (tree_operand_check_failed): Make second parameter the whole tree
2495 instead of its code. Fixed callers.
2496 (VL_EXP_CHECK): New.
2497 (TREE_OPERAND_LENGTH): New.
2498 (VL_EXP_OPERAND_LENGTH): New.
2499 (CALL_EXPR_FN): New.
2500 (CALL_EXPR_STATIC_CHAIN): New.
2501 (CALL_EXPR_ARGS): New.
2502 (CALL_EXPR_ARG): New.
2503 (call_expr_nargs): New.
2504 (CALL_EXPR_ARGP): New.
2505 (build_nt_call_list): Declare.
2506 (build_vl_exp_stat): Declare.
2507 (build_vl_exp): New.
2508 (build_call_list): Declare.
2509 (build_call_nary): Declare.
2510 (build_call_valist): Declare.
2511 (build_call_array): Declare.
2512 (call_expr_arg): Declare.
2513 (call_expr_argp): Declare.
2514 (call_expr_arglist): Declare.
2515 (fold_build_call_list): Declare.
2516 (fold_build_call_list_initializer): Declare.
2517 (fold_call_expr): Declare to replace fold_builtin.
2518 (fold_builtin_fputs): Update to agree with modified definition.
2519 (fold_builtin_strcpy): Likewise.
2520 (fold_builtin_strncpy): Likewise.
2521 (fold_builtin_memory_chk): Likewise.
2522 (fold_builtin_stxcpy_chk): Likewise.
2523 (fold_builtin_strncpy_chk): Likewise.
2524 (fold_builtin_next_arg): Likewise.
2525 (fold_build_call_expr): Declare.
2526 (fold_builtin_call_list): Declare.
2527 (fold_builtin_call_valist): Declare.
2528 (build_call_expr): Declare.
2529 (validate_arglist): Update to agree with modified definition.
2530 (tree_operand_length): New.
2531 (call_expr_arg_iterator): New.
2532 (init_call_expr_arg_iterator): New.
2533 (next_call_expr_arg): New.
2534 (first_call_expr_arg): New.
2535 (more_call_expr_args_p): New.
2536 (FOR_EACH_CALL_EXPR_ARG): New.
2538 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2539 and tcc_gimple_stmt.
2540 (tree_code_size): Update documentation. Use sizeof (tree) rather
2541 than sizeof (char *).
2542 (tree_size): Likewise. Add case for tcc_vl_exp.
2543 (tree_node_structure): Add case for tcc_vl_exp.
2544 (contains_placeholder_p): Likewise.
2545 (substitute_in_expr): Likewise.
2546 (substitute_placeholder_in_expr): Likewise.
2547 (stabilize_reference_1): Likewise.
2548 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
2549 to diagnose breakage of this interface for constructing CALL_EXPRs.
2550 (build_nt): Add similar assertion here.
2551 (build_nt_call_list): New.
2552 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2553 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2555 (get_callee_fndecl): Use new CALL_EXPR accessors.
2556 (tree_operand_check_failed): Change parameters to pass entire node
2557 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2558 (process_call_operands): New.
2559 (build_vl_exp_stat): New.
2560 (build_call_list): New.
2561 (build_call_nary): New.
2562 (build_call_valist): New.
2563 (build_call_array): New.
2564 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2565 (call_expr_arglist): New.
2567 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2568 tcc_vl_exp instead of a fixed-size tcc_expression.
2570 * doc/c-tree.texi (CALL_EXPR): Document new representation and
2571 accessors for CALL_EXPRs.
2572 (AGGR_INIT_EXPR): Likewise.
2574 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2575 Brooks Moses <brooks.moses@codesourcery.com>
2576 Lee Millward <lee.millward@codesourcery.com>
2578 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2579 (expand_builtin_nonlocal_goto): Change parameter to be entire
2580 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
2581 (expand_builtin_prefetch): Likewise.
2582 (expand_builtin_classify_type): Likewise.
2583 (mathfn_built_in): Return NULL_TREE instead of 0.
2584 (expand_errno_check): Use new CALL_EXPR accessors.
2585 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2586 Return NULL_RTX instead of 0.
2587 (expand_builtin_mathfn_2): Likewise.
2588 (expand_builtin_mathfn_3): Likewise.
2589 (expand_builtin_interclass_mathfn): Likewise.
2590 (expand_builtin_sincos): Likewise.
2591 (expand_builtin_cexpi): Likewise.
2592 (expand_builtin_int_roundingfn): Likewise.
2593 (expand_builtin_int_roundingfn_2): Likewise.
2594 (expand_builtin_pow): Likewise.
2595 (expand_builtin_powi): Likewise.
2596 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2597 of arglist, fixing callers appropriately. Use new CALL_EXPR
2598 accessors and constructors. Return NULL_RTX instead of 0.
2599 (expand_builtin_strstr): Likewise.
2600 (expand_builtin_strchr): Likewise.
2601 (expand_builtin_strrchr): Likewise.
2602 (expand_builtin_strpbrk): Likewise.
2603 (expand_builtin_memcpy): Likewise.
2604 (expand_builtin_mempcpy): Likewise.
2605 (expand_builtin_mempcpy_args): New.
2606 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2607 (expand_builtin_memmove_args): New.
2608 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2609 (expand_movstr): Likewise.
2610 (expand_builtin_strcpy): Likewise.
2611 (expand_builtin_strcpy_args): New.
2612 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2613 (expand_builtin_strncpy): Likewise.
2614 (expand_builtin_memset): Likewise.
2615 (expand_builtin_memset_args): New.
2616 (expand_builtin_bzero): Similarly to expand_builtin_memset.
2617 (expand_builtin_memcmp): Likewise.
2618 (expand_builtin_strcmp): Likewise.
2619 (expand_builtin_strncmp): Likewise.
2620 (expand_builtin_strcat): Likewise.
2621 (expand_builtin_strncat): Likewise.
2622 (expand_builtin_strspn): Likewise.
2623 (expand_builtin_strcspn): Likewise.
2624 (expand_builtin_args_info): Likewise.
2625 (expand_builtin_va_start): Likewise.
2626 (gimplify_va_arg_expr): Likewise.
2627 (expand_builtin_va_end): Likewise.
2628 (expand_builtin_va_copy): Likewise.
2629 (expand_builtin_frame_address): Likewise.
2630 (expand_builtin_alloca): Likewise.
2631 (expand_builtin_bswap): Likewise.
2632 (expand_builtin_unop): Likewise.
2633 (expand_builtin_fputs): Likewise.
2634 (expand_builtin_expect): Likewise.
2635 (expand_builtin_fabs): Likewise.
2636 (expand_builtin_copysign): Likewise.
2637 (expand_builtin_printf): Likewise.
2638 (expand_builtin_fprintf): Likewise.
2639 (expand_builtin_sprintf): Likewise.
2640 (expand_builtin_init_trampoline): Likewise.
2641 (expand_builtin_signbit): Likewise.
2642 (expand_builtin_fork_or_exec): Likewise.
2643 (expand_builtin_sync_operation): Likewise.
2644 (expand_builtin_compare_and_swap): Likewise.
2645 (expand_builtin_lock_test_and_set): Likewise.
2646 (expand_builtin_lock_release): Likewise.
2647 (expand_builtin): Likewise.
2648 (builtin_mathfn_code): Likewise.
2650 (fold_builtin_constant_p): Pass call arguments individually instead
2651 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2652 accessors and constructors. Return NULL_TREE instead of 0.
2653 (fold_builtin_expect): Likewise.
2654 (fold_builtin_classify_type): Likewise.
2655 (fold_builtin_strlen): Likewise.
2656 (fold_builtin_nan): Likewise.
2657 (integer_valued_real_p): Likewise.
2658 (fold_trunc_transparent_mathfn): Likewise.
2659 (fold_fixed_mathfn): Likewise.
2660 (fold_builtin_cabs): Likewise.
2661 (fold_builtin_sqrt): Likewise.
2662 (fold_builtin_cbrt): Likewise.
2663 (fold_builtin_cos): Likewise.
2664 (fold_builtin_cosh): Likewise.
2665 (fold_builtin_tan): Likewise.
2666 (fold_builtin_sincos): Likewise.
2667 (fold_builtin_cexp): Likewise.
2668 (fold_builtin_trunc): Likewise.
2669 (fold_builtin_floor): Likewise.
2670 (fold_builtin_ceil): Likewise.
2671 (fold_builtin_round): Likewise.
2672 (fold_builtin_int_roundingfn): Likewise.
2673 (fold_builtin_bitop): Likewise.
2674 (fold_builtin_bswap): Likewise.
2675 (fold_builtin_logarithm): Likewise.
2676 (fold_builtin_hypot): Likewise.
2677 (fold_builtin_pow): Likewise.
2678 (fold_builtin_powi): Likewise.
2679 (fold_builtin_exponent): Likewise.
2680 (fold_builtin_memset): Likewise.
2681 (fold_builtin_bzero): Likewise.
2682 (fold_builtin_memory_op): Likewise.
2683 (fold_builtin_bcopy): Deleted; call site changed to invoke
2684 fold_builtin_memory_op directly.
2685 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2686 (fold_builtin_strncpy): Likewise.
2687 (fold_builtin_memcmp): Likewise.
2688 (fold_builtin_strcmp): Likewise.
2689 (fold_builtin_strncmp): Likewise.
2690 (fold_builtin_signbit): Likewise.
2691 (fold_builtin_copysign): Likewise.
2692 (fold_builtin_isascii): Likewise.
2693 (fold_builtin_toascii): Likewise.
2694 (fold_builtin_isdigit): Likewise.
2695 (fold_builtin_fabs): Likewise.
2696 (fold_builtin_abs): Likewise.
2697 (fold_builtin_fmin_fmax): Likewise.
2698 (fold_builtin_carg): Likewise.
2699 (fold_builtin_classify): Likewise.
2700 (fold_builtin_unordered_cmp): Likewise.
2702 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2703 New functions split out from fold_builtin_1.
2704 (fold_builtin_n): New.
2705 (fold_builtin_varargs): New.
2706 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
2708 (fold_call_expr): New.
2709 (build_function_call_expr): Rewrite to use new helper function.
2710 (fold_builtin_call_list): New.
2711 (build_call_expr): New.
2712 (fold_builtin_call_valist): New.
2713 (rewrite_call_expr): New.
2714 (validate_arg): New.
2715 (validate_arglist): Change parameter to be entire CALL_EXPR instead
2716 of an arglist. Change return type to bool. Use new CALL_EXPR
2719 (fold_builtin_strstr): Pass call arguments individually instead
2720 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2721 accessors and constructors. Return NULL_TREE instead of 0.
2722 (fold_builtin_strchr): Likewise.
2723 (fold_builtin_strrchr): Likewise.
2724 (fold_builtin_strpbrk): Likewise.
2725 (fold_builtin_strcat): Likewise.
2726 (fold_builtin_strncat): Likewise.
2727 (fold_builtin_strspn): Likewise.
2728 (fold_builtin_strcspn): Likewise.
2729 (fold_builtin_fputs): Likewise.
2730 (fold_builtin_next_arg): Likewise.
2731 (fold_builtin_sprintf): Likewise.
2733 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
2734 NULL_RTX instead of 0.
2735 (expand_builtin_memory_chk): Likewise.
2736 (maybe_emit_chk_warning): Likewise.
2737 (maybe_emit_sprintf_chk_warning): Likewise.
2739 (fold_builtin_object_size): Pass call arguments individually instead
2740 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2741 accessors and constructors. Return NULL_TREE instead of 0.
2742 (fold_builtin_memory_chk): Likewise.
2743 (fold_builtin_stxcpy_chk): Likewise.
2744 (fold_builtin_strncpy_chk): Likewise.
2745 (fold_builtin_strcat_chk): Likewise.
2746 (fold_builtin_strcat_chk): Likewise.
2747 (fold_builtin_strncat_chk): Likewise.
2748 (fold_builtin_sprintf_chk): Likewise.
2749 (fold_builtin_snprintf_chk): Likewise.
2750 (fold_builtin_printf): Likewise.
2751 (fold_builtin_vprintf): Likewise.
2753 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
2755 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
2756 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2757 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
2758 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
2759 (fold_unary): Likewise.
2760 (fold_binary): Likewise.
2761 (fold_ternary): Remove CALL_EXPR case, since they are no longer
2762 ternary expressions.
2763 (fold): Add logic for tcc_vl_exp.
2764 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
2765 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2766 (fold_build3_stat): Add assertion to flag broken interface for
2767 constructing CALL_EXPRs.
2768 (fold_build_call_list): New.
2769 (fold_build_call_list_initializer): New.
2770 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
2772 (fold_strip_sign_ops): Likewise.
2774 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2775 Brooks Moses <brooks.moses@codesourcery.com>
2776 Lee Millward <lee.millward@codesourcery.com>
2778 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
2779 accessors and dump arguments explicitly.
2781 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
2783 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
2785 (print_call_name): Use new CALL_EXPR accessors.
2787 * print-tree.c (print_node): Add case tcc_vl_exp. Print
2788 CALL_EXPR arguments explicitly instead of as a list. Use
2789 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2791 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
2792 (vrp_visit_stmt): Likewise.
2794 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
2795 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
2797 (force_move_till_expr): Likewise.
2799 * targhooks.c (default_external_stack_protect_fail): Use
2800 build_call_expr instead of build_function_call_expr.
2801 (default_hidden_stack_protect_fail): Likewise.
2803 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
2806 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
2807 and walk arguments explicitly.
2809 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
2810 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2811 (expand_simple_operations): Likewise.
2812 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
2814 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
2815 of TREE_CODE_LENGTH.
2816 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
2818 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
2819 instead of TREE_CODE_LENGTH.
2821 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
2822 (tree_ic_transform): Likewise.
2823 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
2824 parameter instead of arglist. Fix callers.
2825 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
2826 (tree_stringops_transform): Likewise.
2827 (tree_indirect_call_to_profile): Likewise.
2828 (tree_stringops_values_to_profile): Likewise.
2830 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
2831 (eliminate_tail_call): Likewise.
2833 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
2835 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2836 Use TREE_OPERAND_LENGTH and generalize to handle any number of
2838 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
2840 * omp-low.c (build_omp_barrier): Use build_call_expr.
2841 (lower_rec_input_clauses): Likewise.
2842 (lower_reduction_clauses): Likewise.
2843 (expand_parallel_call): Likewise.
2844 (maybe_catch_exception): Likewise.
2845 (expand_omp_for_generic): Likewise.
2846 (expand_omp_for_static_nochunk): Likewise.
2847 (expand_omp_sections): Likewise.
2848 (lower_omp_single_simple): Likewise.
2849 (lower_omp_single_copy): Likewise.
2850 (lower_omp_master): Likewise.
2851 (lower_omp_ordered): Likewise.
2852 (lower_omp_critical): Likewise.
2854 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
2855 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
2857 * tree-gimple.c (is_gimple_call_addr): Fix doc.
2858 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
2859 TREE_CODE_LENGTH. Add tcc_vl_exp case.
2861 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
2862 and generalize to handle any number of operands.
2863 (chrec_contains_undetermined): Likewise.
2864 (tree_contains_chrecs): Likewise.
2865 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
2867 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
2869 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
2870 fold_call_expr instead of fold_builtin.
2871 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
2872 match declarations there.
2873 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
2876 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
2877 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2879 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
2880 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
2882 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
2885 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
2886 (execute_cse_sincos): Use new CALL_EXPR accessors.
2888 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
2890 * gimple-low.c (lower_function_body): Use build_call_expr.
2891 (lower_builtin_setjmp): Likewise.
2893 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
2894 (set_storage_via_libcall): Likewise.
2895 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
2896 instead of TREE_CODE_LENGTH.
2897 (expand_expr_real_1): Use new CALL_EXPR accessors.
2899 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
2900 generalize to handle any number of operands.
2901 (TB_parent_eq): Likewise.
2903 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
2904 (strip_builtin_expect): Likewise.
2906 * function.c (gimplify_parameters): Use build_call_expr.
2908 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
2909 instead of TREE_CODE_LENGTH.
2911 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
2912 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
2914 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
2917 * gimplify.c (build_stack_save_restore): Use build_call_expr.
2918 (gimplify_decl_expr): Likewise.
2919 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
2920 Use new CALL_EXPR iterators.
2921 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
2922 (gimplify_modify_expr_to_memset): Likewise.
2923 (gimplify_variable_sized_compare): Likewise.
2924 (gimplify_omp_atomic_fetch_op): Likewise.
2925 (gimplify_omp_atomic_pipeline): Likewise.
2926 (gimplify_omp_atomic_mutex): Likewise.
2927 (gimplify_function_tree): Likewise.
2929 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
2930 (call_expr_flags): Likewise.
2931 (expand_call): Likewise.
2933 * except.c (expand_builtin_eh_return_data_regno): Pass entire
2934 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2937 * coverage.c (create_coverage): Use build_call_expr.
2939 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
2940 (temp_call_expr_obstack): New.
2941 (pool_copy_list): Delete.
2942 (temp_copy_call_expr): New.
2943 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
2944 CALL_EXPR accessors. Get rid of special goo for copying argument
2945 lists and use temp_copy_call_expr instead.
2946 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
2947 CALL_EXPR accessors.
2948 (create_expression_by_pieces): Likewise. Use build_call_array
2949 to construct the result instead of fold_build3.
2950 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
2951 dealing with argument lists.
2952 (init_pre): Remove references to expression_node_pool and
2953 list_node_pool. Init temp_call_expr_obstack instead.
2954 (fini_pre): Remove references to expression_node_pool and
2957 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
2958 and walk arguments explicitly instead of as a list.
2960 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
2961 (mx_register_decls): Likewise.
2962 (mudflap_register_call): Likewise.
2963 (mudflap_finish_file): Likewise.
2965 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
2966 (ipa_callsite_compute_param): Likewise.
2968 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
2969 accessors and constructor.
2971 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
2972 accessors and constructor.
2973 (convert_tramp_reference): Likewise.
2974 (convert_call_expr): Likewise.
2975 (finalize_nesting_tree_1): Likewise.
2977 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
2980 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
2982 * tree-inline.c (initialize_inlined_parameters): Pass entire
2983 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
2985 (estimate_num_insns_1): Use new CALL_EXPR accessors.
2986 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
2988 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
2989 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2990 (vectorizable_reduction): Likewise.
2991 (vectorizable_call): Use new CALL_EXPR iterators.
2992 (vectorizable_conversion): Use build_call_expr.
2993 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
2994 (vect_gen_widened_results_half): Use build_call_expr.
2995 (vect_setup_realignment): Likewise.
2996 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
2998 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
2999 (pass_through_call): Likewise.
3000 (compute_object_sizes): Likewise. Use fold_call_expr instead of
3003 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
3004 (tree_gen_pow2_profiler): Likewise.
3005 (tree_gen_one_value_profiler): Likewise.
3006 (tree_gen_ic_func_profiler): Likewise.
3007 (tree_gen_average_profiler): Likewise.
3008 (tree_gen_ior_profiler): Likewise.
3010 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
3011 (find_func_aliases): Use new CALL_EXPR accessors. Add case
3012 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3014 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
3015 of TREE_CODE_LENGTH.
3017 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
3018 of TREE_CODE_LENGTH.
3020 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
3022 (convert_to_integer): Likewise.
3024 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
3027 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
3028 Brooks Moses <brooks.moses@codesourcery.com>
3029 Lee Millward <lee.millward@codesourcery.com>
3031 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
3033 * config/frv/frv.c (frv_expand_builtin): Likewise.
3034 * config/s390/s390.c (s390_expand_builtin): Likewise.
3036 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
3037 (sparc_expand_builtin): Use new CALL_EXPR accessors.
3039 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
3040 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
3041 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
3042 (ix86_expand_store_builtin): Likewise.
3043 (ix86_expand_unop_builtin): Likewise.
3044 (ix86_expand_unop1_builtin): Likewise.
3045 (ix86_expand_sse_compare): Likewise.
3046 (ix86_expand_sse_comi): Likewise.
3047 (ix86_expand_vec_init_builtin): Likewise.
3048 (ix86_expand_vec_ext_builtin): Likewise.
3049 (ix86_expand_vec_set_builtin): Likewise.
3050 (ix86_expand_builtin): Use new CALL_EXPR accessors.
3052 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
3053 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3055 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
3056 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3057 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
3059 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
3061 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3062 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
3063 arglist. Use new CALL_EXPR accessors. Fix callers.
3064 (altivec_expand_abs_builtin): Likewise.
3065 (rs6000_expand_binop_builtin): Likewise.
3066 (altivec_expand_predicate_builtin): Likewise.
3067 (altivec_expand_lv_builtin): Likewise.
3068 (spe_expand_stv_builtin): Likewise.
3069 (altivec_expand_stv_builtin): Likewise.
3070 (rs6000_expand_ternop_builtin): Likewise.
3071 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
3072 (altivec_expand_st_builtin): Likewise.
3073 (altivec_expand_dst_builtin): Likewise.
3074 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
3075 arglist. Use new CALL_EXPR accessors. Fix callers.
3076 (altivec_expand_vec_set_builtin): Likewise.
3077 (altivec_expand_vec_ext_builtin): Likewise.
3078 (altivec_expand_builtin): Use new CALL_EXPR accessors.
3079 (spe_expand_builtin): Likewise.
3080 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
3081 arglist. Use new CALL_EXPR accessors. Fix callers.
3082 (spe_expand_evsel_builtin): Likewise.
3083 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
3084 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
3086 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
3087 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3088 (arm_expand_unop_builtin): Likewise.
3089 (arm_expand_builtin): Use new CALL_EXPR accessors.
3091 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
3094 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
3095 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3096 (bfin_expand_unop_builtin): Likewise.
3097 (bfin_expand_builtin): Use new CALL_EXPR accessors.
3099 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
3100 Brooks Moses <brooks.moses@codesourcery.com>
3101 Lee Millward <lee.millward@codesourcery.com>
3103 * c-semantics.c (build_stmt): Add internal diagnostic check.
3105 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
3106 accessors. Print arguments explicitly instead of as a list.
3108 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
3110 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
3111 (c_finish_omp_flish): Likewise.
3113 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
3114 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
3115 instead of TREE_CODE_LENGTH.
3116 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
3117 (c_warn_unused_result): Likewise.
3119 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3122 * doc/invoke.texi (Warning Options): Remove
3123 -Werror-implicit-function-declaration.
3124 (Wimplicit-function-declaration): Update description.
3125 * opts.c (common_handle_option): Move handling of -Werror=* to...
3126 (enable_warning_as_error): ...here.
3127 * opts.h (enable_warning_as_error): Declare.
3128 * c-decl.c (implicit_decl_warning): Unless
3129 -Wno-implicit-function-declaration is given, emit a pedwarn if
3130 -std=c99 or emit a warning if -Wimplicit-function-declaration.
3131 * c.opt (Wimplicit-function-declaration): Replace
3132 mesg_implicit_function_declaration with
3133 warn_implicit_function_declaration.
3134 * c-opts.c (c_common_handle_option):
3135 -Werror-implicit-function-declaration is exactly equal as
3136 -Werror=implicit-function-declaration.
3137 (set_Wimplicit): Replace mesg_implicit_function_declaration with
3138 warn_implicit_function_declaration.
3139 (c_common_post_options): -Wimplict-function-declaration is enabled
3140 by default by -std=c99, otherwise is disabled by default.
3141 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
3143 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3145 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
3146 DECL on the rhs to a DECL on the lhs for debug info purposes if the
3147 former is ignored but not the latter.
3149 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3151 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
3152 is made and the reference doesn't use the alias set of its type,
3153 do not create the temporary using that type.
3155 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
3157 * jump.c: Remove prototypes for delete_computation and
3158 delete_prior_computation.
3160 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3162 * jump.c (get_label_after): Delete.
3163 (get_label_before, delete_computation, delete_jump,
3164 delete_prior_computation, follow_jumps): Move...
3165 * reorg.c (delete_computation, delete_prior_computation): ... here...
3166 (get_label_before, delete_jump): ... making these static ...
3167 (follow_jumps): ... and simplifying this since it only runs after
3169 * rtl.h (get_label_after, get_label_before, delete_jump,
3170 follow_jumps): Delete prototypes.
3172 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3174 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3176 2007-02-15 Nick Clifton <nickc@redhat.com>
3178 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3179 order to prevent it from being munged by the target.
3181 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
3183 * config/i386/i386.md: Remove misleading comment.
3185 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3187 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3188 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3191 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3193 * tree-sra.c (instantiate_missing_elements): Canonicalize
3195 (sra_build_assignment): New.
3196 (generate_copy_inout, generate_element_copy,
3197 generate_element_zero, generate_one_element_init): Use it.
3199 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3201 * tree-sra.c (instantiate_missing_elements): Canonicalize
3203 (sra_build_assignment): New.
3204 (generate_copy_inout, generate_element_copy,
3205 generate_element_zero, generate_one_element_init): Use it.
3207 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3209 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3212 2007-02-14 Joseph Myers <joseph@codesourcery.com>
3214 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3215 types as aggregates not scalars.
3216 * function.c (assign_stack_temp_for_type): Likewise.
3218 2007-02-14 Roger Sayle <roger@eyesopen.com>
3219 Zdenek Dvorak <dvorakz@suse.cz>
3221 * tree-dump.c (dump_switch_p_1): Require exact match of the option
3224 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
3226 * passes.c (next_pass_1): Clear the next field of the copied
3229 2007-02-14 Richard Henderson <rth@redhat.com>
3231 * tree-sra.c (early_sra): New.
3232 (decl_can_be_decomposed_p): Deny va_list if early_sra.
3233 (tree_sra_early, pass_sra_early): New.
3234 * tree-pass.h (pass_sra_early): Declare.
3235 * passes.c (init_optimization_passes): Use it.
3237 2007-02-14 Richard Guenther <rguenther@suse.de>
3239 * flags.h (issue_strict_overflow_warning): Convert to a macro.
3241 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
3243 PR tree-optimization/30771
3244 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3246 (vect_analyze_operations): Induction phis can now be marked as
3248 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3249 Update documentation accordingly.
3251 2007-02-14 Nick Clifton <nickc@redhat.com>
3253 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3254 most 3 arguments are supported.
3255 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3257 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
3259 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3260 Ensure dst->current is valid.
3262 2007-02-13 Paul Brook <paul@codesourcery.com>
3264 * config.gcc: Add arm*-*-uclinux-*eabi.
3265 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3266 (SUBTARGET_EXTRA_LINK_SPEC): Define.
3267 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3268 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3269 (LINK_SPEC): Define.
3271 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3273 * config/arm/uclinux-eabi.h: New file.
3274 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3275 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3278 2007-02-13 Ian Lance Taylor <iant@google.com>
3280 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3281 * flags.h (warn_strict_overflow): Declare.
3282 (enum warn_strict_overflow_code): Define.
3283 (issue_strict_overflow_warning): New static inline function.
3284 * opts.c (warn_strict_overflow): New variable.
3285 (common_handle_option): Handle OPT_Wstrict_overflow and
3286 OPT_Wstrict_overflow_.
3287 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3289 * fold-const.c: Include intl.h.
3290 (fold_deferring_overflow_warnings): New static variable.
3291 (fold_deferred_overflow_warning): New static variable.
3292 (fold_deferred_overflow_code): New static variable.
3293 (fold_defer_overflow_warnings): New function.
3294 (fold_undefer_overflow_warnings): New function.
3295 (fold_undefer_and_ignore_overflow_warnings): New function.
3296 (fold_deferring_overflow_warnings_p): New function.
3297 (fold_overflow_warning): New static function.
3298 (make_range): Add strict_overflow_p parameter. Change all
3300 (extract_muldiv, extract_muldiv_1): Likewise.
3301 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3302 tree_expr_nonnegative_p.
3303 (fold_negate_expr): Call fold_overflow_warning.
3304 (fold_range_test): Likewise.
3305 (fold_comparison): Likewise.
3306 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
3307 instead of tree_expr_nonnegative_p.
3308 (tree_expr_nonnegative_warnv_p): Rename from
3309 tree_expr_nonnegative_p, add strict_overflow_p parameter.
3310 (tree_expr_nonnegative_p): New function.
3311 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3312 strict_overflow_p parameter.
3313 (tree_expr_nonzero_p): New function.
3314 * passes.c (verify_interpass_invariants): New static function.
3315 (execute_one_pass): Call it.
3316 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3318 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3319 (estimate_numbers_of_iterations): Likewise.
3320 (scev_probably_wraps_p): Likewise.
3321 * tree-ssa-ccp.c: Include "toplev.h".
3322 (evaluate_stmt): Defer fold overflow warnings until we know we are
3324 (struct fold_stmt_r_data): Add stmt field.
3325 (fold_stmt_r): Defer fold overflow warnings until we know we
3327 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3328 (fold_stmt_inplace): Likewise.
3329 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3330 (cleanup_control_expr_graph): Defer fold overflow warnings until
3331 we know we are going to optimize.
3332 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3333 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3335 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3336 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3337 * tree-ssa-loop-manip.c (create_iv): Likewise.
3338 * c-typeck.c (build_conditional_expr): Likewise.
3339 (build_binary_op): Likewise.
3340 * tree-vrp.c (vrp_expr_computes_nonzero): Call
3341 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3342 (extract_range_from_unary_expr): Likewise.
3343 * simplify-rtx.c (simplify_const_relational_operation): Warn when
3344 assuming that signed overflow does not occur.
3345 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3346 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3347 (fold_defer_overflow_warnings): Declare.
3348 (fold_undefer_overflow_warnings): Declare.
3349 (fold_undefer_and_ignore_overflow_warnings): Declare.
3350 (fold_deferring_overflow_warnings_p): Declare.
3351 (tree_expr_nonzero_warnv_p): Declare.
3352 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3354 (Warning Options): Document -Wstrict-overflow.
3355 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3356 (tree-ssa-ccp.o): Likewise.
3357 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3358 (fold-const.o): Depend on intl.h.
3360 2007-02-13 Ian Lance Taylor <iant@google.com>
3363 * lower-subreg.c (resolve_simple_move): Decompose subregs in
3366 2007-02-13 Stuart Hastings <stuart@apple.com>
3368 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3370 2007-02-13 Richard Henderson <rth@redhat.com>
3372 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3373 handled_component_p before looking for the indirect_ref.
3375 2007-02-13 Richard Henderson <rth@redhat.com>
3377 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3378 remove flags clobber.
3379 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3380 (bswaphi_lowpart): New.
3381 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3382 remove TARGET_BSWAP test. Delete expander of the same name.
3384 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3385 (expand_unop): Use them.
3387 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
3389 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3390 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3391 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3392 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3393 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3394 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3395 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3396 assembler dialect choice from asm templates.
3398 2007-02-12 Richard Henderson <rth@redhat.com>
3400 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3401 (fixuns_trunc<SSEMODEF>si2): Use it.
3402 * config/i386/sse.md (vec_setv4sf_0): Export.
3403 * config/i386/i386.c (ix86_build_const_vector): Export.
3404 (ix86_split_convert_uns_si_sse): Rename from
3405 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3406 * config/i386/i386-protos.h: Update.
3408 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3411 * c-typeck.c (c_finish_return): Improve warning message.
3413 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3415 * alias.c (find_symbolic_term): Delete unused function.
3417 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
3419 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3420 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3421 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3423 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3425 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3426 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3427 the function, temporarily point the debug interface to the null one.
3429 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3431 * dwarf2out.c (round_up_to_align): New static function.
3432 (field_byte_offset): Use it to round the offset.
3434 2007-02-12 Richard Henderson <rth@redhat.com>
3436 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3437 (inswl_const): Export.
3439 2007-02-12 Richard Henderson <rth@redhat.com>
3441 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3442 result mode of the libcall, convert back to outmode.
3444 2007-02-12 Roger Sayle <roger@eyesopen.com>
3446 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3447 (bswapdi2): New define_expand to implement 32-bit implementation.
3449 2007-02-12 Nick Clifton <nickc@redhat.com>
3451 * doc/invoke.texi (Overall Options): Document --help=.
3452 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3453 (cc1_options): Pass --help= on to cc1.
3454 (display_help): Add description of --help=.
3455 (process_command): Add code to handle --help=. Allow translated
3456 --help and --target-help switches to be passed on to compiler
3458 (main): Remove unused if statement.
3459 * opts.c (columns): Remove.
3460 (LEFT_COLUMN): Define.
3461 (wrap_help): Add columns argument.
3462 (print_filtered_help): Change parameters to be an include bitmask,
3463 an exclude bitmask, an any bitmask and the column width. Move the
3464 code to display the params list here. Add code to display the
3465 status of options rather than their descriptions if the quiet flag
3467 (print_specific_help): Change parameters to be an include bitmask,
3468 an exclude bitmask and an any bitmask. Move code to look up the
3469 column width here. Decide upon the title for an options listing.
3470 (common_handle_options): Add code to handle --help=. Adapt code
3471 for --help and --target-help to use the revised form of the
3472 print_specific_help function.
3473 (print_help): Delete.
3474 (print_param_help): Delete.
3475 (print_switch): Delete.
3476 * opts.h (cl_lang_count): Add prototype.
3477 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3478 CL_MAX_OPTION_CLASS): New defines.
3479 * optc-gen.awk: Add construction of cl_lang_count.
3480 * c.opt: Add Warning attribute to warning options and Optimization
3481 attribute to optimization options.
3482 * common.opt: Likewise.
3484 Add -fhelp and -ftarget-help as aliases for the transformed --help
3485 and --target-help options.
3486 * opt-functions.awk: Add code to handle Warning and Optimization
3489 2007-02-12 Richard Henderson <rth@redhat.com>
3491 * config/alpha/constraints.md: New file.
3492 * config/alpha/alpha.c: Include tm-constrs.h.
3493 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3494 alpha_extra_constraint): Remove.
3495 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3496 * config/alpha/alpha-protos.h: Update.
3497 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3498 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3499 (EXTRA_CONSTRAINT): Remove.
3500 * config/alpha/alpha.md: Include constraints.md.
3501 (adddi splitter): Use satisfies_constraint_*.
3502 * config/alpha/predicates.md (add_operand): Likewise.
3503 (sext_add_operand, addition_operation): Likewise.
3505 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
3507 PR tree-optimization/29145
3508 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3509 in our handling of restrict qualified pointers.
3511 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3514 * doc/invoke.texi (Wunused-value): Update description.
3515 (Wextra): Delete item.
3516 * opts.c (set_Wextra): Don't use the value of Wextra to set the
3517 value of Wunused-value.
3518 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3519 (c_finish_stmt_expr): Don't check extra_warnings.
3520 (emit_side_effect_warnings): The caller is responsible to check
3523 2007-02-11 Roger Sayle <roger@eyesopen.com>
3524 Matt Thomas <matt@3am-software.com>
3526 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3528 2007-02-11 Roger Sayle <roger@eyesopen.com>
3530 * simplify-rtx.c (simplify_relational_operation_1): Optimize
3531 comparisons of POPCOUNT against zero.
3532 (simplify_const_relational_operation): Likewise.
3534 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3536 * doc/invoke.texi (Wextra): Delete outdated paragraph.
3538 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3540 * dwarf2out.c (root_type): Delete unused function.
3542 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3544 * genattrtab.c (contained_in_p): Delete unused function.
3545 (write_expr_attr_cache): Likewise.
3547 2007-02-11 Jan Hubicka <jh@suse.cz>
3549 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3552 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
3554 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3555 to add the REG_EQ* note.
3556 * see.c (see_merge_one_use_extension): Likewise.
3557 * local-alloc.c (update_equiv_regs): Likewise. Also don't
3558 turn REG_EQUAL notes into REG_EQUIV notes if the target
3559 register may have more than one set.
3560 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3561 * gcse.c (try_replace_reg): Likewise.
3562 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3563 * calls.c (fixup_tail_calls): Likewise. Abort if there is
3564 more than one REG_EQUIV note.
3565 * reload1.c (gen_reload): Use set_unique_reg_note.
3567 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
3569 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3570 (ix86_builtin_conversion): New function.
3572 2007-02-06 Mark Mitchell <mark@codesourcery.com>
3575 * tree.h (DECL_REPLACEABLE_P): New macro.
3576 * except.c (set_nothrow_function_flags): Likewise.
3578 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
3579 Ira Rosen <irar@il.ibm.com>
3580 Dorit Nuzman <dorit@il.ibm.com>
3582 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3583 * targhooks.c (default_builtin_vectorized_conversion): New.
3584 * targhooks.h (default_builtin_vectorized_function): New declaration.
3585 * target.h (struct vectorize): Add builtin_conversion field.
3586 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3587 stmt_vec_info_type value.
3588 (vectorizable_conversion): New declaration.
3589 * tree-vect-analyze.c (vect_analyze_operations): Add
3590 vectorizable_conversion call.
3591 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3592 * tree-vect-transform.c (vectorizable_conversion): New function.
3593 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
3594 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
3596 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
3597 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
3598 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
3599 or ALTIVEC_BUILTIN_VCFSX.
3601 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3604 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
3605 CONST_DOUBLE and operand 0 is a hard register.
3606 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
3607 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
3608 is a hard floating-point register.
3610 2007-02-10 Richard Henderson <rth@redhat.com>
3611 Jakub Jelinek <jakub@redhat.com>
3612 Alexandre Oliva <aoliva@redhat.com>
3614 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
3615 * builtin-types.def (BT_WORD): Make unsigned.
3616 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3617 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
3618 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
3619 * c-decl.c (grokdeclarator): Don't error if !have_tls.
3620 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3621 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
3623 * expr.c (emutls_var_address): New.
3624 (expand_expr_real_1): Expand emulated tls.
3625 (expand_expr_addr_expr_1): Likewise.
3626 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
3627 * output.h (emutls_finish): Declare.
3628 * toplev.c (compile_file): Call it.
3629 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
3630 address before wrapping in CONST.
3631 * varasm.c (emutls_htab, emutls_object_type): New.
3632 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
3633 (get_emutls_object_name, get_emutls_object_type): New.
3634 (get_emutls_init_templ_addr, emutls_decl): New.
3635 (emutls_common_1, emutls_finish): New.
3636 (assemble_variable): When emulating tls, swap decls; generate
3637 constructor for the emutls objects.
3638 (do_assemble_alias): When emulating tls, swap decl and target name.
3639 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
3641 * varpool.c (decide_is_variable_needed): Look at force_output.
3642 Recurse for emulated tls.
3643 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
3644 with decide_is_variable_needed.
3645 * emutls.c: New file.
3646 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
3647 tls_object for real tls.
3649 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
3651 PR rtl-optimization/29599
3652 * reload1.c (eliminate_regs_in_insn): Take the destination
3653 mode into account when computing the offset.
3655 2007-02-09 Stuart Hastings <stuart@apple.com>
3656 Richard Henderson <rth@redhat.com>
3658 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3659 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3660 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
3661 fixuns_truncdfhi2): New.
3662 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
3663 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
3664 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
3665 (floatunssidf2): Allow nonimmediate source.
3666 * gcc/config/i386/sse.md (movdi_to_sse): New.
3667 (vec_concatv2di): Drop '*'.
3668 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
3669 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3670 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
3672 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
3673 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3674 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
3675 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3676 (ix86_build_signbit_mask): Fix decl of v, refactor to call
3677 ix86_build_const_vector.
3678 (x86_emit_floatuns): Rewrite.
3680 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3682 * genautomata.c (longest_path_length): Delete unused function.
3683 (struct state): Delete unused longest_path_length.
3684 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
3685 (get_free_state): Delete unused.
3687 2007-02-09 Jan Hubicka <jh@suse.cz>
3689 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
3690 * doc/invoke.texi (inline-unit-growth): Update default value.
3692 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
3693 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
3694 (rebuild_cgraph_edges): Likewise.
3695 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
3696 (dump_cgraph_node): Dump frequencies.
3697 (cgraph_clone_edge): Add frequency scales.
3698 (cgraph_clone_node): Add freuqnecy.
3699 * cgraph.h (cgraph_edge): Add freuqnecy argument.
3700 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
3701 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
3702 * tree-pass.h (TODO_rebuild_frequencies): New constant.
3703 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
3704 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
3705 (save_inline_function_body): Likewise.
3706 * ipa-inline.c: inluce rtl.h
3707 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
3708 (cgraph_edge_badness): Use frequencies.
3709 (cgraph_decide_recursive_inlining): Update clonning.
3710 (cgraph_decide_inlining_of_small_function): Dump frequency.
3711 * predict.c (estimate_bb_frequencies): Export.
3712 * predict.h (estimate_bb_frequencies): Declare.
3713 * tree-inline.c (copy_bb): Watch overflows.
3714 (expand_call_inline): Update call of cgraph_create_edge.
3715 (optimize_inline_calls): Use TODO flags to update frequnecies.
3716 * passes.h: Include predict.h
3717 (init_optimization_passes): Move profile ahead.
3718 (execute_function_todo): Handle TODO_rebuild_frequencies.
3720 2007-02-09 Roger Sayle <roger@eyesopen.com>
3722 * config/alpha/alpha.c (emit_insxl): Force the first operand of
3723 the insbl or inswl pattern into a register.
3725 2007-02-09 Roger Sayle <roger@eyesopen.com>
3727 * config/ia64/ia64.md (bswapdi2): New define_insn.
3729 2007-02-09 Richard Henderson <rth@redhat.com>
3731 * config/i386/constraints.md (Ym): New constraint.
3732 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
3733 (movdi_1_rex64): Split sse and xmm general register moves from
3734 memory move alternatives. Use conditional register constraints.
3735 (movsf_1, movdf_integer): Likewise.
3736 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
3737 (movdf_integer_rex64): New.
3738 (pushsf_rex64): Fix output constraints.
3739 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
3740 (sse2_stored): Likewise.
3741 (sse2_storeq_rex64): New.
3742 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
3743 amd and not generic.
3744 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
3745 for optimize_size. Remove SF/DFmode hack.
3747 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3749 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
3752 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
3753 Richard Sandiford <richard@codesourcery.com>
3755 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
3756 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
3757 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
3758 m68k/t-mlib to tmake_file.
3759 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
3760 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
3761 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
3762 Allow it to be cf or m68k. Set m68k_arch_family. If that
3763 variable is not empty, add t-$m68k_arch_family to tmake_file.
3764 Add t-mlibs to tmake_file.
3765 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
3766 * config/m68k/t-cf: New file.
3767 * config/m68k/t-m68k: Likewise.
3768 * config/m68k/t-mlibs: Likewise.
3769 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3770 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3771 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3772 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3773 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
3775 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
3776 (INSTALL_LIBGCC): Delete.
3777 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
3778 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3779 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3780 (M68K_MLIB_CPU): Define.
3781 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
3782 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
3783 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
3785 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
3786 Richard Guenther <rguenther@suse.de>
3789 * fold-const.c (fold_comparison): Handle obfuscated comparisons
3790 against INT_MIN/INT_MAX.
3791 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
3792 file if a loop is removed.
3794 2007-02-09 Joseph Myers <joseph@codesourcery.com>
3796 * calls.c (store_one_arg): Pass correct alignment to
3797 emit_push_insn for non-BLKmode values.
3798 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
3799 unaligned stack slot via a suitably aligned slot.
3801 2007-02-08 DJ Delorie <dj@redhat.com>
3803 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
3805 (legal_subregs): Use unsigned char, make const.
3806 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
3808 2007-02-08 Paul Brook <paul@codesourcery.com>
3810 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
3811 special interworking needed.
3813 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
3815 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
3816 conditional to __SSE2__.
3817 (Entries below should have been added to first ChangeLog
3818 entry for amdfam10 dated 2007-02-05)
3819 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
3821 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
3823 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
3826 2007-02-08 DJ Delorie <dj@redhat.com>
3828 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
3829 * config/m32c/m32c.c (legal_subregs): New.
3830 (m32c_illegal_subreg_p): New.
3831 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
3832 unsupported subregs of hard regs.
3834 2007-02-08 Jan Hubicka <jh@suse.cz>
3836 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
3837 the same one; always update histograms.
3839 2007-02-08 Diego Novillo <dnovillo@redhat.com>
3841 * passes.c (init_optimization_passes): Tidy comment.
3843 2007-02-08 Roger Sayle <roger@eyesopen.com>
3845 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
3846 strip zero_extend, bswap and rotates from POCOUNT's argument.
3847 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
3848 zero_extend and rotates from PARITY's argument.
3849 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
3850 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
3851 of an integer constant at compile-time.
3853 2007-02-08 Diego Novillo <dnovillo@redhat.com>
3856 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
3858 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
3861 * tree-ssa-live.c (remove_unused_locals): Do not remove
3862 TREE_ADDRESSABLE variables.
3863 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
3864 * tree-ssa-operands.c (add_virtual_operand): Remove argument
3865 FOR_CLOBBER. Update all users.
3866 If VAR has an associated alias set, add a virtual operand for
3867 it if no alias is found to conflict with the memory reference.
3869 2007-02-07 Jan Hubicka <jh@suse.cz>
3870 Robert Kidd <rkidd@crhc.uiuc.edu>
3872 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
3874 2007-02-07 Ian Lance Taylor <iant@google.com>
3876 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
3878 2007-02-07 Roger Sayle <roger@eyesopen.com>
3880 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3881 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
3882 tablejumpdi, movsi_to_cr_one): Remove constraints from
3883 define_expand's match_operands.
3885 2007-02-07 Roger Sayle <roger@eyesopen.com>
3887 * global.c (compute_regsets): Move declatation of "i" inside of
3888 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
3890 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3893 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
3894 of INDIRECT_REF <RESULT_DECL>.
3896 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
3898 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
3899 Kaz Kojima <kkojima@gcc.gnu.org>
3902 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
3904 (sh_initialize_trampoline): Add parentheses to avoid a warning.
3906 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
3908 * doc/loop.texi: Document possibility not to perform disambiguation
3909 of loops with multiple latches.
3910 * cfgloopmanip.c (alp_enum_p): Removed.
3911 (add_loop): Handle subloops. Use get_loop_body_with_size.
3912 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
3913 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
3914 the new forwarder block.
3915 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
3916 Handle the case latch is NULL.
3917 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
3918 when marking loop exits.
3919 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
3921 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
3922 disambiguate_loops_with_multiple_latches.
3923 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
3924 before fix_loop_structure.
3925 * cfgloop.c: Include pointer-set.h and output.h.
3926 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
3927 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
3928 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
3929 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
3930 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
3931 disambiguate_multiple_latches, get_loop_body_with_size,
3932 disambiguate_loops_with_multiple_latches): New functions.
3933 (flow_loop_dump): Dump multiple latch edges.
3934 (flow_loop_nodes_find): Handle loops with multiple latches.
3935 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
3936 (glb_enum_p): Modified.
3937 (get_loop_body): Use get_loop_body_with_size.
3938 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
3939 (AVOID_CFG_MODIFICATIONS): New constant.
3940 (disambiguate_loops_with_multiple_latches, add_loop,
3941 get_loop_body_with_size): Declare.
3942 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
3944 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
3947 * global.c (compute_regsets): New function.
3948 (global_alloc): Refactored ELIMINABLE_REGSET
3949 and NO_GLOBAL_ALLOC_REGS computation out.
3950 (rest_of_handle_global_alloc): Call compute_regsets()
3951 for non-optimizing case.
3953 2007-02-06 Richard Henderson <rth@redhat.com>
3955 * config/i386/constraints.md (Y2): Rename from Y.
3956 (Yi): New constraint.
3957 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
3958 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
3959 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
3960 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
3961 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
3962 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
3963 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
3964 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
3965 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
3966 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
3967 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
3968 vec_extractv2si_1): Change Y constraints to Y2.
3969 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
3970 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
3971 Change Y constraints to Y2.
3972 (sse2_loadld): Change Y constraints to x.
3974 2007-02-06 Roger Sayle <roger@eyesopen.com>
3976 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
3977 (parity<mode>2): New define_expand using rs6000_emit_parity.
3978 * config/rs6000/rs6000.c (rs6000_emit_popcount,
3979 rs6000_emit_parity): New functions.
3980 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,