1 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
3 * configure.ac: Remove excess quoting from asm line 0 test.
6 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
9 * c-common.c (convert_and_check): Move warning logic to...
10 (warnings_for_convert_and_check): ...here. Define.
11 * c-common.h (warnings_for_convert_and_check): Declare.
13 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
16 (output_call): Likewise.
18 2007-03-16 Richard Sandiford <richard@codesourcery.com>
20 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
22 2007-03-16 Richard Sandiford <richard@codesourcery.com>
24 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
26 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
28 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
29 opteron, athlon-64 and athlon-fx processor_alias_table entries.
31 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
33 PR tree-optimization/31183
34 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
35 Use double_int instead of unsigned int for representing access_strides.
36 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
38 2007-03-16 Richard Guenther <rguenther@suse.de>
40 PR tree-optimization/31146
41 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
42 to allow recursion of forward_propagate_addr_expr.
43 (forward_propagate_addr_into_variable_array_index): Likewise.
44 (forward_propagate_addr_expr): Likewise.
45 (tree_ssa_forward_propagate_single_use_vars): Likewise.
46 (forward_propagate_addr_expr_1): Recurse on simple copies
47 instead of propagating into them. Do so for useless conversions
49 (forward_propagate_addr_expr): Clean up unused statements after
52 2007-03-16 Richard Guenther <rguenther@suse.de>
54 * builtins.c (expand_builtin_cexpi): Use the right argument
55 for the expansion via cexp.
57 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
59 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
62 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
65 * dwarf2out.c (force_type_die): Adjust comment.
66 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
68 2007-03-15 DJ Delorie <dj@redhat.com>
70 * config/frv/predicates.md (minmax_operator): Don't check operands
73 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
75 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
76 Update constant estimates of number of iterations.
77 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
78 argument renamed to "realistic".
79 (compute_estimated_nb_iterations): Removed.
80 (record_niter_bound): New function.
81 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
82 call record_nonwrapping_iv with upper = false.
83 (infer_loop_bounds_from_signedness): Pass upper argument to
84 record_nonwrapping_iv.
85 (estimate_numbers_of_iterations_loop): Do not call
86 compute_estimated_nb_iterations. Record estimate based on profile
87 information. Initialize the constant estimates of number of
89 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
91 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
92 number of iterations is too small.
93 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
94 (EST_NOT_AVAILABLE): Removed.
95 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
96 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
99 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
101 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
102 Handle NE_EXPR guards.
104 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
107 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
108 Set also -pedantic-errors by default for the preprocessor unless
109 -fpermissive is given.
111 2007-03-15 Richard Guenther <rguenther@suse.de>
115 * builtins.c (expand_builtin_cexpi): As a fallback if we
116 don't have builtins for sincos or cexp create a function
117 declaration for cexp and expand to a call to that.
118 (expand_builtin_int_roundingfn): Always fall
119 back to floor/ceil and its variants even if they may be
122 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
125 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
126 jump tables, move the call to delete_dead_jumptables from here...
127 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
128 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
129 don't allow merging of blocks that try_redirect_by_replacing_jump
130 also does not handle when not optimizing.
132 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
133 Francois-Xavier Coudert <coudert@clipper.ens.fr>
135 * config/i386/i386.md (x86_sahf_1): Correctly handle
138 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
141 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
142 x86_64_general_operand as operand[2] predicate. Remove "iF"
143 from operand constraints and use "e" constraint instead.
144 (*subti3_1, *subti3_1 splitter): Ditto.
145 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
146 operand[1] predicate.
148 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
150 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
151 arrays, multiply the access strides by the size of the sub-array.
152 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
154 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
156 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
157 the configured assembler supports the sahf mnemonic.
158 * configure: Regenerate.
159 * config.in: Regenerate.
161 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
162 emit "sahf" or ".byte\t0x9e" as asm template.
164 2007-03-14 Michael Meissner <michael.meissner@amd.com>
167 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
168 option to replace hard coded TARGET_xxx in md file.
169 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
170 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
171 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
172 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
173 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
174 (X86_TUNE_NOT_VECTORMODE): Ditto.
175 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
176 (TUNE_AVOID_VECTOR_DECODE): Ditto.
177 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
178 (TUNE_SLOW_IMUL_IMM8): Ditto.
179 (TUNE_MOVE_M1_VIA_OR): Ditto.
180 (TUNE_NOT_UNPAIRABLE): Ditto.
181 (TUNE_NOT_VECTORMODE): Ditto.
183 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
186 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
187 tuning options instead of hard coded TARGET_xxx.
188 (fix ssemode peephole2's): Ditto.
189 (imul peephole2's): Ditto.
191 (movdi_or_rex64): Ditto.
192 (move peephole2): Ditto.
193 (not peephole2's): Ditto.
195 2007-03-14 Dirk Mueller <dmueller@suse.de>
197 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
198 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
199 * c-parser.c (c_parser_if_body): Always add an empty statement in case
201 * c-parser.c (c_parser_do_statement): Warn about empty body in
203 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
204 * doc/invoke.texi (-Wempty-body): Update documentation.
206 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
209 * c-common.h (warn_for_div_by_zero): Declare.
210 * c-common.c (warn_for_div_by_zero): Define.
211 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
214 2007-03-14 Richard Sandiford <richard@codesourcery.com>
216 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
217 to PREFIX and STANDARD_PREFIX.
219 2007-03-14 Richard Sandiford <richard@codesourcery.com>
220 Phil Edwards <phil@codesourcery.com>
222 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
223 (__gthread_once_t): Remove busy field for RTPs.
224 (__GTHREAD_ONCE_INIT): Update accordingly.
226 2007-03-14 Richard Sandiford <richard@codesourcery.com>
228 * doc/invoke.texi: Document VxWorks options.
230 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
232 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
234 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
236 PR tree-optimization/30590
237 * tree-nrv.c (tree_nrv): Check for the partial update of the
240 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
242 * flags.h (flag_random_seed): Remove declaration, in favor of...
243 * toplev.h (get_random_seed, set_random_seed): ... these.
244 * tree.c (get_file_function_name): Use the former.
245 * opts.c (common_handle_option): Use the latter.
248 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
251 * cse.c (cse_find_path): Do not bail out if a basic block that
252 we already visited now becomes part of a path that starts at a
253 different basic block. Just disallow this, to make sure we
254 visit each basic block at most once.
256 2007-03-13 Jan Hubicka <jh@suse.cz>
258 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
259 when profile esitmate is present, calls with very low frequency are
262 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
264 PR tree-optimization/30730
265 PR tree-optimization/26900
266 * tree-ssa-loop-niter.c: Include gmp.h.
268 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
269 split_to_var_and_offset, determine_value_range,
270 bound_difference_of_offsetted_base, refine_bounds_using_guard,
271 bound_difference, bounds_add, bounds_negate,
272 number_of_iterations_ne_max, dump_affine_iv): New functions.
273 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
274 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
275 difference of initial and final value of control iv to validate
277 (number_of_iterations_cond): Add loop parameter. Determine bounds
278 on the difference of the extremes of the control iv. Add dumps.
279 (expand_simple_operations): Handle phi nodes.
280 (simplify_using_initial_conditions): Do not record used conditions.
281 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
282 Do not set additional_info.
283 (implies_nonnegative_p, implies_ge_p): Removed.
284 (derive_constant_upper_bound): Do not use parameter `additional'.
285 (record_estimate): Parameter `additional' removed. Parameter
286 `i_bound' added. Do not call derive_constant_upper_bound.
287 (record_nonwrapping_iv): Use derive_constant_upper_bound to
288 bound the number of iterations estimate.
289 (estimate_numbers_of_iterations_loop): Pass the estimate from
290 the number of iterations analysis to record_estimate.
291 * tree.h (multiple_of_p): Declare.
292 * tree-scalar-evolution.c (expression_expensive_p): Removed.
293 (scev_const_prop): Do not check expression_expensive_p.
294 * fold-const.c (multiple_of_p): Exported.
295 * double-int.c (double_int_mask): Exported.
296 * double-int.h (double_int_mask): Declare.
297 * tree-flow.h (struct tree_niter_desc): Removed additional_info
298 field. Added max field.
300 2007-03-13 David Taylor <taylor@candd.org>
303 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
306 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
309 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
312 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
314 * config/i386/i386.opt (mcx16, msahf): New options.
315 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
316 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
318 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
319 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
320 Output -mcx16 and -msahf options when corresponding bit is set.
322 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
325 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
327 * configure.ac: Test for assembler tolerance to # 0 "".
328 * configure, config.in: Rebuilt.
329 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
331 2007-03-13 Geoffrey Keating <geoffk@apple.com>
333 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
335 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
336 (handle_syscall): Handle direct system calls.
337 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
339 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
341 * doc/invoke.texi: Fix cpp.info cross-reference.
342 * doc/passes.texi: Fix gcc.info cross-reference.
344 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
346 PR tree-optimization/30835
347 * lambda-code.c (can_convert_to_perfect_nest): Check whether
348 bb_for_stmt is not NULL before accessing it.
350 2007-03-12 Joseph Myers <joseph@codesourcery.com>
352 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
355 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
358 * doc/install.texi: Document --enable-stage1-languages
360 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
362 * tree-pass.h (pass_into_cfg_layout_mode,
363 pass_outof_cfg_layout_mode): Declare.
364 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
365 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
366 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
367 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
369 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
371 * c-decl.c (warn_variable_length_array): New function.
372 Refactored from grokdeclarator to handle warn_vla
373 and handle unnamed array case.
374 (grokdeclarator): Refactored VLA warning case.
375 * c.opt (Wvla): New flag.
376 * doc/invoke.texi (Wvla): New warning.
378 2007-03-12 Richard Henderson <rth@redhat.com>
380 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
381 (TARGET_SECTION_TYPE_FLAGS): New.
383 2007-03-12 Richard Henderson <rth@redhat.com>
385 * config/darwin.c (machopic_reloc_rw_mask): New.
386 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
387 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
389 2007-03-12 Mark Mitchell <mark@codesourcery.com>
391 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
392 * cppdefault.h (cpp_PREFIX): Document.
393 (cpp_PREFIX_len): Likewise.
394 (cpp_EXEC_PREFIX): New variable.
395 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
396 * c-incpath.c (add_standard_paths): Correct logic for relocating
399 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
401 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
402 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
404 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
405 fix_truncdfdi_sse using SSEMODEF mode macro.
406 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
407 fix_truncdfsi_sse using SSEMODEF mode macro.
408 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
409 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
411 2007-03-12 Richard Sandiford <richard@codesourcery.com>
413 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
416 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
418 * tree.h : Add multiple_of_p declaration.
419 * fold-const.c (multiple_of_p): Make multiple_of_p public.
420 * ipa-type-escape.c (results_of_malloc): Redundant.
421 (visited_stmts): New. Visited stmt for walk_use_def_chains.
422 (cast_type): Extended with new members.
423 (check_cast): Returns cast_type.
424 (cast): New structure for data of walk_use_def_chains.
425 (is_malloc_result, is_cast_from_non_pointer_1,
426 is_cast_from_non_pointer,
427 is_array_access_through_pointer_and_index): New functions.
428 (look_for_casts): Returns cast types.
429 (check_call): Returns void.
430 (okay_pointer_operation): Use support of pointer plus index,
431 pointer plus constant and allow all multiplications.
433 2007-03-11 Richard Guenther <rguenther@suse.de>
435 PR tree-optimization/31115
436 * tree-vrp.c (extract_range_from_binary_expr): Make sure
437 the shift count is positive and non-anti-range for RSHIFT_EXPR.
438 A shift count of zero is not special as with *_DIV_EXPR.
439 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
442 2007-03-11 Ian Lance Taylor <iant@google.com>
444 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
445 the *_DIV_EXPR codes correctly with overflow infinities.
447 2007-03-11 Ira Rosen <irar@il.ibm.com>
449 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
450 indicate success/failure of the analysis. Add negation to subtrahend
451 in case of subtraction. Fail if both operands contain constants.
452 (create_data_ref): Fail if analyze_offset fails.
454 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
456 * config/i386/i386.md (frndintxf2): Rename to ...
457 (rintxf2): ... this. Remove expander having same name.
458 (rintsf2, rintdf2): Implement using SSEMODEF macro.
459 (roundsf2, rounddf2): Ditto.
460 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
461 (lround<mode>di2, lround<mode>si2): Ditto.
463 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
465 * lower-subreg.c: Include except.h.
466 (decompose_multiword_subregs): Verify that the only control flow
467 insns we can split are loads to multi-words pseudos.
468 Handle breaking such blocks after splitting, instead of calling
469 find_many_sub_basic_blocks.
471 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
472 on the new basic block. Add a lengthy comment explaining why we
473 thought this was necessary.
474 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
476 2007-03-10 Mark Mitchell <mark@codesourcery.com>
479 * tree.c (walk_type_fields): Recurse into the element type of
480 ARRAY_TYPEs if there is a pointer set.
482 2007-03-10 Dirk Mueller <dmueller@suse.de>
484 * c-common.c (warn_logical_operator): Fix condition.
486 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
488 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
490 * config/darwin.c (machopic_select_section): Remove superfluous
491 argument in call to categorize_decl_for_section. Remove unused
494 2007-03-10 Joseph Myers <joseph@codesourcery.com>
496 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
498 * configure: Regenerate.
500 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
503 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
504 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
505 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
506 Add LABEL_NUSES to emitted label.
507 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
508 branch probability value to emitted jump insn.
509 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
510 Do not check life information and do not re-arrange input operands
511 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
513 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
515 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
516 the change of decode_asm_operands.
518 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
520 * mode-switching.c (create_pre_exit): Skip blockage insn.
522 2007-03-09 Diego Novillo <dnovillo@redhat.com>
524 * tree-pass.h (TODO_update_smt_usage): Remove.
526 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
530 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
532 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
533 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
534 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
537 2007-03-09 Geoffrey Keating <geoffk@apple.com>
539 * gcc.c: Document %{, in big comment at top.
540 (input_suffix_matches): Remove special handling for .s and
542 (input_spec_matches): New.
543 (handle_braces): Handle %{,.
544 (validate_switches): ',' indicates a value which is not a switch.
545 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
546 to detect assembler input.
547 * config/i386/sol2.h (CPP_SPEC): Likewise.
548 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
549 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
550 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
551 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
552 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
553 -m64 causes deployment target to default to 10.5.
554 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
556 2007-03-09 Richard Henderson <rth@redhat.com>
559 * target.h (targetm.asm.out.reloc_rw_mask): New.
560 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
561 (TARGET_ASM_OUT): Use it.
562 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
563 * varasm.c (categorize_decl_for_section): Remove shlib argument;
564 use the new reloc_rw_mask target hook instead.
565 (default_section_type_flags_1): Merge into...
566 (default_section_type_flags): ... here.
567 (decl_readonly_section_1): Merge into...
568 (decl_readonly_section): ... here.
569 (default_elf_select_section_1): Merge into...
570 (default_elf_select_section): ... here.
571 (default_unique_section_1): Merge into...
572 (default_unique_section): ... here.
573 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
574 (default_select_rtx_section): Use it.
575 (default_elf_select_rtx_section): Likewise.
576 * output.h: Update to match.
577 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
578 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
579 (TARGET_ASM_RELOC_RW_MASK): New.
580 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
581 to categorize_decl_for_section.
582 (x86_64_elf_unique_section): Likewise.
583 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
584 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
585 (TARGET_ASM_RELOC_RW_MASK): New.
586 * config/ia64/ia64.c (ia64_rwreloc_select_section,
587 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
588 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
589 (TARGET_RWRELOC): Remove.
590 (ia64_section_type_flags): Adjust call to default_section_type_flags.
591 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
592 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
593 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
594 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
595 (rs6000_xcoff_select_section): Use decl_readonly_section.
596 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
597 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
598 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
599 (TARGET_SECTION_TYPE_FLAGS): Remove.
600 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
602 2007-03-09 Roger Sayle <roger@eyesopen.com>
604 * fold-const.c (fold_comparison): Remove compile-time evaluation of
605 complex constant equality/inequality comparisons for here.
606 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
607 known at compile-time or can be simplified to a scalar comparison.
608 (fold_relational_const): Move compile-time evaluation of complex
609 constant equality/inequality comparisons to here.
611 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
613 PR rtl-optimization/30643
614 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
616 (fold_rtx): Recurse, like before 2006-11-03.
618 2007-03-09 DJ Delorie <dj@redhat.com>
620 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
623 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
625 PR tree-optimization/30375
626 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
627 LHS of statements is not the same.
628 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
630 2007-03-09 Chao-ying Fu <fu@mips.com>
632 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
634 * doc/invoke.texi (-mdspr2): Document new option.
635 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
636 New unspec for DSP REV 2.
637 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
638 these instructions are extended in DSP REV 2.
639 (mips-dspr2.md): Include.
640 * config/mips/mips.opt (mdspr2): New option.
641 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
642 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
643 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
644 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
645 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
646 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
647 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
649 (bdesc_map): Add one field of unsupported_target_flags.
650 (bdesc_arrays): Update entries to have extra fields. Add
652 (mips_init_builtins): Initialize new function types.
653 Check unsupported_target_fileds to filter out builtins.
654 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
656 (ASM_SPEC): Pass mdspr2 to the assembler.
657 * config/mips/mips-dspr2.md: New file.
659 2007-03-09 Sa Liu <saliu@de.ibm.com>
661 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
663 2007-03-09 Ian Lance Taylor <iant@google.com>
665 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
666 argument) like -Wstrict-overflow=2.
667 * doc/invoke.texi (Warning Options): Update documentation.
669 2007-03-09 Dirk Mueller <dmueller@suse.de>
672 * doc/invoke.texi (-Wlogical-op): Document.
673 * common.opt (-Wlogical-op): New.
674 * c-common.h (warn_logical_operator): Declare.
675 * c-common.c (warn_logical_operator): Define.
676 * c-typeck.c (parser_build_binary_op): Call
677 warn_logical_operator.
679 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
681 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
682 * final.c (final_scan_insn): Test for non-"" file name.
684 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
686 * doc/loop.texi: Document the Omega linear constraints solver.
687 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
688 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
689 omega-hash-table-size, omega-max-keys, and
690 omega-eliminate-redundant-constraints.
691 * tree-pass.h (pass_check_data_deps): Declared.
694 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
695 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
696 pass_check_data_deps): New.
697 * tree-data-ref.c (init_data_ref): Remove declaration.
698 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
699 (analyze_array): Renamed init_array_ref, move up initializations.
700 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
701 Removed arguments that are set to NULL.
702 (analyze_indirect_ref): Correct indentation, correct call to
704 (object_analysis): Call init_array_ref instead of analyze_array.
705 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
706 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
707 of DR_ACCESS_FNS_ADDR.
708 (init_omega_eq_with_af, omega_extract_distance_vectors,
709 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
710 ddr_consistent_p): New.
711 (compute_affine_dependence): Check consistency of ddrs when
712 flag_check_data_deps is passed.
713 (analyze_all_data_dependences): Uncomment.
714 (tree_check_data_deps): New.
715 * tree-data-ref.h: Include omega.h.
716 (DR_ACCESS_FNS_ADDR): Removed.
717 (data_dependence_relation): Add inner_loop.
718 (DDR_INNER_LOOP): New.
719 * common.opt (fcheck-data-deps): New.
720 * tree-flow.h (tree_check_data_deps): Declare.
721 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
722 (OBJS-common): Depend on omega.o.
724 * passes.c (pass_check_data_deps): Scheduled.
725 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
726 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
727 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
728 PARAM_VECT_MAX_VERSION_CHECKS,
729 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
731 2007-03-09 Richard Guenther <rguenther@suse.de>
733 PR tree-optimization/30904
735 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
736 the same way as *_DIV_EXPR.
738 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
740 * recog.c (decode_asm_operands): No mixed declarations and code.
742 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
744 * rtl.def (ASM_INPUT): Add location.
745 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
746 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
747 (decode_asm_operands): Add loc operand.
748 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
749 * stmt.c (expand_asm): Rename to...
750 (expand_asm_loc): ... this. Add locus argument. Pass it on to
751 gen_rtx_ASM_INPUT_loc.
752 (expand_asm_expr): Adjust.
753 * recog.c (decode_asm_operands): Add loc operand.
754 (check_asm_operands, extract_insn): Adjust.
755 * reload1.c (maybe_fix_stack_asms): Likewise.
756 * final.c (asm_insn_count): Likewise.
757 (final_scan_insn): Output # line before and after asm.
759 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
761 * tree-ssa-structalias.c (variable_info): Remove
763 (new_var_info): Ditto.
764 (shared_bitmap_info_t): New structure.
765 (shared_bitmap_table): New variable.
766 (shared_bitmap_hash): New function.
767 (shared_bitmap_eq): Ditto
768 (shared_bitmap_lookup): Ditto.
769 (shared_bitmap_add): Ditto.
770 (merge_smts_into): Change to take bitmap directly.
771 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
772 (init_alias_vars): Init shared bitmap hashtable.
773 (delete_points_to_sets): Delete shared bitmap hashtable.
774 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
775 is_aliased removal as a change that was still necessary was
778 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
780 * config/i386/i386.h (override_options): Conditionally disable
781 x86_sahf for 64bit targets only.
783 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
786 * c-decl.c (merge_decls): Don't call make_var_volatile.
787 * varasm.c (make_var_volatile): Remove.
788 * output.h (make_var_volatile): Remove.
790 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
792 PR tree-optimization/31085
793 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
795 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
797 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
798 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
799 ATTR_CONST_NOTHROW_LIST.
801 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
804 2007-03-08 Diego Novillo <dnovillo@redhat.com>
806 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
808 2007-03-08 Geoffrey Keating <geoffk@apple.com>
811 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
813 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
814 passed, use shared libgcc.
816 2007-03-08 Roger Sayle <roger@eyesopen.com>
818 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
819 instead of calling build2 with a GIMPLE_MODIFY_STMT.
820 (honor_protect_cleanup_actions, lower_try_finally_switch):
822 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
823 ifc_temp_var): Likewise.
824 * tree-inline.c (setup_one_parameter): Likewise.
825 * tree-mudflap.c (mf_decl_cache_locals,
826 mf_build_check_statement_for): Likewise.
827 * tree-nested.c (init_tmp_var, save_tmp_var,
828 finalize_nesting_tree_1): Likewise.
829 * tree-outof-ssa.c (insert_copy_on_edge,
830 insert_backedge_copies): Likewise.
831 * tree-profile.c (tree_gen_edge_profiler,
832 tree_gen_ic_profiler): Likewise.
833 * tree-scalar-evolution.c (scev_const_prop): Likewise.
834 * tree-sra.c (sra_build_assignment): Likewise.
835 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
836 * tree-ssa-math-opts.c (insert_reciprocals,
837 execute_cse_sincos_1): Likewise.
838 * tree-tailcall.c (adjust_accumulator_values,
839 adjust_return_value): Likewise.
840 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
841 * tree-vect-transform.c (vect_create_data_ref_ptr,
842 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
843 vect_create_epilog_for_reduction, vectorizable_reduction,
844 vectorizable_call, vectorizable_conversion,
845 vectorizable_assignment, vectorizable_operation,
846 vectorizable_type_demotion, vect_gen_widened_results_half,
847 vect_permute_store_chain, vectorizable_store,
848 vect_setup_realignment, vect_permute_load_chain,
849 vectorizable_load, vectorizable_condition,
850 vect_create_cond_for_align_checks): Likewise.
851 * tree-vrp.c (build_assert_expr_for): Likewise.
853 2007-03-08 Ian Lance Taylor <iant@google.com>
855 * tree-vrp.c: Include "intl.h".
856 (usable_range_p): New static function.
857 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
858 overflowed values, juts set *strict_overflow_p.
859 (compare_values): Only return -2 if one of the operands is not a
861 (compare_ranges): Call usable_range_p.
862 (compare_range_with_value): Likewise.
863 (vrp_evaluate_conditional_warnv): Rename from
864 vrp_evaluate_conditional. Make static. Change all callers.
865 (vrp_evaluate_conditional): New function.
866 (simplify_div_or_mod_using_ranges): Issue warning about reliance
868 (simplify_abs_using_ranges): Likewise.
869 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
870 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
871 within_stmt parameter.
872 * tree-ssa-propagate.c (fold_predicate_in): Update call to
873 vrp_evaluate_conditional.
874 * tree-ssa-threadedge.c
875 (record_temporary_equivalences_from_stmts_at_dest): Change
876 simplify parameter to take a second tree parameter.
877 (simplify_control_stmt_condition): Likewise.
878 (thread_across_edge): Likewise.
879 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
880 (thread_across_edge): Likewise.
881 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
883 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
885 * config/i386/i386.h (TARGET_SAHF): New define.
886 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
887 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
888 (x86_sahf): New global variable.
889 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
890 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
891 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
892 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
894 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
895 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
896 when expanding fcomi/sahf based tests.
897 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
898 expanding sahf based alternative. Emit sahf based sequence when
899 optimizing for code size.
900 * config/i386/i386.md (x86_sahf_1): Do not disable for
901 TARGET_64BIT, enable for TARGET_SAHF.
903 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
905 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
906 spurious whitespace from error message.
908 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
911 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
913 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
915 * c-decl.c (grokdeclarator): Disable warnings for anonymous
917 * tree-sra.c (instantiate_element): Propagate disabled warnings
918 from the element itself to the created variable.
920 2007-03-07 Richard Henderson <rth@redhat.com>
923 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
924 silently fix up the stack in the case of a missing register.
926 2007-03-07 Paul Brook <paul@codesourcery.com>
928 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
930 2007-03-07 Joseph Myers <joseph@codesourcery.com>
932 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
934 (phase1_vrs): Use them.
935 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
936 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
937 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
938 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
939 __gnu_Unwind_Restore_WMMXC if required.
940 (_Unwind_VRS_Pop): Implement iWMMXt support.
941 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
942 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
943 gnu_Unwind_Save_WMMXC): Define.
945 2007-03-07 Richard Sandiford <richard@codesourcery.com>
947 * config/vxworks.h (vxworks_override_options): Declare.
948 (VXWORKS_OVERRIDE_OPTIONS): Use it.
949 * config/vxworks.c: Include target.h and toplev.h.
950 (vxworks_override_options): New function.
951 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
953 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
955 * config/s390/s390.c (override_options): Don't emit an error when
956 -mstack-size is used without providing -mstack-guard.
957 (s390_emit_prologue): Choose stack_guard value automatically if not
958 provided via command line.
959 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
961 2007-03-07 Richard Sandiford <richard@codesourcery.com>
963 * config/i386/i386.c (output_set_got): Add a GOT initialization
964 sequence for VxWorks PIC.
965 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
966 around labels as well as symbols. Use gotoff_operand instead
967 of local_symbolic_operand.
968 (legitimize_pic_address): Use gotoff_operand instead of
969 local_symbolic_operand. Use @GOT accesses for labels as
971 (ix86_output_addr_diff_elt): Use PC-relative rather than
972 GP-relative offsets for VxWorks PIC.
973 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
974 no_new_pseudos. Check whether the returned register is op0.
975 * config/i386/i386.md (tablejump): Use PC-relative rather than
976 GP-relative offsets for VxWorks PIC.
977 * config/i386/predicates.md (gotoff_operand): New predicate.
979 2007-03-06 Richard Sandiford <richard@codesourcery.com>
981 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
983 * config/vxworks-dummy.h: New file.
984 * config/i386/i386.h: Include it.
986 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
988 * dwarf2out.c (is_inlined_entry_point): New
989 (add_high_low_attributes): Emit DW_AT_entry_pc along with
990 DW_AT_ranges if the first subblock is the entry point.
992 2007-03-06 David Daney <ddaney@avtrex.com>
994 * doc/install.texi (mips-*-*): Change recommended binutils
997 2007-03-06 Anatoly Sokolov <aesok@post.ru>
999 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
1000 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
1002 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1003 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1005 2007-03-06 Jan Hubicka <jh@suse.cz>
1007 * errors.h (warning, error, fatal, internal_error): Mark as cold.
1008 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
1010 (probably_cold_bb_p): Cold functions are cold.
1011 (probably_never_executed_bb_p): Cold functions are cold.
1012 (tree_bb_level_predictions): Predict calls to cold functions as not
1014 (compute_function_frequency): Check hot/cold attributes.
1015 * function.h (function_frequency): Update comments.
1016 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
1017 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
1018 (c_common_att): Add cold and hot.
1020 * doc/extend.texi (hot,cold attributes): Document.
1022 2007-03-06 Andrew Haley <aph@redhat.com>
1024 * function.c (expand_function_end): Move blockage to just after we
1025 emit the label for the naked return from the function.
1027 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1029 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
1032 2007-03-06 Jan Hubicka <jh@suse.cz>
1034 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
1035 loaded for constant large models. Non-large 64bit PIC can do.
1036 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
1037 * cmodel.h: Add LARGE PIC.
1038 * i386.md (UNSPEC_PLTOFF): New.
1039 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
1041 (*call_1_rex64): Disable for large models.
1042 (*call_1_rex64_large): New.
1043 (*call_value_1_rex64): Disable for large models.
1044 (*call_value_1_rex64_large): New.
1045 (set_rip_rex4): New.
1046 (set_got_offset_rex64): New.
1047 * predicates.md (constant_call_address_operand): For large model
1048 constant calls are not possible.
1049 * i386-protos.h (construct_plt_address): Declare.
1050 * i386.c (override_options): Accept large models.
1051 (ix86_expand_prologue): Expand large PIC GOT pointer load.
1052 (legitimate_constant_p): Add new UNSPECs.
1053 (legitimate_pic_operand_p): Likewise.
1054 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
1055 (legitimize_pic_address): Do easy RIP relative way for TLS only for
1057 (output_pic_addr_const): Add PLTOFF.
1058 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
1059 (ix86_expand_move): Legitimize pic address when in PIC mode.
1060 (construct_plt_address): New function.
1061 (ix86_expand_call): Offload the address to register and use GOT pointer
1063 * invoke.texi (mcmodel=large): Update documentation.
1065 2007-03-06 Richard Henderson <rth@redhat.com>
1067 * config/i386/i386.c (x86_use_leave, x86_push_memory,
1068 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
1069 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
1070 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
1071 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
1072 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
1073 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
1074 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
1075 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
1076 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
1077 x86_partial_reg_dependency, x86_memory_mismatch_stall,
1078 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
1079 x86_sse_partial_reg_dependency, x86_sse_split_regs,
1080 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
1081 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
1082 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
1083 x86_schedule, x86_use_bt, x86_pad_returns,
1084 x86_use_xchgb): Merge into ...
1085 (ix86_tune_features): ... here. New array.
1086 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1087 x86_bswap): Merge into ...
1088 (ix86_arch_features): ... here. New array.
1089 (x86_3dnow_a): Remove.
1090 (x86_accumulate_outgoing_args): Make static.
1091 (x86_arch_always_fancy_math_387): Make static.
1092 (ix86_tune_mask, ix86_arch_mask): Move ...
1093 (override_options): ... to local variables here. Apply the
1094 appropriate mask to each element of ix86_arch_features and
1095 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
1096 as were done in the old macros.
1097 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
1098 * config/i386/i386.h (x86_use_leave, x86_push_memory,
1099 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
1100 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
1101 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
1102 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
1103 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
1104 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
1105 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
1106 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
1107 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
1108 x86_partial_reg_dependency, x86_memory_mismatch_stall,
1109 x86_accumulate_outgoing_args, x86_prologue_using_move,
1110 x86_epilogue_using_move, x86_decompose_lea,
1111 x86_arch_always_fancy_math_387, x86_shift1,
1112 x86_sse_partial_reg_dependency, x86_sse_split_regs,
1113 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
1114 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
1115 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1116 x86_use_incdec, x86_pad_returns, x86_bswap,
1117 x86_partial_flag_reg_stall): Remove.
1118 (enum ix86_tune_indices): New.
1119 (ix86_tune_features): New.
1120 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
1121 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
1122 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
1123 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
1124 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
1125 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
1126 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
1127 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
1128 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
1129 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
1130 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
1131 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
1132 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
1133 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
1134 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
1135 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
1136 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
1137 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
1138 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
1139 TARGET_EXT_80387_CONSTANTS): Use it.
1140 (enum ix86_arch_indices): New.
1141 (ix86_arch_features): New.
1142 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
1143 TARGET_BSWAP): Use it.
1144 (ix86_tune_mask, ix86_arch_mask): Remove.
1146 2007-03-06 Joseph Myers <joseph@codesourcery.com>
1149 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
1150 Define using $${sysroot_headers_suffix}.
1151 * configure: Regenerate.
1152 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
1153 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
1155 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
1156 * gcc.c (print_sysroot_headers_suffix): New.
1157 (option_map): Include --print-sysroot-headers-suffix.
1158 (display_help): Mention -print-sysroot-headers-suffix.
1159 (process_command): Handle -print-sysroot-headers-suffix.
1160 (do_spec_1): Append multilib directory to include-fixed path if
1161 sysroot suffixes in use.
1162 (main): Handle -print-sysroot-headers-suffix.
1163 * Makefile.in (start.encap): Don't depend on xlimits.h
1164 (xlimits.h): Remove.
1165 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
1166 limits.h for each multilib in fixinc_list.
1167 (fixinc_list, s-fixinc_list): New.
1168 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
1169 generate them for each multilib in fixinc_list.
1170 (stmp-fixproto): Use include-fixed. Run fixproto for each
1171 multilib in fixinc_list.
1172 (mostlyclean): Don't remove xlimits.h.
1173 (clean): Remove include-fixed.
1174 (real-install-headers-tar, real-install-headers-cpio,
1175 real-install-headers-cp): Don't copy include, only include-fixed.
1176 (install-mkheaders): Depend on fixinc_list. Don't depend on
1177 xlimits.h. Save limits.h files for each multilib in fixinc_list.
1178 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
1179 SYSTEM_HEADER_DIR setting in mkheaders.conf.
1181 2007-03-06 Jan Hubicka <jh@suse.cz>
1183 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
1186 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1188 * configure.ac: Allow tm_file to contain build-directory files.
1189 * configure: Regenerate.
1190 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
1191 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
1192 * config/m68k/print-sysroot-suffix.sh: New file.
1194 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1196 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
1197 of pic_offset_table_rtx if reload_completed.
1198 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
1199 PIC_OFFSET_TABLE_REGNUM.
1200 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
1202 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
1203 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
1205 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1207 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1208 functions that call eh_return.
1210 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1212 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1213 functions that need a constant pool.
1215 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1218 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
1219 (m68k_preferred_reload_class): Likewise.
1220 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
1221 (SECONDARY_RELOAD_CLASS): Define.
1222 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
1223 (LIMIT_RELOAD_CLASS): Delete.
1224 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
1225 registers from storing bytes.
1226 (m68k_secondary_reload_class): New function.
1227 (m68k_preferred_reload_class): Likewise.
1229 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1231 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
1233 (m68k_expand_prologue): Likewise.
1235 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1237 * config/m68k/m68k-protos.h (output_sibcall): Declare.
1238 (mips_expand_epilogue): Add a bool parameter.
1239 (m68k_legitimize_sibcall_address): Declare.
1240 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1241 (m68k_expand_epilogue): Add a parameter to select between sibling
1242 and normal epilogues. Only generate a return for the latter.
1243 (m68k_ok_for_sibcall_p): New function.
1244 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
1245 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
1246 (sibcall_value, *sibcall_value): Likewise.
1247 (*call, *call_value): Require !SIBLING_CALL_P.
1248 (epilogue): Update call to m68k_expand_epilogue.
1249 (sibcall_epilogue): New pattern.
1250 * config/m68k/predicates.md (const_call_operand): Say that this
1251 predicate applies to sibling calls too.
1252 (sibcall_operand): New predicate.
1254 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1256 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
1257 alternatives as movsi_cf.
1258 (movsf_cf_hard): Add commentary.
1260 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
1261 Richard Sandiford <richard@codesourcery.com>
1263 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
1264 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
1265 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
1266 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
1267 as being live on exit from an interrupt function.
1268 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
1269 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
1270 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
1271 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
1272 (m68k_interrupt_function_p): Globalize.
1273 (m68k_compute_frame_layout): Remove reverse mask code.
1274 (m68k_emit_movem, m68k_set_frame_related): New functions.
1275 (m68k_output_function_prologue): Delete in favor of...
1276 (m68k_expand_prologue): ...this new function.
1277 (m68k_output_function_epilogue): Delete in favor of...
1278 (m68k_expand_epilogue): ...this new function.
1279 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
1281 (print_operand): Handle %?.
1282 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
1283 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
1284 (prologue, epilogue): New patterns.
1285 (return): Turn into a define_expand.
1286 (*return): New pattern, derived from old "return" pattern. Use rte
1287 rather than rts for interrupt functions. Only use rtd if the pop
1289 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
1290 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
1291 (link, *link, unlink, *unlink, load_got): Likewise.
1293 2007-03-06 Richard Sandiford <richard@codesourcery.com>
1297 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
1298 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
1299 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
1300 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
1301 and m68k_matches_u_p.
1302 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
1303 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
1304 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
1305 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
1306 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
1307 (REG_STRICT_P): New macro.
1308 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
1309 PCREL_GENERAL_OPERAND_OK.
1310 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
1311 m68k_legitimate_base_reg_p.
1312 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
1313 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
1314 (PIC_CASE_VECTOR_ADDRESS): Update comment.
1315 * config/m68k/m68k.c (m68k_address): New structure.
1316 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
1317 (m68k_decompose_index, m68k_legitimate_constant_address_p)
1318 (m68k_jump_table_ref_p, m68k_decompose_address)
1319 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
1320 (m68k_matches_u_p): New functions.
1321 (print_operand_address): Rewrite to use m68k_decompose_index.
1323 2007-03-05 David Taylor <dtaylor@emc.com>
1325 * gcc.c: Correct copyright date in --version output.
1327 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1329 * pa.md: In unamed move patterns, disparge copies between general
1330 and floating point registers using '?' modifier. Don't include 'f'
1331 constraint for register preferences in DImode, SImode, HImode and
1332 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
1333 Remove constraints for copies between general and floating registers
1334 in soft-float DFmode pattern.
1335 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
1339 2007-03-05 Mike Stump <mrs@apple.com>
1341 * c-common.c (targetcm): Add.
1342 * c-opts.c (c_common_handle_option): Handle language specific
1344 * opts.c (handle_option): Verify language for target options, if
1346 * opth-gen.awk: Add CL_LANG_ALL.
1347 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
1348 (TARGETCM_INITIALIZER): Add.
1349 * target.h (struct gcc_targetcm): Add.
1351 * targhooks.c (default_handle_c_option): Add.
1352 * targhooks.h (default_handle_c_option): Add.
1353 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
1355 * config/darwin.opt (iframework): Add.
1356 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
1357 * config/darwin-c.c (handle_c_option): Add.
1358 (TARGET_HANDLE_C_OPTION): Add.
1360 * doc/invoke.texi (Darwin Options): Add -iframework.
1362 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1364 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
1367 2007-03-05 Ian Lance Taylor <iant@google.com>
1369 * c.opt (fgnu89-inline): New option.
1370 * c-opts.c (c_common_post_options): Set default value for
1372 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
1373 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
1375 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
1376 (grokdeclarator, start_function): Likewise.
1377 * c-cppbuiltin.c (c_cpp_builtins): Define either
1378 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
1379 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
1380 (C Dialect Options): Document -fgnu89-inline.
1381 * doc/extend.texi (Function Attributes): Explain what the
1382 gnu_inline attribute does.
1383 * doc/cpp.texi (Common Predefined Macros): Document
1384 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
1386 2007-03-05 Ian Lance Taylor <iant@google.com>
1388 PR tree-optimization/31034
1389 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
1390 half-range if the other side is an overflow infinity.
1392 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
1394 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
1395 (bfin*-linux-uclibc*): New configuration.
1396 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
1398 * config/bfin/linux.h: New file.
1399 * config/bfin/libgcc-bfin.ver: New file.
1400 * config/bfin/t-bfin-uclinux: New file.
1401 * config/bfin/t-bfin-linux: New file.
1402 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
1403 (TARGET_OS_CPP_BUILTINS): New macro.
1405 2007-03-05 Richard Guenther <rguenther@suse.de>
1407 * fold-const.c (fold_binary): Remove duplicate folding
1408 of comparison of non-null ADDR_EXPR against null.
1410 2007-03-05 Richard Guenther <rguenther@suse.de>
1411 Dorit Nuzman <dorit@il.ibm.com>
1413 PR tree-optimization/26420
1414 * tree-vectorizer.c (vectorize_loops): Bail out early if there
1415 are no loops in the function. Only print the number of
1416 vectorized loops if it is greater than zero or we are supposed
1417 to print information about unvectorized loops.
1419 2007-03-05 Revital Eres <eres@il.ibm.com>
1421 * gcc.dg/var-expand1.c: New test.
1422 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
1423 when an accumulator is expanded.
1425 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1428 * c-common.c (convert_and_check): Don't give warnings for
1429 conversion if 'expr' already overflowed.
1431 2007-03-04 Roger Sayle <roger@eyesopen.com>
1434 * fold-const.c (fold_comparison): Enforce type consistency when
1435 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
1437 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
1439 * tree-ssa-address.c (create_mem_ref): Do not put an expression
1440 containing a cast to the base of TARGET_MEM_REF.
1442 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
1444 * tree.c (tree_contains_struct_check_failed): Remove spurious
1445 whitespace from error message.
1447 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1450 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
1451 instead of precision.
1453 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
1454 Nathan Sidwell <nathan@codesourcery.com>
1456 * emit-rtl.c (find_auto_inc): New.
1457 (try_split): recreate REG_INC notes,
1458 Use regular for loops rather than whiles.
1460 2007-03-03 Andreas Schwab <schwab@suse.de>
1462 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1463 * configure: Regenerate.
1465 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1467 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1468 flag_rounding_math, not flag_unsafe_math_optimizations.
1470 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1472 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1473 alpha_fold_vector_minmax): Likewise.
1474 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1475 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1477 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1479 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1480 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1481 if the lhs has side-effects.
1482 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1484 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1486 * config/i386/i386.h (TUNEMASK): Remove define.
1487 (ARCHMASK): Remove define.
1488 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1489 Use ix86_arch_mask variable instead of ARCHMASK.
1490 * config/i386/i386.c (override_options): Ditto.
1491 (standard_80387_constant_p): Ditto.
1493 2007-03-02 Ian Lance Taylor <iant@google.com>
1495 Used signed infinities in VRP.
1496 * tree-vrp.c (uses_overflow_infinity): New static function.
1497 (supports_overflow_infinity): New static function.
1498 (make_overflow_infinity): New static function.
1499 (negative_overflow_infinity): New static function.
1500 (positive_overflow_infinity): New static function.
1501 (is_negative_overflow_infinity): New static function.
1502 (is_positive_overflow_infinity): New static function.
1503 (is_overflow_infinity): New static function.
1504 (overflow_infinity_range_p): New static function.
1505 (compare_values_warnv): New function split out of compare_values.
1506 (compare_value): Call it.
1507 (set_value_range_to_nonnegative): Add overflow_infinity
1508 parameter. Change caller.
1509 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1511 (vrp_expr_computes_nonzero): Likewise.
1512 (compare_ranges, compare_range_with_value): Likewise.
1513 (compare_name_with_value, compare_names): Likewise.
1514 (vrp_evaluate_conditional): Likewise.
1515 (set_value_range): Handle infinity
1516 (vrp_operand_equal_p, operand_less_p): Likewise.
1517 (extract_range_from_assert): Likewise.
1518 (vrp_int_const_binop): Likewise.
1519 (extract_range_from_binary_expr): Likewise.
1520 (extract_range_from_unary_expr): Likewise.
1521 (extract_range_from_comparison): Likewise.
1522 (extract_range_from_expr): Likewise.
1523 (dump_value_range): Likewise.
1524 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1525 (test_for_singularity): Likewise.
1526 (vrp_int_const_binop): Remove inline qualifier.
1527 (adjust_range_with_scev): Add comment.
1528 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1530 2007-03-02 Diego Novillo <dnovillo@redhat.com>
1532 * tree-ssa-structalias.c (could_have_pointers): Tidy.
1533 (get_constraint_for): Likewise.
1534 (do_structure_copy): Likewise.
1535 (find_func_aliases): Fix references to MODIFY_EXPR.
1536 (intra_create_variable_infos): Tidy.
1537 * tree-ssa-operands.c (add_virtual_operand): Add argument
1539 When adding members of alias sets, if IS_CALL_SITE is true and
1540 the symbol is not call-clobbered, skip it.
1543 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
1545 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1546 entry by means of emit_insn_at_entry.
1548 2007-03-02 Richard Henderson <rth@redhat.com>
1550 * expr.h (promoted_input_arg): Remove decl.
1551 * function.c (promoted_input_arg): Merge into ...
1552 * combine.c (setup_incoming_promotions): ... only caller.
1553 Rearrange to avoid double loop.
1555 2007-03-02 Ben Elliston <bje@au.ibm.com>
1556 Peter Bergner <bergner@vnet.ibm.com>
1557 Janis Johnson <janis187@us.ibm.com>
1559 * config/rs6000/dfp.md: New file.
1560 * config/rs6000/rs6000.md: Include dfp.md.
1561 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1562 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1563 and TDmode decimal float modes in FP registers.
1564 (num_insns_constant): Likewise.
1565 (rs6000_legitimate_offset_address_p): Likewise.
1566 (rs6000_legitimize_address): Likewise.
1567 (rs6000_legitimize_reload_address): Likewise.
1568 (rs6000_legitimate_address): Likewise.
1569 (rs6000_emit_move): Likewise.
1570 (function_arg_boundary): Likewise.
1571 (function_arg_advance): Likewise.
1572 (rs6000_darwin64_record_arg_recurse): Likewise.
1573 (function_arg): Likewise.
1574 (rs6000_gimplify_va_arg): Likewise.
1575 (rs6000_split_multireg_move): Likewise.
1576 (rs6000_output_function_epilogue): Likewise.
1577 (rs6000_output_function_epilogue): Likewise.
1578 (rs6000_register_move_cost): Likewise.
1579 (rs6000_function_value): Likewise.
1580 (rs6000_libcall_value): Likewise.
1582 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1584 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1586 2007-03-02 Richard Sandiford <richard@codesourcery.com>
1588 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1589 Use $MULTIDIR to choose between the kernel and RTP headers,
1590 and use $WIND_BASE and $WIND_USR to locate them.
1592 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1594 * config/i386/i386.c (override_options): Put initialization of
1595 ix86_tune_mask and ix86_arch_mask to the correct place.
1597 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
1598 Michael Meissner <michael.meissner@amd.com>
1601 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1603 (TARGET_CMOVE): Use ARCHMASK.
1604 (TARGET_CMPXCHG): Ditto.
1605 (TARGET_CMPXCHG8B): Ditto.
1606 (TARGET_XADD): Ditto.
1607 (TARGET_BSWAP): Ditto.
1608 * config/i386/i386.c (ix86_tune_mask): New global variable.
1609 (ix86_arch_mask): Ditto.
1610 (override_options): Initialize ix86_tune_mask and
1611 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1614 2007-03-02 Ben Elliston <bje@au.ibm.com>
1617 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1619 2007-03-02 Joseph Myers <joseph@codesourcery.com>
1621 * target.h (init_dwarf_reg_sizes_extra): New target hook.
1622 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1623 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1624 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1626 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1627 rs6000_init_dwarf_reg_sizes_extra): New.
1628 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1629 SPE register high parts.
1631 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1633 * Makefile.in: Add install-pdf target as
1634 copied from automake v1.10 rules.
1635 * configure.ac: Add install-pdf to target list.
1636 * configure: Regenerate.
1638 2007-03-01 Paul Brook <paul@codesourcery.com>
1640 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1641 modes to LDRD for DImode.
1642 (output_move_double): Fixup out of range ldrd/strd.
1643 (vfp_secondary_reload_class): Rename...
1644 (coproc_secondary_reload_class): ... to this. Add wb argument.
1645 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1646 coproc_secondary_reload_class for CLASS_IWMMXT.
1647 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1648 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1650 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
1652 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
1653 factor by the estimated number of iterations.
1654 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1657 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1658 decode_caches_intel, detect_caches_intel): New functions.
1659 (host_detect_local_cpu): Use detect_caches_amd and
1660 detect_caches_intel.
1662 2007-03-01 Richard Henderson <rth@redhat.com>
1664 * expr.c (emit_move_complex_push): Export.
1665 (emit_move_complex_parts): Split out from ...
1666 (emit_move_complex): ... here.
1667 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1668 * config/i386/i386.md (movcdi): New.
1670 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
1672 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1673 size of mode1 to check for tieable modes in MMX case.
1675 2007-03-01 Richard Sandiford <richard@codesourcery.com>
1677 * Makefile.in (rtlanal.o): Depend on tree.h.
1678 * rtl.h (offset_within_section_p, split_const): Declare.
1679 * rtlanal.c: Include tree.h.
1680 (offset_within_block_p): New function, taken from
1681 mips_offset_within_object_p.
1682 (split_const): New function, taken from mips_split_const.
1683 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1685 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1686 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1687 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1688 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1689 (m68k_illegitimate_symbolic_constant_p): New function.
1690 * config/m68k/m68k.md (movsi): Remove misleading predicates.
1691 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1692 symbolic constant that might be outside the symbol's section,
1693 move the symbol first and then add the offset.
1694 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1696 * config/mips/mips.c (mips_split_const): Delete.
1697 (mips_offset_within_object_p): Delete.
1698 (mips_symbolic_constant_p): Use offset_within_section_p and
1699 split_const instead of mips_offset_within_object_p and
1701 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1702 (mips_legitimize_const_move, print_operand_reloc)
1703 (mips_dangerous_for_la25_p): Use split_const instead of
1706 2007-02-28 Eric Christopher <echristo@apple.com>
1708 * Makefile.in (install-include-dir): Don't rm -rf include.
1710 2007-02-28 Richard Guenther <rguenther@suse.de>
1713 * fold-const.c (fold_binary): Do not associate expressions
1714 with more than one variable for integer types that do not wrap.
1716 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
1718 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1719 Delete, and replace with...
1720 (fold_builtin_call_array): This. Update callers to use it.
1721 * fold-const.c (fold_build_call_list): Delete, and replace with...
1722 (fold_build_call_array): This.
1723 (fold_build_call_list_initializer): Delete, and replace with...
1724 (fold_build_call_array_initializer): This.
1725 * tree.h: Update declarations to reflect above changes.
1727 * c-typeck.c (build_function_call): Store converted arguments
1728 in a stack-allocated array instead of building a list.
1729 (convert_arguments): Store arguments in the array passed in as an
1730 argument, and return the actual number of arguments.
1731 * c-format.c: (check_function_format): Pass arguments in an
1732 array instead of a list.
1733 * c-common.c (check_function_nonnull): Likewise.
1734 (check_function_sentinel): Likewise.
1735 (check_function_arguments): Likewise.
1736 * c-common.h: Update declarations to reflect above changes.
1738 2007-02-28 Jan Hubicka <jh@suse.cz>
1740 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1741 PRED_NEGATIVE_RETURN): Update outcomes.
1743 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
1745 * calls.c (emit_library_call_value_1): Handle partial registers
1746 correctly when building up CALL_INSN_FUNCTION_USAGE.
1748 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1750 * pa/predicates.md (move_src_operand): Allow zero for mode.
1751 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1754 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
1757 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1758 *movv2df_internal): Enable pattern only for valid operand
1760 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1761 tie only 128bit modes. For MMX registers, tie only 64bit modes.
1763 2007-02-27 Mike Stump <mrs@apple.com>
1765 * config/darwin-crt3.c: Avoid compilation when compiling for a
1768 2007-02-27 Joseph Myers <joseph@codesourcery.com>
1770 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1772 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1773 for fixed headers and limits.h.
1774 (install-include-dir, install-headers-tar, install-headers-cpio,
1775 install-headers-cp, real-install-headers-tar,
1776 real-install-headers-cpio, real-install-headers-cp): Handle
1777 include-fixed as well as include.
1778 (install-mkheaders): Don't install files that go only in include
1780 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1781 from GCC_INCLUDE_DIR.
1782 * gcc.c (process_command): Remove special -BstageN/ handling.
1783 (do_spec_1): Add include-fixed directories.
1785 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1787 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1789 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1791 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1794 2007-02-27 Mark Mitchell <mark@codesourcery.com>
1796 * c-common.c (get_priority): Add check for
1797 SUPPORTS_INIT_PRIORITY.
1799 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1801 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1803 * config/bfin/bfin.c: Include "cfglayout.h".
1804 (MAX_LSETUP_DISTANCE): New macro.
1805 (struct loop_info): New members incoming, incoming_src and
1806 incoming_dest. Delete member predecessor.
1807 (length_for_loop): New function.
1808 (bfin_optimize_loop): Handle more different loop structures.
1809 (bfin_discover_loop): Rework detection of predecessor blocks by
1810 examining incoming edges.
1811 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1813 (bfin_reorder_loops): New function.
1814 (bfin_reorg_loops): Use these three new functions.
1816 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1817 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1818 (CONSTRAINT_LEN): Add entry for 'q'.
1819 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1820 Add 'q' constraints.
1821 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1822 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1824 * config/bfin/bfin.md (add_with_carry): New pattern.
1825 (s_or_u, su_optab, su_modifier): New code macros/attrs.
1826 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1827 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1828 support unsigned multiplies too. Removed incorrect commutativity from
1829 operand 1 constraint where appropriate.
1830 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1832 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1833 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1835 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1836 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1837 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1838 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1839 usmulhisi_hh_huh): New patterns.
1841 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1842 lshifthi3): Fix output template to use half reg for operand 2.
1844 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1847 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1849 2007-02-27 Andreas Schwab <schwab@suse.de>
1851 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1853 2007-02-27 Jan Hubicka <jh@suse.cz>
1855 * predict.c (last_basic_block_p): Remove.
1856 (tree_estimate_probability): Update return heuristic for commonized
1859 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1861 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1863 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
1865 * doc/include/gcc-common.texi (versionsubtitle): New macro.
1866 * doc/cpp.texi: Standardize title page.
1867 * doc/cppinternals.texi: Likewise.
1868 * doc/gcc.texi: Standardize title page, remove version number
1869 from copyright page.
1870 * doc/gccint.texi: Likewise.
1871 * doc/install.texi: Standardize title page, add table of
1874 2007-02-26 Jan Hubicka <jh@suse.cz>
1876 * predict.def: Set outcomes according to more recent results.
1877 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1878 Remove dead predictors.
1879 * predict.c (return_prediction): Fix pasto.
1881 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
1883 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1884 change; avoid a memory leak when returning early.
1886 2007-02-26 Mark Mitchell <mark@codesourcery.com>
1888 * c-decl.c (static_ctors): Move to c-common.c.
1889 (static_dtors): Likewise.
1890 (finish_function): Use c_record_cdtor_fn.
1891 (build_cdtor): Move to c-common.c.
1892 (c_write_global_declarations): Use c_build_cdtor_fns.
1893 * c-common.h (static_ctors): Declare.
1894 (static_dtors): Likewise.
1895 (c_record_cdtor_fn): Likewise.
1896 (c_build_cdtor_fns): Likewise.
1897 * c-common.c (static_ctors): New variable.
1898 (static_dtors): Likewise.
1899 (c_record_cdtor_fn): New function.
1900 (build_cdtor): Move from c-decl.c
1901 (c_build_cdtor_fns): New function.
1903 * output.h (assemble_addr_to_section): Declare.
1904 (get_cdtor_priority_section): Likewise.
1905 * varasm.c (assemble_addr_to_section): New function.
1906 (get_cdtor_priority_section): Likewise.
1907 (default_named_section_asm_out_destructor): Use them.
1908 (destor_dtor_section_asm_out_destructor): Likewise.
1909 (default_named_section_asm_out_constructor): Likewise.
1910 (default_ctor_section_asm_out_constructor): Likewise.
1911 * config.gcc (*-*-vxworks*): Include vxworks.o.
1912 * config/t-vxworks (vxworks.o): New target.
1913 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1914 (TARGET_ASM_CONSTRUCTOR): Define.
1915 (TARGET_ASM_DESTRUCTOR): Likewise.
1916 (vxworks_asm_out_constructor): Declare.
1917 (vxworks_asm_out_destructor): Likewise.
1919 * c-common.c (get_priority): Check that we have not just an
1920 INTEGER_CST, but an integer constant with integeral type.
1922 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
1924 PR tree-optimization/30938
1925 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1926 use &dt[nargs-1] instead of &dt[nargs] in the call to
1927 vect_is_simple_use().
1929 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
1931 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1932 from register elimination as PRE_MODIFY / POST_MODIFY increments.
1933 Do not attempt to handle MEM inside auto-inc expressions.
1934 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1935 of a register modified by an auto-inc expression. However, do handle
1936 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1937 (elimination_effects): Prohibit elimination of a register modified
1938 by an auto-inc expression. Disable register elimination rules whose
1939 target register is modified by an auto-inc expression with variable
1942 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
1944 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1946 (array_at_struct_end_p): New function.
1947 (idx_infer_loop_bounds): Use it.
1948 (estimate_numbers_of_iterations_loop): Export.
1949 * predict.c (predict_loops): Use estimated_loop_iterations_int.
1950 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1951 (tree_estimate_probability): Call record_loop_exits.
1952 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1953 (estimated_loop_iterations, estimated_loop_iterations_int,
1954 estimated_loop_iterations_tree): New functions.
1955 (analyze_siv_subscript_cst_affine,
1956 compute_overlap_steps_for_affine_1_2,
1957 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1958 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1959 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1960 (PRED_LOOP_ITERATIONS_GUESSED): New.
1961 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1962 * cfgloop.h (estimate_numbers_of_iterations_loop,
1963 estimated_loop_iterations_int): Declare.
1965 2007-02-25 Mark Mitchell <mark@codesourcery.com>
1967 * doc/extend.texi: Document optional priority argument to
1968 constructors and destructors.
1969 * tree.c (init_priority_for_decl): Adjust GTY markers.
1970 (init_ttree): Use priority-info hash functions for
1971 init_priority_for_decl.
1972 (tree_map_eq): Rename to ...
1973 (tree_map_base_eq): ... this.
1974 (tree_map_marked_p): Rename to ...
1975 (tree_map_base_marked_p): ... this.
1976 (tree_map_base_hash): New function.
1977 (decl_init_priority_lookup): Rework.
1978 (decl_fini_priority_lookup): New function.
1979 (decl_priority_info): New function.
1980 (decl_init_priority_insert): Use it.
1981 (decl_fini_priority_insert): Likewise.
1982 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1984 (decl_restrict_base_insert): Likewise.
1985 (decl_debug_expr_insert): Likewise.
1986 (decl_value_expr_lookup): Likewise.
1987 (decl_value_expr_insert): Likewise.
1988 * tree.h (priority_type): New type.
1989 (decl_init_priority_lookup): Use priority_type.
1990 (decl_fini_priority_lookup): New function.
1991 (decl_init_priority_insert): Use priority_type.
1992 (decl_fini_priority_insert): New function.
1993 (DECL_HAS_INIT_PRIORITY): Tweak comments.
1994 (DECL_INIT_PRIORITY): Likewise.
1995 (SET_DECL_INIT_PRIORITY): Add comment.
1996 (DECL_FINI_PRIORITY): New macro.
1997 (SET_DECL_FINI_PRIORITY): Likewise.
1998 (DEFAULT_INIT_PRIORITY): Document.
1999 (MAX_INIT_PRIORITY): Likewise.
2000 (MAX_RESERVED_INIT_PRIORITY): Likewise.
2001 (tree_map_base): New type.
2002 (tree_map_base_eq): New function.
2003 (tree_map_base_hash): Likewise.
2004 (tree_map_base_marked_p): Likewise.
2005 (tree_map): Inherit from tree_map_base.
2006 (tree_map_eq): Make it a macro.
2007 (tree_map_marked_p): Likewise.
2008 (tree_int_map): Inherit from tree_map_base.
2009 (tree_int_map_eq): Make it a macro.
2010 (tree_int_map_hash): Likewise.
2011 (tree_int_map_marked_p): Likewise.
2012 (tree_priority_map): New type.
2013 (tree_priority_map_eq): New macro.
2014 (tree_priority_map_hash): Likewise.
2015 (tree_priority_map_marked_p): Likewise.
2016 * varasm.c (emults_decl): Adjust for refactoring of tree_map
2018 (emutls_common_1): Likewise.
2019 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2020 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
2021 of tree_map hierarchy.
2022 * tree-cfg.c (move_stmt_r): Likewise.
2023 (new_label_mapper): Likewise.
2024 * c-tree.h (c_expand_body): Move to ...
2025 * c-common.h (c_expand_body): ... here.
2026 * c-decl.c (c_expand_body): Move to ...
2027 * c-common.c (c_expand_body): ... here.
2028 (c_common_attribute_table): Allow 1 argument for the constructor
2029 and destructor attributes.
2030 (get_priority): New function.
2031 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
2032 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
2034 2007-02-24 Jan Hubicka <jh@suse.cz>
2037 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
2039 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
2040 Jan Hubicka <jh@suse.cz>
2043 * i386.c (counter_mode): New function.
2044 (expand_set_or_movmem_via_loop): Use it.
2045 (expand_movmem_epilogue): Likewise; fix pasto.
2046 (ix86_expand_movmem): Do emit guard even for constant counts.
2047 (ix86_expand_setmem): Likewise.
2049 2007-02-25 Nick Clifton <nickc@redhat.com>
2051 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
2052 (JUMP_TABLES_IN_TEXT_SECTION): Define.
2054 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
2057 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
2058 count argument with 0x10, not with 0x16.
2059 (expand_setmem_epilogue): Ditto.
2061 2007-02-24 Mike Stump <mrs@apple.com>
2063 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
2066 2007-02-24 Richard Guenther <rguenther@suse.de>
2069 * fold-const.c (fold_binary): Fold x +- CST op x for
2070 EQ_EXPR and NE_EXPR.
2072 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2074 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
2076 2007-02-24 Jan Hubicka <jh@suse.cz>
2078 * cgraphunit.c (decide_is_function_needed): Honor
2079 -fkeep-inline-functions.
2081 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2083 * builtins.c (fold_builtin_modf): New.
2084 (fold_builtin_2): Use it.
2086 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
2088 * loop-iv.c (implies_p): Detect additional cases where A implies B.
2089 (determine_max_iter): Take additional LOOP arg; all callers changed.
2090 Lose broken logic dealing with PLUS. Try to limit the upper bound by
2091 one using simplifications.
2092 (simplify_using_initial_values): Return if the expression becomes
2093 invalid due to altered regs.
2095 2007-02-23 DJ Delorie <dj@redhat.com>
2097 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
2099 2007-02-23 Mike Stump <mrs@apple.com>
2101 * tlink.c (scan_linker_output): Parse linker messages from
2102 darwin9's linker better.
2104 2007-02-23 Steve Ellcey <sje@cup.hp.com>
2107 * varpool.c (varpool_assemble_pending_decls): Set
2108 varpool_last_needed_node to null.
2110 2007-02-23 DJ Delorie <dj@redhat.com>
2112 * config/i386/i386.c (ix86_data_alignment): Don't specify an
2113 alignment bigger than the object file can handle.
2115 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
2118 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
2119 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
2120 (*movsf_1): Penalize MMX moves.
2122 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
2124 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
2125 2^32-1 or more times unless flag_unsafe_loop_optimizations.
2127 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
2129 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2131 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
2132 (fold_builtin_1): Use them.
2133 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2134 BUILT_IN_SIGNIFICAND.
2136 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
2138 * config/i386/i386.c (bdesc_1arg): Initialize
2139 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
2140 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
2141 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
2142 and IX86_BUILTIN_MOVSLDUP.
2144 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
2146 PR rtl-optimization/30841
2147 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
2149 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2151 * builtins.c (fold_builtin_frexp): New.
2152 (fold_builtin_2): Use it.
2154 2007-02-22 Mark Mitchell <mark@codesourcery.com>
2156 * doc/invoke.texi (Spec Files): Document getenv spec function.
2158 * gcc.c (getenv_spec_function): New function.
2159 (static_spec_functions): Add it.
2160 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
2161 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
2164 2007-02-22 Michael Matz <matz@suse.de
2167 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
2168 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
2170 2007-02-22 Ian Lance Taylor <iant@google.com>
2173 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
2174 (mem_loc_descriptor): Call it.
2176 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
2177 Ira Rosen <irar@il.ibm.com>
2179 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
2181 2007-02-22 Ira Rosen <irar@il.ibm.com>
2183 PR tree-optimization/30843
2184 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
2185 stores only after all the group is vectorized.
2187 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
2189 PR tree-optimization/30858
2190 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
2191 in the reduction cycle have a single use in the loop.
2192 * tree-vectorizer.h (relevant): Add documentation.
2194 2007-02-20 Mike Stump <mrs@apple.com>
2196 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
2197 * configure: Regenerate.
2199 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2201 Change the defaults of some parameters and options.
2202 * config/spu/spu-protos.h (spu_optimization_options): Declare.
2203 * config/spu/spu.c (spu_optimization_options): Add.
2204 (spu_override_options): Change params in spu_optimization_options.
2205 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
2207 Register 127 is only 16 byte aligned when used as a frame pointer.
2208 * config/spu/spu-protos.h (spu_init_expanders): Declare.
2209 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
2210 HARD_FRAME_POINTER_REGNUM.
2211 (spu_legitimate_address): Use regno_aligned_for_reload.
2212 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
2213 aligned when frame_pointer_needed is true.
2214 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
2216 * config/spu/spu.h (INIT_EXPANDERS): Define.
2218 Make sure shift and rotate instructions have valid immediate operands.
2219 * config/spu/predicates.md (spu_shift_operand): Remove.
2220 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
2221 * config/spu/constraints.md (W, O): Extend range.
2222 * config/spu/spu.md (umask, nmask): Define.
2223 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
2224 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
2225 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
2226 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
2227 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
2228 (lshr<mode>3_reg): Fix rtl description.
2230 Make sure mulhisi immediate operands are valid.
2231 * config/spu/predicates.md (imm_K_operand): Add.
2232 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
2234 Generate constants using fsmbi and andi.
2235 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
2236 (print_operand, spu_split_immediate, classify_immediate,
2237 fsmbi_const_p): Handle IC_FSMBI2.
2239 Correctly handle a CONST_VECTOR containing symbols.
2240 * config/spu/spu.c (print_operand): Handle HIGH correctly.
2241 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
2242 (immediate_load_p): Allow symbols that use 2 instructions to create.
2243 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
2244 with symbols when flag_pic is set.
2245 (const_vector_immediate_p): New.
2246 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
2247 accept a CONST_VECTOR with symbols.
2248 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
2249 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
2251 * config/spu/spu.md (high, low): Delete.
2252 (low_<mode>): Define.
2254 Remove INTRmode and INTR_REGNUM, which didn't work.
2255 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
2257 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
2258 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
2259 peephole2 pattern): Don't use INTR or 131.
2260 (movintrcc): Delete.
2261 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
2262 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
2263 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
2264 (UNSPEC_SET_INTR): Add.
2265 * config/spu/spu-modes.def (INTR): Remove.
2267 More accurate warnings about run-time relocations.
2268 * config/spu/spu.c (reloc_diagnostic): Test in_section.
2270 Correctly warn about immediate arguments to specific intrinsics.
2271 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
2272 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
2273 the instruction predicate.
2275 Fix tree check errors with latest update.
2276 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
2278 (spu_expand_builtin): Use CALL_EXPR_FN.
2280 Add missing specific intrinsics.
2281 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
2283 * config/spu/spu_internals.h: Ditto.
2285 Fix incorrect operand modifiers.
2286 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
2287 * config/spu/spu.md (xor<mode>3): Change %S to %J.
2289 Optimize one case of zero_extend of a vec_select.
2290 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
2292 Accept any immediate for hbr.
2293 * config/spu/spu.md (hbr): Change s constraints to i.
2295 2007-02-21 Paul Brook <paul@codesourcery.com>
2297 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
2298 condexec_count when skipping USE and CLOBBER.
2300 2007-02-21 Nick Clifton <nickc@redhat.com>
2302 * common.opt (Warray-bounds): Add Warning attribute.
2303 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
2305 (fsized-zeroes): Add Optimization attribute.
2306 (fsplit-wide-types, ftree-scev-cprop): Likewise.
2307 * c.opt (Wc++0x-compat): Add Warning attribute.
2309 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2312 * reload1.c (eliminate_regs_in_insn): In the single_set special
2313 case, attempt to re-recognize the insn before falling back to
2314 having reload fix it up.
2316 2007-02-20 Eric Christopher <echristo@gmail.com>
2318 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
2319 Rewrite accordingly.
2320 (frv_read_iacc_argument): Ditto.
2321 (frv_expand_set_builtin): Take a call instead of arglist, update for
2323 (frv_expand_unop_builtin): Ditto.
2324 (frv_expand_binop_builtin): Ditto.
2325 (frv_expand_cut_builtin): Ditto.
2326 (frv_expand_binopimm_builtin): Ditto.
2327 (frv_expand_voidbinop_builtin): Ditto.
2328 (frv_expand_int_void2arg): Ditto.
2329 (frv_expand_prefetches): Ditto.
2330 (frv_expand_voidtriop_builtin): Ditto.
2331 (frv_expand_voidaccop_builtin): Ditto.
2332 (frv_expand_load_builtin): Ditto.
2333 (frv_expand_store_builtin): Ditto.
2334 (frv_expand_mdpackh_builtin): Ditto.
2335 (frv_expand_mclracc_builtin): Ditto.
2336 (frv_expand_mrdacc_builtin): Ditto.
2337 (frv_expand_mwtacc_builtin): Ditto.
2338 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
2341 2007-02-20 Janis Johnson <janis187@us.ibm.com>
2343 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
2344 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
2346 (HAVE_GAS_DFP): Check for assembler support of decimal floating
2348 * configure: Regenerate.
2349 * config.in: Regenerate.
2350 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
2351 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
2352 masks to power6 and power6x and to POWERPC_MASKS.
2353 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2355 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
2356 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
2357 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2358 Access PROTOTYPE as variable, not mask.
2360 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
2362 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
2363 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
2364 * combine.c (adjust_for_new_dest): Use it.
2365 * postreload.c (reload_combine): Likewise.
2367 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
2369 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
2370 notes on an insn with multiple sets, even if single_set returns
2371 non-NULL for that insn.
2373 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2375 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
2378 2007-02-20 Geoffrey Keating <geoffk@apple.com>
2380 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
2381 if user didn't pass it.
2382 * config/i386/darwin.h (CC1_SPEC): Likewise.
2383 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
2384 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
2385 -mmacosx-version-min.
2387 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2388 Uros Bizjak <ubizjak@gmail.com>
2390 * optabs.h (enum optab_index): Add new OTI_scalb.
2391 (scalb_optab): Define corresponding macro.
2392 * optabs.c (init_optabs): Initialize scalb_optab.
2393 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
2395 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
2396 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
2397 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
2398 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
2399 flag_unsafe_math_optimizations is set.
2401 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
2402 to implement scalbf, scalb and scalbl built-ins as inline x87
2405 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2406 DJ Delorie <dj@redhat.com>
2409 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
2410 (diagnostic_report_diagnostic): ... here, and turn them into real
2411 errors. If warnings are inhibited, no need to do anything.
2413 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
2415 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
2416 better code generation.
2418 2007-02-20 Ben Elliston <bje@au.ibm.com>
2420 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
2422 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
2424 * config/alpha/alpha.c, config/alpha/alpha.md,
2425 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
2426 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
2427 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
2428 config/arm/lib1funcs.asm: Follow spelling conventions.
2430 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
2431 config/fr30/fr30.md, config/i386/i386.h,
2432 config/iq2000/iq2000.h, config/iq2000/predicates.md,
2433 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
2434 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2435 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
2436 config/rs6000/altivec.md, config/rs6000/rs6000.c,
2437 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
2438 config/sparc/sparc.c, config/sparc/sparc.h,
2439 config/sparc/sparc.md, config/spu/constraints.md,
2440 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
2443 2007-02-20 Alan Modra <amodra@bigpond.net.au>
2446 * varasm.c (use_blocks_for_decl_p): Return false for decls with
2449 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2451 * doc/invoke.texi (-ftree-lrs): Remove.
2453 2007-02-19 Diego Novillo <dnovillo@redhat.com>
2455 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2458 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
2460 * config/ia64/ia64.c (ia64_expand_builtin): Use the
2461 new CALL_EXPR_FN macro for retrieving the function
2462 declaration of the input expression.
2464 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2466 * c.opt (Waddress): New.
2467 * common.opt (Walways-true): Delete.
2468 (Wstring-literal-comparison): Delete.
2469 * doc/invoke.texi (Warning Options): Delete -Walways-true and
2470 -Wstring-literal-comparison. Add -Waddress.
2472 (Walways-true): Delete.
2473 (Wstring-literal-comparison): Delete.
2474 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2475 consistently instead of -Walways-true in example.
2476 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2477 * c-typeck.c (parser_build_binary_op): Replace
2478 -Wstring-literal-comparison and -Walways-true with -Waddress.
2479 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2482 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2484 * tree-cfg.c (dump_function_to_file): Be prepared for functions
2485 without DECL_STRUCT_FUNCTION initialized.
2487 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
2489 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2490 due to calls to functions taking pointers as parameters.
2492 2007-02-19 Richard Henderson <rth@redhat.com>
2495 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2498 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
2500 * config/s390/s390.c (s390_call_saved_register_used,
2501 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2502 accessed to the new scheme.
2504 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2506 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2507 (cris_print_index, cris_print_operand, cris_print_operand_address)
2508 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2509 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2510 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2512 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2513 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2514 GO_IF_LEGITIMATE_ADDRESS): Ditto.
2515 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2516 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2517 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2518 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2519 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2520 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2521 (uminsi3, call, call_value): Ditto.
2522 (define_split: indir_to_reg_split, unnamed): Ditto.
2524 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
2526 PR tree-optimization/30975
2527 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2530 2007-02-18 Eric Christopher <echristo@gmail.com>
2532 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2533 Remove use of arglist.
2534 (mips_expand_builtin): Remove use of arglist, pass in expr.
2535 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2536 (mips_expand_builtin_movtf): Ditto.
2537 (mips_expand_builtin_compare): Ditto.
2539 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2541 * tree-sra.c (sra_build_assignment): Replace assertion
2542 checking with a comment explaining why it can't be done.
2544 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2547 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2548 during CALL_EXPR representation conversion.
2549 * tree-ssa-propagate.c (set_rhs): Likewise.
2551 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
2553 * tree-sra.c (sra_build_assignment): Disable assertion checking
2556 2007-02-18 Roger Sayle <roger@eyesopen.com>
2558 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2559 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2560 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2562 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2563 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
2564 gimplify_init_ctor_eval_range, gimple_push_cleanup,
2565 gimplify_omp_for, gimplify_omp_atomic_pipeline,
2566 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2567 force_gimple_operand): Likewise.
2568 * ipa-cp.c (constant_val_insert): Likewise.
2569 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2570 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2571 perfect_nestify): Likewise.
2572 * langhooks.c (lhd_omp_assignment): Likewise.
2573 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2574 lower_copyprivate_clauses, lower_send_clauses,
2575 lower_send_shared_vars, expand_parallel_call,
2576 expand_omp_for_generic, expand_omp_for_static_nochunk,
2577 expand_omp_for_static_chunk, expand_omp_sections,
2578 lower_omp_single_copy, lower_omp_for_lastprivate,
2579 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2580 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2581 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2584 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
2586 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2587 config/sh/sh.md: Follow spelling conventions.
2589 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2590 config/frv/predicates.md: Follow spelling conventions.
2592 * config/m68k/linux-unwind.h: Fix a comment typo.
2593 * target.h: Follow spelling conventions.
2595 2007-02-18 Roger Sayle <roger@eyesopen.com>
2597 PR rtl-optimization/28173
2598 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
2599 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2600 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2601 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2602 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2604 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2606 * builtins.c (fold_builtin_load_exponent): New.
2607 (fold_builtin_2): Use it.
2609 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
2611 PR rtl-optimization/30773
2612 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2613 if we fail to attach a REG_EQUIV note.
2615 2007-02-18 David Edelsohn <edelsohn@gnu.org>
2616 Roger Sayle <roger@eyesopen.com>
2618 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2620 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
2622 * calls.c (initialize_argument_information): Pass original EXP
2623 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
2624 code to split complex arguments here, as part of initializing the
2626 (expand_call): Remove code that builds a list of arguments and
2627 inserts implicit arguments into it. Instead, just count how many
2628 implicit arguments there will be so we can determine the size of
2629 the ARGS array, and let initialize_argument_information do the work.
2630 (split_complex_values): Delete unused function.
2632 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2634 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2636 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
2638 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2639 for arg pointer based indexed addressing.
2641 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2643 * config/ia64/ia64.h, config/ia64/ia64.md,
2644 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2645 spelling conventions.
2647 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2649 * config/m68k/m68k.c (split_di): New.
2650 * config/m68k/m68k-protos.h: Declare split_di.
2651 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2652 Improve predicate handling and split constant shifts.
2654 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2656 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2657 parameter for register bitfield operations, general predicates
2660 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
2662 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2663 * config/m68k/linux-unwind.h: New file.
2665 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
2667 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2668 config/i386/athlon.md, config/ia64/ia64.md,
2669 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2670 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2671 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2672 tree-ssa-loop-niter.c, tree-vect-analyze.c,
2673 tree-vect-transform.c: Fix comment typos.
2675 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
2677 * sched-deps.c (find_insn_list): Remove.
2678 * sched-int.h: Remove the prototype for find_insn_list.
2680 2007-02-16 Geoffrey Keating <geoffk@apple.com>
2682 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2684 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2685 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2686 darwin_rs6000_override_options.
2687 (C_COMMON_OVERRIDE_OPTIONS): Expect
2688 darwin_macosx_version_min to be non-NULL always.
2689 (TARGET_C99_FUNCTIONS): Likewise.
2690 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2691 (DARWIN_MINVERSION_SPEC): New.
2692 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2693 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2695 (DARWIN_MINVERSION_SPEC): New.
2696 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2698 * config/darwin-c.c (darwin_cpp_builtins): Expect
2699 darwin_macosx_version_min to be non-NULL always.
2701 * config/rs6000/rs6000.c: Clean up trailing whitespace.
2703 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
2705 * config/i386/i386.h (x86_use_xchgb): New.
2706 (TARGET_USE_XCHGB): New macro.
2707 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2708 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2709 Split after reload into bswaphi for shifts of 8.
2710 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2711 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2712 or when optimizing for size.
2714 2007-02-16 Richard Guenther <rguenther@suse.de>
2715 Christian Bruel <christian.bruel@st.com>
2717 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2718 DECLs but prefer SSA_NAMEs over DECLs.
2720 2007-02-16 Richard Guenther <rguenther@suse.de>
2722 * tree-flow-inline.h (single_imm_use_p): Remove.
2723 (zero_imm_uses_p): Likewise.
2724 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2725 instead of single_imm_use_p.
2726 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2729 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2732 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2733 nested double- and backquotes.
2735 2007-02-15 Roger Sayle <roger@eyesopen.com>
2738 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
2739 should be unreachable.
2740 (build2_stat): Allow construction of MODIFY_EXPR at any time.
2741 For the time being redirect GIMPLE_MODIFY_STMT to the new
2742 (renamed) build_gimple_modify_stmt_stat.
2743 (build2_gimple_stat): Rename to...
2744 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2745 Always build a GIMPLE_MODIFY_STMT node.
2746 * tree.h (build2_gimple, build2_gimple_stat): Delete.
2747 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2750 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2751 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2752 * tree-complex.c (set_component_ssa_name, expand_complex_move,
2753 expand_complex_div_wide): Likewise.
2754 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2755 * tree-ssa-loop-im.c (schedule_sm): Likewise.
2756 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2757 * tree-ssa-loop-manip.c (create_iv): Likewise.
2758 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2759 abs_replacement): Likewise.
2760 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2761 realify_fake_stores): Likewise.
2763 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2764 node rather than a GIMPLE_MODIFY_STMT node.
2765 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2766 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2768 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2769 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2772 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2775 * fold-const.c (fold_comparison): Add back the
2776 folding of constant complex comparisions.
2778 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2781 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2782 effects unknown to this function, return early.
2784 2007-02-15 Ian Lance Taylor <iant@google.com>
2786 * lower-subreg.c (move_eh_region_note): New static function.
2787 (resolve_simple_move): Call it.
2788 (decompose_multiword_subregs): Track blocks for which we resolve a
2789 simple move which is also a control flow insn. Pass them to
2790 find_many_sub_basic_blocks.
2791 (pass_lower_subreg): Add TODO_verify_flow.
2792 (pass_lower_subreg2): Likewise.
2794 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2795 Brooks Moses <brooks.moses@codesourcery.com>
2796 Lee Millward <lee.millward@codesourcery.com>
2798 * tree.h (enum tree_code_class): Add tcc_vl_exp.
2799 (VL_EXP_CLASS_P): New.
2800 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2802 (TREE_OPERAND_CHECK_CODE): Likewise.
2803 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2804 (TREE_RTL_OPERAND_CHECK): Likewise.
2805 (tree_operand_check_failed): Make second parameter the whole tree
2806 instead of its code. Fixed callers.
2807 (VL_EXP_CHECK): New.
2808 (TREE_OPERAND_LENGTH): New.
2809 (VL_EXP_OPERAND_LENGTH): New.
2810 (CALL_EXPR_FN): New.
2811 (CALL_EXPR_STATIC_CHAIN): New.
2812 (CALL_EXPR_ARGS): New.
2813 (CALL_EXPR_ARG): New.
2814 (call_expr_nargs): New.
2815 (CALL_EXPR_ARGP): New.
2816 (build_nt_call_list): Declare.
2817 (build_vl_exp_stat): Declare.
2818 (build_vl_exp): New.
2819 (build_call_list): Declare.
2820 (build_call_nary): Declare.
2821 (build_call_valist): Declare.
2822 (build_call_array): Declare.
2823 (call_expr_arg): Declare.
2824 (call_expr_argp): Declare.
2825 (call_expr_arglist): Declare.
2826 (fold_build_call_list): Declare.
2827 (fold_build_call_list_initializer): Declare.
2828 (fold_call_expr): Declare to replace fold_builtin.
2829 (fold_builtin_fputs): Update to agree with modified definition.
2830 (fold_builtin_strcpy): Likewise.
2831 (fold_builtin_strncpy): Likewise.
2832 (fold_builtin_memory_chk): Likewise.
2833 (fold_builtin_stxcpy_chk): Likewise.
2834 (fold_builtin_strncpy_chk): Likewise.
2835 (fold_builtin_next_arg): Likewise.
2836 (fold_build_call_expr): Declare.
2837 (fold_builtin_call_list): Declare.
2838 (fold_builtin_call_valist): Declare.
2839 (build_call_expr): Declare.
2840 (validate_arglist): Update to agree with modified definition.
2841 (tree_operand_length): New.
2842 (call_expr_arg_iterator): New.
2843 (init_call_expr_arg_iterator): New.
2844 (next_call_expr_arg): New.
2845 (first_call_expr_arg): New.
2846 (more_call_expr_args_p): New.
2847 (FOR_EACH_CALL_EXPR_ARG): New.
2849 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2850 and tcc_gimple_stmt.
2851 (tree_code_size): Update documentation. Use sizeof (tree) rather
2852 than sizeof (char *).
2853 (tree_size): Likewise. Add case for tcc_vl_exp.
2854 (tree_node_structure): Add case for tcc_vl_exp.
2855 (contains_placeholder_p): Likewise.
2856 (substitute_in_expr): Likewise.
2857 (substitute_placeholder_in_expr): Likewise.
2858 (stabilize_reference_1): Likewise.
2859 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
2860 to diagnose breakage of this interface for constructing CALL_EXPRs.
2861 (build_nt): Add similar assertion here.
2862 (build_nt_call_list): New.
2863 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2864 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2866 (get_callee_fndecl): Use new CALL_EXPR accessors.
2867 (tree_operand_check_failed): Change parameters to pass entire node
2868 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2869 (process_call_operands): New.
2870 (build_vl_exp_stat): New.
2871 (build_call_list): New.
2872 (build_call_nary): New.
2873 (build_call_valist): New.
2874 (build_call_array): New.
2875 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2876 (call_expr_arglist): New.
2878 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2879 tcc_vl_exp instead of a fixed-size tcc_expression.
2881 * doc/c-tree.texi (CALL_EXPR): Document new representation and
2882 accessors for CALL_EXPRs.
2883 (AGGR_INIT_EXPR): Likewise.
2885 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
2886 Brooks Moses <brooks.moses@codesourcery.com>
2887 Lee Millward <lee.millward@codesourcery.com>
2889 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2890 (expand_builtin_nonlocal_goto): Change parameter to be entire
2891 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
2892 (expand_builtin_prefetch): Likewise.
2893 (expand_builtin_classify_type): Likewise.
2894 (mathfn_built_in): Return NULL_TREE instead of 0.
2895 (expand_errno_check): Use new CALL_EXPR accessors.
2896 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2897 Return NULL_RTX instead of 0.
2898 (expand_builtin_mathfn_2): Likewise.
2899 (expand_builtin_mathfn_3): Likewise.
2900 (expand_builtin_interclass_mathfn): Likewise.
2901 (expand_builtin_sincos): Likewise.
2902 (expand_builtin_cexpi): Likewise.
2903 (expand_builtin_int_roundingfn): Likewise.
2904 (expand_builtin_int_roundingfn_2): Likewise.
2905 (expand_builtin_pow): Likewise.
2906 (expand_builtin_powi): Likewise.
2907 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2908 of arglist, fixing callers appropriately. Use new CALL_EXPR
2909 accessors and constructors. Return NULL_RTX instead of 0.
2910 (expand_builtin_strstr): Likewise.
2911 (expand_builtin_strchr): Likewise.
2912 (expand_builtin_strrchr): Likewise.
2913 (expand_builtin_strpbrk): Likewise.
2914 (expand_builtin_memcpy): Likewise.
2915 (expand_builtin_mempcpy): Likewise.
2916 (expand_builtin_mempcpy_args): New.
2917 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2918 (expand_builtin_memmove_args): New.
2919 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2920 (expand_movstr): Likewise.
2921 (expand_builtin_strcpy): Likewise.
2922 (expand_builtin_strcpy_args): New.
2923 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2924 (expand_builtin_strncpy): Likewise.
2925 (expand_builtin_memset): Likewise.
2926 (expand_builtin_memset_args): New.
2927 (expand_builtin_bzero): Similarly to expand_builtin_memset.
2928 (expand_builtin_memcmp): Likewise.
2929 (expand_builtin_strcmp): Likewise.
2930 (expand_builtin_strncmp): Likewise.
2931 (expand_builtin_strcat): Likewise.
2932 (expand_builtin_strncat): Likewise.
2933 (expand_builtin_strspn): Likewise.
2934 (expand_builtin_strcspn): Likewise.
2935 (expand_builtin_args_info): Likewise.
2936 (expand_builtin_va_start): Likewise.
2937 (gimplify_va_arg_expr): Likewise.
2938 (expand_builtin_va_end): Likewise.
2939 (expand_builtin_va_copy): Likewise.
2940 (expand_builtin_frame_address): Likewise.
2941 (expand_builtin_alloca): Likewise.
2942 (expand_builtin_bswap): Likewise.
2943 (expand_builtin_unop): Likewise.
2944 (expand_builtin_fputs): Likewise.
2945 (expand_builtin_expect): Likewise.
2946 (expand_builtin_fabs): Likewise.
2947 (expand_builtin_copysign): Likewise.
2948 (expand_builtin_printf): Likewise.
2949 (expand_builtin_fprintf): Likewise.
2950 (expand_builtin_sprintf): Likewise.
2951 (expand_builtin_init_trampoline): Likewise.
2952 (expand_builtin_signbit): Likewise.
2953 (expand_builtin_fork_or_exec): Likewise.
2954 (expand_builtin_sync_operation): Likewise.
2955 (expand_builtin_compare_and_swap): Likewise.
2956 (expand_builtin_lock_test_and_set): Likewise.
2957 (expand_builtin_lock_release): Likewise.
2958 (expand_builtin): Likewise.
2959 (builtin_mathfn_code): Likewise.
2961 (fold_builtin_constant_p): Pass call arguments individually instead
2962 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
2963 accessors and constructors. Return NULL_TREE instead of 0.
2964 (fold_builtin_expect): Likewise.
2965 (fold_builtin_classify_type): Likewise.
2966 (fold_builtin_strlen): Likewise.
2967 (fold_builtin_nan): Likewise.
2968 (integer_valued_real_p): Likewise.
2969 (fold_trunc_transparent_mathfn): Likewise.
2970 (fold_fixed_mathfn): Likewise.
2971 (fold_builtin_cabs): Likewise.
2972 (fold_builtin_sqrt): Likewise.
2973 (fold_builtin_cbrt): Likewise.
2974 (fold_builtin_cos): Likewise.
2975 (fold_builtin_cosh): Likewise.
2976 (fold_builtin_tan): Likewise.
2977 (fold_builtin_sincos): Likewise.
2978 (fold_builtin_cexp): Likewise.
2979 (fold_builtin_trunc): Likewise.
2980 (fold_builtin_floor): Likewise.
2981 (fold_builtin_ceil): Likewise.
2982 (fold_builtin_round): Likewise.
2983 (fold_builtin_int_roundingfn): Likewise.
2984 (fold_builtin_bitop): Likewise.
2985 (fold_builtin_bswap): Likewise.
2986 (fold_builtin_logarithm): Likewise.
2987 (fold_builtin_hypot): Likewise.
2988 (fold_builtin_pow): Likewise.
2989 (fold_builtin_powi): Likewise.
2990 (fold_builtin_exponent): Likewise.
2991 (fold_builtin_memset): Likewise.
2992 (fold_builtin_bzero): Likewise.
2993 (fold_builtin_memory_op): Likewise.
2994 (fold_builtin_bcopy): Deleted; call site changed to invoke
2995 fold_builtin_memory_op directly.
2996 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2997 (fold_builtin_strncpy): Likewise.
2998 (fold_builtin_memcmp): Likewise.
2999 (fold_builtin_strcmp): Likewise.
3000 (fold_builtin_strncmp): Likewise.
3001 (fold_builtin_signbit): Likewise.
3002 (fold_builtin_copysign): Likewise.
3003 (fold_builtin_isascii): Likewise.
3004 (fold_builtin_toascii): Likewise.
3005 (fold_builtin_isdigit): Likewise.
3006 (fold_builtin_fabs): Likewise.
3007 (fold_builtin_abs): Likewise.
3008 (fold_builtin_fmin_fmax): Likewise.
3009 (fold_builtin_carg): Likewise.
3010 (fold_builtin_classify): Likewise.
3011 (fold_builtin_unordered_cmp): Likewise.
3013 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
3014 New functions split out from fold_builtin_1.
3015 (fold_builtin_n): New.
3016 (fold_builtin_varargs): New.
3017 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
3019 (fold_call_expr): New.
3020 (build_function_call_expr): Rewrite to use new helper function.
3021 (fold_builtin_call_list): New.
3022 (build_call_expr): New.
3023 (fold_builtin_call_valist): New.
3024 (rewrite_call_expr): New.
3025 (validate_arg): New.
3026 (validate_arglist): Change parameter to be entire CALL_EXPR instead
3027 of an arglist. Change return type to bool. Use new CALL_EXPR
3030 (fold_builtin_strstr): Pass call arguments individually instead
3031 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
3032 accessors and constructors. Return NULL_TREE instead of 0.
3033 (fold_builtin_strchr): Likewise.
3034 (fold_builtin_strrchr): Likewise.
3035 (fold_builtin_strpbrk): Likewise.
3036 (fold_builtin_strcat): Likewise.
3037 (fold_builtin_strncat): Likewise.
3038 (fold_builtin_strspn): Likewise.
3039 (fold_builtin_strcspn): Likewise.
3040 (fold_builtin_fputs): Likewise.
3041 (fold_builtin_next_arg): Likewise.
3042 (fold_builtin_sprintf): Likewise.
3044 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
3045 NULL_RTX instead of 0.
3046 (expand_builtin_memory_chk): Likewise.
3047 (maybe_emit_chk_warning): Likewise.
3048 (maybe_emit_sprintf_chk_warning): Likewise.
3050 (fold_builtin_object_size): Pass call arguments individually instead
3051 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
3052 accessors and constructors. Return NULL_TREE instead of 0.
3053 (fold_builtin_memory_chk): Likewise.
3054 (fold_builtin_stxcpy_chk): Likewise.
3055 (fold_builtin_strncpy_chk): Likewise.
3056 (fold_builtin_strcat_chk): Likewise.
3057 (fold_builtin_strcat_chk): Likewise.
3058 (fold_builtin_strncat_chk): Likewise.
3059 (fold_builtin_sprintf_chk): Likewise.
3060 (fold_builtin_snprintf_chk): Likewise.
3061 (fold_builtin_printf): Likewise.
3062 (fold_builtin_vprintf): Likewise.
3064 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
3066 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
3067 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3068 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
3069 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
3070 (fold_unary): Likewise.
3071 (fold_binary): Likewise.
3072 (fold_ternary): Remove CALL_EXPR case, since they are no longer
3073 ternary expressions.
3074 (fold): Add logic for tcc_vl_exp.
3075 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
3076 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3077 (fold_build3_stat): Add assertion to flag broken interface for
3078 constructing CALL_EXPRs.
3079 (fold_build_call_list): New.
3080 (fold_build_call_list_initializer): New.
3081 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
3083 (fold_strip_sign_ops): Likewise.
3085 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
3086 Brooks Moses <brooks.moses@codesourcery.com>
3087 Lee Millward <lee.millward@codesourcery.com>
3089 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
3090 accessors and dump arguments explicitly.
3092 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
3094 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
3096 (print_call_name): Use new CALL_EXPR accessors.
3098 * print-tree.c (print_node): Add case tcc_vl_exp. Print
3099 CALL_EXPR arguments explicitly instead of as a list. Use
3100 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3102 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
3103 (vrp_visit_stmt): Likewise.
3105 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
3106 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
3108 (force_move_till_expr): Likewise.
3110 * targhooks.c (default_external_stack_protect_fail): Use
3111 build_call_expr instead of build_function_call_expr.
3112 (default_hidden_stack_protect_fail): Likewise.
3114 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
3117 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
3118 and walk arguments explicitly.
3120 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
3121 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3122 (expand_simple_operations): Likewise.
3123 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
3125 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
3126 of TREE_CODE_LENGTH.
3127 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
3129 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
3130 instead of TREE_CODE_LENGTH.
3132 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
3133 (tree_ic_transform): Likewise.
3134 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
3135 parameter instead of arglist. Fix callers.
3136 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
3137 (tree_stringops_transform): Likewise.
3138 (tree_indirect_call_to_profile): Likewise.
3139 (tree_stringops_values_to_profile): Likewise.
3141 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
3142 (eliminate_tail_call): Likewise.
3144 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
3146 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3147 Use TREE_OPERAND_LENGTH and generalize to handle any number of
3149 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
3151 * omp-low.c (build_omp_barrier): Use build_call_expr.
3152 (lower_rec_input_clauses): Likewise.
3153 (lower_reduction_clauses): Likewise.
3154 (expand_parallel_call): Likewise.
3155 (maybe_catch_exception): Likewise.
3156 (expand_omp_for_generic): Likewise.
3157 (expand_omp_for_static_nochunk): Likewise.
3158 (expand_omp_sections): Likewise.
3159 (lower_omp_single_simple): Likewise.
3160 (lower_omp_single_copy): Likewise.
3161 (lower_omp_master): Likewise.
3162 (lower_omp_ordered): Likewise.
3163 (lower_omp_critical): Likewise.
3165 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
3166 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
3168 * tree-gimple.c (is_gimple_call_addr): Fix doc.
3169 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
3170 TREE_CODE_LENGTH. Add tcc_vl_exp case.
3172 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
3173 and generalize to handle any number of operands.
3174 (chrec_contains_undetermined): Likewise.
3175 (tree_contains_chrecs): Likewise.
3176 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
3178 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
3180 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
3181 fold_call_expr instead of fold_builtin.
3182 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
3183 match declarations there.
3184 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
3187 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
3188 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3190 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
3191 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
3193 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
3196 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
3197 (execute_cse_sincos): Use new CALL_EXPR accessors.
3199 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
3201 * gimple-low.c (lower_function_body): Use build_call_expr.
3202 (lower_builtin_setjmp): Likewise.
3204 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
3205 (set_storage_via_libcall): Likewise.
3206 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
3207 instead of TREE_CODE_LENGTH.
3208 (expand_expr_real_1): Use new CALL_EXPR accessors.
3210 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
3211 generalize to handle any number of operands.
3212 (TB_parent_eq): Likewise.
3214 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
3215 (strip_builtin_expect): Likewise.
3217 * function.c (gimplify_parameters): Use build_call_expr.
3219 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
3220 instead of TREE_CODE_LENGTH.
3222 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
3223 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
3225 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
3228 * gimplify.c (build_stack_save_restore): Use build_call_expr.
3229 (gimplify_decl_expr): Likewise.
3230 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
3231 Use new CALL_EXPR iterators.
3232 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
3233 (gimplify_modify_expr_to_memset): Likewise.
3234 (gimplify_variable_sized_compare): Likewise.
3235 (gimplify_omp_atomic_fetch_op): Likewise.
3236 (gimplify_omp_atomic_pipeline): Likewise.
3237 (gimplify_omp_atomic_mutex): Likewise.
3238 (gimplify_function_tree): Likewise.
3240 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
3241 (call_expr_flags): Likewise.
3242 (expand_call): Likewise.
3244 * except.c (expand_builtin_eh_return_data_regno): Pass entire
3245 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
3248 * coverage.c (create_coverage): Use build_call_expr.
3250 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
3251 (temp_call_expr_obstack): New.
3252 (pool_copy_list): Delete.
3253 (temp_copy_call_expr): New.
3254 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
3255 CALL_EXPR accessors. Get rid of special goo for copying argument
3256 lists and use temp_copy_call_expr instead.
3257 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
3258 CALL_EXPR accessors.
3259 (create_expression_by_pieces): Likewise. Use build_call_array
3260 to construct the result instead of fold_build3.
3261 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
3262 dealing with argument lists.
3263 (init_pre): Remove references to expression_node_pool and
3264 list_node_pool. Init temp_call_expr_obstack instead.
3265 (fini_pre): Remove references to expression_node_pool and
3268 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
3269 and walk arguments explicitly instead of as a list.
3271 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
3272 (mx_register_decls): Likewise.
3273 (mudflap_register_call): Likewise.
3274 (mudflap_finish_file): Likewise.
3276 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
3277 (ipa_callsite_compute_param): Likewise.
3279 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
3280 accessors and constructor.
3282 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
3283 accessors and constructor.
3284 (convert_tramp_reference): Likewise.
3285 (convert_call_expr): Likewise.
3286 (finalize_nesting_tree_1): Likewise.
3288 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
3291 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
3293 * tree-inline.c (initialize_inlined_parameters): Pass entire
3294 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
3296 (estimate_num_insns_1): Use new CALL_EXPR accessors.
3297 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
3299 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
3300 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3301 (vectorizable_reduction): Likewise.
3302 (vectorizable_call): Use new CALL_EXPR iterators.
3303 (vectorizable_conversion): Use build_call_expr.
3304 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
3305 (vect_gen_widened_results_half): Use build_call_expr.
3306 (vect_setup_realignment): Likewise.
3307 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
3309 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
3310 (pass_through_call): Likewise.
3311 (compute_object_sizes): Likewise. Use fold_call_expr instead of
3314 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
3315 (tree_gen_pow2_profiler): Likewise.
3316 (tree_gen_one_value_profiler): Likewise.
3317 (tree_gen_ic_func_profiler): Likewise.
3318 (tree_gen_average_profiler): Likewise.
3319 (tree_gen_ior_profiler): Likewise.
3321 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
3322 (find_func_aliases): Use new CALL_EXPR accessors. Add case
3323 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3325 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
3326 of TREE_CODE_LENGTH.
3328 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
3329 of TREE_CODE_LENGTH.
3331 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
3333 (convert_to_integer): Likewise.
3335 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
3338 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
3339 Brooks Moses <brooks.moses@codesourcery.com>
3340 Lee Millward <lee.millward@codesourcery.com>
3342 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
3344 * config/frv/frv.c (frv_expand_builtin): Likewise.
3345 * config/s390/s390.c (s390_expand_builtin): Likewise.
3347 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
3348 (sparc_expand_builtin): Use new CALL_EXPR accessors.
3350 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
3351 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
3352 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
3353 (ix86_expand_store_builtin): Likewise.
3354 (ix86_expand_unop_builtin): Likewise.
3355 (ix86_expand_unop1_builtin): Likewise.
3356 (ix86_expand_sse_compare): Likewise.
3357 (ix86_expand_sse_comi): Likewise.
3358 (ix86_expand_vec_init_builtin): Likewise.
3359 (ix86_expand_vec_ext_builtin): Likewise.
3360 (ix86_expand_vec_set_builtin): Likewise.
3361 (ix86_expand_builtin): Use new CALL_EXPR accessors.
3363 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
3364 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3366 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
3367 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3368 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
3370 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
3372 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3373 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
3374 arglist. Use new CALL_EXPR accessors. Fix callers.
3375 (altivec_expand_abs_builtin): Likewise.
3376 (rs6000_expand_binop_builtin): Likewise.
3377 (altivec_expand_predicate_builtin): Likewise.
3378 (altivec_expand_lv_builtin): Likewise.
3379 (spe_expand_stv_builtin): Likewise.
3380 (altivec_expand_stv_builtin): Likewise.
3381 (rs6000_expand_ternop_builtin): Likewise.
3382 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
3383 (altivec_expand_st_builtin): Likewise.
3384 (altivec_expand_dst_builtin): Likewise.
3385 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
3386 arglist. Use new CALL_EXPR accessors. Fix callers.
3387 (altivec_expand_vec_set_builtin): Likewise.
3388 (altivec_expand_vec_ext_builtin): Likewise.
3389 (altivec_expand_builtin): Use new CALL_EXPR accessors.
3390 (spe_expand_builtin): Likewise.
3391 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
3392 arglist. Use new CALL_EXPR accessors. Fix callers.
3393 (spe_expand_evsel_builtin): Likewise.
3394 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
3395 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
3397 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
3398 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3399 (arm_expand_unop_builtin): Likewise.
3400 (arm_expand_builtin): Use new CALL_EXPR accessors.
3402 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
3405 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
3406 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
3407 (bfin_expand_unop_builtin): Likewise.
3408 (bfin_expand_builtin): Use new CALL_EXPR accessors.
3410 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
3411 Brooks Moses <brooks.moses@codesourcery.com>
3412 Lee Millward <lee.millward@codesourcery.com>
3414 * c-semantics.c (build_stmt): Add internal diagnostic check.
3416 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
3417 accessors. Print arguments explicitly instead of as a list.
3419 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
3421 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
3422 (c_finish_omp_flish): Likewise.
3424 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
3425 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
3426 instead of TREE_CODE_LENGTH.
3427 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
3428 (c_warn_unused_result): Likewise.
3430 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3433 * doc/invoke.texi (Warning Options): Remove
3434 -Werror-implicit-function-declaration.
3435 (Wimplicit-function-declaration): Update description.
3436 * opts.c (common_handle_option): Move handling of -Werror=* to...
3437 (enable_warning_as_error): ...here.
3438 * opts.h (enable_warning_as_error): Declare.
3439 * c-decl.c (implicit_decl_warning): Unless
3440 -Wno-implicit-function-declaration is given, emit a pedwarn if
3441 -std=c99 or emit a warning if -Wimplicit-function-declaration.
3442 * c.opt (Wimplicit-function-declaration): Replace
3443 mesg_implicit_function_declaration with
3444 warn_implicit_function_declaration.
3445 * c-opts.c (c_common_handle_option):
3446 -Werror-implicit-function-declaration is exactly equal as
3447 -Werror=implicit-function-declaration.
3448 (set_Wimplicit): Replace mesg_implicit_function_declaration with
3449 warn_implicit_function_declaration.
3450 (c_common_post_options): -Wimplict-function-declaration is enabled
3451 by default by -std=c99, otherwise is disabled by default.
3452 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
3454 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3456 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
3457 DECL on the rhs to a DECL on the lhs for debug info purposes if the
3458 former is ignored but not the latter.
3460 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
3462 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
3463 is made and the reference doesn't use the alias set of its type,
3464 do not create the temporary using that type.
3466 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
3468 * jump.c: Remove prototypes for delete_computation and
3469 delete_prior_computation.
3471 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3473 * jump.c (get_label_after): Delete.
3474 (get_label_before, delete_computation, delete_jump,
3475 delete_prior_computation, follow_jumps): Move...
3476 * reorg.c (delete_computation, delete_prior_computation): ... here...
3477 (get_label_before, delete_jump): ... making these static ...
3478 (follow_jumps): ... and simplifying this since it only runs after
3480 * rtl.h (get_label_after, get_label_before, delete_jump,
3481 follow_jumps): Delete prototypes.
3483 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
3485 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
3487 2007-02-15 Nick Clifton <nickc@redhat.com>
3489 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
3490 order to prevent it from being munged by the target.
3492 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
3494 * config/i386/i386.md: Remove misleading comment.
3496 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3498 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
3499 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
3502 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3504 * tree-sra.c (instantiate_missing_elements): Canonicalize
3506 (sra_build_assignment): New.
3507 (generate_copy_inout, generate_element_copy,
3508 generate_element_zero, generate_one_element_init): Use it.
3510 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3512 * tree-sra.c (instantiate_missing_elements): Canonicalize
3514 (sra_build_assignment): New.
3515 (generate_copy_inout, generate_element_copy,
3516 generate_element_zero, generate_one_element_init): Use it.
3518 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
3520 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
3523 2007-02-14 Joseph Myers <joseph@codesourcery.com>
3525 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
3526 types as aggregates not scalars.
3527 * function.c (assign_stack_temp_for_type): Likewise.
3529 2007-02-14 Roger Sayle <roger@eyesopen.com>
3530 Zdenek Dvorak <dvorakz@suse.cz>
3532 * tree-dump.c (dump_switch_p_1): Require exact match of the option
3535 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
3537 * passes.c (next_pass_1): Clear the next field of the copied
3540 2007-02-14 Richard Henderson <rth@redhat.com>
3542 * tree-sra.c (early_sra): New.
3543 (decl_can_be_decomposed_p): Deny va_list if early_sra.
3544 (tree_sra_early, pass_sra_early): New.
3545 * tree-pass.h (pass_sra_early): Declare.
3546 * passes.c (init_optimization_passes): Use it.
3548 2007-02-14 Richard Guenther <rguenther@suse.de>
3550 * flags.h (issue_strict_overflow_warning): Convert to a macro.
3552 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
3554 PR tree-optimization/30771
3555 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
3557 (vect_analyze_operations): Induction phis can now be marked as
3559 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
3560 Update documentation accordingly.
3562 2007-02-14 Nick Clifton <nickc@redhat.com>
3564 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
3565 most 3 arguments are supported.
3566 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
3568 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
3570 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
3571 Ensure dst->current is valid.
3573 2007-02-13 Paul Brook <paul@codesourcery.com>
3575 * config.gcc: Add arm*-*-uclinux-*eabi.
3576 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3577 (SUBTARGET_EXTRA_LINK_SPEC): Define.
3578 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
3579 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3580 (LINK_SPEC): Define.
3582 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
3584 * config/arm/uclinux-eabi.h: New file.
3585 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
3586 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
3589 2007-02-13 Ian Lance Taylor <iant@google.com>
3591 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
3592 * flags.h (warn_strict_overflow): Declare.
3593 (enum warn_strict_overflow_code): Define.
3594 (issue_strict_overflow_warning): New static inline function.
3595 * opts.c (warn_strict_overflow): New variable.
3596 (common_handle_option): Handle OPT_Wstrict_overflow and
3597 OPT_Wstrict_overflow_.
3598 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
3600 * fold-const.c: Include intl.h.
3601 (fold_deferring_overflow_warnings): New static variable.
3602 (fold_deferred_overflow_warning): New static variable.
3603 (fold_deferred_overflow_code): New static variable.
3604 (fold_defer_overflow_warnings): New function.
3605 (fold_undefer_overflow_warnings): New function.
3606 (fold_undefer_and_ignore_overflow_warnings): New function.
3607 (fold_deferring_overflow_warnings_p): New function.
3608 (fold_overflow_warning): New static function.
3609 (make_range): Add strict_overflow_p parameter. Change all
3611 (extract_muldiv, extract_muldiv_1): Likewise.
3612 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
3613 tree_expr_nonnegative_p.
3614 (fold_negate_expr): Call fold_overflow_warning.
3615 (fold_range_test): Likewise.
3616 (fold_comparison): Likewise.
3617 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
3618 instead of tree_expr_nonnegative_p.
3619 (tree_expr_nonnegative_warnv_p): Rename from
3620 tree_expr_nonnegative_p, add strict_overflow_p parameter.
3621 (tree_expr_nonnegative_p): New function.
3622 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
3623 strict_overflow_p parameter.
3624 (tree_expr_nonzero_p): New function.
3625 * passes.c (verify_interpass_invariants): New static function.
3626 (execute_one_pass): Call it.
3627 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
3629 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
3630 (estimate_numbers_of_iterations): Likewise.
3631 (scev_probably_wraps_p): Likewise.
3632 * tree-ssa-ccp.c: Include "toplev.h".
3633 (evaluate_stmt): Defer fold overflow warnings until we know we are
3635 (struct fold_stmt_r_data): Add stmt field.
3636 (fold_stmt_r): Defer fold overflow warnings until we know we
3638 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
3639 (fold_stmt_inplace): Likewise.
3640 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
3641 (cleanup_control_expr_graph): Defer fold overflow warnings until
3642 we know we are going to optimize.
3643 * tree-cfg.c (fold_cond_expr_cond): Likewise.
3644 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
3646 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3647 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
3648 * tree-ssa-loop-manip.c (create_iv): Likewise.
3649 * c-typeck.c (build_conditional_expr): Likewise.
3650 (build_binary_op): Likewise.
3651 * tree-vrp.c (vrp_expr_computes_nonzero): Call
3652 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
3653 (extract_range_from_unary_expr): Likewise.
3654 * simplify-rtx.c (simplify_const_relational_operation): Warn when
3655 assuming that signed overflow does not occur.
3656 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
3657 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
3658 (fold_defer_overflow_warnings): Declare.
3659 (fold_undefer_overflow_warnings): Declare.
3660 (fold_undefer_and_ignore_overflow_warnings): Declare.
3661 (fold_deferring_overflow_warnings_p): Declare.
3662 (tree_expr_nonzero_warnv_p): Declare.
3663 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
3665 (Warning Options): Document -Wstrict-overflow.
3666 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
3667 (tree-ssa-ccp.o): Likewise.
3668 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
3669 (fold-const.o): Depend on intl.h.
3671 2007-02-13 Ian Lance Taylor <iant@google.com>
3674 * lower-subreg.c (resolve_simple_move): Decompose subregs in
3677 2007-02-13 Stuart Hastings <stuart@apple.com>
3679 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
3681 2007-02-13 Richard Henderson <rth@redhat.com>
3683 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
3684 handled_component_p before looking for the indirect_ref.
3686 2007-02-13 Richard Henderson <rth@redhat.com>
3688 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
3689 remove flags clobber.
3690 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
3691 (bswaphi_lowpart): New.
3692 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
3693 remove TARGET_BSWAP test. Delete expander of the same name.
3695 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
3696 (expand_unop): Use them.
3698 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
3700 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
3701 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
3702 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
3703 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
3704 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
3705 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
3706 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
3707 assembler dialect choice from asm templates.
3709 2007-02-12 Richard Henderson <rth@redhat.com>
3711 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
3712 (fixuns_trunc<SSEMODEF>si2): Use it.
3713 * config/i386/sse.md (vec_setv4sf_0): Export.
3714 * config/i386/i386.c (ix86_build_const_vector): Export.
3715 (ix86_split_convert_uns_si_sse): Rename from
3716 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
3717 * config/i386/i386-protos.h: Update.
3719 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3722 * c-typeck.c (c_finish_return): Improve warning message.
3724 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3726 * alias.c (find_symbolic_term): Delete unused function.
3728 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
3730 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
3731 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
3732 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
3734 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3736 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3737 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
3738 the function, temporarily point the debug interface to the null one.
3740 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
3742 * dwarf2out.c (round_up_to_align): New static function.
3743 (field_byte_offset): Use it to round the offset.
3745 2007-02-12 Richard Henderson <rth@redhat.com>
3747 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
3748 (inswl_const): Export.
3750 2007-02-12 Richard Henderson <rth@redhat.com>
3752 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
3753 result mode of the libcall, convert back to outmode.
3755 2007-02-12 Roger Sayle <roger@eyesopen.com>
3757 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
3758 (bswapdi2): New define_expand to implement 32-bit implementation.
3760 2007-02-12 Nick Clifton <nickc@redhat.com>
3762 * doc/invoke.texi (Overall Options): Document --help=.
3763 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
3764 (cc1_options): Pass --help= on to cc1.
3765 (display_help): Add description of --help=.
3766 (process_command): Add code to handle --help=. Allow translated
3767 --help and --target-help switches to be passed on to compiler
3769 (main): Remove unused if statement.
3770 * opts.c (columns): Remove.
3771 (LEFT_COLUMN): Define.
3772 (wrap_help): Add columns argument.
3773 (print_filtered_help): Change parameters to be an include bitmask,
3774 an exclude bitmask, an any bitmask and the column width. Move the
3775 code to display the params list here. Add code to display the
3776 status of options rather than their descriptions if the quiet flag
3778 (print_specific_help): Change parameters to be an include bitmask,
3779 an exclude bitmask and an any bitmask. Move code to look up the
3780 column width here. Decide upon the title for an options listing.
3781 (common_handle_options): Add code to handle --help=. Adapt code
3782 for --help and --target-help to use the revised form of the
3783 print_specific_help function.
3784 (print_help): Delete.
3785 (print_param_help): Delete.
3786 (print_switch): Delete.
3787 * opts.h (cl_lang_count): Add prototype.
3788 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
3789 CL_MAX_OPTION_CLASS): New defines.
3790 * optc-gen.awk: Add construction of cl_lang_count.
3791 * c.opt: Add Warning attribute to warning options and Optimization
3792 attribute to optimization options.
3793 * common.opt: Likewise.
3795 Add -fhelp and -ftarget-help as aliases for the transformed --help
3796 and --target-help options.
3797 * opt-functions.awk: Add code to handle Warning and Optimization
3800 2007-02-12 Richard Henderson <rth@redhat.com>
3802 * config/alpha/constraints.md: New file.
3803 * config/alpha/alpha.c: Include tm-constrs.h.
3804 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
3805 alpha_extra_constraint): Remove.
3806 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
3807 * config/alpha/alpha-protos.h: Update.
3808 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
3809 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
3810 (EXTRA_CONSTRAINT): Remove.
3811 * config/alpha/alpha.md: Include constraints.md.
3812 (adddi splitter): Use satisfies_constraint_*.
3813 * config/alpha/predicates.md (add_operand): Likewise.
3814 (sext_add_operand, addition_operation): Likewise.
3816 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
3818 PR tree-optimization/29145
3819 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
3820 in our handling of restrict qualified pointers.
3822 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3825 * doc/invoke.texi (Wunused-value): Update description.
3826 (Wextra): Delete item.
3827 * opts.c (set_Wextra): Don't use the value of Wextra to set the
3828 value of Wunused-value.
3829 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
3830 (c_finish_stmt_expr): Don't check extra_warnings.
3831 (emit_side_effect_warnings): The caller is responsible to check
3834 2007-02-11 Roger Sayle <roger@eyesopen.com>
3835 Matt Thomas <matt@3am-software.com>
3837 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
3839 2007-02-11 Roger Sayle <roger@eyesopen.com>
3841 * simplify-rtx.c (simplify_relational_operation_1): Optimize
3842 comparisons of POPCOUNT against zero.
3843 (simplify_const_relational_operation): Likewise.
3845 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3847 * doc/invoke.texi (Wextra): Delete outdated paragraph.
3849 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3851 * dwarf2out.c (root_type): Delete unused function.
3853 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3855 * genattrtab.c (contained_in_p): Delete unused function.
3856 (write_expr_attr_cache): Likewise.
3858 2007-02-11 Jan Hubicka <jh@suse.cz>
3860 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
3863 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
3865 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
3866 to add the REG_EQ* note.
3867 * see.c (see_merge_one_use_extension): Likewise.
3868 * local-alloc.c (update_equiv_regs): Likewise. Also don't
3869 turn REG_EQUAL notes into REG_EQUIV notes if the target
3870 register may have more than one set.
3871 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
3872 * gcse.c (try_replace_reg): Likewise.
3873 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
3874 * calls.c (fixup_tail_calls): Likewise. Abort if there is
3875 more than one REG_EQUIV note.
3876 * reload1.c (gen_reload): Use set_unique_reg_note.
3878 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
3880 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
3881 (ix86_builtin_conversion): New function.
3883 2007-02-06 Mark Mitchell <mark@codesourcery.com>
3886 * tree.h (DECL_REPLACEABLE_P): New macro.
3887 * except.c (set_nothrow_function_flags): Likewise.
3889 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
3890 Ira Rosen <irar@il.ibm.com>
3891 Dorit Nuzman <dorit@il.ibm.com>
3893 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
3894 * targhooks.c (default_builtin_vectorized_conversion): New.
3895 * targhooks.h (default_builtin_vectorized_function): New declaration.
3896 * target.h (struct vectorize): Add builtin_conversion field.
3897 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
3898 stmt_vec_info_type value.
3899 (vectorizable_conversion): New declaration.
3900 * tree-vect-analyze.c (vect_analyze_operations): Add
3901 vectorizable_conversion call.
3902 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
3903 * tree-vect-transform.c (vectorizable_conversion): New function.
3904 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
3905 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
3907 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
3908 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
3909 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
3910 or ALTIVEC_BUILTIN_VCFSX.
3912 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3915 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
3916 CONST_DOUBLE and operand 0 is a hard register.
3917 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
3918 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
3919 is a hard floating-point register.
3921 2007-02-10 Richard Henderson <rth@redhat.com>
3922 Jakub Jelinek <jakub@redhat.com>
3923 Alexandre Oliva <aoliva@redhat.com>
3925 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
3926 * builtin-types.def (BT_WORD): Make unsigned.
3927 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
3928 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
3929 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
3930 * c-decl.c (grokdeclarator): Don't error if !have_tls.
3931 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3932 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
3934 * expr.c (emutls_var_address): New.
3935 (expand_expr_real_1): Expand emulated tls.
3936 (expand_expr_addr_expr_1): Likewise.
3937 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
3938 * output.h (emutls_finish): Declare.
3939 * toplev.c (compile_file): Call it.
3940 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
3941 address before wrapping in CONST.
3942 * varasm.c (emutls_htab, emutls_object_type): New.
3943 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
3944 (get_emutls_object_name, get_emutls_object_type): New.
3945 (get_emutls_init_templ_addr, emutls_decl): New.
3946 (emutls_common_1, emutls_finish): New.
3947 (assemble_variable): When emulating tls, swap decls; generate
3948 constructor for the emutls objects.
3949 (do_assemble_alias): When emulating tls, swap decl and target name.
3950 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
3952 * varpool.c (decide_is_variable_needed): Look at force_output.
3953 Recurse for emulated tls.
3954 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
3955 with decide_is_variable_needed.
3956 * emutls.c: New file.
3957 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
3958 tls_object for real tls.
3960 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
3962 PR rtl-optimization/29599
3963 * reload1.c (eliminate_regs_in_insn): Take the destination
3964 mode into account when computing the offset.
3966 2007-02-09 Stuart Hastings <stuart@apple.com>
3967 Richard Henderson <rth@redhat.com>
3969 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3970 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
3971 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
3972 fixuns_truncdfhi2): New.
3973 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
3974 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
3975 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
3976 (floatunssidf2): Allow nonimmediate source.
3977 * gcc/config/i386/sse.md (movdi_to_sse): New.
3978 (vec_concatv2di): Drop '*'.
3979 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
3980 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3981 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
3983 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
3984 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3985 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
3986 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3987 (ix86_build_signbit_mask): Fix decl of v, refactor to call
3988 ix86_build_const_vector.
3989 (x86_emit_floatuns): Rewrite.
3991 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3993 * genautomata.c (longest_path_length): Delete unused function.
3994 (struct state): Delete unused longest_path_length.
3995 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
3996 (get_free_state): Delete unused.
3998 2007-02-09 Jan Hubicka <jh@suse.cz>
4000 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
4001 * doc/invoke.texi (inline-unit-growth): Update default value.
4003 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
4004 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
4005 (rebuild_cgraph_edges): Likewise.
4006 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
4007 (dump_cgraph_node): Dump frequencies.
4008 (cgraph_clone_edge): Add frequency scales.
4009 (cgraph_clone_node): Add freuqnecy.
4010 * cgraph.h (cgraph_edge): Add freuqnecy argument.
4011 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
4012 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
4013 * tree-pass.h (TODO_rebuild_frequencies): New constant.
4014 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
4015 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
4016 (save_inline_function_body): Likewise.
4017 * ipa-inline.c: inluce rtl.h
4018 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
4019 (cgraph_edge_badness): Use frequencies.
4020 (cgraph_decide_recursive_inlining): Update clonning.
4021 (cgraph_decide_inlining_of_small_function): Dump frequency.
4022 * predict.c (estimate_bb_frequencies): Export.
4023 * predict.h (estimate_bb_frequencies): Declare.
4024 * tree-inline.c (copy_bb): Watch overflows.
4025 (expand_call_inline): Update call of cgraph_create_edge.
4026 (optimize_inline_calls): Use TODO flags to update frequnecies.
4027 * passes.h: Include predict.h
4028 (init_optimization_passes): Move profile ahead.
4029 (execute_function_todo): Handle TODO_rebuild_frequencies.
4031 2007-02-09 Roger Sayle <roger@eyesopen.com>
4033 * config/alpha/alpha.c (emit_insxl): Force the first operand of
4034 the insbl or inswl pattern into a register.
4036 2007-02-09 Roger Sayle <roger@eyesopen.com>
4038 * config/ia64/ia64.md (bswapdi2): New define_insn.
4040 2007-02-09 Richard Henderson <rth@redhat.com>
4042 * config/i386/constraints.md (Ym): New constraint.
4043 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
4044 (movdi_1_rex64): Split sse and xmm general register moves from
4045 memory move alternatives. Use conditional register constraints.
4046 (movsf_1, movdf_integer): Likewise.
4047 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
4048 (movdf_integer_rex64): New.
4049 (pushsf_rex64): Fix output constraints.
4050 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
4051 (sse2_stored): Likewise.
4052 (sse2_storeq_rex64): New.
4053 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
4054 amd and not generic.
4055 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
4056 for optimize_size. Remove SF/DFmode hack.
4058 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4060 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
4063 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
4064 Richard Sandiford <richard@codesourcery.com>
4066 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
4067 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
4068 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
4069 m68k/t-mlib to tmake_file.
4070 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
4071 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
4072 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
4073 Allow it to be cf or m68k. Set m68k_arch_family. If that
4074 variable is not empty, add t-$m68k_arch_family to tmake_file.
4075 Add t-mlibs to tmake_file.
4076 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
4077 * config/m68k/t-cf: New file.
4078 * config/m68k/t-m68k: Likewise.
4079 * config/m68k/t-mlibs: Likewise.
4080 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4081 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4082 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
4083 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4084 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
4086 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
4087 (INSTALL_LIBGCC): Delete.
4088 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
4089 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4090 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4091 (M68K_MLIB_CPU): Define.
4092 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
4093 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
4094 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
4096 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
4097 Richard Guenther <rguenther@suse.de>
4100 * fold-const.c (fold_comparison): Handle obfuscated comparisons
4101 against INT_MIN/INT_MAX.
4102 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
4103 file if a loop is removed.
4105 2007-02-09 Joseph Myers <joseph@codesourcery.com>
4107 * calls.c (store_one_arg): Pass correct alignment to
4108 emit_push_insn for non-BLKmode values.
4109 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
4110 unaligned stack slot via a suitably aligned slot.
4112 2007-02-08 DJ Delorie <dj@redhat.com>
4114 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
4116 (legal_subregs): Use unsigned char, make const.
4117 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
4119 2007-02-08 Paul Brook <paul@codesourcery.com>
4121 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
4122 special interworking needed.
4124 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
4126 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
4127 conditional to __SSE2__.
4128 (Entries below should have been added to first ChangeLog
4129 entry for amdfam10 dated 2007-02-05)
4130 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
4132 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
4134 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
4137 2007-02-08 DJ Delorie <dj@redhat.com>
4139 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
4140 * config/m32c/m32c.c (legal_subregs): New.
4141 (m32c_illegal_subreg_p): New.
4142 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
4143 unsupported subregs of hard regs.
4145 2007-02-08 Jan Hubicka <jh@suse.cz>
4147 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
4148 the same one; always update histograms.
4150 2007-02-08 Diego Novillo <dnovillo@redhat.com>
4152 * passes.c (init_optimization_passes): Tidy comment.
4154 2007-02-08 Roger Sayle <roger@eyesopen.com>
4156 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
4157 strip zero_extend, bswap and rotates from POCOUNT's argument.
4158 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
4159 zero_extend and rotates from PARITY's argument.
4160 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
4161 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
4162 of an integer constant at compile-time.
4164 2007-02-08 Diego Novillo <dnovillo@redhat.com>
4167 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
4169 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
4172 * tree-ssa-live.c (remove_unused_locals): Do not remove
4173 TREE_ADDRESSABLE variables.
4174 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
4175 * tree-ssa-operands.c (add_virtual_operand): Remove argument
4176 FOR_CLOBBER. Update all users.
4177 If VAR has an associated alias set, add a virtual operand for
4178 it if no alias is found to conflict with the memory reference.
4180 2007-02-07 Jan Hubicka <jh@suse.cz>
4181 Robert Kidd <rkidd@crhc.uiuc.edu>
4183 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
4185 2007-02-07 Ian Lance Taylor <iant@google.com>
4187 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
4189 2007-02-07 Roger Sayle <roger@eyesopen.com>
4191 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4192 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
4193 tablejumpdi, movsi_to_cr_one): Remove constraints from
4194 define_expand's match_operands.
4196 2007-02-07 Roger Sayle <roger@eyesopen.com>
4198 * global.c (compute_regsets): Move declatation of "i" inside of
4199 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
4201 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4204 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
4205 of INDIRECT_REF <RESULT_DECL>.
4207 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
4209 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
4210 Kaz Kojima <kkojima@gcc.gnu.org>
4213 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
4215 (sh_initialize_trampoline): Add parentheses to avoid a warning.
4217 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
4219 * doc/loop.texi: Document possibility not to perform disambiguation
4220 of loops with multiple latches.
4221 * cfgloopmanip.c (alp_enum_p): Removed.
4222 (add_loop): Handle subloops. Use get_loop_body_with_size.
4223 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
4224 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
4225 the new forwarder block.
4226 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
4227 Handle the case latch is NULL.
4228 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
4229 when marking loop exits.
4230 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
4232 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
4233 disambiguate_loops_with_multiple_latches.
4234 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
4235 before fix_loop_structure.
4236 * cfgloop.c: Include pointer-set.h and output.h.
4237 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
4238 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
4239 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
4240 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
4241 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
4242 disambiguate_multiple_latches, get_loop_body_with_size,
4243 disambiguate_loops_with_multiple_latches): New functions.
4244 (flow_loop_dump): Dump multiple latch edges.
4245 (flow_loop_nodes_find): Handle loops with multiple latches.
4246 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
4247 (glb_enum_p): Modified.
4248 (get_loop_body): Use get_loop_body_with_size.
4249 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
4250 (AVOID_CFG_MODIFICATIONS): New constant.
4251 (disambiguate_loops_with_multiple_latches, add_loop,
4252 get_loop_body_with_size): Declare.
4253 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
4255 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
4258 * global.c (compute_regsets): New function.
4259 (global_alloc): Refactored ELIMINABLE_REGSET
4260 and NO_GLOBAL_ALLOC_REGS computation out.
4261 (rest_of_handle_global_alloc): Call compute_regsets()
4262 for non-optimizing case.
4264 2007-02-06 Richard Henderson <rth@redhat.com>
4266 * config/i386/constraints.md (Y2): Rename from Y.
4267 (Yi): New constraint.
4268 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
4269 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
4270 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
4271 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
4272 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
4273 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
4274 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
4275 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
4276 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
4277 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
4278 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
4279 vec_extractv2si_1): Change Y constraints to Y2.
4280 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
4281 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
4282 Change Y constraints to Y2.
4283 (sse2_loadld): Change Y constraints to x.
4285 2007-02-06 Roger Sayle <roger@eyesopen.com>
4287 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
4288 (parity<mode>2): New define_expand using rs6000_emit_parity.
4289 * config/rs6000/rs6000.c (rs6000_emit_popcount,
4290 rs6000_emit_parity): New functions.
4291 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
4292 rs6000_emit_parity): Prototype here.
4294 2007-02-06 Ian Lance Taylor <iant@google.com>
4296 * lower-subreg.c (simple_move_operand): Reject CONST.
4297 (resolve_clobber): Call validate_change rather than directly
4298 assigning to XEXP (pat, 0).
4300 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
4302 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
4303 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
4304 (tree-cfg.o): Remove hashtab.h dependency.
4306 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
4307 (struct ivopts_data): Change niters to pointer_map_t.
4308 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
4309 (niter_for_exit): Create pointer_map on demand. Change for
4311 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
4312 (free_loop_data): Destroy data->niters if created and reset field.
4313 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
4314 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
4316 * tree-ssa-reassoc.c: Include pointer-set.h.
4317 (bb_rank): Change to long *.
4318 (operand_rank): Change to pointer_map_t.
4319 (find_operand_rank): Return long, -1 if not found. Declare as inline.
4320 (insert_operand_rank): Accept long.
4321 (operand_entry_hash, operand_entry_eq): Remove.
4322 (get_rank): Return long. Adjust for changes above.
4323 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
4325 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
4327 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
4328 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
4329 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
4331 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
4332 directly since it cannot be NULL.
4333 (get_vi_for_tree): Rewrite for pointer_map API.
4334 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
4335 (init_alias_vars): Create vi_for_tree as pointer_map.
4336 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
4338 * tree-cfg.c: Don't include hashtab.h.
4339 (edge_to_cases): Declare as pointer_map.
4340 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
4342 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
4343 (start_recording_case_labels): Create edge_to_cases as pointer_map.
4344 (end_recoding_case_labels): Cleanup edge_to_cases manually before
4346 (record_switch_edge): Delete.
4347 (get_cases_for_edge): Adjust for pointer_map API, inline
4348 record_switch_edge (rewritten for new API), remove goto.
4350 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
4352 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
4353 * tree-nested.c: Include pointer-set.h.
4354 (var_map_elt, var_map_eq, var_map_hash): Delete.
4355 (struct nesting_info): Remove GTY marker. Change the two htab_t's
4357 (nesting_info_bitmap_obstack): New.
4358 (lookup_field_for_decl): Adjust for pointer_map API.
4359 (lookup_tramp_for_decl): Adjust for pointer_map API.
4360 (get_nonlocal_debug_decl): Adjust for pointer_map API.
4361 (get_local_debug_decl): Adjust for pointer_map API.
4362 (convert_nl_goto_reference): Adjust for pointer_map API.
4363 (convert_nl_goto_receiver): Adjust for pointer_map API.
4364 (create_nesting_tree): Create outside GGC space. Create bitmap on
4365 the new obstack. Create field_map and var_map as pointer_maps.
4366 (free_nesting_tree): Adjust for changes to create_nesting_tree.
4368 (lower_nested_functions): Move root here, no need to NULL it.
4369 Initialize and release the obstack.
4371 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
4373 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
4374 Remove prototypes and make them non-static.
4375 (struct tree_int_map): Remove.
4376 * tree.h (struct tree_int_map): Move here, turning TO into an
4378 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
4380 * tree.h (TREE_COMPLEXITY): Remove.
4381 (struct tree_exp): Remove complexity field.
4382 * tree.c (build1_stat): Don't set it.
4384 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
4385 Victor Kaplansky <victork@il.ibm.com>
4387 * tree-vectorizer.c (vect_is_simple_use): Support induction.
4388 (vect_is_simple_reduction): Support reduction with induction as
4389 one of the operands.
4390 (vect_is_simple_iv_evolution): Fix formatting.
4391 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
4392 formatting. Don't mark induction phis for vectorization.
4393 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
4394 * tree-vect-transform.c (get_initial_def_for_induction): New function.
4395 (vect_get_vec_def_for_operand): Support induction.
4396 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
4398 (vectorizable_reduction): Support reduction with induction as one of
4400 (vectorizable_type_demotion): Use def-type of stmt argument rather
4401 than dummy def-type.
4403 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
4404 flag_tree_scev_cprop.
4405 * common.opt (tree-scev-cprop): New flag.
4407 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
4408 call to vect_get_new_vect_var.
4410 2007-02-06 Ira Rosen <irar@il.ibm.com>
4412 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
4413 vectype is not NULL.
4414 (vect_pattern_recog_1): Likewise.
4416 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4418 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
4419 (fold_negate_expr): Likewise.
4421 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
4424 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
4425 even if cv-qualification is the same.
4427 2007-02-05 Geoffrey Keating <geoffk@apple.com>
4429 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
4430 __enable_execute_stack on completion.
4432 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4434 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
4435 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
4436 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
4437 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
4438 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
4439 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
4440 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
4441 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
4443 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4445 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
4446 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
4447 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
4448 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
4449 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
4450 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
4451 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
4452 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
4453 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
4454 umuldi3_highpart_rex64, umulsi3_highpart_insn,
4455 umulsi3_highpart_zext, smuldi3_highpart_rex64,
4456 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
4457 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
4458 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
4459 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
4460 sqrtextenddfxf2_i387): Added amdfam10_decode.
4462 * config/i386/athlon.md (athlon_idirect_amdfam10,
4463 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
4464 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
4465 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
4466 athlon_ivector_store_amdfam10): New define_insn_reservation.
4467 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
4470 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4472 * config/i386/athlon.md (athlon_call_amdfam10,
4473 athlon_pop_amdfam10, athlon_lea_amdfam10): New
4474 define_insn_reservation.
4475 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
4476 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
4477 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
4479 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4481 * config/i386/athlon.md (athlon_sseld_amdfam10,
4482 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
4483 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
4485 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4487 * config/i386/athlon.md (athlon_sseins_amdfam10): New
4488 define_insn_reservation.
4489 * config/i386/i386.md (sseins): Added sseins to define_attr type
4490 and define_attr unit.
4491 * config/i386/sse.md: Set type attribute to sseins for insertq
4494 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4496 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
4497 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
4498 ssecomi_load_amdfam10, ssecomi_amdfam10,
4499 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
4500 define_insn_reservation.
4501 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
4503 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4505 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
4506 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
4507 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
4508 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
4509 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
4510 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
4511 define_insn_reservation.
4513 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
4514 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
4515 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
4516 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
4517 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
4519 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4521 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
4522 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
4523 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
4524 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
4525 athlon_ssemul_load_k8): Added amdfam10.
4527 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4529 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
4530 (x86_sse_unaligned_move_optimal): New variable.
4532 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
4534 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
4535 for unaligned vector SSE double/single precision loads for AMDFAM10.
4537 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4539 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
4540 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
4541 Define TARGET_CPU_DEFAULT_amdfam10.
4542 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
4543 (processor_type): Add PROCESSOR_AMDFAM10.
4545 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
4546 processor_type in config/i386/i386.h.
4547 Enable imul peepholes for TARGET_AMDFAM10.
4549 * config.gcc: Add support for --with-cpu option for amdfam10.
4551 * config/i386/i386.c (amdfam10_cost): New variable.
4552 (m_AMDFAM10): New macro.
4553 (m_ATHLON_K8_AMDFAM10): New macro.
4554 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
4555 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
4556 x86_promote_QImode, x86_integer_DFmode_moves,
4557 x86_partial_reg_dependency, x86_memory_mismatch_stall,
4558 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
4559 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
4560 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
4561 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
4562 Enable/disable for amdfam10.
4563 (override_options): Add amdfam10_cost to processor_target_table.
4564 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
4565 processor_alias_table.
4566 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
4567 (ix86_adjust_cost): Add code for amdfam10.
4569 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
4571 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
4572 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
4573 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
4574 * config/i386/i386.h: Add builtin definition for SSE4A.
4575 * config/i386/i386.md: Add support for ABM instructions
4577 * config/i386/sse.md: Add support for SSE4A instructions
4578 (movntss, movntsd, extrq, insertq).
4579 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
4580 Add -march=amdfam10 flag.
4581 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
4582 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
4584 * doc/extend.texi: Add documentation for SSE4A builtins.
4586 2007-02-05 Bob Wilson <bob.wilson@acm.org>
4588 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
4590 2007-02-05 Richard Guenther <rguenther@suse.de>
4592 * tree-vectorizer.h (vectorizable_function): Add argument type
4593 argument, change return type.
4594 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
4595 * tree-vect-transform.c (vectorizable_function): Handle extra
4596 argument, return vectorized function decl.
4597 (build_vectorized_function_call): Remove.
4598 (vectorizable_call): Handle calls with result and argument types
4599 differing. Handle loop vectorization factor correctly.
4600 * targhooks.c (default_builtin_vectorized_function): Adjust for
4602 * targhooks.h (default_builtin_vectorized_function): Likewise.
4603 * target.h (builtin_vectorized_function): Add argument type
4605 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4606 extra argument, allow vectorizing of lrintf.
4607 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
4608 documentation of target hook.
4610 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
4613 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
4614 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
4615 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
4617 2007-02-05 Roger Sayle <roger@eyesopen.com>
4619 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
4620 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
4621 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
4622 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
4623 before canonicalizing sincos to cexpi.
4624 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
4626 2007-02-05 Roger Sayle <roger@eyesopen.com>
4628 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
4629 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
4630 (alpha_init_builtins): Use alpha_add_builtins to process tables.
4632 2007-02-05 Roger Sayle <roger@eyesopen.com>
4634 * mips-tfile.c (initialize_init_file): Correct endianness test.
4636 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
4638 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
4641 2007-02-05 Richard Sandiford <richard@codesourcery.com>
4643 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
4644 saves in a PARALLEL before the register assignments.
4646 2007-02-05 Richard Sandiford <richard@codesourcery.com>
4648 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
4649 DWARF_FRAME_RETURN_COLUMN to be a general register.
4650 * dwarf2out.c (init_return_column_size): New function, split from...
4651 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
4652 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
4653 to be nongeneral registers.
4654 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
4656 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
4657 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
4659 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
4661 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
4663 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
4665 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
4666 (remove_path): Use can_remove_branch_p and remove_branch instead
4667 of loop_delete_branch_edge.
4668 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
4669 (tree_transform_and_unroll_loop): Remove dead branches immediately.
4670 Update profile using scale_dominated_blocks_in_loop.
4671 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
4672 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
4673 (can_remove_branch_p, remove_branch): Declare.
4674 * tree-cfg.c (tree_can_remove_branch_p): New function.
4675 (tree_cfg_hooks): Add tree_can_remove_branch_p.
4676 * cfgrtl.c (rtl_can_remove_branch_p): New function.
4677 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
4679 2007-02-05 Jan Hubicka <jh@suse.cz>
4682 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
4683 nodes in cgraph, don't remove offline copy of the function.
4685 2007-02-04 Jan Hubicka <jh@suse.cz>
4687 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
4688 vectors might cause maybe_lookup_element_for_expr to be called
4689 on non-sra-candidate.
4691 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
4693 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
4694 config/bfin/bfin.md, config/bfin/predicates.md: Follow
4695 spelling conventions.
4697 2007-02-04 Richard Guenther <rguenther@suse.de>
4700 * fold-const.c (try_move_mult_to_index): Make sure to not
4701 overflow one dimension of a multi-dimensional array access.
4703 2007-02-04 Jan Hubicka <jh@suse.cz>
4705 * passes.c (init_optimization_passes): Reindent.
4707 2007-02-04 Jan Hubicka <jh@suse.cz>
4708 Eric Botcazou <ebotcazou@adacore.com>
4710 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
4711 (execute_fixup_cfg): Break out the abnormal goto code.
4712 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
4713 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
4714 (optimize_inline_calls): Call make_nonlocal_label_edges.
4716 2007-02-04 Jan Hubicka <jh@suse.cz>
4718 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
4719 true when something was changed.
4720 (rename_ssa_copies): When something was changed, do
4721 TODO_remove_unused_locals.
4722 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
4723 add TODO_remove_unused_locals when instruction was removed.
4725 2007-02-04 Jan Hubicka <jh@suse.cz>
4727 * ipa-inline.c (try_inline): Improve debug output; work on already
4729 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
4730 call try_inline for already inlined edges too when flattening;
4731 inline also functions that make callee growth but overall unit size
4734 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
4736 * config/m32c/bitops.md, config/m32c/jump.md,
4737 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
4738 config/m32r/m32r.h, config/m32r/m32r.md,
4739 config/m32r/predicates.md, config/m68hc11/larith.asm,
4740 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4741 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
4742 config/mips/mips-protos.h, config/mips/mips.c,
4743 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
4744 config/mn10300/mn10300.h, config/mn10300/predicates.md,
4745 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
4746 spelling conventions.
4748 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
4749 Follow spelling conventions.
4751 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
4753 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
4754 warn about C++0x compatibility.
4756 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
4758 * config/h8300/h8300.c, config/h8300/h8300.h,
4759 config/h8300/h8300.md: Follow spelling conventions.
4761 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
4764 * combine.c (try_combine): Do not substitute source operand
4765 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
4767 2007-02-03 Jan Hubicka <jh@suse.cz>
4769 PR gcov-profile/30650
4770 * value-prof.c (stringop_block_profile): Fix handling of size counter;
4771 do not divide by zero for never executed counters.
4772 (tree_find_values_to_profile): Fix counters.
4773 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
4775 2007-02-03 Ian Lance Taylor <iant@google.com>
4777 * lower-subreg.c (simple_move_operand): New static function,
4778 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
4780 (simple_move): Call simple_move_operand.
4781 (find_decomposable_subregs): Add special handling of MEMs.
4782 (can_decompose_p): Rename from cannot_decompose_p. Reverse
4783 meaning of return value. If we see a hard register, test whether
4784 it can store a word_mode value. Change all callers.
4786 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4788 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
4789 ftrapv insns and expanders.
4790 (subdi3): Change define_expand operand 1 to arith11_operand, and
4791 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
4792 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
4793 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
4797 * varasm.c (notice_global_symbol): Treat global objects as weak when
4800 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4802 * emit-rtl.c (dconstpi): Delete.
4804 (init_emit_once): Delete dconstpi and init dconstsqrt2.
4805 * real.h (dconstpi): Delete.
4807 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
4808 (fold_builtin_hypot): Likewise.
4810 2007-02-03 Tom Tromey <tromey@redhat.com>
4813 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
4814 -gcoff3, -gxcoff3, -gvms3 implies -dD.
4816 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
4818 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
4819 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
4820 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
4821 config/rs6000/cell.md, config/rs6000/darwin.h,
4822 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
4823 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
4824 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
4825 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
4826 typos. Follow spelling conventions.
4827 * doc/invoke.texi: Follow spelling conventions.
4829 2007-02-03 Roger Sayle <roger@eyesopen.com>
4831 * simplify-rtx.c (simplify_relational_operation_1): Implement some
4832 canonicalization transformations that attempt to simplify integer
4833 constant comparisons to become comparisons against zero.
4835 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4837 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
4839 * fold-const.c (fold_binary): Fix comment typos. Fold complex
4840 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
4842 2007-02-02 Mike Stump <mrs@apple.com>
4844 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
4845 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
4846 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
4847 generate a branch island.
4849 2007-02-02 Bob Wilson <bob.wilson@acm.org>
4851 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
4852 (xtensa_legitimate_address_p): New.
4853 (xtensa_legitimize_address): New.
4854 (xtensa_output_addr_const_extra): New.
4855 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
4857 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
4858 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
4859 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
4860 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
4861 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
4862 (xtensa_legitimize_address): New.
4863 (xtensa_output_addr_const_extra): New.
4865 2007-02-02 Steve Ellcey <sje@cup.hp.com>
4867 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
4869 2007-02-02 Ian Lance Taylor <iant@google.com>
4871 * expmed.c (expand_divmod): Add comment.
4873 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
4875 * emit-rtl.c (renumber_insns): Remove.
4876 * flags.h: Remove the extern for flag_renumber_insns.
4877 * rtl.h: Remove the prototype for renumber_insns.
4878 * toplev.c (flag_renumber_insns): Remove.
4880 2007-02-02 Hui-May Chang <hm.chang@apple.com>
4882 Revert for x86 darwin:
4883 2005-06-19 Uros Bizjak <uros@kss-loka.si>
4885 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
4886 code before the following patch under TARGET_MACHO.
4887 (ix86_function_value_regno_p): Likewise.
4889 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4891 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
4894 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4897 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
4898 general or fp registers. Add comments.
4899 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
4901 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
4903 * pointer-set.c (insert_aux): Only return insertion slot.
4904 (pointer_set_insert): Adjust.
4905 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
4906 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
4907 pointer_map_traverse): New.
4908 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
4909 pointer_map_create, pointer_map_destroy, pointer_map_insert,
4910 pointer_map_contains, pointer_map_traverse): Declare.
4912 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4915 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
4916 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
4918 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4920 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
4922 (struct _dep): New type.
4923 (dep_t): New typedef.
4924 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
4925 (DEP_STATUS): New access macro. The macro with the same name was
4926 renamed to DEP_LINK_STATUS.
4927 (dep_init): Declare function
4929 (struct _dep_link): New type.
4930 (dep_link_t): New typedef.
4931 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
4932 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
4933 (DEP_LINK_STATUS): New macro.
4934 (debug_dep_links): New debug function.
4936 (struct _deps_list): New type.
4937 (deps_list_t): New typedef.
4938 (DEPS_LIST_FIRST): New access macro.
4939 (FOR_EACH_DEP_LINK): New cycle macro.
4940 (create_deps_list, free_deps_list, delete_deps_list): Declare
4942 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
4943 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4944 (copy_deps_list_change_con): Ditto.
4946 (move_dep_link): Declare function.
4948 (struct _dep_node): New type.
4949 (dep_node_t): New typedef.
4950 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
4952 (struct haifa_insn_data.back_deps): New field to hold backward
4953 dependencies of the insn.
4954 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
4956 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
4957 Change its type to deps_list_t.
4958 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
4959 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
4960 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
4962 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
4964 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
4966 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
4968 (dep_cost): Declare.
4970 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
4971 (ds_to_dk, dk_to_ds): New functions.
4973 (init_dep_1): New static function.
4974 (init_dep): New function.
4975 (copy_dep): New static function.
4977 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
4979 (detach_dep_link): New static function.
4980 (move_dep_link): New function.
4982 (dep_links_consistent_p, dump_dep_links): New static functions.
4983 (debug_dep_links): New debugging function.
4985 (deps_obstack, dl_obstack, dn_obstack): New static variables.
4987 (alloc_deps_list, init_deps_list): New static functions.
4988 (create_deps_list): New function.
4989 (clear_deps_list): New static function.
4990 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
4991 (deps_list_consistent_p, dump_deps_list): New static functions.
4992 (debug_deps_list): New function.
4993 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
4995 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
4997 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
4998 use new scheduler dependencies lists.
4999 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
5000 (sched_analyze): Ditto. Initialize dependencies lists.
5001 (add_forw_dep, compute_forward_dependences): Update to use new
5002 scheduler dependencies lists.
5004 (init_dependency_caches): Init deps_obstack.
5005 (free_dependency_caches): Free deps_obstack.
5007 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
5008 new scheduler dependencies lists.
5009 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
5010 (add_back_forw_dep, delete_back_forw_dep): Ditto.
5012 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
5013 Update to use new scheduler dependencies lists.
5014 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
5015 (debug_dependencies): Ditto.
5016 (schedule_region): Update comments.
5018 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
5019 scheduler dependencies lists.
5020 (schedule_ebb): Update comments.
5022 * rtl.def (DEPS_LIST): Remove.
5024 * lists.c (unused_deps_list): Remove.
5025 (free_list): Update assertions.
5027 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
5028 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
5030 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
5031 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
5033 * haifa-sched.c (comments): Update.
5034 (insn_cost1): Remove. Inline the code into insn_cost ().
5035 (insn_cost): Update to use new scheduler dependencies lists. Move
5036 processing of the dependency cost to dep_cost ().
5037 (dep_cost): New function. Use it instead of insn_cost () when
5038 evaluating cost of the dependency. Use compatible interface to
5039 interact with the target.
5040 (priority): Update to use new scheduler dependencies lists.
5041 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
5042 with greater number of insns that depend on the insn.
5043 (schedule_insn): Update to use new scheduler dependencies lists. Add
5044 code to free backward dependencies lists. Inline and optimize code
5045 from resolve_dep () - see PR28071.
5046 (ok_for_early_queue_removal): Update to use new scheduler dependencies
5047 lists. Update call to targetm.sched.is_costly_dependence hook.
5049 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
5050 scheduler dependencies lists.
5052 (resolve_dep): Remove. Move the logic to schedule_insn ().
5053 (init_h_i_d): Initialize dependencies lists.
5055 (process_insn_depend_be_in_spec): Rename to
5056 process_insn_forw_deps_be_in_spec. Update to use new scheduler
5058 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
5059 Update to use new scheduler dependencies lists.
5060 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
5062 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
5063 new scheduler dependencies lists.
5064 (build_intra_loop_deps): Ditto.
5066 * target.h (struct _dep): Declare to use in
5067 gcc_target.sched.is_costly_dependence.
5068 (struct gcc_target.sched.adjust_cost): Fix typo.
5069 (struct gcc_target.sched.is_costly_dependence): Change signature to use
5070 single dep_t parameter instead of an equivalent triad.
5071 (struct gcc_target.sched.adjust_cost_2): Remove.
5073 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
5075 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
5077 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
5079 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
5081 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
5082 (REG_DEP_TRUE): Document.
5084 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
5085 Change signature to correspond to the targetm.sched.adjust_cost hook.
5086 Update use in TARGET_SCHED_ADJUST_COST_2.
5087 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
5088 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
5089 new scheduler dependencies lists.
5090 (ia64_gen_check): Ditto.
5092 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
5095 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
5096 signature to correspond to the targetm.sched.is_costly_dependence hook.
5097 (is_costly_group): Update to use new scheduler dependencies lists.
5099 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
5100 instead of INSN_COST () macro.
5102 2007-02-01 Ian Lance Taylor <iant@google.com>
5104 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
5106 2007-02-01 Guy Martin <gmsoft@gentoo.org>
5108 * pa.md (tp_load): Correct mfctl instruction syntax.
5110 2007-02-01 Geoffrey Keating <geoffk@apple.com>
5112 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
5113 altivec_padding_size calculation on AIX. Improve comment, add
5114 assert to verify that it's right.
5116 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
5119 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
5122 * global.c (global_alloc): Add mising initialization of
5125 2007-02-01 Roger Sayle <roger@eyesopen.com>
5127 * alias.c (init_alias_analysis): Correct whitespace.
5128 * bb-reorder.c (fix_edges_for_rarely_executed_code,
5129 partition_hot_cold_basic_blocks): Likewise.
5130 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
5131 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
5132 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
5133 fold_builtin_snprintf_chk, fold_builtin_printf,
5134 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
5135 do_mpfr_arg3, do_mpfr_sincos): Likewise.
5136 * cfgcleanup.c (cleanup_cfg): Likewise.
5137 * cfgexpand.c (tree_expand_cfg): Likewise.
5138 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
5139 * function.c (get_next_funcdef_no): Likewise.
5140 * gengtype.c (main): Likewise.
5141 * genmodes.c (main): Likewise.
5142 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
5143 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
5144 * ifcvt.c (noce_emit_move_insn): Likewise.
5145 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
5147 * stor-layout.c (get_best_mode): Likewise.
5148 * tree-ssa-loop-niter.c (get_val_for): Likewise.
5149 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
5150 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
5151 perform_var_substitution, solve_graph): Likewise.
5152 * tree-vrp.c (vrp_finalize): Likewise.
5154 2007-02-01 Ian Lance Taylor <iant@google.com>
5156 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
5157 high part of a paradoxical subreg, return a constant zero.
5159 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
5161 * toplev.c (lang_dependent_init): Call init_set_costs.
5162 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
5164 2007-02-01 Richard Guenther <rguenther@suse.de>
5167 * fold-const.c (fold_negate_expr): Allow negating a
5168 constant if overflow does not change.
5170 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5172 * doc/c-tree.texi (Expression trees): Improve markup.
5173 * doc/tm.texi (Register Classes, Addressing Modes)
5174 (Floating Point): Fix spacing after abbreviations. Fix some
5177 2007-02-01 Ben Elliston <bje@au.ibm.com>
5179 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
5180 * doc/contrib.texi: Likewise.
5181 * doc/install.texi: Likewise.
5183 2007-01-31 Richard Henderson <rth@redhat.com>
5184 Ian Lance Taylor <iant@google.com>
5186 * lower-subreg.c: New file.
5187 * rtl.def (CONCATN): Define.
5188 * passes.c (init_optimization_passes): Add pass_lower_subreg and
5190 * emit-rtl.c (update_reg_offset): New static function, broken out
5191 of gen_rtx_REG_offset.
5192 (gen_rtx_REG_offset): Call update_reg_offset.
5193 (gen_reg_rtx_offset): New function.
5194 * regclass.c: Revert patch of 2006-03-05, restoring
5196 (clear_reg_info_regno): New function.
5197 * dwarf2out.c (concatn_loc_descriptor): New static function.
5198 (loc_descriptor): Handle CONCATN.
5199 * common.opt (fsplit_wide_types): New option.
5200 * opts.c (decode_options): Set flag_split_wide_types when
5202 * timevar.def (TV_LOWER_SUBREG): Define.
5203 * rtl.h (gen_reg_rtx_offset): Declare.
5204 (reg_scan_update): Declare.
5205 * regs.h (clear_reg_info_regno): Declare.
5206 * tree-pass.h (pass_lower_subreg): Declare.
5207 (pass_lower_subreg2): Declare.
5208 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
5209 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
5211 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
5212 * Makefile.in (OBJS-common): Add lower-subreg.o.
5213 (lower-subreg.o): New target.
5215 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
5217 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
5219 2007-01-31 Anatoly Sokolov <aesok@post.ru>
5222 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
5224 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5227 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
5229 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
5231 * cfgloop.h: Include vec-prim.h.
5232 (enum li_flags): Remove LI_ONLY_OLD.
5233 (loop_iterator): Changed.
5234 (fel_next, fel_init): Iterate over loop tree.
5235 (FOR_EACH_LOOP_BREAK): New macro.
5236 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
5238 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
5239 * modulo-sched.c (sms_schedule): Ditto.
5240 * tree-vectorizer.c (vectorize_loops): Ditto.
5241 * doc/loop.texi: Update information on loop numbering and behavior of
5242 FOR_EACH_LOOP wrto new loops.
5243 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5244 add_to_evolution_1): Test nestedness of loops instead of comparing
5246 * tree-chrec.c (chrec_fold_plus_poly_poly,
5247 chrec_fold_multiply_poly_poly, chrec_evaluate,
5248 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
5249 reset_evolution_in_loop): Ditto.
5250 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
5252 2007-01-31 Dirk Mueller <dmueller@suse.de>
5254 * c-common.c (warn_about_parentheses): Separate warning about
5255 un-parenthized sequence of comparison operators from the one
5256 which is supposed to warn about x <= y <= z.
5258 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
5260 * optabs.h (enum optab_index): Add new OTI_isinf.
5261 (isinf_optab): Define corresponding macro.
5262 * optabs.c (init_optabs): Initialize isinf_optab.
5263 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
5265 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
5266 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
5268 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
5269 expand_builtin_interclass_mathfn.
5270 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
5271 * config/i386/i386.md (UNSPEC_FXAM): New constant.
5272 (fxam<mode>2_i387): New insn pattern.
5273 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
5274 built-in functions as x87 inline asm.
5276 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
5278 * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
5280 2007-01-30 Eric Christopher <echristo@apple.com>
5282 * config.gcc: Add geode.
5284 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
5286 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
5287 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
5288 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
5289 value-prof.c: Fix comment typos.
5291 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5294 * doc/invoke.texi (Wpointer-arith): Document warning.
5296 2007-01-30 Janis Johnson <janis187@us.ibm.com>
5298 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
5299 the list of discrepancies from the draft TR.
5301 2007-01-30 Dirk Mueller <dmueller@suse.de>
5304 * doc/invoke.texi (-Wreturn-type): Update description to
5307 2007-01-30 Richard Sandiford <richard@codesourcery.com>
5309 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
5311 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
5313 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
5314 to handle optabs that operate on floating point input argument and
5315 output to integer output.
5316 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
5317 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
5318 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
5319 expand_builtin_interclass_mathfn ().
5320 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
5322 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
5323 ilogbl built-in functions as x87 intrinsics.
5325 2007-01-30 Richard Guenther <rguenther@suse.de>
5328 * dwarf2out.c (reference_to_unused): Query varpool if the
5329 variable was output.
5331 2007-01-30 Richard Guenther <rguenther@suse.de>
5334 * passes.c (execute_one_pass): Reset in_gimple_form to not
5335 confuse non-unit-at-a-time mode.
5337 2007-01-29 Roger Sayle <roger@eyesopen.com>
5338 Richard Guenther <rguenther@suse.de>
5340 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
5341 avoid undefined behaviour on overflow. Use force_fit_type_double
5342 to construct the constant with the specified TREE_OVERFLOW.
5344 2007-01-29 Janis Johnson <janis187@us.ibm.com>
5346 * config/dfp-bit.c: Add parameterized support for fp exceptions.
5347 * config/dfp-bit.h: Ditto.
5349 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5351 * c-decl.c (pop_scope): Replace warnings with call to
5352 warn_for_unused_label.
5353 * c-common.h (warn_for_unused_label): Declare.
5354 * c-common.c (warn_for_unused_label): Define.
5356 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5358 * tree-optimize.c (update_inlined_to_pointers): Delete unused
5361 2007-01-29 Janis Johnson <janis187@us.ibm.com>
5363 * Makefile.in (USER_H): Remove decfloat.h.
5364 * ginclude/decfloat.h: Delete, moving contents to ...
5365 * ginclude/float.h: Add support for decimal floating point,
5366 guarded by __STDC_WANT_DEC_FP__.
5368 2007-01-29 Mike Stump <mrs@apple.com>
5370 * doc/gccint.texi (Top): Rename Loop Representation to Loop
5371 Analysis and Representation to resolve case insensitive conflict.
5372 * doc/loop.texi (Loop Analysis and Representation): Likewise.
5374 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
5376 * tree.h (struct tree_memory_tag): Add aliases member.
5377 (MTAG_ALIASES): New macro.
5378 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
5379 (add_may_alias): Remove pointer-set. Update for may_aliases being
5381 (mark_aliases_call_clobbered): Update for may_aliases being a
5383 (compute_tag_properties): Ditto.
5384 (create_partition_for): Ditto.
5385 (compute_memory_partitions): Ditto.
5386 (dump_may_aliases_for): Ditto.
5387 (is_aliased_with): Ditto.
5388 (add_may_alias_for_new_tag): Ditto.
5389 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
5390 (compute_is_aliased): New function.
5391 (compute_may_aliases): Call compute_is_aliased).
5392 (init_alias_info): Initialize alias_bitmap_obstack.
5393 (union_alias_set_into): New function.
5394 (compute_flow_sensitive_aliasing): Use union_aliases_into.
5395 (have_common_aliases_p): Rewrite to take two bitmaps and use
5397 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
5399 (finalize_ref_all_pointers): Update for add_may_alias changes.
5400 (new_type_alias): Ditto.
5401 * tree-flow-inline.h (may_aliases): Return a bitmap.
5402 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
5403 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
5404 may_aliases being a bitmap.
5405 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
5406 may_aliases now returns a bitmap.
5407 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
5409 * tree-ssa-operands.c (add_virtual_operand): Update for
5410 may_aliases being a bitmap.
5412 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
5414 PR tree-optimization/30630
5415 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
5416 variable as changed.
5418 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
5421 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
5422 expanded only once even if an error occurs.
5424 2007-01-29 Ben Elliston <bje@au.ibm.com>
5426 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
5427 (__gcov_average_profiler): Likewise.
5428 (__gcov_ior_profiler): Likewise.
5429 (__gcov_merge_ior): Likewise.
5431 2007-01-28 Jan Hubicka <jh@suse.cz>
5433 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
5434 * value-prof.c (stringop_block_profile): Likewise.
5436 2007-01-28 Jan Hubicka <jh@suse.cz>
5438 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
5439 variant handling histograms; add wrapper.
5440 (clear_storage_via_libcall): Export.
5441 (emit_block_move_hints): Break out from ...; add histograms.
5442 (emit_block_move): ... this one.
5443 (clear_storage_hints): Break out from ...; add histograms.
5444 (clear_storage): ... this one.
5445 (set_storage_via_memset): Handle histogram.
5446 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
5447 (clear_storage_hints, clear_storage_via_libcall): Declare.
5448 (set_storage_via_setmem): Update prototype.
5449 * doc/md.texi (movmem, setmem): Document new arguments.
5451 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
5453 (stringop_block_profile): New global function.
5454 (tree_stringops_values_to_profile): Profile block size and alignment.
5455 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
5457 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
5458 (stringop_block_profile): Declare.
5459 * builtins.c: Include value-prof.h.
5460 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
5461 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
5462 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
5463 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
5464 * profile.c (instrument_values): Add new counters.
5465 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
5467 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
5468 (tree_init_edge_profiler): Build new profilers.
5469 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
5470 (pass_tree_profile): Add dump.
5471 (tree_profile_hooks): Update.
5472 * Makefile.in (LIBGCOV): Add new constants.
5473 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
5474 __gcov_ior_profiler): New.
5475 * i386.md (movmem/setmem expanders): Add new optional arguments.
5477 2007-01-28 David Edelsohn <edelsohn@gnu.org>
5479 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
5481 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
5483 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
5484 (tree_unswitch_single_loop): Pass eni_size_weights to
5485 tree_num_loop_insns.
5486 * tree-ssa-loop-manip.c: Include tree-inline.h.
5487 (can_unroll_loop_p): Pass eni_size_weights to
5488 tree_num_loop_insns.
5489 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
5490 Pass eni_size_weights to estimate_num_insns.
5491 * tree.h (init_inline_once): Export.
5492 * toplev.c (backend_init): Call init_inline_once.
5493 * cgraphunit.c (cgraph_process_new_functions,
5494 cgraph_analyze_function): Pass eni_inlining_weights to
5496 * ipa-inline.c (compute_inline_parameters): Ditto.
5497 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
5498 to estimate_num_insns.
5499 (try_unroll_loop_completely): Pass eni_size_weights to
5500 tree_num_loop_insns.
5501 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
5502 ot estimate_num_insns.
5503 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
5504 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
5505 * tree-inline.c (eni_inlining_weights, eni_size_weights,
5506 eni_time_weights): New variables.
5507 (init_inline_once): Initialize them.
5508 (struct eni_data): Mew.
5509 (estimate_num_insns_1, estimate_num_insns): Use weights.
5510 * tree-inline.h (struct eni_weights_d): New.
5511 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
5512 (estimate_num_insns): Declaration changed.
5513 * cfgloop.h (tree_num_loop_insns): Declaration changed.
5514 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
5515 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
5517 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
5519 * tree-data-ref.c (conflict_fn): Assert that the number of affine
5520 relations in the conflict function is valid.
5522 2007-01-27 Ian Lance Taylor <iant@google.com>
5524 * common.opt: Add fstrict-overflow.
5525 * opts.c (decode_options): Set flag_strict_overflow if -O2.
5526 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
5527 (TYPE_OVERFLOW_UNDEFINED): Define.
5528 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
5530 * tree.h (TYPE_TRAP_SIGNED): Don't define.
5531 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
5532 (fold_negate_expr): Likewise.
5533 (make_range): Likewise.
5534 (extract_muldiv_1): Likewise.
5535 (maybe_canonicalize_comparison): Likewise.
5536 (fold_comparison): Likewise.
5537 (fold_binary): Likewise.
5538 (tree_expr_nonnegative_p): Likewise.
5539 (tree_expr_nonzero_p): Likewise.
5540 * tree-vrp.c (compare_values): Likewise.
5541 (extract_range_from_binary_expr): Likewise.
5542 (extract_range_from_unary_expr): Likewise.
5543 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
5545 (nowrap_type_p): Likewise.
5546 * tree-scalar-evolution.c (simple_iv): Likewise.
5547 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
5548 (build_range_check): Likewise.
5549 (extract_muldiv_1): Likewise.
5550 (fold_comparison): Likewise.
5551 * tree-vrp.c (vrp_int_const_binop): Likewise.
5552 (extract_range_from_unary_expr): Likewise.
5553 * convert.c (convert_to_integer): Likewise.
5554 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
5555 (fold_comparison): Likewise.
5556 (fold_binary): Likewise.
5557 * optabs.c (optab_for_tree_code): Likewise.
5558 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
5559 * simplify-rtx.c (simplify_const_relational_operation): Check
5560 flag_strict_overflow and flag_trapv.
5561 (simplify_const_relational_operation): Likewise.
5562 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
5563 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
5566 2007-01-27 Roger Sayle <roger@eyesopen.com>
5568 * tree.c (tree_fold_gcd): Delete.
5569 * tree.h (tree_fold_gcd): Remove prototype.
5570 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
5571 test whether one constant integer is a multiple of another. Instead
5572 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
5573 * fold-const.c (multiple_of_p): We've determined both TOP and
5574 BOTTOM are integer constants so we can call int_const_binop directly
5575 instead of the more generic const_binop.
5577 2007-01-27 Roger Sayle <roger@eyesopen.com>
5579 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
5580 1*X check that the constant hasn't overflowed, to preserve the
5582 (round_up): Provide an efficient implementation when rouding-up an
5583 INTEGER_CST to a power-of-two.
5585 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5587 * doc/sourcebuild.texi: Add comma for clarity.
5588 * doc/extend.texi: Fix some typos.
5589 * doc/passes.texi: Likewise.
5590 * doc/cppinternals.texi: Likewise.
5591 * doc/c-tree.texi: Likewise.
5592 * doc/tree-ssa.texi: Likewise.
5593 * doc/install.texi: Likewise.
5595 2007-01-27 Jan Hubicka <jh@suse.cz>
5597 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
5598 (pass_sra): Do not require alias information.
5599 * passes.c (init_optimization_passes): Add SRA
5601 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
5603 * tracer.c (rest_of_handle_tracer): We already cleaned
5604 up the CFG in tracer() so don't do it here again.
5605 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
5606 cleanup_cfg here, either. And don't call renumber_insns.
5608 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
5609 and BB_HEAD are in the insn stream here. Instead make sure
5610 that BB_INSN is valid on all insns. Also, do check here that
5611 there are no pending branch predictions...
5612 (rtl_verify_flow_info): ...instead of doing it here. Checks
5613 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
5616 2007-01-26 Roger Sayle <roger@eyesopen.com>
5618 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
5619 function to simplify/factorize operand order canonicalization.
5620 (ix86_fixup_binary_operands): Reorganize using the above function.
5621 (ix86_binary_operator_ok): Likewise.
5623 2007-01-27 Jakub Jelinek <jakub@redhat.com>
5625 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
5626 file scope from optimize_attrs.
5627 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
5629 (optimize_attrs): Clear insn_code_values after freeing it.
5631 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
5633 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
5634 a parts.base assignment.
5636 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
5638 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
5639 (compute_subscript_distance, initialize_data_dependence_relation,
5640 finalize_ddr_dependent, analyze_ziv_subscript,
5641 analyze_siv_subscript_cst_affine,
5642 compute_overlap_steps_for_affine_univar,
5643 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5644 analyze_siv_subscript, analyze_miv_subscript,
5645 analyze_overlapping_iterations, subscript_dependence_tester_1,
5646 compute_self_dependence, free_dependence_relation): Work
5647 with affine_fn instead of chrecs.
5648 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
5649 common_affine_function, affine_function_base,
5650 affine_function_constant_p, affine_fn_op, affine_fn_plus,
5651 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
5652 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
5653 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
5654 (all_chrecs_equal_p): Removed.
5655 * tree-data-ref.h (affine_fn, conflict_function): New types.
5656 (struct subscript): Change type of conflicting_iterations_in_a
5657 and conflicting_iterations_in_b.
5659 2007-01-26 Steve Ellcey <sje@cup.hp.com>
5662 * config/pa/pa.h (TARGET_HPUX_11): New.
5663 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
5664 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
5666 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
5667 Richard Guenther <rguenther@suse.de>
5669 * tree-ssa-structalias.c (solve_graph): Handle case
5670 we merged the variable to another.
5672 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5674 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
5677 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
5678 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
5680 2007-01-25 DJ Delorie <dj@redhat.com>
5682 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
5683 allow changes to modes which don't fit in those registers.
5685 * reload1.c (choose_reload_regs): Check for invalid subregs before
5686 computing their locations, not after.
5688 2007-01-25 Geoffrey Keating <geoffk@apple.com>
5691 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
5692 save Altivec registers in an eh_return function.
5693 (compute_vrsave_mask): Likewise.
5694 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
5695 for saving Altivec registers.
5696 (rs6000_emit_prologue): Don't allocate stack twice in
5697 eh_return function. Correct expected value of altivec_save_offset
5698 when using save_world. Describe save of R0 to stack when using
5699 save_world. Describe stack pointer adjustment when using
5700 save_world. Remove duplicated eh_return parameter register saving.
5701 Update sp_offset variable after save_world.
5702 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
5704 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
5705 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
5708 2007-01-25 Steve Ellcey <sje@cup.hp.com>
5710 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
5712 2007-01-25 Steve Ellcey <sje@cup.hp.com>
5715 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
5716 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
5718 2007-01-25 Richard Guenther <rguenther@suse.de>
5720 * doc/invoke.texi (-Wcoverage-mismatch): Document.
5721 * common.opt (-Wcoverage-mismatch): New warning option.
5722 * coverage.c (get_coverage_counts): Ignore coverage mismatch
5723 if -Wcoverage-mismatch is given.
5725 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
5727 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
5728 (ipcp_driver): Change to static definition.
5729 Add dumping of the ifunctions.
5730 (constant_val_insert): Remove unused parameter. Support for SSA.
5731 (ipcp_propagate_const): Support for SSA.
5732 (ipcp_profile_bb_print): Print only analyzed nodes.
5733 (ipcp_replace_map_create): Remove support for Fortran constant
5735 * ipa-prop.c (ipa_method_modify_stmt,
5736 ipa_callsite_compute_param): Support for SSA.
5737 * ipa-prop.h (ipcp_driver): Remove declaration.
5738 (IS_VALID_TREE_MAP_INDEX): Add define.
5740 2007-01-24 Geoffrey Keating <geoffk@apple.com>
5742 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
5744 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5747 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
5748 constant argument to cabs and do it without checking for
5749 -funsafe-math-optimizations.
5751 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
5753 * c-common.h (RID_FIRST_CXX0X): New.
5754 (RID_LAST_CXX0X): New.
5755 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
5757 * c.opt (Wc++0x-compat): New.
5758 * doc/invoke.texi (-Wc++0x-compat): Document.
5760 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5762 * builtins.c (fold_builtin_carg): New.
5763 (fold_builtin_1): Use it.
5765 2007-01-24 Jan Hubicka <jh@suse.cz>
5767 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
5769 * ipa-inline.c (initial_insns, max_insns): Delete.
5770 (compute_max_insns): New function.
5771 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
5772 of insns as base for code growth.
5773 (cgraph_decide_inlining): Make initial_insns local; do not compute
5775 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
5776 * doc/invoke.texi (inline-unit-growth): Update docs.
5778 2007-01-24 Jakub Jelinek <jakub@redhat.com>
5780 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
5781 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
5782 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
5783 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
5784 for CPUs that have PTA_CX16 set.
5787 * gimplify.c (omp_check_private): New function.
5788 (gimplify_scan_omp_clauses): Use it for
5789 firstprivate/lastprivate/reduction.
5792 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
5793 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
5796 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
5797 If lower_lastprivate_clauses emits some statements, append them
5798 to dlist rather than body_p and to body_p append an initializer.
5799 (lower_omp_for): Adjust caller.
5801 2007-01-24 Steve Ellcey <sje@cup.hp.com>
5803 * target.h (globalize_decl_name): New.
5804 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5805 * output.h (default_globalize_decl_name): New.
5806 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
5808 (globalize_decl): Ditto.
5809 (default_globalize_decl_name): New.
5810 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
5811 (ia64_handle_version_id_attribute): New.
5812 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
5813 (ia64_asm_output_external): Use globalize_decl_name instead
5815 * doc/extend.texi (version_id): New pragma.
5816 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
5818 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
5820 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
5821 _uleb128_t and _Unwind_SWord with _sleb128_t.
5822 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
5823 uw_frame_state_for, uw_update_context_1): Likewise.
5824 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
5825 * unwind-pe.h (read_uleb128, read_sleb128,
5826 read_encoded_value_with_base): Likewise.
5827 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
5829 2007-01-24 Richard Guenther <rguenther@suse.de>
5831 * builtins.c (expand_builtin_cexpi): Get the fndecl
5832 for cexp in the correct way.
5834 2007-01-24 Jan Hubicka <jh@suse.cz>
5836 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
5838 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
5840 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
5841 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
5842 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
5843 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
5844 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
5845 __SIZEOF_PTRDIFF_T__.
5846 * doc/cpp.texi: Documentation for the new builtin macros added.
5848 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
5850 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
5851 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
5852 instead of operands[2] to avoid access past the end of array.
5854 2007-01-24 Richard Sandiford <richard@codesourcery.com>
5856 * reload1.c (emit_reload_insns): Pass the reload register
5857 for a non-spill output reload through forget_old_reloads_1.
5859 2007-01-23 Joseph Myers <joseph@codesourcery.com>
5861 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5862 _SOFT_DOUBLE if doubles use software floating-point.
5863 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
5864 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5865 * config/rs6000/darwin-ldouble.c: Also compile functions for
5866 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
5867 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
5868 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
5869 commented-out long double override.
5870 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
5871 * config/rs6000/eabispe.h: Likewise.
5872 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
5873 long double for non-SPE.
5874 (rs6000_handle_option): Likewise.
5875 (invalid_e500_subreg): Disallow more subregs involding DImode,
5876 DFmode, TImode or TFmode.
5877 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
5879 (legitimate_lo_sum_address_p): Also check for TFmode for E500
5881 (rs6000_legitimize_address): Also handle TFmode for E500 double.
5882 (rs6000_legitimize_reload_address): Also handle TFmode for E500
5884 (rs6000_legitimate_address): Also check for TFmode for E500
5886 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
5887 (spe_build_register_parallel): Handle TFmode and TCmode.
5888 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
5890 (function_arg): Handle TFmode and TCmode for E500 double.
5891 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
5893 (print_operand): Handle TFmode and TImode for %y.
5894 (rs6000_generate_compare): Handle TFmode comparisons for E500
5896 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
5897 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
5898 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
5899 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
5900 TFmode for E500 double.
5901 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
5902 (floatsidf2): Enable for E500 double.
5903 (movtf_softfloat): Use rs6000_nonimmediate_operand.
5904 (extenddftf2): Change to extenddftf2_fprs.
5905 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
5906 depending on TARGET_E500_DOUBLE.
5907 (extendsftf2): Enable for E500 double.
5908 (trunctfdf2): Enable for E500 double.
5909 (trunctfsf2): Change to trunctfsf2_fprs.
5910 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
5911 depending on TARGET_E500_DOUBLE.
5912 (floatsitf2): Enable for E500 double.
5913 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
5914 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
5915 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
5916 (negtf2): Change to negtf2_internal.
5917 (negtf2): New expander.
5918 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
5919 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
5920 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
5921 (movdi_internal32): Use rs6000_nonimmediate_operand.
5922 (unnamed splitter): Likewise.
5923 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
5924 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
5925 (SPE64TF, DITI): New mode macros.
5926 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
5929 (frob_<mode>_di_2): New.
5930 (frob_tf_di_8_2): New.
5931 (frob_di_df): Change to frob_di_<mode>; allow more modes.
5933 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
5935 (frob_ti_<mode>_8_2): New.
5936 (frob_ti_tf_2): New.
5937 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
5938 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
5940 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
5941 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
5942 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
5943 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
5944 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
5945 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
5948 2007-01-23 Ian Lance Taylor <iant@google.com>
5950 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
5952 (OBJS-archive): Reformat, alphabetize.
5953 (OBJS): Change out_object_file to OBJS-md.
5955 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
5957 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
5958 JUMP_P and CALL_P predicates where applicable.
5959 * config/i386/i386.c: Ditto.
5960 * config/i386/i386.md: Ditto.
5961 * config/i386/mmx.md: Ditto.
5962 * config/i386/predicates.md: Ditto.
5964 2007-01-22 Andreas Schwab <schwab@suse.de>
5966 * config/m68k/m68k.h: Fix comment.
5968 2007-01-22 Jan Hubicka <jh@suse.cz>
5970 * passes.c (init_optimization_passes): Do not rerun
5971 pass_early_warn_uninitialized.
5973 2007-01-22 Richard Guenther <rguenther@suse.de>
5975 PR tree-optimization/30038
5976 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
5978 (execute_cse_sincos_1): Likewise.
5979 (execute_cse_sincos): Likewise.
5980 (gate_cse_sincos): Likewise.
5981 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
5982 the cexpi() canonicalization of sincos().
5983 * tree-pass.h (pass_cse_sincos): Declare.
5984 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
5986 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
5988 PR rtl-optimization/29329
5989 * combine.c (replaced_rhs_insn): Rename to i2mod.
5990 (replaced_rhs_value): Rename to i2mod_new_rhs.
5991 (i2mod_old_rhs): New global variable.
5992 (combine_instructions): Adjust for above change. Save a copy of
5993 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
5994 note are substituted in the second instruction.
5995 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
5996 ditch the note if it pertains to the second eliminated register
5997 and this register is mentioned in i2mod_old_rhs.
6000 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6002 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
6003 the insn to which the note was originally attached.
6005 2007-01-21 Jan Hubicka <jh@suse.cz>
6007 * ipa-inline.c (inlining_mode): Comment, move up.
6008 (cgraph_decide_inlining_incrementally): Do not perform inlining
6009 itself; fix handling of flattening of self recursive functions.
6010 (cgraph_find_cycles): Remove.
6011 (cgraph_flatten_node): Remove.
6012 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
6013 (try_inline): New function.
6014 (cgraph_early_inlining): Update call of
6015 cgraph_decide_inlining_incrementally. Apply inlining here.
6016 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
6018 2007-01-21 Dirk Mueller <dmueller@suse.de>
6021 * tree-vrp.c (check_array_bounds): do not warn
6022 about ADDR_EXPR's of ARRAY_REF's which are immediately
6023 used in binary expressions.
6025 2007-01-21 Ira Rosen <irar@il.ibm.com>
6027 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
6028 read_write_dep and macros for its access.
6029 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
6030 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
6031 argument, call vect_check_interleaving for every independent pair of
6032 data-refs. Mark loads that access the same memory location as a store
6034 (vect_check_dependences): Remove.
6035 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
6036 call, fix the call to vect_analyze_data_ref_dependence.
6037 (vect_analyze_data_ref_access): For statements that access the same
6038 data-ref, check that they are not stores; for loads, check that there
6039 is no store that access the same location.
6041 2007-01-20 Roger Sayle <roger@eyesopen.com>
6042 Joseph Myers <joseph@codesourcery.com>
6044 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
6045 (-fdump-rtl-stack): Likewise.
6046 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
6047 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
6048 (-mpt-fixed): Use @minus{} for minus sign.
6049 (Using Precompiled Headers): Fix under/overfull hbox.
6051 2007-01-20 Jan Hubicka <jh@suse.cz>
6053 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
6054 place within annotation.
6056 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6058 * pa.c (output_move_double): Change array size of xoperands to 4.
6060 2007-01-20 Jan Hubicka <jh@suse.cz>
6062 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
6065 2007-01-19 Ian Lance Taylor <iant@google.com>
6067 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
6068 constant to unsigned HOST_WIDE_INT before negating.
6070 2007-01-19 Ian Lance Taylor <iant@google.com>
6072 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
6074 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
6075 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
6076 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
6077 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
6078 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
6079 (realloc_vdef, realloc_vuse): Change second parameter to
6081 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
6083 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
6084 unsigned. Change x and lim locals to unsigned.
6085 (realloc_vdef, realloc_vuse): Change num_elem parameter to
6087 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
6088 (copy_virtual_operands): Change i and n locals to unsigned.
6090 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6093 * builtins.c (fold_builtin_1): Handle builtin fdim.
6095 2007-01-20 Jan Hubicka <jh@suse.cz>
6097 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
6098 * tree-ssa-structalias.c (compute_points_to_sets): Do call
6099 init_alias_heapvars.
6100 (init_alias_heapvars): Initialize only when not already initialized.
6101 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
6103 2007-01-19 Roger Sayle <roger@eyesopen.com>
6105 * common.opt (fsigned-zeros): New command line option.
6106 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
6107 of flag_unsafe_math_optimizations.
6108 * opts.c (set_fast_math_flags): The -ffast-math command line option
6109 implies -fno-signed-zeros.
6110 (fast_math_flags_set_p): Likewise.
6112 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
6113 the documentation of -ffast-math appropriately. Wrap long lines.
6115 2007-01-19 Steve Ellcey <sje@cup.hp.com>
6117 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
6118 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
6120 2007-01-19 Tomas Bily <tbily@suse.cz>
6122 * cgraphunit.c (cgraph_finalize_function): Updating of pid
6124 (tree_init_ic_make_global_vars): New function
6125 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
6126 (tree_gen_ic_profiler): New function
6127 (tree_gen_ic_func_profiler): New function
6128 (tree_profiling): Added calling of tree_gen_ic_func_profiler
6129 (tree_profile_hooks): Added hook for indirec/virtual calls
6130 * value-prof.c (tree_find_values_to_profile): New case for
6132 (tree_values_to_profile): Call for determining indirect/virtual
6134 (tree_indirect_call_to_profile): New function
6135 (tree_ic_transform): New function
6136 (tree_ic): New function
6137 (find_func_by_pid): New function
6138 (init_pid_map): New function
6139 (tree_value_profile_transformations): Added check for
6140 indirect/virtual call transformation
6141 * value-prof.h (enum hist_type): New counter type for
6142 indirect/virtual calls
6143 (profile_hooks): Added new hook for profiling indirect/virtual
6145 * profile.c (instrument_values): New case for indirect/virtual
6147 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
6148 (GCOV_COUNTER_V_INDIR): New counter type
6149 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
6150 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
6152 * cgraph.c: Definition of cgraph_max_pid
6153 (cgraph_create_node): Default init of pid attribute
6154 * cgraph.h: Declaration of cgraph_max_pid
6155 (struct cgraph_node): Added pid attribute
6156 * libgcov.c (__gcov_indirect_call_profiler): New function
6157 (__gcov_one_value_profiler_body): New function
6158 (__gcov_one_value_profiler): Body was moved to
6159 __gcov_one_value_profiler_body and calls it
6161 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
6163 * doc/gty.texi (Options): Document the mark_hook option to GTY.
6164 * gengtype.c (write_types_data, write_func_for_structure,
6165 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
6166 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
6167 (walk_type, write_func_for_structure): Generate the mark_hook if
6170 2007-01-19 Jan Hubicka <jh@suse.cz>
6172 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
6173 'early' argument take inlining mode argument specifying whether to
6174 inline for size/speeed or all functions; add support for flattening;
6176 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
6178 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6181 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
6182 the name of the declared identifier.
6184 2007-01-19 Dirk Mueller <dmueller@suse.de>
6186 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
6187 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
6188 duplicate evaluation.
6190 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
6192 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
6193 Macroize expander using X87MODEF12 mode macro. Extend operand 1
6194 to XFMode, use acosxf2 and truncate result to requested mode.
6195 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
6196 (asin<mode>2): Similarly, with asin expanders.
6197 (*fscalexf4_i387): Rename from *fscalexf4.
6198 (expNcorexf3): New expander.
6199 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
6200 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
6201 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
6202 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
6203 patterns for SSE math.
6204 (exp10<mode>2): Similarly, with exp10 expanders.
6205 (exp2<mode>2): Similarly, with exp2 expanders.
6206 (expm1<mode>2): Similarly, with expm1 expanders.
6207 (ldexp<mode>3): Similarly, with ldexp expanders.
6208 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
6209 Use gen_truncxf<mode>2_i387_noop to truncate result.
6211 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6213 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
6214 for ColdFire targets.
6216 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
6217 Richard Sandiford <richard@codesourcery.com>
6219 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
6220 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
6221 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
6222 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
6223 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
6224 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
6226 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6228 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
6229 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
6230 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
6231 (*adddi_dilshr32_cf): New pattern.
6232 (adddi3, subdi3): Remove first alternatives.
6234 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6236 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
6237 implemented using move.l, do not use its cc result for floating-point
6240 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6242 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
6243 from accepting 's' constraints if flag_pic.
6245 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6247 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
6248 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
6249 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
6250 condition from TARGET_68881 to TARGET_HARD_FLOAT.
6252 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
6254 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
6255 ColdFire alternatives.
6256 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
6257 * config/m68k/m68k.md (clzsi2): Define for ColdFire
6258 architectures that support ff1 instruction.
6260 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6261 Julian Brown <julian@codesourcery.com>
6263 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
6264 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
6265 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
6268 2007-01-19 Richard Sandiford <richard@codesourcery.com>
6270 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
6272 (output_move_const_into_data_reg, output_move_simode_const): Delete.
6273 * config/m68k/m68k.c (const_method, const_int_cost): Take a
6274 HOST_WIDE_INT instead of an rtx.
6275 (m68k_rtx_costs): Update call accordingly.
6276 (output_move_const_into_data_reg): Likewise. Fix formatting.
6277 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
6279 (output_move_simode_const): Update calls after above changes.
6280 Rework to use automatic variables and predicates like MEM_P.
6281 * config/m68k/m68k.md (pushexthisi_const): Update call to
6284 2007-01-19 Dirk Mueller <dmueller@suse.de>
6286 * tree-ssa-alias.c (perform_var_substitution): Fix typo
6289 2007-01-19 Richard Guenther <rguenther@suse.de>
6291 * builtins.c (expand_builtin_cexpi): Fall back to expanding
6292 via cexp in case sincos is not available.
6294 2007-01-19 Richard Guenther <rguenther@suse.de>
6296 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
6297 * defaults.h (TARGET_HAS_SINCOS): Default to off.
6298 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
6299 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
6300 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
6301 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
6302 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
6303 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
6305 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
6307 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
6309 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
6310 (atan2xf3): Directly generate RTL pattern.
6311 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
6312 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
6313 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
6314 disable patterns for SSE math.
6315 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
6316 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
6317 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
6318 disable patterns for SSE math.
6320 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
6322 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
6324 2007-01-18 Roger Sayle <roger@eyesopen.com>
6326 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
6327 VIEW_CONVERT_EXPR to the same type as it's operand.
6329 2007-01-18 David Edelsohn <edelsohn@gnu.org>
6331 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
6332 configured for long double 128.
6334 2007-01-18 Mike Stump <mrs@apple.com>
6336 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
6339 2007-01-18 Michael Meissner <michael.meissner@amd.com>
6341 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
6344 2007-01-18 Jan Hubicka <jh@suse.cz>
6346 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
6347 greater than NUM_VOP_FREE_BUCKETS.
6349 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
6351 * tree-ssa-structalias.c: Update comments.
6352 (ptabitmap_obstack): Removed.
6354 (oldpta_obstack): Ditto.
6355 (stats): Add a few members.
6356 (struct variable_info): Remove node, complex, address_taken, and
6357 indirect_target members. Add oldsolution member.
6358 (new_var_info): Do not initialize removed members.
6359 (constraint_expr_type): Remove INCLUDES.
6360 (constraint_graph): Add size, implicit_preds, rep,
6361 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
6362 (FIRST_REF_NODE): New macro.
6363 (LAST_REF_NODE): Ditto.
6364 (FIRST_ADDR_NODE): Ditto.
6365 (find): New function.
6367 (dump_constraint): Do not handle INCLUDES.
6368 (insert_into_complex): Do not insert duplicate constraints.
6369 (condense_varmap_nodes): Renamed and rewritten into ...
6370 (merge_node_constraints): This. Also fix bug in handling of
6371 offseted copy constraints.
6372 (clear_edges_for_node): No longer need to deal with preds at all,
6373 or removing associated preds/succs.
6374 (merge_graph_nodes): Deal with indirect_cycles.
6375 Don't deal with predecessors.
6376 (add_implicit_graph_edge): New function.
6377 (add_pred_graph_edge): Ditto.
6378 (add_graph_edge): Don't deal with predecessors.
6379 (build_constraint_graph): Removed.
6380 (build_pred_graph): New function.
6381 (build_succ_graph): Ditto.
6382 (struct scc_info): Removed in_component. Added roots, dfs, and
6383 node_mapping. Remove visited_index, unification_queue.
6384 (scc_visit): Deal with union-find we do now.
6385 Deal with cycles with REF nodes.
6386 (collapse_nodes): Renamed and rewritten to ...
6387 (unify_nodes): This.
6388 (process_unification_queue): Removed.
6389 (topo_visit): Cleanup
6390 (do_da_constraint): Use find.
6391 (do_sd_constraint): Ditto.
6392 (do_ds_constraint): Ditto.
6393 (do_complex_constraint): Ditto.
6394 (init_scc_info): Update for removed and added members.
6395 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
6396 (find_indirect_cycles): This.
6397 (equivalence_class): New variable.
6398 (label_visit): New function.
6399 (perform_variable_substitution): Rewritten.
6400 (free_var_substitution_info): New function.
6401 (find_equivalent_node): Ditto.
6402 (move_complex_constraints): Ditto.
6403 (eliminate_indirect_cycles): Ditto.
6404 (solve_graph): Only propagate changed bits.
6405 Use indirect cycle elimination.
6407 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
6408 (tree_id_eq): Renamed to ...
6409 (tree_vi_eq): This. Update for member change
6410 (insert_id_for_tree): Renamed and rewritten to ...
6411 (insert_vi_for_tree): This.
6412 (lookup_id_for_tree): Renamed and rewritten to ...
6413 (lookup_vi_for_tree): This.
6414 (get_id_for_tree): Renamed and rewritten to ...
6415 (get_vi_for_tree): Ditto.
6416 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
6417 (process_constraint): Don't handle INCLUDES.
6418 Remove special ADDRESSOF case.
6419 (find_func_aliases): Rewrite to use vi functions instead of id
6421 (create_function_info_for): Ditto.
6422 (create_variable_info_for): Ditto.
6423 (intra_create_variable_infos): Ditto.
6424 (merge_smts_into): Ditto.
6425 (find_what_p_points_to): Ditto.
6426 (init_base_vars): Ditto.
6427 (init_alias_vars): Ditto.
6428 (remove_preds_and_fake_succs): New function.
6429 (dump_sa_points_to_info): Dump new stats.
6430 (dump_solution_for_var): Use find.
6431 (set_used_smts): Fix formatting.
6432 (compute_points_to_sets): Updated for new functions.
6433 (ipa_pta_execute): Ditto.
6435 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
6436 Richard Sandiford <richard@codesourcery.com>
6438 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
6440 * calls.c (expand_call): If the return value is a PARALLEL,
6441 extract its first member.
6442 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
6443 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
6444 use FUNCTION_EXTRA_EPILOGUE.
6445 (m68k_function_value): Return a PARALLEL if the return value
6446 is of a pointer type.
6447 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
6448 (FUNCTION_EXTRA_EPILOGUE): Remove.
6449 * config/m68k/m68k.md (D0_REG): New constant.
6451 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
6453 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
6454 output a NOP for empty epilogues.
6456 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6458 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
6459 before function. Extend register save check to include all
6460 registers, not just integer ones.
6462 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
6464 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
6465 (m68k_use_return_insn): ...this.
6466 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
6467 * config/m68k/m68k.c (use_return_insn): Rename to...
6468 (m68k_use_return_insn): ...this.
6469 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
6472 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
6474 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
6475 nearest even, fix denormal rounding overflow.
6477 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6479 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
6480 f%$smove and f%$move.
6481 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
6482 (extendsfdf2_cf): Use fdmove instead of f%&move.
6483 (truncdfsf2_cf): Use fsmove instead of f%$smove.
6484 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
6486 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6488 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
6491 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6493 * real.h (real_format): Add a canonical_nan_lsbs_set field.
6494 (coldfire_single_format): Declare.
6495 (coldfire_double_format): Likewise.
6496 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
6497 of qnan_msb_set to determine the lower bits of a canonical
6499 (encode_ieee_double): Likewise.
6500 (encode_ieee_quad): Likewise.
6501 (ieee_single_format): Initialize canonical_nan_lsbs_set.
6502 (mips_single_format): Likewise.
6503 (ieee_double_format): Likewise.
6504 (mips_double_format): Likewise.
6505 (ieee_extended_motorola_format): Likewise.
6506 (ieee_extended_intel_96_format): Likewise.
6507 (ieee_extended_intel_128_format): Likewise.
6508 (ieee_extended_intel_96_round_53_format): Likewise.
6509 (ibm_extended_format): Likewise.
6510 (mips_extended_format): Likewise.
6511 (ieee_quad_format): Likewise.
6512 (mips_quad_format): Likewise.
6513 (vax_f_format): Likewise.
6514 (vax_d_format): Likewise.
6515 (vax_g_format): Likewise.
6516 (i370_single_format): Likewise.
6517 (i370_double_format): Likewise.
6518 (decimal_single_format): Likewise.
6519 (decimal_double_format): Likewise.
6520 (decimal_quad_format): Likewise.
6521 (c4x_single_format): Likewise.
6522 (c4x_extended_format): Likewise.
6523 (real_internal_format): Likewise.
6524 (coldfire_single_format): New real_format.
6525 (coldfire_double_format): Likewise.
6526 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
6527 canonical_nan_lsbs_set.
6528 (pdp11_d_format): Likewise.
6529 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
6530 if TARGET_COLDFIRE_CPU.
6532 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6534 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
6535 (output_call, m68k_legitimize_call_address): Declare.
6536 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
6537 parenthesees. Add support for a 'W' constraint.
6538 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
6539 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
6540 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
6541 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
6543 (override_options): Initialize them. Do not set flag_no_function_cse
6544 for TARGET_ID_SHARED_LIBRARY.
6545 (m68k_output_pic_call): Delete.
6546 (m68k_legitimize_call_address): New function.
6547 (print_operand): Remove the %o prefix. Handle the %p prefix.
6548 (output_call): New function.
6549 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
6550 target address from the GOT if symbolic jumps are not allowed.
6551 * config/m68k/m68k.md (call, general_operand): Do not set
6552 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
6553 Merge separate flag_pic and !flag_pic define_insns into...
6554 (*call, *call_value): ...these new patterns. Match the address
6555 rather than the containing MEM and require it to be a call_operand.
6556 Use output_call to generate the asm template.
6557 * config/m68k/predicates.md (const_call_operand): New predicate.
6558 (call_operand): Likewise.
6560 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
6562 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
6563 (STACK_GROWS_DOWNWARD): Define to 1.
6564 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
6565 comments, emphasizing that these values are only defaults.
6566 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
6567 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
6569 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6571 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
6573 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
6574 Richard Sandiford <richard@codesourcery.com>
6576 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
6577 (FP_REGNO_P): New macros.
6578 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
6579 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
6580 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
6581 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
6583 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
6585 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6586 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
6588 * config/m68k/t-floatlib: New file, extracting common code from...
6589 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
6590 * config/m68k/t-uclinux: Here.
6591 * config/m68k/fpgnulib.c: Do not compile extendeed precision
6592 routines on ColdFire targets.
6594 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
6596 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
6597 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
6598 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
6599 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
6600 explicitly set MOTOROLA to 1.
6601 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
6603 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6604 Nathan Sidwell <nathan@codesourcery.com>
6606 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
6607 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
6608 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
6609 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
6610 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
6611 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
6612 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6613 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
6614 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
6615 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6616 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
6617 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
6618 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
6619 (DBX_REGISTER_NUMBER): Delete.
6620 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
6621 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
6622 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
6624 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6626 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
6627 * config/flat.h: New file.
6628 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
6630 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
6631 indirect references for -msep-data or -mid-shared-library.
6632 Do not use PC-relative code addresses either.
6633 * config/m68k/m68k.c (override_options): Restrict -fPIC error
6635 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
6636 for shared libraries and crt1.o for executables. Use crti.o and
6638 (ENDFILE_SPEC): Use crtend.o and crtn.o.
6639 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
6640 Do not add -elf2flt or -shared-lib-id options here.
6641 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
6642 Pass -shared-lib-id if -mid-shared-library, taking the library
6643 identifier from -mshared-library-id if given, otherwise
6645 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
6646 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
6647 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
6648 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
6649 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
6650 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
6652 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
6653 jump sequence for ISA A and ISA A+.
6654 (PICJUMP): Likewise.
6656 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6658 * config.gcc (m68k-*-uclinux*): Base the port on the common
6659 and m68k GNU/Linux files rather than on the generic ELF ones.
6660 * config/m68k/uclinux.h (TARGET_VERSION): Override.
6661 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
6663 2007-01-18 Julian Brown <julian@codesourcery.com>
6664 Richard Sandiford <richard@codesourcery.com>
6666 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
6667 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6668 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
6670 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
6672 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6674 2007-01-18 Richard Sandiford <richard@codesourcery.com>
6676 * doc/install.texi: Document m68k-uclinuxoldabi.
6677 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
6678 * config/m68k/uclinux-oldabi.h: New file, copied from
6679 config/m68k/uclinux.h.
6681 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6683 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
6684 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
6685 (m32r_compute_frame_size): Use unsigned for regno.
6686 (m32r_reload_lr): Use gen_frame_mem.
6688 (m32r_output_function_epilogue): Don't output the function epilogue
6690 (m32r_expand_epilogue): New.
6691 (direct_return): Return false if the function has the interrupt
6693 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
6694 * config/m32r/m32r.md (epilogue): New expander.
6695 (return_lr, return_rte): New insns.
6696 (return): Make it expander.
6697 (return_normal): New expander.
6699 2007-01-18 Josh Conner <jconner@apple.com>
6702 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
6703 support for UNLE, UNLT, UNGE, and UNGT.
6705 2007-01-18 Jan Hubicka <jh@suse.cz>
6707 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
6708 * tree-tailcall (add_virtual_phis): Likewise.
6709 (optimize_tail_call): Return TODOs.
6710 (execute_tail_calls): Return TODOs.
6711 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
6712 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
6714 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
6715 Cleanup cfg using TODO.
6716 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
6717 * passes.c (execute_function_todo): When cleanup did something, remove
6719 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
6720 (make_edges): Don't cleanup_cfg.
6722 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
6724 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
6725 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
6726 operate on the top of stack.
6727 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
6728 register handling of instructions that output to the second
6730 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
6731 (move_for_stack_reg): Special-case check for dead destination
6732 stack slot for constant load of 1.0 inside UNSPEC_TAN.
6734 * config/i386/i386.md (UNSPEC_TAN): New constant.
6735 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
6736 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
6737 to correctly model move of constant 1.0 to top stack slot.
6738 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
6739 (unnamed peephole2 pattern): Remove corresponding peephole2
6740 pattern that optimizes tan insn and loading of constant 1.0.
6741 (tanxf2): Use fptanxf4_i387.
6742 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
6743 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
6744 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
6745 disable patterns for SSE math.
6746 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
6747 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
6749 2007-01-18 Dirk Mueller <dmueller@suse.de>
6750 Richard Guenther <rguenther@suse.de>
6753 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
6754 * common.opt (Warray-bounds): Add new warning option.
6755 * c-opts.c (c_common_handle_option): Define -Warray-bounds
6757 * Makefile.in: make tree-vrp.o depend on toplev.h
6758 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
6760 (check_array_refs, check_array_bounds, check_array_ref): New.
6762 2007-01-18 Jan Hubicka <jh@suse.cz>
6764 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
6765 (execute_ssa_ccp): Return flags conditionally.
6766 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
6768 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
6770 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
6772 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
6773 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
6775 * Makefile.c (GTFILES): Add cfglayout.h.
6776 * gengtype.c (open_base_files): Likewise.
6777 * cfglayout.c (cfg_layout_function_footer,
6778 cfg_layout_function_header) Reindent to make gengtype happy.
6779 * cfglayout.h (cfg_layout_function_footer,
6780 cfg_layout_function_header): Add GTY(()) marker.
6782 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
6784 2007-01-18 Ben Elliston <bje@au.ibm.com>
6786 * genautomata.c (write_automata): Include xstrerror output in the
6787 error message if writing the DFA description file fails.
6789 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
6791 * config/mips/mips-protos.h (mips_output_external): Make it
6793 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
6794 * config/mips/mips.c (irix_output_external_libcall): Likewise.
6795 (extern_list): Likewise.
6796 (extern_head): Likewise.
6797 (TARGET_ASM_FILE_END): Likewise.
6798 (mips_file_end): Likewise.
6799 (mips_output_external): Rewritten.
6801 2007-01-18 Ben Elliston <bje@au.ibm.com>
6803 * genpreds.c (write_insn_preds_c): Only write out the function
6804 body for regclass_for_constraint if we have register constraints.
6806 2007-01-17 Tom Tromey <tromey@redhat.com>
6808 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
6809 * doc/install.texi (Testing): Use sourceware.org.
6810 (Binaries): Likewise.
6811 (Specific): Likewise.
6812 * doc/contrib.texi (Contributors): Use sourceware.org.
6814 2007-01-17 Anatoly Sokolov <aesok@post.ru>
6816 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
6817 (AVR_ENHANCED): Rename to ...
6818 (AVR_HAVE_MUL): ... new.
6819 (avr_enhanced_p): Rename to ...
6820 (avr_have_mul_p): ... new.
6821 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
6822 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
6823 * config/avr/avr.c (avr_enhanced_p): Rename to ...
6824 (avr_have_mul_p): ... new.
6825 (base_arch_s): Rename 'enhanced' to 'have_mul'.
6826 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
6827 'avr_enhanced_p' and 'enhanced'.
6828 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
6829 AVR_HAVE_MUL instead of AVR_ENHANCED.
6830 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6831 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
6832 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
6833 instead of AVR_ENHANCED.
6834 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
6835 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
6836 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
6838 2007-01-17 Ian Lance Taylor <iant@google.com>
6840 * vec.h (VEC_reserve_exact): Define.
6841 (vec_gc_p_reserve_exact): Declare.
6842 (vec_gc_o_reserve_exact): Declare.
6843 (vec_heap_p_reserve_exact): Declare.
6844 (vec_heap_o_reserve_exact): Declare.
6845 (VEC_OP (T,A,reserve_exact)): New static inline function, three
6847 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
6849 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
6850 (VEC_OP (T,A,copy)) [all versions]: Likewise.
6851 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
6852 * vec.c (calculate_allocation): Add exact parameter. Change all
6854 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
6855 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
6856 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
6857 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
6858 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
6859 (vec_heap_p_reserve_exact): New function.
6860 (vec_heap_o_reserve_exact): New function.
6862 2007-01-17 Jan Hubicka <jh@suse.cz>
6864 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
6866 2007-01-17 Eric Christopher <echristo@apple.com>
6868 * config.gcc: Support core2 processor.
6870 2007-01-16 Jan Hubicka <jh@suse.cz>
6872 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
6873 the names, just unlink the chain so we don't crash on dangling pointers
6876 2007-01-16 Jan Hubicka <jh@suse.cz>
6878 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
6879 * tree-pass.h: Reorder to make IPA passes appear toegher.
6880 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
6881 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
6882 parameters, do not call early inliner.
6883 * ipa-inline.c: Update comments. Include tree-flow.h
6884 (cgraph_decide_inlining): Do not compute inlining parameters.
6885 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
6886 be called with function context set up.
6887 (pass_ipa_inline): Remove unreachable functions before pass.
6888 (cgraph_early_inlining): Simplify assuming to be called from the
6890 (pass_early_inline): New pass.
6891 (cgraph_gate_ipa_early_inlining): New gate.
6892 (pass_ipa_early_inline): Turn into simple wrapper.
6893 (compute_inline_parameters): New function.
6894 (gate_inline_passes): New gate.
6895 (pass_inline_parameters): New pass.
6896 (apply_inline): Move here from tree-optimize.c
6897 (pass_apply_inline): New pass.
6898 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
6900 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
6902 (tree_function_versioning): Do not allocate dummy struct function.
6903 * tree-inline.h (optimize_inline_calls): Update prototype.
6904 * tree-optimize.c (execute_fixup_cfg): Export.
6905 (pass_fixup_cfg): Remove
6906 (tree_rest_of_compilation): Do not apply inlines.
6907 * tree-flow.h (execute_fixup_cfg): Declare.
6908 * Makefile.in (gt-passes.c): New.
6909 * passes.c: Include gt-passes.h
6910 (init_optimization_passes): New passes.
6911 (nnodes, order): New static vars.
6912 (do_per_function_toporder): New function.
6913 (execute_one_pass): Dump current pass here.
6914 (execute_ipa_pass_list): Don't dump current pass here.
6916 2007-01-16 Janis Johnson <janis187@us.ibm.com>
6918 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
6919 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
6921 2007-01-16 David Edelsohn <edelsohn@gnu.org>
6923 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
6924 (strong_alias): Define.
6925 (__gcc_qmul): Provide non-FMA for soft-float.
6931 (__gcc_qunord): New.
6941 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
6942 soft-float functions.
6943 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
6944 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
6945 about long double soft float.
6947 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
6948 Tehila Meyzels <tehila@il.ibm.com>
6950 * tree-vectorizer.h (is_pattern_stmt_p): New.
6951 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
6952 formatting (tabs instead of spaces). Cleanup and clarify setting
6953 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
6954 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
6955 (vectorizable_type_demotion): Check that types are integral.
6956 (vectorizable_type_promotion): Likewise.
6957 (vectorizable_store): Fix typo. Eliminate new-line at end of
6960 2007-01-16 Jan Hubicka <jh@suse.cz>
6962 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
6965 2007-01-15 Eric Christopher <echristo@apple.com>
6967 * ifcvt.c: Include vec.h, vecprim.h.
6968 (check_cond_move_block): New argument regs.
6969 Reorganize. Add registers used to regs.
6970 (cond_move_process_if_block): Use regs set above as
6973 2007-01-15 Eric Christopher <echristo@apple.com>
6975 * config/darwin.h: Update copyright.
6976 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
6977 (LINK_COMMAND_SPEC): Add -u.
6978 (LINK_SPEC): Fix umbrella for above.
6980 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
6982 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
6985 2007-01-15 Tom Tromey <tromey@redhat.com>
6987 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
6988 * doc/install.texi (Testing): Don't mention jacks.
6989 (Configuration): Document --enable-java-maintainer-mode. Move
6990 --with-java-home to libgcj-specific section. Document
6992 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
6994 2007-01-15 Jan Hubicka <jh@suse.cz>
6996 * tree-ssa-dce.c (DCE_TODOs): New.
6997 (propagate_necessity): Return if something changed.
6998 (eliminate_unnecessary_stmts): Likewise.
6999 (perform_tree_ssa_dce): Return TODO flags when needed.
7000 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
7002 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
7004 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
7005 (fyl2x_extend<mode>xf3_i387): New insn pattern.
7006 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
7007 patterns using X87MODEF12 mode macro. Extend operand 1
7008 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
7009 (log10<mode>2): Ditto.
7010 (log2<mode>2): Ditto.
7011 (log1p<mode>2): Ditto.
7012 (logb<mode>2): Ditto.
7013 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
7014 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
7015 (*fxtractxf3_i387): Rename from *fxtractxf3.
7016 (fxtract_extend<mode>xf3_i387): New insn pattern.
7017 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
7018 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
7019 and gen_fyl2xxf3_i387().
7021 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
7023 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
7024 * cfgloopmanip.c (fix_loop_placement): Made static. Use
7025 get_loop_exit_edges. Changed return type to bool.
7026 * cfgloop.h (fix_loop_placement): Declaration removed.
7028 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
7030 * param.h (MIN_VECT_LOOP_BOUND): New.
7031 * params.def (MIN_VECT_LOOP_BOUND): New.
7032 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
7033 argument - minimum threshold for number of iterations.
7034 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
7035 argument to declaration.
7036 * tree-vect-analyze.c (vect_analyze_operations): Check value of
7037 MIN_VECT_LOOP_BOUND.
7038 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
7039 slpeel_tree_peel_loop_to_edge with additional argument.
7040 (vect_do_peeling_for_alignment): Likewise.
7041 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
7043 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
7046 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
7049 2007-01-14 Jan Hubicka <jh@suse.cz>
7051 * tree-dfa.c (remove_referenced_var): New function.
7052 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
7053 prune referenced vars list too.
7054 * tree-flow.h (remove_referenced_var): Declare.
7056 2007-01-14 Jan Hubicka <jh@suse.cz>
7058 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
7060 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
7061 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
7062 * except.h (verify_eh_throw_table_statements): Kill prototype.
7063 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
7064 into call exrepssions.
7065 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
7067 * tree-cfg.c: Include pointer-set.h.
7068 (verify_node_sharing): Work on pointer set.
7069 (verify_eh_throw_stmt_node): New.
7070 (verify_stmts): Use pointers sets, verify throw_stmt.
7072 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
7074 * ipa-reference.c (analyze_function): Consider also addresses taken
7077 2007-01-12 Roger Sayle <roger@eyesopen.com>
7079 * c-typeck.c (null_pointer_constant_p): Replace use of
7080 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7081 (build_c_cast): Likewise.
7083 2007-01-12 Roger Sayle <roger@eyesopen.com>
7085 * tree.h (force_fit_type_double): Remove unused final argument.
7086 * c-common.c (constant_expression_warning): Replace use of
7087 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7088 (convert_and_check): Likewise.
7089 (shorten_compare): Update call to force_fit_type_double.
7090 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
7091 * convert.c (convert_to_pointer): Update call to
7092 force_fit_type_double.
7093 * fold-const.c (force_fit_type_double): Remove overflowed_const
7095 (int_const_binop, fold_convert_const_int_from_int,
7096 fold_convert_const_int_from_real, fold_div_compare,
7097 fold_sign_changed_comparison, fold_unary, fold_negate_const,
7098 fold_abs_const, fold_not_const): Remove the final argument from
7099 calls to force_fit_type_double.
7101 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
7103 * configure.ac: Set insn to "nop" for spu-*-* also.
7104 * configure: Regenerate.
7106 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
7108 * builtins.def : Add BUILT_IN_FREE.
7110 2007-01-12 Jan Hubicka <jh@suse.cz>
7112 PR tree-optimization/30443
7113 * tree-inline.c (tree_function_versioning): Do not optimize when
7114 cloning for inlining.
7116 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
7118 * doc/loop.texi: Document recording of loop exits.
7119 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
7120 (update_single_exits_after_duplication,
7121 update_single_exit_for_duplicated_loop,
7122 update_single_exit_for_duplicated_loops): Removed.
7123 (duplicate_loop_to_header_edge): Do not call
7124 update_single_exits_after_duplication and
7125 update_single_exit_for_duplicated_loops.
7126 (loop_version): Do not update single_exit information.
7127 (fix_loop_structure): Use record_loop_exits instead of
7128 mark_single_exit_loops.
7129 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
7130 the lists of loop exits.
7131 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
7132 split_edge, merge_blocks): Update the lists of loop exits.
7133 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
7134 loop_optimizer_init.
7135 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
7136 of mark_single_exit_loops.
7137 (loop_optimizer_finalize): Call release_recorded_exits.
7138 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
7139 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
7140 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
7141 update single exit information.
7142 * lambda-code.c (perfect_nestify): Ditto.
7143 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
7144 (mark_single_exit_loops): Removed.
7145 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
7146 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
7147 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
7149 (get_loop_exit_edges, single_exit): Use recorded exit lists.
7150 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
7151 (verify_loop_structure): Verify consistency of the exit lists.
7152 (flow_loops_find): Use alloc_loop. Initialize exits hash.
7153 (set_single_exit): Removed.
7154 * cfgloop.h (struct loop_exit): New function.
7155 (struct loop): single_exit_ field replaced by exits field.
7156 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
7157 (struct loops): Added exits hash.
7158 (mark_single_exit_loops, set_single_exit): Declaration removed.
7159 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
7161 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7163 * doc/invoke.texi: Avoid use of @headitem.
7165 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7167 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
7169 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7171 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
7174 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
7175 Richard Sandiford <richard@codesourcery.com>
7177 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
7178 * config/m68k/m68k.opt: Resort options.
7179 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
7181 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
7182 Richard Sandiford <richard@codesourcery.com>
7184 * doc/invoke.texi: Document the macros that are defined by
7185 m68k's -mtune and -mhard-float options.
7186 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
7187 (m68k_cpp_cpu_family): Likewise.
7188 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
7189 of __ucfv*__ macros. Define __mcffpu__ if generating code for
7190 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
7191 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
7192 (m68k_cpp_cpu_family): Likewise.
7194 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7196 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
7197 macros besides mc68000 as tuning macros. Use a switch statement
7198 to set them and mcpu32.
7200 2007-01-12 Julian Brown <julian@codesourcery.com>
7202 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
7203 (TARGET_68040_ONLY): Rename to...
7204 (TARGET_68040): ...this.
7205 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
7206 * config/m68k/m68k.md: Likewise.
7208 2007-01-12 Julian Brown <julian@codesourcery.com>
7209 Nathan Sidwell <nathan@codesourcery.com>
7210 Richard Sandiford <richard@codesourcery.com>
7212 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
7213 the -mcpu= argument associated with the --with-cpu setting.
7214 Define M68K_DEFAULT_TUNE to the default -mtune= option,
7215 if different from the one implied by the -mcpu setting.
7216 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
7217 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
7218 * doc/invoke.texi: Mention ColdFire in the introduction to the
7219 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
7220 -mno-div and -mhard-float options. Make -m68881 a synonym for
7221 -mhard-float. Document the previously-undocumented -m5206e,
7222 -m528x, -m5307 and -m5407 options. Tweak the existing option
7223 documentation for consistency.
7224 * doc/install.texi: Mention new --with-cpu arguments.
7225 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
7226 default CPU if neither -mcpu nor -march are specified.
7227 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
7228 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
7229 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
7230 using m68k_tune to decide between families that implement the
7231 same ISA. Use m68k_tune to set __mcfv4e__.
7232 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
7233 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
7234 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
7235 (FL_ISA_C, FL_ISA_MMU): New macros.
7236 (MASK_COLDFIRE): Delete.
7237 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
7238 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
7239 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
7240 (TARGET_HARD_FLOAT): Do not define here.
7241 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
7242 (TUNE_68000): New macro.
7243 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
7244 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
7245 (TUNE_CFV2): Redefine in terms of m68k_tune.
7246 (uarch_type, target_device, fpu_type): New enums.
7247 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
7248 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
7249 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
7250 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
7251 (FL_FOR_isa_c): New macros.
7252 (m68k_isa): New enum.
7253 (m68k_target_selection): New structure.
7254 (all_devices, all_isas, all_microarchs): New tables.
7255 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
7256 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
7257 (MASK_ALL_CPU_BITS): Delete.
7258 (m68k_find_selection): New function.
7259 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
7260 Map the legacy target options to a combination of the new ones.
7261 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
7262 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
7263 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
7265 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
7266 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
7268 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
7269 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
7270 * config/m68k/m68k-devices.def: New file.
7272 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7273 Nathan Sidwell <nathan@codesourcery.com>
7275 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
7276 (SUBTARGET_EXTRA_SPECS): New macros.
7277 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
7278 use %(asm_cpu_spec) instead.
7279 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
7280 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
7281 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
7282 (EXTRA_SPECS): Rename to...
7283 (SUBTARGET_EXTRA_SPECS): ...this.
7285 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
7286 Richard Sandiford <richard@codesourcery.com>
7287 Julian Brown <julian@codesourcery.com>
7289 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
7290 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
7291 to the configuration's default CPU.
7292 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
7293 Remove default masks.
7294 (m680[012]0-*-*): Set the default with_cpu to the first part of
7296 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
7297 (m68k*-*-linux): Extend the --with-cpu handling to...
7298 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
7299 and m68010. Don't set target_cpu_default2.
7300 * doc/install.texi: Document --with-cpu for m68k.
7301 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
7302 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
7303 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
7304 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
7305 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
7306 (ASM_SPEC): Remove use of %(asm_cpu_default).
7307 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
7308 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
7309 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
7310 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
7311 __HAVE_FPU__ if TARGET_HARD_FLOAT.
7312 (TARGET_DEFAULT): Delete.
7313 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
7314 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
7315 (CPP_CPU_SPEC): Delete.
7316 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
7317 the appropriate string.
7318 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
7319 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
7320 (ASM_SPEC): Don't use %(asm_default_spec).
7321 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
7322 TARGET_DEFAULT and add MASK_68881.
7323 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
7325 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7327 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
7328 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
7329 MASK_68010 alongside MASK_68020.
7330 * doc/invoke.texi: Document -m68010.
7331 * config/m68k/m68k.opt (m68010): New.
7332 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
7334 (TUNE_68010): New macro.
7335 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
7336 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
7337 (M68K_CPU_m68332): Add MASK_68010.
7338 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
7339 fallback definition.
7340 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
7342 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
7343 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
7344 to all entries that use MASK_68020.
7345 (output_move_simode_const, output_move_himode, output_move_qimode)
7346 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
7347 instead of TARGET_68020 to select clr behavior. Remove comment
7348 about there being no TARGET_68010.
7349 * config/m68k/m68k.md: Likewise throughout.
7351 2007-01-12 Julian Brown <julian@codesourcery.com>
7353 * config/m68k/m68k.h (TARGET_ISAB): New macro.
7354 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
7355 * config/m68k/m68k.md: Likewise.
7357 2007-01-12 Julian Brown <julian@codesourcery.com>
7359 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
7360 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
7362 2007-01-12 Julian Brown <julian@codesourcery.com>
7364 * config/m68k/m68k.h (TUNE_68040_60): New macro.
7365 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
7366 * config/m68k/m68k.md: Likewise.
7368 2007-01-12 Julian Brown <julian@codesourcery.com>
7369 Richard Sandiford <richard@codesourcery.com>
7371 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
7372 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
7373 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
7375 (TARGET_CPU32): Rename to...
7376 (TUNE_CPU32): ...this.
7377 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
7378 (TUNE_CFV2): New macros.
7379 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
7380 remove conditions that are implied by TARGET_68020.
7381 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
7382 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
7383 (m68k_output_function_epilogue): Likewise.
7384 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
7385 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
7386 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
7387 non-68000 timings. Refactor multiplication and division costs.
7388 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
7389 TUNE_CPU32 instead of TARGET_CPU32.
7390 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
7391 and TUNE_68060 instead of TARGET_68060.
7392 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
7393 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
7395 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
7396 && !TARGET_COLDFIRE" to choose between moveq and clr.
7397 Likewise in the unnamed movsf pattern.
7398 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
7399 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
7402 2007-01-12 Richard Sandiford <richard@codesourcery.com>
7404 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
7405 of tabbing before backslashes.
7407 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7409 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
7410 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
7411 (ASM_OUTPUT_INTERNAL_LABEL): Define.
7413 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
7415 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
7416 find_interesting_uses_cond.
7417 (find_interesting_uses_cond): Use extract_cond_operands.
7418 (rewrite_use_compare): Use extract_cond_operands and
7419 force_gimple_operand_bsi. Do not call update_stmt.
7420 (determine_use_iv_cost_condition): Use extract_cond_operands.
7421 Return cheaper of using original bound and changing the exit bound.
7423 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
7425 PR tree-optimization/29516
7426 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
7427 most_expensive_mult_to_index, addr_to_parts,
7428 create_mem_ref, maybe_fold_tmr): Make the type of
7429 fields of TARGET_MEM_REF sizetype.
7430 (move_fixed_address_to_symbol, move_pointer_to_base):
7432 * tree.def (TARGET_MEM_REF): Add comment on types of
7435 2007-01-11 Joseph Myers <joseph@codesourcery.com>
7437 * c-common.c (vector_types_convertible_p): Treat opaque types as
7438 always convertible if they have the same size, but not otherwise.
7440 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
7442 * ifcvt.c (struct noce_if_info): Add comments to the fields.
7443 Remove the b_unconditional field.
7444 (noce_try_sign_mask): Do not look at b_unconditional.
7445 (noce_process_if_block): Do not use merge_if_blocks. Update
7446 the CFG here. Do not set b_unconditional.
7447 (cond_move_process_if_block): Likewise.
7448 (find_cond_trap): Likewise.
7449 (check_cond_move_block): Require simple jump insns at the end
7452 2007-01-11 Jan Hubicka <jh@suse.cz>
7454 PR tree-optimization/1046
7455 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
7456 when alias info is not ready.
7457 (pass_tail_recursion): Do not require aliasing.
7458 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
7459 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
7460 * tree-ssa-copy.c (pass_copy_prop): Likewise.
7461 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
7462 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
7463 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
7464 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
7466 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
7467 When aliasing is not build, mark statement as volatile.
7469 2007-01-11 Tom Tromey <tromey@redhat.com>
7471 PR preprocessor/15185, PR preprocessor/20989:
7472 * doc/cppopts.texi <-MT>: Update description of algorithm for
7473 computing default target.
7474 <-M, -MD>: Reword "basename" text.
7476 2007-01-11 Roger Sayle <roger@eyesopen.com>
7478 * builtins.c (expand_builtin_pow, expand_builtin_powi,
7479 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
7480 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7481 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
7482 fold_builtin_bswap, real_constp, fold_builtin_pow,
7483 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
7484 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
7485 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
7486 * convert.c (convert_to_pointer): Likewise.
7487 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7488 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
7489 const_binop, fold_convert_const_int_from_int,
7490 fold_convert_const_int_from_real,
7491 fold_convert_const_real_from_real, sign_bit_p,
7492 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
7493 fold_sign_changed_comparison, fold_unary, fold_comparison,
7494 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
7495 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
7496 * print-tree.c (print_node_brief, print_node): Likewise.
7497 * stor-layout.c (place_field, layout_type): Likewise.
7498 * tree-chrec.c (keep_cast): Likewise.
7499 * tree.c (build_vector, build_real, build_real_from_int_cst,
7500 build_complex): Likewise.
7502 2007-01-11 Roger Sayle <roger@eyesopen.com>
7504 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
7505 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
7507 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
7509 * configure.ac (strict1_warn): Rename to strict_warn.
7510 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
7511 cc_set_by_configure, quoted_cc_set_by_configure,
7512 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
7513 all_boot_languages, all_stagestuff): Remove.
7514 (target_list): Remove bootstrap targets.
7515 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
7516 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
7517 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
7518 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
7519 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
7520 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
7521 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
7522 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
7523 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
7524 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
7525 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
7526 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
7527 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
7528 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
7529 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
7530 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
7531 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
7532 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
7533 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
7534 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
7535 (mostlyclean): Adjust.
7536 (clean, distclean): Don't mention bootstrap stuff.
7537 * configure: Regenerate.
7538 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
7539 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
7540 treelang/config-lang.in (stagestuff): Remove.
7541 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
7542 stageprofile, stagefeedback, stagestuff): Remove mention.
7544 2007-01-11 Nick Clifton <nickc@redhat.com>
7546 * config/mcore/predicates.md (mcore_general_movesrc_operand):
7548 (mcore_general_movdst_operand): Do not accept CONST_INTs.
7549 (mcore_arith_K_S_operand): Run the test for the S constraint not
7550 the test for the M constraint.
7551 (mcore_addsub_operand): Do not accept integer values that are
7552 larger than 32 bits.
7553 * config/mcore/mcore.md: Remove unused constraints from split.
7554 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
7556 (allocate_stack): Likewise.
7557 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
7558 operands to 32 bits.
7559 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
7561 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
7562 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
7563 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
7564 mcore_output_bclri, mcore_output_andn, output_inline_const,
7565 mcore_output_move, mcore_output_movedouble): Likewise.
7566 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
7567 (output_inline_const): Likewise.
7568 (output_inline_const): Fix format strings used in sprintf
7570 * config/mcore/mcore-protos.h: Update prototypes for changed
7571 functions in mcore.c.
7572 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
7573 HOST_WIDE_INT and not int.
7574 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
7575 CONST_OK_FOR_N): Likewise.
7576 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
7577 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
7580 2007-01-10 Jan Hubicka <jh@suse.cz>
7582 * tree-vrp.c (remove_range_assertions): Release defs.
7583 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
7584 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
7586 2007-01-10 Paul Brook <paul@codesourcery.com>
7588 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
7589 * config/arm/arm.md (mulsi3subsi): New insn.
7591 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
7593 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
7594 (tree_transform_and_unroll_loop): New.
7595 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
7598 2007-01-10 Robert Kennedy <jimbob@google.com>
7600 * fold-const.c (fold_comparison): Fold comparisons like (x *
7601 1000 < 0) to (x < 0).
7603 2007-01-10 Ian Lance Taylor <iant@google.com>
7605 * tree-pretty-print.c (dump_generic_node): Print parentheses when
7606 operands have the same priority.
7608 2007-01-10 Tom Tromey <tromey@redhat.com>
7610 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
7611 (fold_binary): Likewise.
7612 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
7613 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
7614 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
7615 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
7616 * langhooks.h (struct lang_hooks): Removed field
7617 'can_use_bit_fields_p'.
7619 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
7621 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
7623 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
7625 * function.c (get_last_funcdef_no): New function.
7626 * function.h (get_last_funcdef_no): Declare.
7627 * tree-inline.c (initialize_cfun): Add initialization.
7628 (tree_function_versioning): Cleanup.
7630 2007-01-10 Jan Hubicka <jh@suse.cz>
7632 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
7635 2007-01-10 Sa Liu <saliu@de.ibm.com>
7636 Ben Elliston <bje@au.ibm.com>
7638 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
7639 for SAVE_NONLOCAL and Pmode for any other save level.
7640 * spu-protos.h (spu_restore_stack_block): Declare.
7641 * spu.md (save_stack_block): Remove.
7642 (restore_stack_block): Call spu_restore_stack_block.
7643 * spu.c (spu_restore_stack_block): New function.
7644 (spu_expand_epilogue): Remove old comment.
7646 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
7648 PR tree-optimization/30322
7649 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
7650 (cand_value_at): Return the value as aff_tree.
7651 (may_eliminate_iv): Convert the bound from aff_tree to tree.
7652 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
7653 aff_combination_mult): New functions.
7654 (aff_combination_add): Use aff_combination_add_cst.
7655 (aff_combination_convert): Allow conversions to a wider type.
7656 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
7657 * tree-affine.h (aff_combination_mult): Declare.
7659 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
7661 * doc/tm.texi: Update documentation to reflect reality of exec
7662 and start file search behaviours. Update copyright year.
7663 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
7664 header file directories.
7666 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
7668 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
7669 (*cosxf2): Rename to cosxf2_i387.
7670 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
7671 using X87MODEF12 mode macro. Rename patterns to
7672 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
7674 (*cosdf2, *cossf2): Ditto.
7675 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
7676 to match extended input operands.
7677 (sincos<mode>3): New expander.
7678 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
7679 insn patterns and corresponding splitters.
7681 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
7683 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
7684 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
7686 2007-01-09 Nicolas Pitre <nico@cam.org>
7689 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
7691 2007-01-08 Geoffrey Keating <geoffk@apple.com>
7693 * target.h (struct gcc_target): New field library_rtti_comdat.
7694 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
7695 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
7696 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
7697 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
7699 2007-01-08 Geoffrey Keating <geoffk@apple.com>
7701 * doc/invoke.texi (Optimize Options): Correct description of -O0.
7703 2007-01-08 Richard Guenther <rguenther@suse.de>
7705 * tree.h (force_fit_type_double): Export.
7706 (force_fit_type): Remove.
7707 * fold-const.c (force_fit_type_double): New function.
7708 (force_fit_type): Remove.
7709 (int_const_binop): Use it.
7710 (fold_convert_const_int_from_int): Likewise.
7711 (fold_convert_const_int_from_real): Likewise.
7712 (fold_div_compare): Likewise.
7713 (fold_sign_changed_comparison): Likewise.
7714 (fold_unary): Likewise.
7715 (fold_negate_const): Likewise.
7716 (fold_abs_const): Likewise.
7717 (fold_not_const): Likewise.
7718 * c-common.c (shorten_compare): Use force_fit_type_double.
7719 * convert.c (convert_to_pointer): Likewise.
7721 2007-01-08 Richard Guenther <rguenther@suse.de>
7723 * tree.h (build_int_cst_wide_type): Export.
7724 * tree.c (build_int_cst_wide_type): New function.
7725 (build_int_cst_wide): Fix comment.
7726 * builtins.c (fold_builtin_object_size): Use build_int_cst
7727 to build -1 or 0 of the correct type. Use fit_double_type
7728 to check for overflow.
7729 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
7731 (decode_field_reference): Likewise.
7732 (all_ones_mask_p): Likewise.
7733 (native_interpret_int): Use build_int_cst_wide_type.
7734 (fold_binary): Use build_int_cst_type to build an all-ones
7736 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
7738 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
7740 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
7742 2007-01-09 Ben Elliston <bje@au.ibm.com>
7744 * genautomata.c (STATS_OPTION): New option.
7745 (stats_flag): New flag.
7746 (gen_automata_option): Handle it.
7747 (initiate_automaton_gen): Ditto.
7748 (write_automata): Output statistics only if stats_flag is
7749 set. Likewise, output time statistics only if time_flag is set.
7750 * doc/md.texi (Processor pipeline description): Document new flag.
7752 2007-01-08 Richard Guenther <rguenther@suse.de>
7754 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
7755 * tree.c (build_int_cst_type): Likewise.
7756 (size_in_bytes): Don't call force_fit_type on the result.
7757 (int_fits_type_p): Use fit_double_type.
7758 * fold-const.c (fit_double_type): New function.
7759 (force_fit_type): Use it.
7760 * tree.h (fit_double_type): Export.
7762 2007-01-08 Jan Hubicka <jh@suse.cz>
7764 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
7765 * ipa.c (function_and_variable_visibility): Fix return type.
7767 2007-01-08 Richard Guenther <rguenther@suse.de>
7769 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
7770 of offset to build the index.
7771 * tree-pretty-print.c (dump_generic_node): Don't build negated
7772 const just for printing.
7773 * c-pretty-print.c (pp_c_integer_constant): Likewise.
7774 * builtins.c (fold_builtin_int_roundingfn): Check if result
7775 fits the type by using force_fit_type and comparing the result.
7776 * predict.c (predict_loops): Use compare_tree_int for comparison.
7777 * tree.c (build_int_cst): Fall back to integer_type_node for
7779 (build_int_cst_wide): Assert type is non-null.
7781 2007-01-08 Roberto Costa <roberto.costa@st.com>
7783 * tree-vrp.c (extract_range_from_cond_expr): New.
7784 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
7785 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
7787 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
7788 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
7789 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
7790 used as expressions.
7791 * tree-object-size.c (cond_expr_object_size): New.
7792 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
7794 2007-01-08 Jan Hubicka <jh@suse.cz>
7796 * tree-ssa-forwprop.c (forward_propagate_into_cond,
7797 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
7800 2007-01-08 Richard Guenther <rguenther@suse.de>
7802 PR tree-optimization/23603
7803 * tree-vrp.c (set_value_range_to_truthvalue): New function.
7804 (extract_range_from_binary): Fall back to truthvalue instead of
7805 varying for TRUTH_*_EXPR.
7806 (extract_range_from_comparison): Fall back to truthvalue instead of
7808 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
7809 if all visited PHI values were constant.
7811 2007-01-08 Jan Hubicka <jh@suse.cz>
7813 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
7814 (cgraph_analyze_function): break out from ...
7815 (cgraph_finalize_compilation_unit): ... here.
7816 (cgraph_expand_function): Remove forgoten commented out line.
7817 (cgraph_optimize): Analyze functions.
7819 2007-01-08 Jan Hubicka <jh@suse.cz>
7821 * tree-pas.h (TODO_remove_function): New flag.
7822 (TODO_update*): Renumber.
7823 (pass_ipa_increase_alignment,
7824 pass_ipa_function_and_variable_visibility): New passes.
7825 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
7826 (cgraph_function_and_variable_visibility): Move to ipa.c
7827 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
7828 cgraph_increase_alignment.
7829 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
7830 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
7831 calling tree-inline.
7832 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
7833 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
7834 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
7835 (gate_increase_alignment): New function.
7836 (pass_ipa_increase_alignment): New pass.
7837 * ipa.c: Inline tree-pass.h and timevar.h
7838 (function_and_variable_visibility): Move here from cgraphunit.c
7839 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
7840 * passes.c (init_optimization_passes): Add the two new passes.
7841 (execute_todo): Handle cgraph_remove_functions.
7843 2007-01-08 Nick Clifton <nickc@redhat.com>
7845 * config/frv/predicates.md (reg_or_0_operand): Accept
7848 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
7850 * config/bfin/rtems.h, config/bfin/t-rtems: New.
7851 * config.gcc: Add bfin*-rtems*.
7853 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
7855 * c.opt: Add -flax-vector-conversions.
7856 * c-typeck.c (convert_for_assignment): Pass flag to
7857 vector_types_convertible_p to allow emission of note.
7858 (digest_init): Likewise.
7859 * c-opts.c: Handle -flax-vector-conversions.
7860 * c-common.c (flag_lax_vector_conversions): New.
7861 (vector_types_convertible_p): Unless -flax-vector conversions
7862 has been passed, disallow conversions between vectors with
7863 differing numbers of subparts and/or element types. If such
7864 a conversion is disallowed, possibly emit a note on the first
7865 occasion only to inform the user of -flax-vector-conversions.
7866 The new last argument specifies this.
7867 * c-common.h (flag_lax_vector_conversions): New.
7868 (vector_types_convertible_p): Add extra argument.
7869 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7870 char_type_node for V*QI type vectors.
7871 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
7872 Update to satisfy new typechecking rules.
7873 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
7875 * doc/invoke.texi (C Dialect Options): Document
7876 -flax-vector-conversions.
7878 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
7880 PR tree-optimization/29877
7881 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
7882 a register variable on the RHS to not be replaceable.
7884 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
7885 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
7886 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
7887 const_simm15, const_pow2, const_npow2): Added.
7888 * config/score/misc.md (insv, extv, extzv, movmemsi,
7889 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
7890 * config/score/score.c (score_address_cost, score_select_cc_mode):
7892 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
7893 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
7894 Update score_print_operand.
7895 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
7896 Adjust register allocate order and update some macro define.
7897 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
7898 mdx_block_move_straight, mdx_block_move_loop_head,
7899 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
7900 mdx_block_move): Added.
7901 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
7902 mdp_limm): Updated and fix some bug and typo.
7903 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
7904 (movsf, movdf, doloop_end): Added.
7906 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
7908 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7909 config/arm/thumb2.md: Fix comment typos.
7910 * doc/extend.texi: Fix a typo.
7912 2007-01-07 Eric Christopher <echristo@apple.com>
7914 * configure.ac: Check for __stack_chk_fail for darwin.
7915 * configure: Regenerate.
7917 2007-01-07 Richard Guenther <rguenther@suse.de>
7919 * tree-vrp.c (extract_range_from_assert): CSE calls to
7920 compare_values where possible.
7921 (extract_range_from_unary_expr): Likewise.
7923 2007-01-07 Anatoly Sokolov <aesok@post.ru>
7925 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
7926 * config/avr/avr.c (call_insn_operand): Delete function.
7927 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
7928 instead of register number. Use predicates.
7929 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
7930 call_insn_operand): Add.
7932 2007-01-06 Jan Hubicka <jh@suse.cz>
7934 * tree-pass.h (pass_build_cgraph_edges): Declare.
7935 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
7936 (visited_nodes): Remove.
7937 (cgraph_create_edges): Move to cgraphbuild.c; rename to
7938 build_cgrpah_edges; make visited_nodes local.
7939 (cgraph_process_new_functions): DO not call initialize_inline_failed.
7940 (record_references_in_initializer): Move to cgraphbuild.c
7941 (initialize_inline_failed, rebuild_cgraph_edges,
7942 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
7943 (verify_cgraph_node): Make visited_nodes local.
7944 (cgraph_analyze_function): Do not call cgraph_create_edges and
7945 initialize_inline_failed.
7946 (cgraph_expand_function): Do not call cgraph_lower_function;
7947 assert that function is already lowered.
7948 * Makefile.in (cgraphbuild.o): New.
7949 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
7950 at the end of lowering passes.
7952 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
7954 * ifcvt.c (cond_move_convert_if_block): New function, code
7955 factored out from...
7956 (cond_move_process_if_block): ...here. Call the new function
7957 on the THEN and ELSE blocks.
7958 (merge_if_block): Do not copy global_live_at_end, merge_blocks
7959 already takes care of this.
7961 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7964 * tree.h (TREE_OVERFLOW_P): New.
7965 * c-typeck.c (parser_build_unary_op): Warn only if result
7966 overflowed and operands did not.
7967 (parser_build_binary_op): Likewise.
7968 (convert_for_assignment): Remove redundant overflow_warning.
7969 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
7971 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7973 * c-typeck.c (store_init_value): Split over two lines to follow
7974 the GNU coding style.
7976 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
7978 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
7979 __GXX_EXPERIMENTAL_CXX0X__.
7980 * doc/cpp.texi: Same.
7982 2007-01-05 Richard Guenther <rguenther@suse.de>
7985 * tree.c (get_narrower): Do not construct COMPONENT_REFs
7986 with mismatched types. Instead explicitly build a
7987 conversion NOP_EXPR.
7989 2007-01-05 Ian Lance Taylor <iant@google.com>
7991 * c-common.c (decl_with_nonnull_addr_p): New function.
7992 (c_common_truthvalue_conversion): Call it.
7993 * c-typeck.c (build_binary_op): Likewise.
7994 * c-common.h (decl_with_nonnull_addr_p): Declare.
7996 2007-01-05 Jakub Jelinek <jakub@redhat.com>
7999 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
8002 2007-01-05 Joel Brobecker <brobecker@adacore.com>
8004 * doc/install.texi (Final install): Document the fact that
8005 the GNAT runtime should not be stripped.
8007 2007-01-04 Jan Hubicka <jh@suse.cz>
8009 * tree-inline.c (fold_marked_statements): Update operand caches
8010 and EH after folding
8012 2007-01-04 Ian Lance Taylor <iant@google.com>
8014 * c-common.c (check_function_nonnull): Whitespace fix.
8016 2007-01-04 Jan Hubicka <jh@suse.cz>
8018 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
8019 comitted older version of patch.
8020 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
8021 function, celanup cfg and collect garbage.
8023 2007-01-04 Mike Stump <mrs@apple.com>
8025 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
8028 2007-01-04 Eric Christopher <echristo@apple.com>
8030 * libgcc2.c (__bswapsi2): Use SItype.
8031 (__bswapdi2): Use DItype.
8032 * libgcc2.h: Update for above.
8034 2007-01-04 Paul Brook <paul@codesourcery.com>
8036 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
8037 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
8038 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
8039 umulsidi3, umulsidi3adddi, smulsi3_highpart,
8040 umulsi3_highpart): Make conditional on !arm_arch6.
8041 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
8042 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
8043 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
8044 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
8045 umulsi3_highpart_v6): New insns.
8047 2007-01-04 Roger Sayle <roger@eyesopen.com>
8049 * fold-const.c (fold_convert): When casting an expression to void,
8050 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
8051 have a type. Instead of attempting to build a NOP_EXPR, return
8052 these "special" trees directly.
8054 2007-01-04 Joseph Myers <joseph@codesourcery.com>
8056 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
8057 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
8058 rs6000_cost->fp not 0 as adjustment for outer NEG.
8060 2007-01-04 Jan Hubicka <jh@suse.cz>
8062 * cgraph.c (cgraph_release_function_body): New function.
8063 (cgraph_remove_node): Use it.
8064 * cgraph.h (cgraph_release_function_body): Declare.
8065 * cgraphunit.c (cgraph_expand_function): Use it.
8066 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
8067 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
8068 is initialized and while compilation of other function is running.
8069 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
8070 statement CFG annotations from here to ...
8071 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
8073 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
8075 * cfgloop.h (enum li_flags): Make the constants powers of two.
8077 2007-01-04 Jan Hubicka <jh@suse.cz>
8079 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
8081 (fold_marked_statements): New function.
8082 (optimize_inline_calls, tree_function_versioning): Fold new statements.
8083 * tree-inline.h (copy_body_data): Add statements_to_fold.
8085 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
8087 * config.gcc: Mention libgcc/config.host.
8088 * Makefile.in: Update comments mentioning libgcc.
8089 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
8090 (all.cross, start.encap, rest.encap, rest.cross): Update
8091 dependencies for libgcc move.
8092 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
8093 (clean-target, clean-target-libgcc): Delete.
8094 (srcdirify, GCC_EXTRA_PARTS): New macros.
8095 (libgcc-support, libgcc.mvars): New rules.
8096 (distclean): Remove mention of mklibgcc.
8097 (install): Don't reference INSTALL_LIBGCC.
8098 (install-common): Don't reference EXTRA_PARTS.
8099 (install-libgcc, install-multilib): Delete rules.
8100 * mklibgcc.in: Delete file.
8101 * doc/configfiles.texi: Don't mention mklibgcc.
8103 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
8104 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
8105 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
8106 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
8107 (mklibgcc, ldblspecs): Likewise.
8109 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
8110 (posixpre.def): Use $(T).
8111 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
8112 (SHLIB_SRC, SHLIB_INSTALL): Delete.
8113 (SHLIB_LINK): Make dummy.
8114 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
8116 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
8118 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
8119 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
8120 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
8121 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
8123 * configure.ac (all_outputs): Remove mklibgcc.
8124 * configure: Regenerated.
8126 2007-01-03 Josh Conner <jconner@apple.com>
8129 * calls.c (compute_argument_addresses): Set stack and stack_slot
8130 for partial args, too.
8131 (store_one_arg): Use locate.size.constant for the size when
8132 generating a save_area.
8134 2007-01-03 Robert Kennedy <jimbob@google.com>
8136 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
8137 whose definitions are deleted due to basic block merging.
8139 2007-01-03 Paul Brook <paul@codesourcery.com>
8142 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
8144 (use_return_insn): Return 0 for Thumb interrupt functions.
8145 (print_multi_reg): Add rfe argument for IRQ returns.
8146 (arm_output_epilogue): Pop interrupt return address directly into PC.
8147 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
8149 2007-01-03 Paul Brook <paul@codesourcery.com>
8151 Merge from sourcerygxx-4_1.
8152 * config/arm/thumb2.md: New file.
8153 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
8155 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
8156 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
8157 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
8158 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
8160 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
8161 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
8163 * config/arm/ieee754-sf.S: Ditto.
8164 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
8165 (thumb1_base_register_rtx_p): ... to this.
8166 (thumb_index_register_rtx_p): Rename...
8167 (thumb1_index_register_rtx_p): ... to this.
8168 (thumb_output_function_prologue): Rename...
8169 (thumb1_output_function_prologue): ... to this.
8170 (thumb_legitimate_address_p): Rename...
8171 (thumb1_legitimate_address_p): ... to this.
8172 (thumb_rtx_costs): Rename...
8173 (thumb1_rtx_costs): ... to this.
8174 (thumb_compute_save_reg_mask): Rename...
8175 (thumb1_compute_save_reg_mask): ... to this.
8176 (thumb_final_prescan_insn): Rename...
8177 (thumb1_final_prescan_insn): ... to this.
8178 (thumb_expand_epilogue): Rename...
8179 (thumb1_expand_epilogue): ... to this.
8180 (arm_unwind_emit_stm): Rename...
8181 (arm_unwind_emit_sequence): ... to this.
8182 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
8183 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
8184 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
8185 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
8186 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
8187 thumb2_output_casesi): New functions.
8188 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
8189 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
8190 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
8191 THUMB2_WORK_REGS): Define.
8192 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
8193 arm_condexec_mask, arm_condexec_masklen)): New variables.
8194 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
8195 (arm_override_options): Check new CPU capabilities.
8196 Set new architecture flag variables.
8197 (arm_isr_value): Handle v7m interrupt functions.
8198 (user_return_insn): Return 0 for v7m interrupt functions. Handle
8200 (const_ok_for_arm): Handle Thumb-2 constants.
8201 (arm_gen_constant): Ditto. Use movw when available.
8202 (arm_function_ok_for_sibcall): Return false for v7m interrupt
8204 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
8205 (thumb_find_work_register, arm_load_pic_register,
8206 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
8207 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
8208 print_multi_reg, output_mov_long_double_fpa_from_arm,
8209 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
8210 output_mov_double_fpa_from_arm, output_move_double,
8211 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
8212 output_return_instruction, arm_output_function_prologue,
8213 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
8214 arm_output_mi_thunk, thumb_set_return_address): Ditto.
8215 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
8216 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
8217 (arithmetic_instr, shift_op): Use arm_shift_nmem.
8218 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
8220 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
8221 (thumb_expand_prologue): Use thumb_set_frame_pointer.
8222 (arm_file_start): Output directive for unified syntax.
8223 (arm_unwind_emit_set): Handle stack alignment instruction.
8224 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
8225 Add v6t2, v7, v7a, v7r and v7m.
8226 (RETLDM): Add Thumb-2 code.
8227 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
8228 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
8229 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
8230 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
8231 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
8232 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
8233 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
8234 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
8235 ADJUST_INSN_LENGTH): Define.
8236 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
8237 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
8238 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
8239 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
8240 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
8241 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
8242 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
8243 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
8244 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
8245 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
8246 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
8247 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
8248 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
8249 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
8250 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
8251 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
8252 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
8254 * config/arm/arm-tune.md: Regenerate.
8255 * config/arm/arm-protos.h: Update prototypes.
8256 * config/arm/vfp.md: Enable patterns for Thumb-2.
8257 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
8258 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
8259 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
8260 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
8261 * config/arm/libunwind.S: Add Thumb-2 code.
8262 * config/arm/constraints.md: Update include Thumb-2.
8263 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
8264 * config/arm/ieee754-df.S: Ditto.
8265 * config/arm/bpabi.S: Ditto.
8266 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
8267 * config/arm/predicates.md (low_register_operand,
8268 low_reg_or_int_operand, thumb_16bit_operator): New.
8269 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
8270 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
8271 * config/arm/t-arm-elf: Add armv7 multilib.
8272 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
8274 (UNSPEC_STACK_ALIGN, ce_count): New.
8275 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
8276 arm_zero_extendsidi2, arm_zero_extendqidi2): New
8278 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
8279 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
8280 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
8281 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
8282 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
8283 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
8285 * doc/extend.texi: Document ARMv7-M interrupt functions.
8286 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
8288 2007-01-03 Jakub Jelinek <jakub@redhat.com>
8290 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
8291 (struct _Unwind_Context): Rename args_size to flags, remove
8292 signal_frame field, add a new args_size field and version field.
8293 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
8294 _Unwind_IsExtendedContext): New inline functions.
8295 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
8296 Assume by_value array is only present if _Unwind_IsExtendedContext.
8297 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
8298 _Unwind_IsSignalFrame.
8299 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
8300 (uw_update_context_1): Use _Unwind_SetSignalFrame.
8301 (uw_init_context_1): Initialize context->flags to
8302 EXTENDED_CONTEXT_BIT.
8303 * config/rs6000/linux-unwind.h (frob_update_context): Use
8304 _Unwind_SetSignalFrame.
8306 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
8309 * gimplify.c (gimplify_modify_expr_complex_part): Move below
8310 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
8313 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
8315 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
8316 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
8317 RET, AT_SP): Remove.
8318 * config/i386/i386.md (*sse_prologue_save_insn): Use return
8321 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8322 * cfgbuild.c (find_basic_blocks): Likewise.
8323 * cfgrtl.c (rtl_create_basic_block): Likewise.
8324 * function.c (temp_slots_at_level): Likewise.
8325 * reg-stack.c (stack_regs_mentioned): Likewise.
8326 * regclass.c (allocate_reg_info): Likewise.
8327 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8328 set_bb_for_stmt, move_block_to_fn): Likewise.
8329 * tree-complex.c (tree_lower_complex): Likewise.
8330 * vec.h (VEC_safe_grow_cleared): New.
8332 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
8334 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
8336 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
8337 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
8339 * cfgloopmanip.c (scale_loop_frequencies): Export.
8340 (loopify): Scale the frequencies by prescribed coefficients.
8341 (set_zero_probability): New function.
8342 (duplicate_loop_to_header_edge): Improve updating of frequencies.
8343 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
8344 and frequencies according to arguments.
8345 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
8347 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
8348 * modulo-sched.c (sms_schedule): Set probabilities for entering
8349 versioned loop correctly.
8350 * tree-vect-transform.c (vect_transform_loop): Ditto.
8351 * cfgloop.h (loopify, loop_version): Declaration changed.
8352 (scale_loop_frequencies): Declared.
8354 2007-01-02 Jan Hubicka <jh@suse.cz>
8356 * cgraph.c: Include tree-flow.h
8357 (cgraph_add_new-function): Handle IPA_SSA mode; execute
8359 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
8360 * tree-pass.h (pass_all_early_optimizations): Declare.
8361 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
8363 (cgraph_analyze_function): Do early_local_passes.
8364 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
8365 Do not add referenced vars.
8366 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
8368 (gate_all_early_local_passes): New gate.
8369 (pass_early_local_passes): Use new gate.
8370 (execute_early_local_optimizations): New functions.
8371 (gate_all_early_optimizations): New gate.
8372 (pass_all_early_optimizations): New pass.
8373 (execute_free_datastructures): Free SSA only when initialized.
8374 (gate_init_datastructures): Init only when optimizing.
8375 (tree_lowering_passes): Do early local passes when called late.
8376 * tree-profile.c (do_tree_profiling): Don't profile functions added
8378 (do_early_tree_profiling, pass_early_tree_profile): Kill.
8379 * tree-cfg.c (update_modified_stmts): Do not update when operands are
8381 * passes.c (init_optimizations_passes): Reorder so we go into SSA
8382 during early_local_passes.
8383 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
8386 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
8388 * Makefile.in: Update copyright year.
8390 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
8392 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
8393 in $(lang_checks) and check-consistency targets.
8395 2007-01-02 Jan Hubicka <jh@suse.cz>
8397 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
8398 Do not add referenced vars.
8399 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
8401 * passes.c (init_optimization_passes): Put mudflap_2 after
8402 free_datastructures.
8404 2007-01-02 Jan Hubicka <jh@suse.cz>
8406 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
8407 Set NOTHROW flag on call statements proved to be nothrow.
8408 Update statement of local calls so new pure/const functions are
8409 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
8411 (tree_rest_of_compilation): Register hooks and initialize bitmap
8412 early. Do not set after_inlining flag.
8414 2007-01-02 Steve Ellcey <sje@cup.hp.com>
8416 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
8417 HOST_BITS_PER_LONGLONG
8419 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8422 * c-typeck.c (store_init_value): Don't emit pedantic overflow
8423 warning for non-static initializers.
8425 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
8427 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
8428 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
8429 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
8430 Always use set_unique_reg_note to add REG_EQUAL notes.
8432 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
8435 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
8437 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8438 * cfgbuild.c (find_basic_blocks): Likewise.
8439 * cfgrtl.c (rtl_create_basic_block): Likewise.
8440 * function.c (temp_slots_at_level): Likewise.
8441 * reg-stack.c (stack_regs_mentioned): Likewise.
8442 * regclass.c (allocate_reg_info): Likewise.
8443 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8444 set_bb_for_stmt, move_block_to_fn): Likewise.
8445 * tree-complex.c (tree_lower_complex): Likewise.
8446 * vec.h (VEC_safe_grow_cleared): New.
8448 2007-01-02 Ian Lance Taylor <iant@google.com>
8450 * c-common.c (c_common_truthvalue_conversion): When warning about
8451 using an assignment as a truth value, set TREE_NO_WARNING.
8453 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8456 * c.opt (Wold-style-declaration): New.
8457 * doc/invoke.texi (C-only Warning Options): New.
8458 (Wold-style-declaration): Document it.
8459 (Wextra): Enabled by -Wextra.
8460 * c-opts.c (c_common_post_options): Enabled by -Wextra.
8461 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
8462 -Wold-style-declaration.
8464 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
8466 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
8467 * cfgbuild.c (find_basic_blocks): Likewise.
8468 * cfgrtl.c (rtl_create_basic_block): Likewise.
8469 * function.c (temp_slots_at_level): Likewise.
8470 * reg-stack.c (stack_regs_mentioned): Likewise.
8471 * regclass.c (allocate_reg_info): Likewise.
8472 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
8473 set_bb_for_stmt, move_block_to_fn): Likewise.
8474 * tree-complex.c (tree_lower_complex): Likewise.
8475 * vec.h (VEC_safe_grow_cleared): New.
8477 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
8479 * c-common.c (c_common_nodes_and_builtins): Since variants of
8480 void_type_node get built before it is given a name, we need to
8481 give those variants the name, too.
8482 (complete_array_type): We need to work with the canonical main
8483 type of the array, from which we will build the qualified version.
8484 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
8485 * print-tree.c (print_node): Display canonical type information
8487 * stor-layout.c (layout_type): When we don't know the
8488 alignment of a type for which we're building an array, we end up
8489 guessing wrong, so make the type require structural equality.
8490 * tree.c (make_node_stat): When we build a new type, it is its
8492 (build_type_attribute_qual_variant): When building an attribute
8493 variant, its canonical type is the non-attribute variant. However,
8494 if the attributes are target-dependent and they differ, we need to
8495 use structural equality checks for this type.
8496 (build_qualified_type): A qualified type is not equivalent to its
8497 unqualified variant; set the canonical type appropriately.
8498 (build_distinct_type_copy): When building a distinct type from
8499 another type, the new type is its own canonical type.
8500 (build_variant_type_copy): When building a new type variant, we
8501 assume that it is equivalent to the original type.
8502 (build_pointer_type_for_mode): When building a pointer type, also
8503 build a canonical type pointer.
8504 (build_reference_type_for_mode): When building a reference type,
8505 also build a canonical type reference.
8506 (build_index_type): When we can't hash an index type (e.g.,
8507 because its maximum value is negative), the index type requires
8508 structural equality tests.
8509 (build_array_type): Build the canonical form of an array type.
8510 (build_function_type): Function types require structural equality,
8511 because they contain default arguments, attributes, etc.
8512 (build_method_type_directly): Ditto for method types.
8513 (build_offset_type): Build the canonical offset type.
8514 (build_complex_type): Build the canonical vector type.
8515 (make_vector_type): Build the canonical vector type.
8516 * tree.h (TYPE_CANONICAL): New.
8517 (TYPE_STRUCTURAL_EQUALITY_P): New.
8518 (SET_TYPE_STRUCTURAL_EQUALITY): New.
8519 (struct tree_type): Added "canonical" field.
8520 * params.h (VERIFY_CANONICAL_TYPES): New.
8521 * doc/c-tree.texi (TYPE_CANONICAL): Document.
8522 (TYPE_STRUCTURAL_EQUALITY_P): Document.
8523 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
8524 * doc/invoke.texi (verify-canonical-types): Document --param
8525 parameter for verifying canonical types.
8527 2007-01-02 Joseph Myers <joseph@codesourcery.com>
8529 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
8530 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
8531 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
8532 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
8534 * config/rs6000/e500.h: New.
8535 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
8536 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
8538 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
8539 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
8540 TARGET_E500_DOUBLE): Remove.
8541 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
8542 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
8543 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
8544 * config/rs6000/rs6000.c (rs6000_override_options): Use
8547 2007-01-02 Joseph Myers <joseph@codesourcery.com>
8549 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
8550 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
8551 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
8552 rs6000_emit_cmove): Don't check TARGET_E500.
8553 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
8554 sordered): Don't check TARGET_E500.
8556 2007-01-01 Eric Christopher <echristo@apple.com>
8558 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
8559 HARD_REGISTER_NUM_P.
8561 2007-01-01 Roger Sayle <roger@eyesopen.com>
8563 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
8564 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
8565 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
8568 2007-01-01 Mike Stump <mrs@apple.com>
8570 * configure.ac: Remove support for building with Apple's gcc-3.1.
8572 2007-01-02 Joseph Myers <joseph@codesourcery.com>
8575 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
8576 REG is a hard register. Do not modify REG before calling
8578 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
8579 multiple of the size of YMODE for certain lowpart cases.
8581 2007-01-01 Andrew Pinski <pinskia@gmail.com>
8584 * gimplify (voidify_wrapper_expr): Update for
8587 2007-01-01 Andreas Schwab <schwab@suse.de>
8590 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
8591 save of BR0 in extra_spill_size instead of spill_size.
8592 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
8594 (ia64_expand_epilogue): Restore BR0 from its new location.
8596 2007-01-01 Andrew Pinski <pinskia@gmail.com>
8598 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
8599 Use a temporary variable if the left hand side is not a gimple
8602 2007-01-01 Andrew Pinski <pinskia@gmail.com>
8604 * gimplify.c (gimplify_return_expr): Make the temporary variable
8605 for the return expression, a gimple register variable.
8607 2007-01-01 Jan Hubicka <jh@suse.cz>
8609 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
8612 2007-01-01 Mike Stump <mrs@apple.com>
8614 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
8616 * config/darwin.c (machopic_select_rtx_section): Use
8618 (darwin_mergeable_constant_section): Likewise.
8619 * configure: Regenerate.
8620 * config.in: Regenerate.
8622 2007-01-01 Jan Hubicka <jh@suse.cz>
8623 Andrew Pinski <pinskia@gmail.com>
8625 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
8626 before starting IPA passes.