OSDN Git Service

PR tree-optimization/31183
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
2
3         PR tree-optimization/31183
4         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops): 
5         Use double_int instead of unsigned int for representing access_strides.
6         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
7
8 2007-03-16  Richard Guenther  <rguenther@suse.de>
9
10         PR tree-optimization/31146
11         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
12         to allow recursion of forward_propagate_addr_expr.
13         (forward_propagate_addr_into_variable_array_index): Likewise.
14         (forward_propagate_addr_expr): Likewise.
15         (tree_ssa_forward_propagate_single_use_vars): Likewise.
16         (forward_propagate_addr_expr_1): Recurse on simple copies
17         instead of propagating into them.  Do so for useless conversions
18         as well.
19         (forward_propagate_addr_expr): Clean up unused statements after
20         recursion.
21
22 2007-03-16  Richard Guenther  <rguenther@suse.de>
23
24         * builtins.c (expand_builtin_cexpi): Use the right argument
25         for the expansion via cexp.
26
27 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
28
29         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
30         * configure: Rebuilt.
31
32 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
33
34         PR debug/29906
35         * dwarf2out.c (force_type_die): Adjust comment.
36         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
37
38 2007-03-15  DJ Delorie  <dj@redhat.com>
39
40         * config/frv/predicates.md (minmax_operator): Don't check operands
41         here.
42
43 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
44
45         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
46         Update constant estimates of number of iterations.
47         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
48         argument renamed to "realistic".
49         (compute_estimated_nb_iterations): Removed.
50         (record_niter_bound): New function.
51         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
52         call record_nonwrapping_iv with upper = false.
53         (infer_loop_bounds_from_signedness): Pass upper argument to
54         record_nonwrapping_iv.
55         (estimate_numbers_of_iterations_loop): Do not call
56         compute_estimated_nb_iterations.  Record estimate based on profile
57         information.  Initialize the constant estimates of number of
58         iterations.
59         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
60         estimates.
61         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
62         number of iterations is too small.
63         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
64         (EST_NOT_AVAILABLE): Removed.
65         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
66         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
67         fields.
68
69 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
70
71         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
72         Handle NE_EXPR guards.
73
74 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
75
76         PR c++/24924
77         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
78         Set also -pedantic-errors by default for the  preprocessor unless
79         -fpermissive is given.
80         
81 2007-03-15  Richard Guenther  <rguenther@suse.de>
82
83         PR middle-end/29719
84         PR middle-end/31161
85         * builtins.c (expand_builtin_cexpi): As a fallback if we
86         don't have builtins for sincos or cexp create a function
87         declaration for cexp and expand to a call to that.
88         (expand_builtin_int_roundingfn): Always fall
89         back to floor/ceil and its variants even if they may be
90         not available.
91
92 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
93
94         PR middle-end/31159
95         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
96         jump tables, move the call to delete_dead_jumptables from here...
97         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
98         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
99         don't allow merging of blocks that try_redirect_by_replacing_jump
100         also does not handle when not optimizing.
101
102 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
103             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
104
105         * config/i386/i386.md (x86_sahf_1): Correctly handle
106         HAVE_AS_IX86_SAHF.
107
108 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
109
110         PR target/31167
111         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
112         x86_64_general_operand as operand[2] predicate.  Remove "iF"
113         from operand constraints and use "e" constraint instead.
114         (*subti3_1, *subti3_1 splitter): Ditto.
115         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
116         operand[1] predicate.
117
118 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
119
120         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
121         arrays, multiply the access strides by the size of the sub-array.
122         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
123
124 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
125
126         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
127         the configured assembler supports the sahf mnemonic.
128         * configure: Regenerate.
129         * config.in: Regenerate.
130
131         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
132         emit "sahf" or ".byte\t0x9e" as asm template.
133
134 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
135
136         PR 31018
137         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
138         option to replace hard coded TARGET_xxx in md file.
139         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
140         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
141         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
142         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
143         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
144         (X86_TUNE_NOT_VECTORMODE): Ditto.
145         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
146         (TUNE_AVOID_VECTOR_DECODE): Ditto.
147         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
148         (TUNE_SLOW_IMUL_IMM8): Ditto.
149         (TUNE_MOVE_M1_VIA_OR): Ditto.
150         (TUNE_NOT_UNPAIRABLE): Ditto.
151         (TUNE_NOT_VECTORMODE): Ditto.
152         
153         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
154         options.
155
156         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
157         tuning options instead of hard coded TARGET_xxx.
158         (fix ssemode peephole2's): Ditto.
159         (imul peephole2's): Ditto.
160         (movsi_or): Ditto.
161         (movdi_or_rex64): Ditto.
162         (move peephole2): Ditto.
163         (not peephole2's): Ditto.
164
165 2007-03-14  Dirk Mueller  <dmueller@suse.de>
166
167         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
168         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
169         * c-parser.c (c_parser_if_body): Always add an empty statement in case
170         of empty body.
171         * c-parser.c (c_parser_do_statement): Warn about empty body in
172         do/while statement.
173         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
174         * doc/invoke.texi (-Wempty-body): Update documentation.
175
176 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
177
178         PR c/21438
179         * c-common.h (warn_for_div_by_zero): Declare.
180         * c-common.c (warn_for_div_by_zero): Define.
181         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
182         warning.
183
184 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
185
186         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
187         to PREFIX and STANDARD_PREFIX.
188
189 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
190             Phil Edwards  <phil@codesourcery.com>
191
192         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
193         (__gthread_once_t): Remove busy field for RTPs.
194         (__GTHREAD_ONCE_INIT): Update accordingly.
195
196 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
197
198         * doc/invoke.texi: Document VxWorks options.
199
200 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
201
202         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
203
204 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
205
206         PR tree-optimization/30590
207         * tree-nrv.c (tree_nrv): Check for the partial update of the
208         return value.
209
210 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
211
212         * flags.h (flag_random_seed): Remove declaration, in favor of...
213         * toplev.h (get_random_seed, set_random_seed): ... these.
214         * tree.c (get_file_function_name): Use the former.
215         * opts.c (common_handle_option): Use the latter.
216         * toplev.c
217
218 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
219
220         PR middle-end/31127
221         * cse.c (cse_find_path): Do not bail out if a basic block that
222         we already visited now becomes part of a path that starts at a
223         different basic block.  Just disallow this, to make sure we
224         visit each basic block at most once.
225
226 2007-03-13  Jan Hubicka  <jh@suse.cz>
227
228         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
229         when profile esitmate is present, calls with very low frequency are
230         cold.
231
232 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
233
234         PR tree-optimization/30730
235         PR tree-optimization/26900
236         * tree-ssa-loop-niter.c: Include gmp.h.
237         (bounds): New type.
238         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
239         split_to_var_and_offset, determine_value_range,
240         bound_difference_of_offsetted_base, refine_bounds_using_guard,
241         bound_difference, bounds_add, bounds_negate,
242         number_of_iterations_ne_max, dump_affine_iv): New functions.
243         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
244         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
245         difference of initial and final value of control iv to validate
246         results.
247         (number_of_iterations_cond): Add loop parameter.  Determine bounds
248         on the difference of the extremes of the control iv.  Add dumps.
249         (expand_simple_operations): Handle phi nodes.
250         (simplify_using_initial_conditions): Do not record used conditions.
251         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
252         Do not set additional_info.
253         (implies_nonnegative_p, implies_ge_p): Removed.
254         (derive_constant_upper_bound): Do not use parameter `additional'.
255         (record_estimate): Parameter `additional' removed.  Parameter
256         `i_bound' added.  Do not call derive_constant_upper_bound.
257         (record_nonwrapping_iv): Use derive_constant_upper_bound to
258         bound the number of iterations estimate.
259         (estimate_numbers_of_iterations_loop): Pass the estimate from
260         the number of iterations analysis to record_estimate.
261         * tree.h (multiple_of_p): Declare.
262         * tree-scalar-evolution.c (expression_expensive_p): Removed.
263         (scev_const_prop): Do not check expression_expensive_p.
264         * fold-const.c (multiple_of_p): Exported.
265         * double-int.c (double_int_mask): Exported.
266         * double-int.h (double_int_mask): Declare.
267         * tree-flow.h (struct tree_niter_desc): Removed additional_info
268         field.  Added max field.
269
270 2007-03-13  David Taylor  <taylor@candd.org>
271
272         PR driver/12448:
273         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
274         default -MQ.
275
276 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
277
278         PR target/31123
279         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
280         two unamed patterns.
281         
282 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
283
284         * config/i386/i386.opt (mcx16, msahf): New options.
285         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
286         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
287
288         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
289         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
290         Output -mcx16 and -msahf options when corresponding bit is set.
291
292         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
293         and -msahf options.
294
295 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
296
297         * configure.ac: Test for assembler tolerance to # 0 "".
298         * configure, config.in: Rebuilt.
299         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
300
301 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
302
303         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
304
305         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
306         (handle_syscall): Handle direct system calls.
307         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
308
309 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
310
311         * doc/invoke.texi: Fix cpp.info cross-reference.
312         * doc/passes.texi: Fix gcc.info cross-reference.
313
314 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
315
316         PR tree-optimization/30835
317         * lambda-code.c (can_convert_to_perfect_nest): Check whether
318         bb_for_stmt is not NULL before accessing it.
319
320 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
321
322         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
323         some multilibs.
324
325 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
326
327         PR 30635
328         * doc/install.texi: Document --enable-stage1-languages
329
330 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
331
332         * tree-pass.h (pass_into_cfg_layout_mode,
333         pass_outof_cfg_layout_mode): Declare.
334         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
335         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
336         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
337         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
338
339 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
340
341         * c-decl.c (warn_variable_length_array): New function.
342         Refactored from grokdeclarator to handle warn_vla
343         and handle unnamed array case.
344         (grokdeclarator): Refactored VLA warning case.
345         * c.opt (Wvla): New flag.
346         * doc/invoke.texi (Wvla): New warning.
347
348 2007-03-12  Richard Henderson  <rth@redhat.com>
349
350         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
351         (TARGET_SECTION_TYPE_FLAGS): New.
352
353 2007-03-12  Richard Henderson  <rth@redhat.com>
354
355         * config/darwin.c (machopic_reloc_rw_mask): New.
356         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
357         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
358
359 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
360
361         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
362         * cppdefault.h (cpp_PREFIX): Document.
363         (cpp_PREFIX_len): Likewise.
364         (cpp_EXEC_PREFIX): New variable.
365         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
366         * c-incpath.c (add_standard_paths): Correct logic for relocating
367         paths within prefix.
368
369 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
370
371         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
372         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
373         mode macro.
374         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
375         fix_truncdfdi_sse using SSEMODEF mode macro.
376         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
377         fix_truncdfsi_sse using SSEMODEF mode macro.
378         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
379         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
380
381 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
382
383         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
384         elfos.h to tm_file.
385
386 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
387   
388         * tree.h : Add multiple_of_p declaration.
389         * fold-const.c (multiple_of_p): Make multiple_of_p public. 
390         * ipa-type-escape.c (results_of_malloc): Redundant.
391         (visited_stmts): New. Visited stmt for walk_use_def_chains.
392         (cast_type): Extended with new members.
393         (check_cast): Returns cast_type.
394         (cast): New structure for data of walk_use_def_chains.
395         (is_malloc_result, is_cast_from_non_pointer_1,
396         is_cast_from_non_pointer, 
397         is_array_access_through_pointer_and_index): New functions.
398         (look_for_casts): Returns cast types.
399         (check_call): Returns void.
400         (okay_pointer_operation): Use support of pointer plus index,
401         pointer plus constant and allow all multiplications.
402         
403 2007-03-11  Richard Guenther  <rguenther@suse.de>
404
405         PR tree-optimization/31115
406         * tree-vrp.c (extract_range_from_binary_expr): Make sure
407         the shift count is positive and non-anti-range for RSHIFT_EXPR.
408         A shift count of zero is not special as with *_DIV_EXPR.
409         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
410         direction.
411
412 2007-03-11  Ian Lance Taylor  <iant@google.com>
413
414         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
415         the *_DIV_EXPR codes correctly with overflow infinities.
416
417 2007-03-11  Ira Rosen  <irar@il.ibm.com>
418
419         * tree-data-ref.c (analyze_offset): Add a return value (bool) to 
420         indicate success/failure of the analysis. Add negation to subtrahend
421         in case of subtraction. Fail if both operands contain constants.
422         (create_data_ref): Fail if analyze_offset fails.
423
424 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
425
426         * config/i386/i386.md (frndintxf2): Rename to ...
427         (rintxf2): ... this. Remove expander having same name.
428         (rintsf2, rintdf2): Implement using SSEMODEF macro.
429         (roundsf2, rounddf2): Ditto.
430         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
431         (lround<mode>di2, lround<mode>si2): Ditto.
432
433 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
434
435         * lower-subreg.c: Include except.h.
436         (decompose_multiword_subregs): Verify that the only control flow
437         insns we can split are loads to multi-words pseudos.
438         Handle breaking such blocks after splitting, instead of calling
439         find_many_sub_basic_blocks.
440
441         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
442         on the new basic block.  Add a lengthy comment explaining why we
443         thought this was necessary.
444         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
445
446 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
447
448         PR c++/30924
449         * tree.c (walk_type_fields): Recurse into the element type of
450         ARRAY_TYPEs if there is a pointer set.
451
452 2007-03-10  Dirk Mueller  <dmueller@suse.de>
453
454         * c-common.c (warn_logical_operator): Fix condition.
455
456 2007-03-10  Tobias Schlüter  <tobi@gcc.gnu.org>
457
458         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
459         quotation mark.
460         * config/darwin.c (machopic_select_section): Remove superfluous
461         argument in call to categorize_decl_for_section.  Remove unused
462         variable shlib.
463
464 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
465
466         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
467         defined.
468         * configure: Regenerate.
469
470 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
471
472         PR target/31101
473         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
474         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
475         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
476         Add LABEL_NUSES to emitted label.
477         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
478         branch probability value to emitted jump insn.
479         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
480         Do not check life information and do not re-arrange input operands
481         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
482
483 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
484
485         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
486         the change of decode_asm_operands.
487
488 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
489
490         * mode-switching.c (create_pre_exit): Skip blockage insn.
491
492 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
493
494         * tree-pass.h (TODO_update_smt_usage): Remove.
495         Update all users.
496         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
497         argument SOME.
498         Update all users.
499
500 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
501
502         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
503         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
504         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
505         SOM target.
506
507 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
508
509         * gcc.c: Document %{, in big comment at top.
510         (input_suffix_matches): Remove special handling for .s and
511         .S.
512         (input_spec_matches): New.
513         (handle_braces): Handle %{,.
514         (validate_switches): ',' indicates a value which is not a switch.
515         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
516         to detect assembler input.
517         * config/i386/sol2.h (CPP_SPEC): Likewise.
518         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
519         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
520         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
521         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
522         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
523         -m64 causes deployment target to default to 10.5.
524         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
525
526 2007-03-09  Richard Henderson  <rth@redhat.com>
527
528         PR target/26090
529         * target.h (targetm.asm.out.reloc_rw_mask): New.
530         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
531         (TARGET_ASM_OUT): Use it.
532         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
533         * varasm.c (categorize_decl_for_section): Remove shlib argument;
534         use the new reloc_rw_mask target hook instead.
535         (default_section_type_flags_1): Merge into...
536         (default_section_type_flags): ... here.
537         (decl_readonly_section_1): Merge into...
538         (decl_readonly_section): ... here.
539         (default_elf_select_section_1): Merge into...
540         (default_elf_select_section): ... here.
541         (default_unique_section_1): Merge into...
542         (default_unique_section): ... here.
543         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
544         (default_select_rtx_section): Use it.
545         (default_elf_select_rtx_section): Likewise.
546         * output.h: Update to match.
547         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
548         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
549         (TARGET_ASM_RELOC_RW_MASK): New.
550         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
551         to categorize_decl_for_section.
552         (x86_64_elf_unique_section): Likewise.
553         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
554         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
555         (TARGET_ASM_RELOC_RW_MASK): New.
556         * config/ia64/ia64.c (ia64_rwreloc_select_section,
557         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
558         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
559         (TARGET_RWRELOC): Remove.
560         (ia64_section_type_flags): Adjust call to default_section_type_flags.
561         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
562         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
563         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
564         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
565         (rs6000_xcoff_select_section): Use decl_readonly_section.
566         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
567         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
568         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
569         (TARGET_SECTION_TYPE_FLAGS): Remove.
570         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
571
572 2007-03-09  Roger Sayle  <roger@eyesopen.com>
573
574         * fold-const.c (fold_comparison): Remove compile-time evaluation of
575         complex constant equality/inequality comparisons for here.
576         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
577         known at compile-time or can be simplified to a scalar comparison.
578         (fold_relational_const): Move compile-time evaluation of complex
579         constant equality/inequality comparisons to here.
580
581 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
582
583         PR rtl-optimization/30643
584         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
585         dest_addr_elt.
586         (fold_rtx): Recurse, like before 2006-11-03.
587
588 2007-03-09  DJ Delorie  <dj@redhat.com>
589
590         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
591         m32c-pragma.o.
592
593 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
594
595         PR tree-optimization/30375
596         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
597         LHS of statements is not the same.
598         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
599
600 2007-03-09  Chao-ying Fu  <fu@mips.com>
601
602         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
603         REV 2.
604         * doc/invoke.texi (-mdspr2): Document new option.
605         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
606         New unspec for DSP REV 2.
607         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
608         these instructions are extended in DSP REV 2.
609         (mips-dspr2.md): Include.
610         * config/mips/mips.opt (mdspr2): New option.
611         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
612         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
613         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
614         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
615         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
616         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
617         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
618         and 2 builtins.
619         (bdesc_map): Add one field of unsupported_target_flags.
620         (bdesc_arrays):  Update entries to have extra fields.  Add
621         dsp_32only_bdesc.
622         (mips_init_builtins): Initialize new function types.
623         Check unsupported_target_fileds to filter out builtins.
624         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
625         TARGET_DSPR2.
626         (ASM_SPEC): Pass mdspr2 to the assembler.
627         * config/mips/mips-dspr2.md: New file.
628
629 2007-03-09  Sa Liu  <saliu@de.ibm.com>
630
631         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
632
633 2007-03-09  Ian Lance Taylor  <iant@google.com>
634
635         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
636         argument) like -Wstrict-overflow=2.
637         * doc/invoke.texi (Warning Options): Update documentation.
638
639 2007-03-09  Dirk Mueller  <dmueller@suse.de>
640
641         PR c++/17946
642         * doc/invoke.texi (-Wlogical-op): Document.
643         * common.opt (-Wlogical-op): New.
644         * c-common.h (warn_logical_operator): Declare.
645         * c-common.c (warn_logical_operator): Define.
646         * c-typeck.c (parser_build_binary_op): Call
647         warn_logical_operator.
648
649 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
650
651         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
652         * final.c (final_scan_insn): Test for non-"" file name.
653
654 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
655
656         * doc/loop.texi: Document the Omega linear constraints solver.
657         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
658         omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
659         omega-hash-table-size, omega-max-keys, and 
660         omega-eliminate-redundant-constraints.
661         * tree-pass.h (pass_check_data_deps): Declared.
662         * omega.c: New.
663         * omega.h: New.
664         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
665         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
666         pass_check_data_deps): New.
667         * tree-data-ref.c (init_data_ref): Remove declaration.
668         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
669         (analyze_array): Renamed init_array_ref, move up initializations.
670         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
671         Removed arguments that are set to NULL.
672         (analyze_indirect_ref): Correct indentation, correct call to 
673         init_pointer_ref.
674         (object_analysis): Call init_array_ref instead of analyze_array.
675         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
676         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
677         of DR_ACCESS_FNS_ADDR.
678         (init_omega_eq_with_af, omega_extract_distance_vectors, 
679         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
680         ddr_consistent_p): New.
681         (compute_affine_dependence): Check consistency of ddrs when 
682         flag_check_data_deps is passed.
683         (analyze_all_data_dependences): Uncomment.
684         (tree_check_data_deps): New.
685         * tree-data-ref.h: Include omega.h.
686         (DR_ACCESS_FNS_ADDR): Removed.
687         (data_dependence_relation): Add inner_loop.
688         (DDR_INNER_LOOP): New.
689         * common.opt (fcheck-data-deps): New.
690         * tree-flow.h (tree_check_data_deps): Declare.
691         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
692         (OBJS-common): Depend on omega.o.
693         (omega.o): Define.
694         * passes.c (pass_check_data_deps): Scheduled.
695         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
696         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
697         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
698         PARAM_VECT_MAX_VERSION_CHECKS,
699         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
700
701 2007-03-09  Richard Guenther  <rguenther@suse.de>
702
703         PR tree-optimization/30904
704         PR middle-end/31058
705         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
706         the same way as *_DIV_EXPR.
707
708 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
709
710         * recog.c (decode_asm_operands): No mixed declarations and code.
711
712 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
713
714         * rtl.def (ASM_INPUT): Add location.
715         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
716         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
717         (decode_asm_operands): Add loc operand.
718         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
719         * stmt.c (expand_asm): Rename to...
720         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
721         gen_rtx_ASM_INPUT_loc.
722         (expand_asm_expr): Adjust.
723         * recog.c (decode_asm_operands): Add loc operand.
724         (check_asm_operands, extract_insn): Adjust.
725         * reload1.c (maybe_fix_stack_asms): Likewise.
726         * final.c (asm_insn_count): Likewise.
727         (final_scan_insn): Output # line before and after asm.
728
729 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
730
731         * tree-ssa-structalias.c (variable_info): Remove
732         finished_solution.
733         (new_var_info): Ditto.
734         (shared_bitmap_info_t): New structure.
735         (shared_bitmap_table): New variable.
736         (shared_bitmap_hash): New function.
737         (shared_bitmap_eq): Ditto
738         (shared_bitmap_lookup): Ditto.
739         (shared_bitmap_add): Ditto.
740         (merge_smts_into): Change to take bitmap directly.
741         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
742         (init_alias_vars): Init shared bitmap hashtable.
743         (delete_points_to_sets): Delete shared bitmap hashtable.
744         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
745         is_aliased removal as a change that was still necessary was
746         deleted.
747
748 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
749
750         * config/i386/i386.h (override_options): Conditionally disable
751         x86_sahf for 64bit targets only.
752
753 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
754
755         PR C/31072
756         * c-decl.c (merge_decls): Don't call make_var_volatile.
757         * varasm.c (make_var_volatile): Remove.
758         * output.h (make_var_volatile): Remove.
759
760 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
761
762         PR tree-optimization/31085
763         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
764
765 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
766
767         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
768         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
769         ATTR_CONST_NOTHROW_LIST.
770         
771         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
772         FIX_TRUNC_EXPR.
773
774 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
775
776         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
777
778 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
779
780         PR 31013
781         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
782         is declared.
783         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
784         passed, use shared libgcc.
785
786 2007-03-08  Roger Sayle  <roger@eyesopen.com>
787
788         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
789         instead of calling build2 with a GIMPLE_MODIFY_STMT.
790         (honor_protect_cleanup_actions, lower_try_finally_switch):
791         Likewise.
792         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
793         ifc_temp_var): Likewise.
794         * tree-inline.c (setup_one_parameter): Likewise.
795         * tree-mudflap.c (mf_decl_cache_locals,
796         mf_build_check_statement_for): Likewise.
797         * tree-nested.c (init_tmp_var, save_tmp_var,
798         finalize_nesting_tree_1): Likewise.
799         * tree-outof-ssa.c (insert_copy_on_edge,
800         insert_backedge_copies): Likewise.
801         * tree-profile.c (tree_gen_edge_profiler,
802         tree_gen_ic_profiler): Likewise.
803         * tree-scalar-evolution.c (scev_const_prop): Likewise.
804         * tree-sra.c (sra_build_assignment): Likewise.
805         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
806         * tree-ssa-math-opts.c (insert_reciprocals,
807         execute_cse_sincos_1): Likewise.
808         * tree-tailcall.c (adjust_accumulator_values,
809         adjust_return_value): Likewise.
810         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
811         * tree-vect-transform.c (vect_create_data_ref_ptr,
812         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
813         vect_create_epilog_for_reduction, vectorizable_reduction,
814         vectorizable_call, vectorizable_conversion,
815         vectorizable_assignment, vectorizable_operation,
816         vectorizable_type_demotion, vect_gen_widened_results_half,
817         vect_permute_store_chain, vectorizable_store,
818         vect_setup_realignment, vect_permute_load_chain,
819         vectorizable_load, vectorizable_condition,
820         vect_create_cond_for_align_checks): Likewise.
821         * tree-vrp.c (build_assert_expr_for): Likewise.
822
823 2007-03-08  Ian Lance Taylor  <iant@google.com>
824
825         * tree-vrp.c: Include "intl.h".
826         (usable_range_p): New static function.
827         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
828         overflowed values, juts set *strict_overflow_p.
829         (compare_values): Only return -2 if one of the operands is not a
830         constant.
831         (compare_ranges): Call usable_range_p.
832         (compare_range_with_value): Likewise.
833         (vrp_evaluate_conditional_warnv): Rename from
834         vrp_evaluate_conditional.  Make static.  Change all callers.
835         (vrp_evaluate_conditional): New function.
836         (simplify_div_or_mod_using_ranges): Issue warning about reliance
837         on signed overflow.
838         (simplify_abs_using_ranges): Likewise.
839         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
840         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
841         within_stmt parameter.
842         * tree-ssa-propagate.c (fold_predicate_in): Update call to
843         vrp_evaluate_conditional.
844         * tree-ssa-threadedge.c
845         (record_temporary_equivalences_from_stmts_at_dest): Change
846         simplify parameter to take a second tree parameter.
847         (simplify_control_stmt_condition): Likewise.
848         (thread_across_edge): Likewise.
849         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
850         (thread_across_edge): Likewise.
851         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
852
853 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
854
855         * config/i386/i386.h (TARGET_SAHF): New define.
856         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
857         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
858         (x86_sahf): New global variable.
859         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
860         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
861         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
862         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
863         for 64-bit.
864         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
865         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
866         when expanding fcomi/sahf based tests.
867         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
868         expanding sahf based alternative. Emit sahf based sequence when
869         optimizing for code size.
870         * config/i386/i386.md (x86_sahf_1): Do not disable for
871         TARGET_64BIT, enable for TARGET_SAHF. 
872
873 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
874
875         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
876         spurious whitespace from error message.
877
878 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
879
880         PR c++/30852
881         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
882
883 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
884
885         * c-decl.c (grokdeclarator): Disable warnings for anonymous
886         bitfields.
887         * tree-sra.c (instantiate_element): Propagate disabled warnings
888         from the element itself to the created variable.
889
890 2007-03-07  Richard Henderson  <rth@redhat.com>
891
892         PR target/30848
893         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
894         silently fix up the stack in the case of a missing register.
895
896 2007-03-07  Paul Brook  <paul@codesourcery.com>
897
898         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
899
900 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
901
902         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
903         New.
904         (phase1_vrs): Use them.
905         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
906         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
907         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
908         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
909         __gnu_Unwind_Restore_WMMXC if required.
910         (_Unwind_VRS_Pop): Implement iWMMXt support.
911         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
912         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
913         gnu_Unwind_Save_WMMXC): Define.
914
915 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
916
917         * config/vxworks.h (vxworks_override_options): Declare.
918         (VXWORKS_OVERRIDE_OPTIONS): Use it.
919         * config/vxworks.c: Include target.h and toplev.h.
920         (vxworks_override_options): New function.
921         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
922
923 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
924
925         * config/s390/s390.c (override_options): Don't emit an error when
926         -mstack-size is used without providing -mstack-guard.
927         (s390_emit_prologue): Choose stack_guard value automatically if not
928         provided via command line.
929         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
930
931 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
932
933         * config/i386/i386.c (output_set_got): Add a GOT initialization
934         sequence for VxWorks PIC.
935         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
936         around labels as well as symbols.  Use gotoff_operand instead
937         of local_symbolic_operand.
938         (legitimize_pic_address): Use gotoff_operand instead of
939         local_symbolic_operand.  Use @GOT accesses for labels as
940         well as symbols.
941         (ix86_output_addr_diff_elt): Use PC-relative rather than
942         GP-relative offsets for VxWorks PIC.
943         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
944         no_new_pseudos.  Check whether the returned register is op0.
945         * config/i386/i386.md (tablejump): Use PC-relative rather than
946         GP-relative offsets for VxWorks PIC.
947         * config/i386/predicates.md (gotoff_operand): New predicate.
948
949 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
950
951         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
952         before defining.
953         * config/vxworks-dummy.h: New file.
954         * config/i386/i386.h: Include it.
955
956 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
957
958         * dwarf2out.c (is_inlined_entry_point): New
959         (add_high_low_attributes): Emit DW_AT_entry_pc along with
960         DW_AT_ranges if the first subblock is the entry point.
961
962 2007-03-06  David Daney  <ddaney@avtrex.com>
963
964         * doc/install.texi (mips-*-*): Change recommended binutils
965         version.
966
967 2007-03-06  Anatoly Sokolov <aesok@post.ru>
968
969         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
970         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162 
971         devices.
972         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
973         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
974
975 2007-03-06  Jan Hubicka  <jh@suse.cz>
976
977         * errors.h (warning, error, fatal, internal_error): Mark as cold.
978         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
979         are hot.
980         (probably_cold_bb_p): Cold functions are cold.
981         (probably_never_executed_bb_p): Cold functions are cold.
982         (tree_bb_level_predictions): Predict calls to cold functions as not
983         taken.
984         (compute_function_frequency): Check hot/cold attributes.
985         * function.h (function_frequency): Update comments.
986         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
987         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
988         (c_common_att): Add cold and hot.
989
990         * doc/extend.texi (hot,cold attributes): Document.
991
992 2007-03-06  Andrew Haley  <aph@redhat.com>
993
994         * function.c (expand_function_end): Move blockage to just after we
995         emit the label for the naked return from the function.
996
997 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
998
999         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
1000         before redefining.
1001
1002 2007-03-06  Jan Hubicka  <jh@suse.cz>
1003
1004         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
1005         loaded for constant large models.  Non-large 64bit PIC can do.
1006         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
1007         * cmodel.h: Add LARGE PIC.
1008         * i386.md (UNSPEC_PLTOFF): New.
1009         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
1010         needed.
1011         (*call_1_rex64): Disable for large models.
1012         (*call_1_rex64_large): New.
1013         (*call_value_1_rex64): Disable for large models.
1014         (*call_value_1_rex64_large): New.
1015         (set_rip_rex4): New.
1016         (set_got_offset_rex64): New.
1017         * predicates.md (constant_call_address_operand): For large model
1018         constant calls are not possible.
1019         * i386-protos.h (construct_plt_address): Declare.
1020         * i386.c (override_options): Accept large models.
1021         (ix86_expand_prologue): Expand large PIC GOT pointer load.
1022         (legitimate_constant_p): Add new UNSPECs.
1023         (legitimate_pic_operand_p): Likewise.
1024         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
1025         (legitimize_pic_address): Do easy RIP relative way for TLS only for
1026         non-large model.
1027         (output_pic_addr_const): Add PLTOFF.
1028         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
1029         (ix86_expand_move): Legitimize pic address when in PIC mode.
1030         (construct_plt_address): New function.
1031         (ix86_expand_call): Offload the address to register and use GOT pointer
1032         for large model.
1033         * invoke.texi (mcmodel=large): Update documentation.
1034
1035 2007-03-06  Richard Henderson  <rth@redhat.com>
1036
1037         * config/i386/i386.c (x86_use_leave, x86_push_memory,
1038         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
1039         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
1040         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
1041         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
1042         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
1043         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix, 
1044         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
1045         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
1046         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves, 
1047         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
1048         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
1049         x86_sse_partial_reg_dependency, x86_sse_split_regs, 
1050         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
1051         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
1052         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
1053         x86_schedule, x86_use_bt, x86_pad_returns,
1054         x86_use_xchgb): Merge into ...
1055         (ix86_tune_features): ... here.  New array.
1056         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1057         x86_bswap): Merge into ...
1058         (ix86_arch_features): ... here.  New array.
1059         (x86_3dnow_a): Remove.
1060         (x86_accumulate_outgoing_args): Make static.
1061         (x86_arch_always_fancy_math_387): Make static.
1062         (ix86_tune_mask, ix86_arch_mask): Move ...
1063         (override_options): ... to local variables here.  Apply the
1064         appropriate mask to each element of ix86_arch_features and
1065         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
1066         as were done in the old macros.
1067         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
1068         * config/i386/i386.h (x86_use_leave, x86_push_memory,
1069         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
1070         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
1071         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
1072         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
1073         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
1074         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
1075         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
1076         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
1077         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
1078         x86_partial_reg_dependency, x86_memory_mismatch_stall,
1079         x86_accumulate_outgoing_args, x86_prologue_using_move,
1080         x86_epilogue_using_move, x86_decompose_lea,
1081         x86_arch_always_fancy_math_387, x86_shift1,
1082         x86_sse_partial_reg_dependency, x86_sse_split_regs,
1083         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,        
1084         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
1085         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1086         x86_use_incdec, x86_pad_returns, x86_bswap,
1087         x86_partial_flag_reg_stall): Remove.
1088         (enum ix86_tune_indices): New.
1089         (ix86_tune_features): New.
1090         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
1091         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
1092         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
1093         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
1094         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
1095         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
1096         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
1097         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
1098         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
1099         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
1100         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
1101         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
1102         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
1103         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
1104         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
1105         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
1106         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
1107         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
1108         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
1109         TARGET_EXT_80387_CONSTANTS): Use it.
1110         (enum ix86_arch_indices): New.
1111         (ix86_arch_features): New.
1112         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
1113         TARGET_BSWAP): Use it.
1114         (ix86_tune_mask, ix86_arch_mask): Remove.
1115
1116 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
1117
1118         PR bootstrap/31020
1119         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
1120         Define using $${sysroot_headers_suffix}.
1121         * configure: Regenerate.
1122         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
1123         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
1124         defined.
1125         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
1126         * gcc.c (print_sysroot_headers_suffix): New.
1127         (option_map): Include --print-sysroot-headers-suffix.
1128         (display_help): Mention -print-sysroot-headers-suffix.
1129         (process_command): Handle -print-sysroot-headers-suffix.
1130         (do_spec_1): Append multilib directory to include-fixed path if
1131         sysroot suffixes in use.
1132         (main): Handle -print-sysroot-headers-suffix.
1133         * Makefile.in (start.encap): Don't depend on xlimits.h
1134         (xlimits.h): Remove.
1135         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
1136         limits.h for each multilib in fixinc_list.
1137         (fixinc_list, s-fixinc_list): New.
1138         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
1139         generate them for each multilib in fixinc_list.
1140         (stmp-fixproto): Use include-fixed.  Run fixproto for each
1141         multilib in fixinc_list.
1142         (mostlyclean): Don't remove xlimits.h.
1143         (clean): Remove include-fixed.
1144         (real-install-headers-tar, real-install-headers-cpio,
1145         real-install-headers-cp): Don't copy include, only include-fixed.
1146         (install-mkheaders): Depend on fixinc_list.  Don't depend on
1147         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
1148         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
1149         SYSTEM_HEADER_DIR setting in mkheaders.conf.
1150
1151 2007-03-06  Jan Hubicka  <jh@suse.cz>
1152
1153         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
1154         NANs easilly.
1155
1156 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1157
1158         * configure.ac: Allow tm_file to contain build-directory files.
1159         * configure: Regenerate.
1160         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
1161         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
1162         * config/m68k/print-sysroot-suffix.sh: New file.
1163
1164 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1165
1166         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
1167         of pic_offset_table_rtx if reload_completed.
1168         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
1169         PIC_OFFSET_TABLE_REGNUM.
1170         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
1171         return true.
1172         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
1173         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
1174
1175 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1176
1177         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1178         functions that call eh_return.
1179
1180 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1181
1182         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
1183         functions that need a constant pool.
1184
1185 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1186
1187         PR target/28181
1188         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
1189         (m68k_preferred_reload_class): Likewise.
1190         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
1191         (SECONDARY_RELOAD_CLASS): Define.
1192         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
1193         (LIMIT_RELOAD_CLASS): Delete.
1194         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
1195         registers from storing bytes.
1196         (m68k_secondary_reload_class): New function.
1197         (m68k_preferred_reload_class): Likewise.
1198
1199 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1200
1201         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
1202         leaf functions.
1203         (m68k_expand_prologue): Likewise.
1204
1205 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1206
1207         * config/m68k/m68k-protos.h (output_sibcall): Declare.
1208         (mips_expand_epilogue): Add a bool parameter.
1209         (m68k_legitimize_sibcall_address): Declare.
1210         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1211         (m68k_expand_epilogue): Add a parameter to select between sibling
1212         and normal epilogues.  Only generate a return for the latter.
1213         (m68k_ok_for_sibcall_p): New function.
1214         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
1215         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
1216         (sibcall_value, *sibcall_value): Likewise.
1217         (*call, *call_value): Require !SIBLING_CALL_P.
1218         (epilogue): Update call to m68k_expand_epilogue.
1219         (sibcall_epilogue): New pattern.
1220         * config/m68k/predicates.md (const_call_operand): Say that this
1221         predicate applies to sibling calls too.
1222         (sibcall_operand): New predicate.
1223
1224 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1225
1226         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
1227         alternatives as movsi_cf.
1228         (movsf_cf_hard): Add commentary.
1229
1230 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
1231             Richard Sandiford  <richard@codesourcery.com>
1232
1233         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
1234         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
1235         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
1236         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
1237         as being live on exit from an interrupt function.
1238         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
1239         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
1240         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
1241         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
1242         (m68k_interrupt_function_p): Globalize.
1243         (m68k_compute_frame_layout): Remove reverse mask code.
1244         (m68k_emit_movem, m68k_set_frame_related): New functions.
1245         (m68k_output_function_prologue): Delete in favor of...
1246         (m68k_expand_prologue): ...this new function.
1247         (m68k_output_function_epilogue): Delete in favor of...
1248         (m68k_expand_epilogue): ...this new function.
1249         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
1250         functions.
1251         (print_operand): Handle %?.
1252         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
1253         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
1254         (prologue, epilogue): New patterns.
1255         (return): Turn into a define_expand.
1256         (*return): New pattern, derived from old "return" pattern.  Use rte
1257         rather than rts for interrupt functions.  Only use rtd if the pop
1258         count is nonzero.
1259         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
1260         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
1261         (link, *link, unlink, *unlink, load_got): Likewise.
1262
1263 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1264
1265         PR target/23482
1266         PR target/17114
1267         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
1268         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
1269         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
1270         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
1271         and m68k_matches_u_p.
1272         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
1273         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
1274         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
1275         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
1276         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
1277         (REG_STRICT_P): New macro.
1278         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
1279         PCREL_GENERAL_OPERAND_OK.
1280         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
1281         m68k_legitimate_base_reg_p.
1282         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
1283         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
1284         (PIC_CASE_VECTOR_ADDRESS): Update comment.
1285         * config/m68k/m68k.c (m68k_address): New structure.
1286         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
1287         (m68k_decompose_index, m68k_legitimate_constant_address_p)
1288         (m68k_jump_table_ref_p, m68k_decompose_address)
1289         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
1290         (m68k_matches_u_p): New functions.
1291         (print_operand_address): Rewrite to use m68k_decompose_index.
1292
1293 2007-03-05  David Taylor  <dtaylor@emc.com>
1294
1295         * gcc.c: Correct copyright date in --version output.
1296
1297 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1298
1299         * pa.md: In unamed move patterns, disparge copies between general
1300         and floating point registers using '?' modifier.  Don't include 'f'
1301         constraint for register preferences in DImode, SImode, HImode and
1302         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
1303         Remove constraints for copies between general and floating registers
1304         in soft-float DFmode pattern.
1305         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
1306         floating register.
1307         (movsf): Likewise. 
1308
1309 2007-03-05  Mike Stump  <mrs@apple.com>
1310
1311         * c-common.c (targetcm): Add.
1312         * c-opts.c (c_common_handle_option): Handle language specific
1313         target options.
1314         * opts.c (handle_option): Verify language for target options, if
1315         any are given.
1316         * opth-gen.awk: Add CL_LANG_ALL.
1317         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
1318         (TARGETCM_INITIALIZER): Add.
1319         * target.h (struct gcc_targetcm): Add.
1320         (targetcm): Add.
1321         * targhooks.c (default_handle_c_option): Add.
1322         * targhooks.h (default_handle_c_option): Add.
1323         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
1324
1325         * config/darwin.opt (iframework): Add.
1326         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
1327         * config/darwin-c.c (handle_c_option): Add.
1328         (TARGET_HANDLE_C_OPTION): Add.
1329         (targetcm): Add.
1330         * doc/invoke.texi (Darwin Options): Add -iframework.
1331
1332 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1333
1334         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
1335         conversion.
1336
1337 2007-03-05  Ian Lance Taylor  <iant@google.com>
1338
1339         * c.opt (fgnu89-inline): New option.
1340         * c-opts.c (c_common_post_options): Set default value for
1341         flag_gnu89_inline.
1342         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
1343         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
1344         inline functions.
1345         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
1346         (grokdeclarator, start_function): Likewise.
1347         * c-cppbuiltin.c (c_cpp_builtins): Define either
1348         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
1349         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
1350         (C Dialect Options): Document -fgnu89-inline.
1351         * doc/extend.texi (Function Attributes): Explain what the
1352         gnu_inline attribute does.
1353         * doc/cpp.texi (Common Predefined Macros): Document
1354         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
1355
1356 2007-03-05  Ian Lance Taylor  <iant@google.com>
1357
1358         PR tree-optimization/31034
1359         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
1360         half-range if the other side is an overflow infinity.
1361
1362 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1363
1364         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
1365         (bfin*-linux-uclibc*): New configuration.
1366         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
1367         defining.
1368         * config/bfin/linux.h: New file.
1369         * config/bfin/libgcc-bfin.ver: New file.
1370         * config/bfin/t-bfin-uclinux: New file.
1371         * config/bfin/t-bfin-linux: New file.
1372         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
1373         (TARGET_OS_CPP_BUILTINS): New macro.
1374
1375 2007-03-05  Richard Guenther  <rguenther@suse.de>
1376
1377         * fold-const.c (fold_binary): Remove duplicate folding
1378         of comparison of non-null ADDR_EXPR against null.
1379
1380 2007-03-05  Richard Guenther  <rguenther@suse.de>
1381             Dorit Nuzman  <dorit@il.ibm.com>
1382
1383         PR tree-optimization/26420
1384         * tree-vectorizer.c (vectorize_loops): Bail out early if there
1385         are no loops in the function.  Only print the number of
1386         vectorized loops if it is greater than zero or we are supposed
1387         to print information about unvectorized loops.
1388
1389 2007-03-05  Revital Eres  <eres@il.ibm.com>
1390
1391         * gcc.dg/var-expand1.c: New test.
1392         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
1393         when an accumulator is expanded.
1394
1395 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1396
1397         PR other/30465
1398         * c-common.c (convert_and_check): Don't give warnings for
1399         conversion if 'expr' already overflowed.
1400         
1401 2007-03-04  Roger Sayle  <roger@eyesopen.com>
1402
1403         PR middle-end/30744
1404         * fold-const.c (fold_comparison): Enforce type consistency when
1405         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
1406
1407 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
1408
1409         * tree-ssa-address.c (create_mem_ref): Do not put an expression
1410         containing a cast to the base of TARGET_MEM_REF.
1411
1412 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
1413
1414         * tree.c (tree_contains_struct_check_failed): Remove spurious
1415         whitespace from error message.
1416
1417 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1418
1419         PR target/30406
1420         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
1421         instead of precision.
1422
1423 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
1424             Nathan Sidwell  <nathan@codesourcery.com>
1425
1426         * emit-rtl.c (find_auto_inc): New.
1427         (try_split): recreate REG_INC notes,
1428         Use regular for loops rather than whiles.
1429
1430 2007-03-03  Andreas Schwab  <schwab@suse.de>
1431
1432         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
1433         * configure: Regenerate.
1434
1435 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1436
1437         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
1438         flag_rounding_math, not flag_unsafe_math_optimizations.
1439
1440         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
1441         fold_build2.
1442         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
1443         alpha_fold_vector_minmax): Likewise.
1444         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1445         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1446
1447 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1448
1449         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
1450         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
1451         if the lhs has side-effects.
1452         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
1453
1454 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1455
1456         * config/i386/i386.h (TUNEMASK): Remove define.
1457         (ARCHMASK): Remove define.
1458         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
1459          Use ix86_arch_mask variable instead of ARCHMASK.
1460         * config/i386/i386.c (override_options): Ditto.
1461         (standard_80387_constant_p): Ditto.
1462
1463 2007-03-02  Ian Lance Taylor  <iant@google.com>
1464
1465         Used signed infinities in VRP.
1466         * tree-vrp.c (uses_overflow_infinity): New static function.
1467         (supports_overflow_infinity): New static function.
1468         (make_overflow_infinity): New static function.
1469         (negative_overflow_infinity): New static function.
1470         (positive_overflow_infinity): New static function.
1471         (is_negative_overflow_infinity): New static function.
1472         (is_positive_overflow_infinity): New static function.
1473         (is_overflow_infinity): New static function.
1474         (overflow_infinity_range_p): New static function.
1475         (compare_values_warnv): New function split out of compare_values.
1476         (compare_value): Call it.
1477         (set_value_range_to_nonnegative): Add overflow_infinity
1478         parameter.  Change caller.
1479         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
1480         Change callers.
1481         (vrp_expr_computes_nonzero): Likewise.
1482         (compare_ranges, compare_range_with_value): Likewise.
1483         (compare_name_with_value, compare_names): Likewise.
1484         (vrp_evaluate_conditional): Likewise.
1485         (set_value_range): Handle infinity
1486         (vrp_operand_equal_p, operand_less_p): Likewise.
1487         (extract_range_from_assert): Likewise.
1488         (vrp_int_const_binop): Likewise.
1489         (extract_range_from_binary_expr): Likewise.
1490         (extract_range_from_unary_expr): Likewise.
1491         (extract_range_from_comparison): Likewise.
1492         (extract_range_from_expr): Likewise.
1493         (dump_value_range): Likewise.
1494         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
1495         (test_for_singularity): Likewise.
1496         (vrp_int_const_binop): Remove inline qualifier.
1497         (adjust_range_with_scev): Add comment.
1498         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1499
1500 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
1501
1502         * tree-ssa-structalias.c (could_have_pointers): Tidy.
1503         (get_constraint_for): Likewise.
1504         (do_structure_copy): Likewise.
1505         (find_func_aliases): Fix references to MODIFY_EXPR.
1506         (intra_create_variable_infos): Tidy.
1507         * tree-ssa-operands.c (add_virtual_operand): Add argument
1508         IS_CALL_SITE.
1509         When adding members of alias sets, if IS_CALL_SITE is true and
1510         the symbol is not call-clobbered, skip it.
1511         Adjust all callers.
1512
1513 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
1514
1515         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
1516         entry by means of emit_insn_at_entry.
1517
1518 2007-03-02  Richard Henderson  <rth@redhat.com>
1519
1520         * expr.h (promoted_input_arg): Remove decl.
1521         * function.c (promoted_input_arg): Merge into ...
1522         * combine.c (setup_incoming_promotions): ... only caller.
1523         Rearrange to avoid double loop.
1524
1525 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1526             Peter Bergner  <bergner@vnet.ibm.com>
1527             Janis Johnson  <janis187@us.ibm.com>
1528
1529         * config/rs6000/dfp.md: New file.
1530         * config/rs6000/rs6000.md: Include dfp.md.
1531         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
1532         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
1533         and TDmode decimal float modes in FP registers.
1534         (num_insns_constant): Likewise.
1535         (rs6000_legitimate_offset_address_p): Likewise.
1536         (rs6000_legitimize_address): Likewise.
1537         (rs6000_legitimize_reload_address): Likewise.
1538         (rs6000_legitimate_address): Likewise.
1539         (rs6000_emit_move): Likewise.
1540         (function_arg_boundary): Likewise.
1541         (function_arg_advance): Likewise.
1542         (rs6000_darwin64_record_arg_recurse): Likewise.
1543         (function_arg): Likewise.
1544         (rs6000_gimplify_va_arg): Likewise.
1545         (rs6000_split_multireg_move): Likewise.
1546         (rs6000_output_function_epilogue): Likewise.
1547         (rs6000_output_function_epilogue): Likewise.
1548         (rs6000_register_move_cost): Likewise.
1549         (rs6000_function_value): Likewise.
1550         (rs6000_libcall_value): Likewise.
1551
1552 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1553
1554         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
1555
1556 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
1557
1558         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
1559         Use $MULTIDIR to choose between the kernel and RTP headers,
1560         and use $WIND_BASE and $WIND_USR to locate them.
1561
1562 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1563
1564         * config/i386/i386.c (override_options): Put initialization of
1565         ix86_tune_mask and ix86_arch_mask to the correct place.
1566
1567 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
1568             Michael Meissner  <michael.meissner@amd.com>
1569
1570         PR target/31019
1571         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
1572         (ARCHMASK): Define.
1573         (TARGET_CMOVE): Use ARCHMASK.
1574         (TARGET_CMPXCHG): Ditto.
1575         (TARGET_CMPXCHG8B): Ditto.
1576         (TARGET_XADD): Ditto.
1577         (TARGET_BSWAP): Ditto.
1578         * config/i386/i386.c (ix86_tune_mask): New global variable.
1579         (ix86_arch_mask): Ditto.
1580         (override_options): Initialize ix86_tune_mask and
1581         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
1582         target_flags.
1583
1584 2007-03-02  Ben Elliston  <bje@au.ibm.com>
1585
1586         PR 30992
1587         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
1588
1589 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
1590
1591         * target.h (init_dwarf_reg_sizes_extra): New target hook.
1592         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
1593         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
1594         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
1595         hook.
1596         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
1597         rs6000_init_dwarf_reg_sizes_extra): New.
1598         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
1599         SPE register high parts.
1600
1601 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1602
1603         * Makefile.in: Add install-pdf target as
1604         copied from automake v1.10 rules.
1605         * configure.ac: Add install-pdf to target list.
1606         * configure: Regenerate.
1607
1608 2007-03-01  Paul Brook  <paul@codesourcery.com>
1609
1610         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
1611         modes to LDRD for DImode.
1612         (output_move_double): Fixup out of range ldrd/strd.
1613         (vfp_secondary_reload_class): Rename...
1614         (coproc_secondary_reload_class): ... to this.  Add wb argument.
1615         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
1616         coproc_secondary_reload_class for CLASS_IWMMXT.
1617         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1618         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
1619
1620 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
1621
1622         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
1623         factor by the estimated number of iterations.
1624         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
1625         prefetch latency.
1626
1627         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
1628         decode_caches_intel, detect_caches_intel): New functions.
1629         (host_detect_local_cpu): Use detect_caches_amd and
1630         detect_caches_intel.
1631
1632 2007-03-01  Richard Henderson  <rth@redhat.com>
1633
1634         * expr.c (emit_move_complex_push): Export.
1635         (emit_move_complex_parts): Split out from ...
1636         (emit_move_complex): ... here.
1637         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
1638         * config/i386/i386.md (movcdi): New.
1639
1640 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
1641
1642         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
1643         size of mode1 to check for tieable modes in MMX case.
1644
1645 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
1646
1647         * Makefile.in (rtlanal.o): Depend on tree.h.
1648         * rtl.h (offset_within_section_p, split_const): Declare.
1649         * rtlanal.c: Include tree.h.
1650         (offset_within_block_p): New function, taken from
1651         mips_offset_within_object_p.
1652         (split_const): New function, taken from mips_split_const.
1653         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
1654         Declare.
1655         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1656         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
1657         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
1658         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1659         (m68k_illegitimate_symbolic_constant_p): New function.
1660         * config/m68k/m68k.md (movsi): Remove misleading predicates.
1661         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
1662         symbolic constant that might be outside the symbol's section,
1663         move the symbol first and then add the offset.
1664         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
1665         Override.
1666         * config/mips/mips.c (mips_split_const): Delete.
1667         (mips_offset_within_object_p): Delete.
1668         (mips_symbolic_constant_p): Use offset_within_section_p and
1669         split_const instead of mips_offset_within_object_p and
1670         mips_split_const.
1671         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
1672         (mips_legitimize_const_move, print_operand_reloc)
1673         (mips_dangerous_for_la25_p): Use split_const instead of
1674         mips_split_const.
1675
1676 2007-02-28  Eric Christopher  <echristo@apple.com>
1677
1678         * Makefile.in (install-include-dir): Don't rm -rf include.
1679
1680 2007-02-28  Richard Guenther  <rguenther@suse.de>
1681
1682         PR middle-end/30364
1683         * fold-const.c (fold_binary): Do not associate expressions
1684         with more than one variable for integer types that do not wrap.
1685
1686 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
1687
1688         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
1689         Delete, and replace with...
1690         (fold_builtin_call_array): This.  Update callers to use it.
1691         * fold-const.c (fold_build_call_list): Delete, and replace with...
1692         (fold_build_call_array): This.
1693         (fold_build_call_list_initializer): Delete, and replace with...
1694         (fold_build_call_array_initializer): This.
1695         * tree.h: Update declarations to reflect above changes.
1696
1697         * c-typeck.c (build_function_call): Store converted arguments
1698         in a stack-allocated array instead of building a list.
1699         (convert_arguments): Store arguments in the array passed in as an
1700         argument, and return the actual number of arguments.
1701         * c-format.c: (check_function_format): Pass arguments in an
1702         array instead of a list.
1703         * c-common.c (check_function_nonnull): Likewise.
1704         (check_function_sentinel): Likewise.
1705         (check_function_arguments): Likewise.
1706         * c-common.h: Update declarations to reflect above changes.
1707
1708 2007-02-28  Jan Hubicka  <jh@suse.cz>
1709
1710         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
1711         PRED_NEGATIVE_RETURN): Update outcomes.
1712
1713 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1714
1715         * calls.c (emit_library_call_value_1): Handle partial registers
1716         correctly when building up CALL_INSN_FUNCTION_USAGE.
1717
1718 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1719
1720         * pa/predicates.md (move_src_operand): Allow zero for mode.
1721         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
1722         move pattern.
1723
1724 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
1725
1726         PR target/30970
1727         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
1728         *movv2df_internal): Enable pattern only for valid operand
1729         combinations.
1730         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
1731         tie only 128bit modes. For MMX registers, tie only 64bit modes.
1732
1733 2007-02-27  Mike Stump  <mrs@apple.com>
1734
1735         * config/darwin-crt3.c: Avoid compilation when compiling for a
1736         kext multilib.
1737
1738 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
1739
1740         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
1741         FIXED_INCLUDE_DIR.
1742         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
1743         for fixed headers and limits.h.
1744         (install-include-dir, install-headers-tar, install-headers-cpio,
1745         install-headers-cp, real-install-headers-tar,
1746         real-install-headers-cpio, real-install-headers-cp): Handle
1747         include-fixed as well as include.
1748         (install-mkheaders): Don't install files that go only in include
1749         not include-fixed.
1750         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
1751         from GCC_INCLUDE_DIR.
1752         * gcc.c (process_command): Remove special -BstageN/ handling.
1753         (do_spec_1): Add include-fixed directories.
1754
1755 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1756
1757         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
1758         _smulsi3_highpart.
1759         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
1760         New functions.
1761         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
1762         patterns.
1763
1764 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
1765
1766         * c-common.c (get_priority): Add check for
1767         SUPPORTS_INIT_PRIORITY.
1768
1769 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1770
1771         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
1772
1773         * config/bfin/bfin.c: Include "cfglayout.h".
1774         (MAX_LSETUP_DISTANCE): New macro.
1775         (struct loop_info): New members incoming, incoming_src and
1776         incoming_dest.  Delete member predecessor.
1777         (length_for_loop): New function.
1778         (bfin_optimize_loop): Handle more different loop structures.
1779         (bfin_discover_loop): Rework detection of predecessor blocks by
1780         examining incoming edges.
1781         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
1782         bfin_reorg_loops.
1783         (bfin_reorder_loops): New function.
1784         (bfin_reorg_loops): Use these three new functions.
1785
1786         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
1787         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
1788         (CONSTRAINT_LEN): Add entry for 'q'.
1789         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
1790         Add 'q' constraints.
1791         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
1792         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
1793
1794         * config/bfin/bfin.md (add_with_carry): New pattern.
1795         (s_or_u, su_optab, su_modifier): New code macros/attrs.
1796         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
1797         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
1798         support unsigned multiplies too.  Removed incorrect commutativity from
1799         operand 1 constraint where appropriate.
1800         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
1801         patterns.
1802         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
1803         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
1804         New patterns.
1805         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
1806         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
1807         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
1808         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
1809         usmulhisi_hh_huh): New patterns.
1810
1811         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1812         lshifthi3): Fix output template to use half reg for operand 2.
1813
1814         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
1815         instead of R2.
1816
1817         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
1818
1819 2007-02-27  Andreas Schwab  <schwab@suse.de>
1820
1821         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
1822
1823 2007-02-27  Jan Hubicka  <jh@suse.cz>
1824
1825         * predict.c (last_basic_block_p): Remove.
1826         (tree_estimate_probability): Update return heuristic for commonized
1827         return blocks.
1828
1829 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1830
1831         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
1832
1833 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
1834
1835         * doc/include/gcc-common.texi (versionsubtitle): New macro.
1836         * doc/cpp.texi: Standardize title page.
1837         * doc/cppinternals.texi: Likewise.
1838         * doc/gcc.texi: Standardize title page, remove version number
1839         from copyright page.
1840         * doc/gccint.texi: Likewise.
1841         * doc/install.texi: Standardize title page, add table of
1842         contents.
1843
1844 2007-02-26  Jan Hubicka  <jh@suse.cz>
1845
1846         * predict.def: Set outcomes according to more recent results.
1847         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
1848         Remove dead predictors.
1849         * predict.c (return_prediction): Fix pasto.
1850
1851 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1852
1853         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
1854         change; avoid a memory leak when returning early.
1855
1856 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
1857
1858         * c-decl.c (static_ctors): Move to c-common.c.
1859         (static_dtors): Likewise.
1860         (finish_function): Use c_record_cdtor_fn.
1861         (build_cdtor): Move to c-common.c.
1862         (c_write_global_declarations): Use c_build_cdtor_fns.
1863         * c-common.h (static_ctors): Declare.
1864         (static_dtors): Likewise.
1865         (c_record_cdtor_fn): Likewise.
1866         (c_build_cdtor_fns): Likewise.
1867         * c-common.c (static_ctors): New variable.
1868         (static_dtors): Likewise.
1869         (c_record_cdtor_fn): New function.
1870         (build_cdtor): Move from c-decl.c
1871         (c_build_cdtor_fns): New function.
1872
1873         * output.h (assemble_addr_to_section): Declare.
1874         (get_cdtor_priority_section): Likewise.
1875         * varasm.c (assemble_addr_to_section): New function.
1876         (get_cdtor_priority_section): Likewise.
1877         (default_named_section_asm_out_destructor): Use them.
1878         (destor_dtor_section_asm_out_destructor): Likewise.
1879         (default_named_section_asm_out_constructor): Likewise.
1880         (default_ctor_section_asm_out_constructor): Likewise.
1881         * config.gcc (*-*-vxworks*): Include vxworks.o.
1882         * config/t-vxworks (vxworks.o): New target.
1883         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
1884         (TARGET_ASM_CONSTRUCTOR): Define.
1885         (TARGET_ASM_DESTRUCTOR): Likewise.
1886         (vxworks_asm_out_constructor): Declare.
1887         (vxworks_asm_out_destructor): Likewise.
1888
1889         * c-common.c (get_priority): Check that we have not just an
1890         INTEGER_CST, but an integer constant with integeral type.
1891
1892 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
1893
1894         PR tree-optimization/30938
1895         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
1896         use &dt[nargs-1] instead of &dt[nargs] in the call to
1897         vect_is_simple_use().
1898
1899 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
1900
1901         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
1902         from register elimination as PRE_MODIFY / POST_MODIFY increments.
1903         Do not attempt to handle MEM inside auto-inc expressions.
1904         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
1905         of a register modified by an auto-inc expression.  However, do handle
1906         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
1907         (elimination_effects): Prohibit elimination of a register modified
1908         by an auto-inc expression.  Disable register elimination rules whose
1909         target register is modified by an auto-inc expression with variable
1910         increment.
1911
1912 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
1913
1914         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
1915         off-by-one error.
1916         (array_at_struct_end_p): New function.
1917         (idx_infer_loop_bounds): Use it.
1918         (estimate_numbers_of_iterations_loop): Export.
1919         * predict.c (predict_loops): Use estimated_loop_iterations_int.
1920         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
1921         (tree_estimate_probability): Call record_loop_exits.
1922         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
1923         (estimated_loop_iterations, estimated_loop_iterations_int,
1924         estimated_loop_iterations_tree): New functions.
1925         (analyze_siv_subscript_cst_affine,
1926         compute_overlap_steps_for_affine_1_2,
1927         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
1928         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
1929         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
1930         (PRED_LOOP_ITERATIONS_GUESSED): New.
1931         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
1932         * cfgloop.h (estimate_numbers_of_iterations_loop,
1933         estimated_loop_iterations_int): Declare.
1934
1935 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
1936
1937         * doc/extend.texi: Document optional priority argument to
1938         constructors and destructors.
1939         * tree.c (init_priority_for_decl): Adjust GTY markers.
1940         (init_ttree): Use priority-info hash functions for
1941         init_priority_for_decl.
1942         (tree_map_eq): Rename to ...
1943         (tree_map_base_eq): ... this.
1944         (tree_map_marked_p): Rename to ...
1945         (tree_map_base_marked_p): ... this.
1946         (tree_map_base_hash): New function.
1947         (decl_init_priority_lookup): Rework.
1948         (decl_fini_priority_lookup): New function.
1949         (decl_priority_info): New function.
1950         (decl_init_priority_insert): Use it.
1951         (decl_fini_priority_insert): Likewise.
1952         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
1953         hierarchy.
1954         (decl_restrict_base_insert): Likewise.
1955         (decl_debug_expr_insert): Likewise.
1956         (decl_value_expr_lookup): Likewise.
1957         (decl_value_expr_insert): Likewise.
1958         * tree.h (priority_type): New type.
1959         (decl_init_priority_lookup): Use priority_type.
1960         (decl_fini_priority_lookup): New function.
1961         (decl_init_priority_insert): Use priority_type.
1962         (decl_fini_priority_insert): New function.
1963         (DECL_HAS_INIT_PRIORITY): Tweak comments.
1964         (DECL_INIT_PRIORITY): Likewise.
1965         (SET_DECL_INIT_PRIORITY): Add comment.
1966         (DECL_FINI_PRIORITY): New macro.
1967         (SET_DECL_FINI_PRIORITY): Likewise.
1968         (DEFAULT_INIT_PRIORITY): Document.
1969         (MAX_INIT_PRIORITY): Likewise.
1970         (MAX_RESERVED_INIT_PRIORITY): Likewise.
1971         (tree_map_base): New type.
1972         (tree_map_base_eq): New function.
1973         (tree_map_base_hash): Likewise.
1974         (tree_map_base_marked_p): Likewise.
1975         (tree_map): Inherit from tree_map_base.
1976         (tree_map_eq): Make it a macro.
1977         (tree_map_marked_p): Likewise.
1978         (tree_int_map): Inherit from tree_map_base.
1979         (tree_int_map_eq): Make it a macro.
1980         (tree_int_map_hash): Likewise.
1981         (tree_int_map_marked_p): Likewise.
1982         (tree_priority_map): New type.
1983         (tree_priority_map_eq): New macro.
1984         (tree_priority_map_hash): Likewise.
1985         (tree_priority_map_marked_p): Likewise.
1986         * varasm.c (emults_decl): Adjust for refactoring of tree_map
1987         hierarchy.
1988         (emutls_common_1): Likewise.
1989         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1990         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
1991         of tree_map hierarchy.
1992         * tree-cfg.c (move_stmt_r): Likewise.
1993         (new_label_mapper): Likewise.
1994         * c-tree.h (c_expand_body): Move to ...
1995         * c-common.h (c_expand_body): ... here.
1996         * c-decl.c (c_expand_body): Move to ...
1997         * c-common.c (c_expand_body): ... here.
1998         (c_common_attribute_table): Allow 1 argument for the constructor
1999         and destructor attributes.
2000         (get_priority): New function.
2001         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
2002         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
2003
2004 2007-02-24  Jan Hubicka  <jh@suse.cz>
2005
2006         PR middle-end/30509
2007         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
2008
2009 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2010             Jan Hubicka  <jh@suse.cz>
2011
2012         PR target/30778
2013         * i386.c (counter_mode): New function.
2014         (expand_set_or_movmem_via_loop): Use it.
2015         (expand_movmem_epilogue): Likewise; fix pasto.
2016         (ix86_expand_movmem): Do emit guard even for constant counts.
2017         (ix86_expand_setmem): Likewise.
2018
2019 2007-02-25  Nick Clifton  <nickc@redhat.com>
2020
2021         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
2022         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2023
2024 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2025
2026         PR target/30770
2027         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
2028         count argument with 0x10, not with 0x16.
2029         (expand_setmem_epilogue): Ditto.
2030
2031 2007-02-24  Mike Stump  <mrs@apple.com>
2032
2033         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
2034         symbols.
2035
2036 2007-02-24  Richard Guenther  <rguenther@suse.de>
2037
2038         PR middle-end/30951
2039         * fold-const.c (fold_binary): Fold x +- CST op x for
2040         EQ_EXPR and NE_EXPR.
2041
2042 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2043
2044         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
2045
2046 2007-02-24  Jan Hubicka  <jh@suse.cz>
2047
2048         * cgraphunit.c (decide_is_function_needed): Honor
2049         -fkeep-inline-functions.
2050
2051 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2052
2053         * builtins.c (fold_builtin_modf): New.
2054         (fold_builtin_2): Use it.
2055
2056 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2057
2058         * loop-iv.c (implies_p): Detect additional cases where A implies B.
2059         (determine_max_iter): Take additional LOOP arg; all callers changed.
2060         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
2061         one using simplifications.
2062         (simplify_using_initial_values): Return if the expression becomes
2063         invalid due to altered regs.
2064
2065 2007-02-23  DJ Delorie  <dj@redhat.com>
2066
2067         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
2068
2069 2007-02-23  Mike Stump  <mrs@apple.com>
2070
2071         * tlink.c (scan_linker_output): Parse linker messages from
2072         darwin9's linker better.
2073
2074 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
2075
2076         PR debug/29614
2077         * varpool.c (varpool_assemble_pending_decls):  Set
2078         varpool_last_needed_node to null.
2079
2080 2007-02-23  DJ Delorie  <dj@redhat.com>
2081
2082         * config/i386/i386.c (ix86_data_alignment): Don't specify an
2083         alignment bigger than the object file can handle.
2084
2085 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
2086
2087         PR target/30825
2088         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
2089         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
2090         (*movsf_1): Penalize MMX moves.
2091
2092 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
2093
2094         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
2095         2^32-1 or more times unless flag_unsafe_loop_optimizations.
2096
2097         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
2098
2099 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2100
2101         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
2102         (fold_builtin_1): Use them.
2103         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2104         BUILT_IN_SIGNIFICAND.
2105
2106 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
2107
2108         * config/i386/i386.c (bdesc_1arg): Initialize
2109         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
2110         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
2111         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
2112         and IX86_BUILTIN_MOVSLDUP.
2113
2114 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
2115
2116         PR rtl-optimization/30841
2117         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
2118
2119 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2120
2121         * builtins.c (fold_builtin_frexp): New.
2122         (fold_builtin_2): Use it.
2123
2124 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
2125
2126         * doc/invoke.texi (Spec Files): Document getenv spec function.
2127
2128         * gcc.c (getenv_spec_function): New function.
2129         (static_spec_functions): Add it.
2130         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
2131         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
2132         header files.
2133
2134 2007-02-22  Michael Matz  <matz@suse.de
2135
2136         PR c++/29433
2137         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
2138         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
2139
2140 2007-02-22  Ian Lance Taylor  <iant@google.com>
2141
2142         PR debug/30898
2143         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
2144         (mem_loc_descriptor): Call it.
2145
2146 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
2147             Ira Rosen  <irar@il.ibm.com>
2148
2149         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
2150
2151 2007-02-22  Ira Rosen  <irar@il.ibm.com>
2152
2153         PR tree-optimization/30843
2154         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
2155         stores only after all the group is vectorized.
2156
2157 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
2158
2159         PR tree-optimization/30858
2160         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
2161         in the reduction cycle have a single use in the loop.
2162         * tree-vectorizer.h (relevant): Add documentation.
2163
2164 2007-02-20  Mike Stump  <mrs@apple.com>
2165
2166         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
2167         * configure: Regenerate.
2168
2169 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2170
2171         Change the defaults of some parameters and options.
2172         * config/spu/spu-protos.h (spu_optimization_options): Declare.
2173         * config/spu/spu.c (spu_optimization_options): Add.
2174         (spu_override_options): Change params in spu_optimization_options.
2175         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
2176
2177         Register 127 is only 16 byte aligned when used as a frame pointer.
2178         * config/spu/spu-protos.h (spu_init_expanders): Declare.
2179         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
2180         HARD_FRAME_POINTER_REGNUM.
2181         (spu_legitimate_address):  Use regno_aligned_for_reload.
2182         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
2183         aligned when frame_pointer_needed is true.
2184         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
2185         to 8 bits.
2186         * config/spu/spu.h (INIT_EXPANDERS): Define.
2187
2188         Make sure shift and rotate instructions have valid immediate operands.
2189         * config/spu/predicates.md (spu_shift_operand): Remove.
2190         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
2191         * config/spu/constraints.md (W, O): Extend range.
2192         * config/spu/spu.md (umask, nmask): Define.
2193         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
2194         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
2195         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
2196         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
2197         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
2198         (lshr<mode>3_reg):  Fix rtl description.
2199
2200         Make sure mulhisi immediate operands are valid.
2201         * config/spu/predicates.md (imm_K_operand): Add.
2202         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
2203
2204         Generate constants using fsmbi and andi.
2205         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
2206         (print_operand, spu_split_immediate, classify_immediate,
2207         fsmbi_const_p): Handle IC_FSMBI2.
2208
2209         Correctly handle a CONST_VECTOR containing symbols.
2210         * config/spu/spu.c (print_operand): Handle HIGH correctly.
2211         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
2212         (immediate_load_p): Allow symbols that use 2 instructions to create.
2213         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
2214         with symbols when flag_pic is set.
2215         (const_vector_immediate_p): New.
2216         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
2217         accept a CONST_VECTOR with symbols.
2218         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
2219         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
2220         correctly.
2221         * config/spu/spu.md (high, low): Delete.
2222         (low_<mode>): Define.
2223
2224         Remove INTRmode and INTR_REGNUM, which didn't work.
2225         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
2226         of INTR_REGNUM.
2227         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
2228         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
2229         peephole2 pattern): Don't use INTR or 131.
2230         (movintrcc): Delete.
2231         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
2232         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
2233         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
2234         (UNSPEC_SET_INTR): Add.
2235         * config/spu/spu-modes.def (INTR): Remove.
2236
2237         More accurate warnings about run-time relocations.
2238         * config/spu/spu.c (reloc_diagnostic): Test in_section.
2239
2240         Correctly warn about immediate arguments to specific intrinsics.
2241         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
2242         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
2243         the instruction predicate.
2244
2245         Fix tree check errors with latest update.
2246         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
2247         CALL_EXPR_ARG.
2248         (spu_expand_builtin): Use CALL_EXPR_FN.
2249
2250         Add missing specific intrinsics.
2251         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
2252         si_bislede.
2253         * config/spu/spu_internals.h: Ditto.
2254
2255         Fix incorrect operand modifiers.
2256         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
2257         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
2258
2259         Optimize one case of zero_extend of a vec_select.
2260         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
2261
2262         Accept any immediate for hbr.
2263         * config/spu/spu.md (hbr):  Change s constraints to i.
2264
2265 2007-02-21  Paul Brook  <paul@codesourcery.com>
2266
2267         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
2268         condexec_count when skipping USE and CLOBBER.
2269
2270 2007-02-21  Nick Clifton  <nickc@redhat.com>
2271
2272         * common.opt (Warray-bounds): Add Warning attribute.
2273         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
2274         Likewise.
2275         (fsized-zeroes): Add Optimization attribute.
2276         (fsplit-wide-types, ftree-scev-cprop): Likewise.
2277         * c.opt (Wc++0x-compat): Add Warning attribute.
2278
2279 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
2280
2281         PR middle-end/30761
2282         * reload1.c (eliminate_regs_in_insn): In the single_set special
2283         case, attempt to re-recognize the insn before falling back to
2284         having reload fix it up.
2285
2286 2007-02-20  Eric Christopher  <echristo@gmail.com>
2287
2288         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
2289         Rewrite accordingly.
2290         (frv_read_iacc_argument): Ditto.
2291         (frv_expand_set_builtin): Take a call instead of arglist, update for
2292         above changes.
2293         (frv_expand_unop_builtin): Ditto.
2294         (frv_expand_binop_builtin): Ditto.
2295         (frv_expand_cut_builtin): Ditto.
2296         (frv_expand_binopimm_builtin): Ditto.
2297         (frv_expand_voidbinop_builtin): Ditto.
2298         (frv_expand_int_void2arg): Ditto.
2299         (frv_expand_prefetches): Ditto.
2300         (frv_expand_voidtriop_builtin): Ditto.
2301         (frv_expand_voidaccop_builtin): Ditto.
2302         (frv_expand_load_builtin): Ditto.
2303         (frv_expand_store_builtin): Ditto.
2304         (frv_expand_mdpackh_builtin): Ditto.
2305         (frv_expand_mclracc_builtin): Ditto.
2306         (frv_expand_mrdacc_builtin): Ditto.
2307         (frv_expand_mwtacc_builtin): Ditto.
2308         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
2309         calls for above.
2310
2311 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
2312
2313         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
2314         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
2315         cmpb instruction.
2316         (HAVE_GAS_DFP): Check for assembler support of decimal floating
2317         point instructions.
2318         * configure: Regenerate.
2319         * config.in: Regenerate.
2320         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
2321         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
2322         masks to power6 and power6x and to POWERPC_MASKS.
2323         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2324         _ARCH_PWR6.
2325         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
2326         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
2327         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2328         Access PROTOTYPE as variable, not mask.
2329
2330 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
2331
2332         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
2333         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
2334         * combine.c (adjust_for_new_dest): Use it.
2335         * postreload.c (reload_combine): Likewise.
2336
2337 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
2338
2339         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
2340         notes on an insn with multiple sets, even if single_set returns
2341         non-NULL for that insn.
2342
2343 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2344
2345         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
2346         scalbn and scalbln.
2347
2348 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
2349
2350         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
2351         if user didn't pass it.
2352         * config/i386/darwin.h (CC1_SPEC): Likewise.
2353         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
2354         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
2355         -mmacosx-version-min.
2356
2357 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2358             Uros Bizjak  <ubizjak@gmail.com>
2359
2360         * optabs.h (enum optab_index): Add new OTI_scalb.
2361         (scalb_optab): Define corresponding macro.
2362         * optabs.c (init_optabs): Initialize scalb_optab.
2363         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
2364         patterns.
2365         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
2366         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
2367         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
2368         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
2369         flag_unsafe_math_optimizations is set.
2370
2371         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
2372         to implement scalbf, scalb and scalbl built-ins as inline x87
2373         intrinsics.
2374
2375 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2376             DJ Delorie <dj@redhat.com>
2377
2378         PR other/30824
2379         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
2380         (diagnostic_report_diagnostic): ... here, and turn them into real
2381         errors. If warnings are inhibited, no need to do anything.
2382
2383 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
2384
2385         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
2386         better code generation.
2387
2388 2007-02-20  Ben Elliston  <bje@au.ibm.com>
2389
2390         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
2391
2392 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
2393
2394         * config/alpha/alpha.c, config/alpha/alpha.md,
2395         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
2396         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
2397         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
2398         config/arm/lib1funcs.asm: Follow spelling conventions.
2399
2400         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
2401         config/fr30/fr30.md, config/i386/i386.h,
2402         config/iq2000/iq2000.h, config/iq2000/predicates.md,
2403         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
2404         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2405         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
2406         config/rs6000/altivec.md, config/rs6000/rs6000.c,
2407         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
2408         config/sparc/sparc.c, config/sparc/sparc.h,
2409         config/sparc/sparc.md, config/spu/constraints.md,
2410         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
2411         conventions.
2412
2413 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
2414
2415         PR target/29943
2416         * varasm.c (use_blocks_for_decl_p): Return false for decls with
2417         alias attribute.
2418
2419 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2420
2421         * doc/invoke.texi (-ftree-lrs): Remove.
2422
2423 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
2424
2425         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
2426         NULL.
2427
2428 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
2429
2430         * config/ia64/ia64.c (ia64_expand_builtin): Use the
2431         new CALL_EXPR_FN macro for retrieving the function
2432         declaration of the input expression.
2433
2434 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2435
2436         * c.opt (Waddress): New.
2437         * common.opt (Walways-true): Delete.
2438         (Wstring-literal-comparison): Delete.
2439         * doc/invoke.texi (Warning Options): Delete -Walways-true and
2440         -Wstring-literal-comparison. Add -Waddress.
2441         (Waddress): New.
2442         (Walways-true): Delete.
2443         (Wstring-literal-comparison): Delete.
2444         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
2445         consistently instead of -Walways-true in example.
2446         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
2447         * c-typeck.c (parser_build_binary_op): Replace
2448         -Wstring-literal-comparison and -Walways-true with -Waddress.
2449         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
2450         with -Waddress.
2451
2452 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2453
2454         * tree-cfg.c (dump_function_to_file): Be prepared for functions
2455         without DECL_STRUCT_FUNCTION initialized.
2456
2457 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
2458
2459         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
2460         due to calls to functions taking pointers as parameters.
2461
2462 2007-02-19  Richard Henderson  <rth@redhat.com>
2463
2464         PR debug/29558
2465         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
2466         in memory.
2467
2468 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2469
2470         * config/s390/s390.c (s390_call_saved_register_used,
2471         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
2472         accessed to the new scheme.
2473
2474 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2475
2476         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
2477         (cris_print_index, cris_print_operand, cris_print_operand_address)
2478         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
2479         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
2480         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
2481         GET_CODE () == xxx.
2482         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
2483         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
2484         GO_IF_LEGITIMATE_ADDRESS): Ditto.
2485         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
2486         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
2487         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
2488         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
2489         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
2490         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
2491         (uminsi3, call, call_value): Ditto.
2492         (define_split: indir_to_reg_split, unnamed): Ditto.
2493
2494 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
2495
2496         PR tree-optimization/30975
2497         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
2498         wrong assert.
2499
2500 2007-02-18  Eric Christopher  <echristo@gmail.com>
2501
2502         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
2503         Remove use of arglist.
2504         (mips_expand_builtin): Remove use of arglist, pass in expr.
2505         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
2506         (mips_expand_builtin_movtf): Ditto.
2507         (mips_expand_builtin_compare): Ditto.
2508
2509 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2510
2511         * tree-sra.c (sra_build_assignment): Replace assertion
2512         checking with a comment explaining why it can't be done.
2513
2514 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2515
2516         PR middle-end/30833
2517         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
2518         during CALL_EXPR representation conversion.
2519         * tree-ssa-propagate.c (set_rhs): Likewise.
2520
2521 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
2522
2523         * tree-sra.c (sra_build_assignment): Disable assertion checking
2524         for now.
2525
2526 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2527
2528         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
2529         instead of calling build2 with a GIMPLE_MODIFY_STMT.
2530         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
2531         Likewise.
2532         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
2533         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
2534         gimplify_init_ctor_eval_range, gimple_push_cleanup,
2535         gimplify_omp_for, gimplify_omp_atomic_pipeline,
2536         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
2537         force_gimple_operand): Likewise.
2538         * ipa-cp.c (constant_val_insert): Likewise.
2539         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
2540         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
2541         perfect_nestify): Likewise.
2542         * langhooks.c (lhd_omp_assignment): Likewise.
2543         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
2544         lower_copyprivate_clauses, lower_send_clauses,
2545         lower_send_shared_vars, expand_parallel_call,
2546         expand_omp_for_generic, expand_omp_for_static_nochunk,
2547         expand_omp_for_static_chunk, expand_omp_sections,
2548         lower_omp_single_copy, lower_omp_for_lastprivate,
2549         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
2550         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2551         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
2552         Likewise.
2553
2554 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
2555
2556         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
2557         config/sh/sh.md: Follow spelling conventions.
2558
2559         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
2560         config/frv/predicates.md: Follow spelling conventions.
2561
2562         * config/m68k/linux-unwind.h: Fix a comment typo.
2563         * target.h: Follow spelling conventions.
2564
2565 2007-02-18  Roger Sayle  <roger@eyesopen.com>
2566
2567         PR rtl-optimization/28173
2568         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
2569         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
2570         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
2571         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
2572         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
2573
2574 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2575
2576         * builtins.c (fold_builtin_load_exponent): New.
2577         (fold_builtin_2): Use it.
2578
2579 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
2580
2581         PR rtl-optimization/30773
2582         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
2583         if we fail to attach a REG_EQUIV note.
2584
2585 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
2586             Roger Sayle  <roger@eyesopen.com>
2587
2588         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
2589
2590 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
2591
2592         * calls.c (initialize_argument_information): Pass original EXP
2593         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
2594         code to split complex arguments here, as part of initializing the
2595         ARGS array.
2596         (expand_call): Remove code that builds a list of arguments and
2597         inserts implicit arguments into it.  Instead, just count how many
2598         implicit arguments there will be so we can determine the size of
2599         the ARGS array, and let initialize_argument_information do the work.
2600         (split_complex_values): Delete unused function.
2601
2602 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2603
2604         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
2605
2606 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
2607
2608         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
2609         for arg pointer based indexed addressing.
2610
2611 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2612
2613         * config/ia64/ia64.h, config/ia64/ia64.md,
2614         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
2615         spelling conventions.
2616
2617 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2618
2619         * config/m68k/m68k.c (split_di): New.
2620         * config/m68k/m68k-protos.h: Declare split_di.
2621         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
2622           Improve predicate handling and split constant shifts.
2623
2624 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2625
2626         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
2627         parameter for register bitfield operations, general predicates
2628         cleanup
2629
2630 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
2631
2632         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
2633         * config/m68k/linux-unwind.h: New file.
2634
2635 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
2636
2637         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
2638         config/i386/athlon.md, config/ia64/ia64.md,
2639         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
2640         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
2641         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
2642         tree-ssa-loop-niter.c, tree-vect-analyze.c,
2643         tree-vect-transform.c: Fix comment typos.
2644
2645 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
2646
2647         * sched-deps.c (find_insn_list): Remove.
2648         * sched-int.h: Remove the prototype for find_insn_list.
2649
2650 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
2651
2652         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
2653         to linker.
2654         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
2655         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
2656         darwin_rs6000_override_options.
2657         (C_COMMON_OVERRIDE_OPTIONS): Expect
2658         darwin_macosx_version_min to be non-NULL always.
2659         (TARGET_C99_FUNCTIONS): Likewise.
2660         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
2661         (DARWIN_MINVERSION_SPEC): New.
2662         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
2663         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
2664         to cc1*.
2665         (DARWIN_MINVERSION_SPEC): New.
2666         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
2667         value.
2668         * config/darwin-c.c (darwin_cpp_builtins): Expect
2669         darwin_macosx_version_min to be non-NULL always.
2670
2671         * config/rs6000/rs6000.c: Clean up trailing whitespace.
2672
2673 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
2674
2675         * config/i386/i386.h (x86_use_xchgb): New.
2676         (TARGET_USE_XCHGB): New macro.
2677         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
2678         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
2679         Split after reload into bswaphi for shifts of 8.
2680         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
2681         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
2682         or when optimizing for size.
2683
2684 2007-02-16  Richard Guenther  <rguenther@suse.de>
2685             Christian Bruel  <christian.bruel@st.com>
2686
2687         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
2688         DECLs but prefer SSA_NAMEs over DECLs.
2689
2690 2007-02-16  Richard Guenther  <rguenther@suse.de>
2691
2692         * tree-flow-inline.h (single_imm_use_p): Remove.
2693         (zero_imm_uses_p): Likewise.
2694         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
2695         instead of single_imm_use_p.
2696         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
2697         zero_imm_uses_p.
2698
2699 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2700
2701         PR other/27843
2702         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
2703         nested double- and backquotes.
2704
2705 2007-02-15  Roger Sayle  <roger@eyesopen.com>
2706
2707         PR middle-end/30391
2708         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
2709         should be unreachable.
2710         (build2_stat): Allow construction of MODIFY_EXPR at any time.
2711         For the time being redirect GIMPLE_MODIFY_STMT to the new
2712         (renamed) build_gimple_modify_stmt_stat.
2713         (build2_gimple_stat): Rename to...
2714         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
2715         Always build a GIMPLE_MODIFY_STMT node.
2716         * tree.h (build2_gimple, build2_gimple_stat): Delete.
2717         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
2718         declarations.
2719
2720         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
2721         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
2722         * tree-complex.c (set_component_ssa_name, expand_complex_move,
2723         expand_complex_div_wide): Likewise.
2724         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
2725         * tree-ssa-loop-im.c (schedule_sm): Likewise.
2726         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
2727         * tree-ssa-loop-manip.c (create_iv): Likewise.
2728         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2729         abs_replacement): Likewise.
2730         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
2731         realify_fake_stores): Likewise.
2732
2733         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
2734         node rather than a GIMPLE_MODIFY_STMT node.
2735         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
2736         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
2737         Likewise.
2738         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
2739         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
2740         GIMPLE_MODIFY_STMT.
2741
2742 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2743
2744         PR middle-end/30433
2745         * fold-const.c (fold_comparison): Add back the
2746         folding of constant complex comparisions.
2747
2748 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2749
2750         PR middle-end/30729
2751         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
2752         effects unknown to this function, return early.
2753
2754 2007-02-15  Ian Lance Taylor  <iant@google.com>
2755
2756         * lower-subreg.c (move_eh_region_note): New static function.
2757         (resolve_simple_move): Call it.
2758         (decompose_multiword_subregs): Track blocks for which we resolve a
2759         simple move which is also a control flow insn.  Pass them to
2760         find_many_sub_basic_blocks.
2761         (pass_lower_subreg): Add TODO_verify_flow.
2762         (pass_lower_subreg2): Likewise.
2763
2764 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2765             Brooks Moses  <brooks.moses@codesourcery.com>
2766             Lee Millward  <lee.millward@codesourcery.com>
2767
2768         * tree.h (enum tree_code_class): Add tcc_vl_exp.
2769         (VL_EXP_CLASS_P): New.
2770         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
2771         TREE_CODE_LENGTH.
2772         (TREE_OPERAND_CHECK_CODE): Likewise.
2773         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
2774         (TREE_RTL_OPERAND_CHECK): Likewise.
2775         (tree_operand_check_failed): Make second parameter the whole tree
2776         instead of its code.  Fixed callers.
2777         (VL_EXP_CHECK): New.
2778         (TREE_OPERAND_LENGTH): New.
2779         (VL_EXP_OPERAND_LENGTH): New.
2780         (CALL_EXPR_FN): New.
2781         (CALL_EXPR_STATIC_CHAIN): New.
2782         (CALL_EXPR_ARGS): New.
2783         (CALL_EXPR_ARG): New.
2784         (call_expr_nargs): New.
2785         (CALL_EXPR_ARGP): New.
2786         (build_nt_call_list): Declare.
2787         (build_vl_exp_stat): Declare.
2788         (build_vl_exp): New.
2789         (build_call_list): Declare.
2790         (build_call_nary): Declare.
2791         (build_call_valist): Declare.
2792         (build_call_array): Declare.
2793         (call_expr_arg): Declare.
2794         (call_expr_argp): Declare.
2795         (call_expr_arglist): Declare.
2796         (fold_build_call_list): Declare.
2797         (fold_build_call_list_initializer): Declare.
2798         (fold_call_expr): Declare to replace fold_builtin.
2799         (fold_builtin_fputs): Update to agree with modified definition.
2800         (fold_builtin_strcpy): Likewise.
2801         (fold_builtin_strncpy): Likewise.
2802         (fold_builtin_memory_chk): Likewise.
2803         (fold_builtin_stxcpy_chk): Likewise.
2804         (fold_builtin_strncpy_chk): Likewise.
2805         (fold_builtin_next_arg): Likewise.
2806         (fold_build_call_expr): Declare.
2807         (fold_builtin_call_list): Declare.
2808         (fold_builtin_call_valist): Declare.
2809         (build_call_expr): Declare.
2810         (validate_arglist): Update to agree with modified definition.
2811         (tree_operand_length): New.
2812         (call_expr_arg_iterator): New.
2813         (init_call_expr_arg_iterator): New.
2814         (next_call_expr_arg): New.
2815         (first_call_expr_arg): New.
2816         (more_call_expr_args_p): New.
2817         (FOR_EACH_CALL_EXPR_ARG): New.
2818
2819         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
2820         and tcc_gimple_stmt.
2821         (tree_code_size): Update documentation.  Use sizeof (tree) rather
2822         than sizeof (char *).
2823         (tree_size): Likewise.  Add case for tcc_vl_exp.
2824         (tree_node_structure): Add case for tcc_vl_exp.
2825         (contains_placeholder_p): Likewise.
2826         (substitute_in_expr): Likewise.
2827         (substitute_placeholder_in_expr): Likewise.
2828         (stabilize_reference_1): Likewise.
2829         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
2830         to diagnose breakage of this interface for constructing CALL_EXPRs.
2831         (build_nt): Add similar assertion here.
2832         (build_nt_call_list): New.
2833         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
2834         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
2835         TREE_CODE_LENGTH.
2836         (get_callee_fndecl): Use new CALL_EXPR accessors.
2837         (tree_operand_check_failed): Change parameters to pass entire node
2838         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
2839         (process_call_operands): New.
2840         (build_vl_exp_stat): New.
2841         (build_call_list): New.
2842         (build_call_nary): New.
2843         (build_call_valist): New.
2844         (build_call_array): New.
2845         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
2846         (call_expr_arglist): New.
2847
2848         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
2849         tcc_vl_exp instead of a fixed-size tcc_expression.
2850
2851         * doc/c-tree.texi (CALL_EXPR): Document new representation and
2852         accessors for CALL_EXPRs.
2853         (AGGR_INIT_EXPR): Likewise.
2854
2855 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
2856             Brooks Moses  <brooks.moses@codesourcery.com>
2857             Lee Millward  <lee.millward@codesourcery.com>
2858
2859         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
2860         (expand_builtin_nonlocal_goto): Change parameter to be entire
2861         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
2862         (expand_builtin_prefetch): Likewise.
2863         (expand_builtin_classify_type): Likewise.
2864         (mathfn_built_in): Return NULL_TREE instead of 0.
2865         (expand_errno_check): Use new CALL_EXPR accessors.
2866         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
2867         Return NULL_RTX instead of 0.
2868         (expand_builtin_mathfn_2): Likewise.
2869         (expand_builtin_mathfn_3): Likewise.
2870         (expand_builtin_interclass_mathfn): Likewise.
2871         (expand_builtin_sincos): Likewise.
2872         (expand_builtin_cexpi): Likewise.
2873         (expand_builtin_int_roundingfn): Likewise.
2874         (expand_builtin_int_roundingfn_2): Likewise.
2875         (expand_builtin_pow): Likewise.
2876         (expand_builtin_powi): Likewise.
2877         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
2878         of arglist, fixing callers appropriately.  Use new CALL_EXPR
2879         accessors and constructors.  Return NULL_RTX instead of 0.
2880         (expand_builtin_strstr): Likewise.
2881         (expand_builtin_strchr): Likewise.
2882         (expand_builtin_strrchr): Likewise.
2883         (expand_builtin_strpbrk): Likewise.
2884         (expand_builtin_memcpy): Likewise.
2885         (expand_builtin_mempcpy): Likewise.
2886         (expand_builtin_mempcpy_args): New.
2887         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
2888         (expand_builtin_memmove_args): New.
2889         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
2890         (expand_movstr): Likewise.
2891         (expand_builtin_strcpy): Likewise.
2892         (expand_builtin_strcpy_args): New.
2893         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
2894         (expand_builtin_strncpy): Likewise.
2895         (expand_builtin_memset): Likewise.
2896         (expand_builtin_memset_args): New.
2897         (expand_builtin_bzero): Similarly to expand_builtin_memset.
2898         (expand_builtin_memcmp): Likewise.
2899         (expand_builtin_strcmp): Likewise.
2900         (expand_builtin_strncmp): Likewise.
2901         (expand_builtin_strcat): Likewise.
2902         (expand_builtin_strncat): Likewise.
2903         (expand_builtin_strspn): Likewise.
2904         (expand_builtin_strcspn): Likewise.
2905         (expand_builtin_args_info): Likewise.
2906         (expand_builtin_va_start): Likewise.
2907         (gimplify_va_arg_expr): Likewise.
2908         (expand_builtin_va_end): Likewise.
2909         (expand_builtin_va_copy): Likewise.
2910         (expand_builtin_frame_address): Likewise.
2911         (expand_builtin_alloca): Likewise.
2912         (expand_builtin_bswap): Likewise.
2913         (expand_builtin_unop): Likewise.
2914         (expand_builtin_fputs): Likewise.
2915         (expand_builtin_expect): Likewise.
2916         (expand_builtin_fabs): Likewise.
2917         (expand_builtin_copysign): Likewise.
2918         (expand_builtin_printf): Likewise.
2919         (expand_builtin_fprintf): Likewise.
2920         (expand_builtin_sprintf): Likewise.
2921         (expand_builtin_init_trampoline): Likewise.
2922         (expand_builtin_signbit): Likewise.
2923         (expand_builtin_fork_or_exec): Likewise.
2924         (expand_builtin_sync_operation): Likewise.
2925         (expand_builtin_compare_and_swap): Likewise.
2926         (expand_builtin_lock_test_and_set): Likewise.
2927         (expand_builtin_lock_release): Likewise.
2928         (expand_builtin): Likewise.
2929         (builtin_mathfn_code): Likewise.
2930
2931         (fold_builtin_constant_p): Pass call arguments individually instead
2932         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
2933         accessors and constructors.  Return NULL_TREE instead of 0.
2934         (fold_builtin_expect): Likewise.
2935         (fold_builtin_classify_type): Likewise.
2936         (fold_builtin_strlen): Likewise.
2937         (fold_builtin_nan): Likewise.
2938         (integer_valued_real_p): Likewise.
2939         (fold_trunc_transparent_mathfn): Likewise.
2940         (fold_fixed_mathfn): Likewise.
2941         (fold_builtin_cabs): Likewise.
2942         (fold_builtin_sqrt): Likewise.
2943         (fold_builtin_cbrt): Likewise.
2944         (fold_builtin_cos): Likewise.
2945         (fold_builtin_cosh): Likewise.
2946         (fold_builtin_tan): Likewise.
2947         (fold_builtin_sincos): Likewise.
2948         (fold_builtin_cexp): Likewise.
2949         (fold_builtin_trunc): Likewise.
2950         (fold_builtin_floor): Likewise.
2951         (fold_builtin_ceil): Likewise.
2952         (fold_builtin_round): Likewise.
2953         (fold_builtin_int_roundingfn): Likewise.
2954         (fold_builtin_bitop): Likewise.
2955         (fold_builtin_bswap): Likewise.
2956         (fold_builtin_logarithm): Likewise.
2957         (fold_builtin_hypot): Likewise.
2958         (fold_builtin_pow): Likewise.
2959         (fold_builtin_powi): Likewise.
2960         (fold_builtin_exponent): Likewise.
2961         (fold_builtin_memset): Likewise.
2962         (fold_builtin_bzero): Likewise.
2963         (fold_builtin_memory_op): Likewise.
2964         (fold_builtin_bcopy): Deleted; call site changed to invoke
2965         fold_builtin_memory_op directly.
2966         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
2967         (fold_builtin_strncpy): Likewise.
2968         (fold_builtin_memcmp): Likewise.
2969         (fold_builtin_strcmp): Likewise.
2970         (fold_builtin_strncmp): Likewise.
2971         (fold_builtin_signbit): Likewise.
2972         (fold_builtin_copysign): Likewise.
2973         (fold_builtin_isascii): Likewise.
2974         (fold_builtin_toascii): Likewise.
2975         (fold_builtin_isdigit): Likewise.
2976         (fold_builtin_fabs): Likewise.
2977         (fold_builtin_abs): Likewise.
2978         (fold_builtin_fmin_fmax): Likewise.
2979         (fold_builtin_carg): Likewise.
2980         (fold_builtin_classify): Likewise.
2981         (fold_builtin_unordered_cmp): Likewise.
2982
2983         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
2984         New functions split out from fold_builtin_1.
2985         (fold_builtin_n): New.
2986         (fold_builtin_varargs): New.
2987         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
2988         instead.
2989         (fold_call_expr): New.
2990         (build_function_call_expr): Rewrite to use new helper function.
2991         (fold_builtin_call_list): New.
2992         (build_call_expr): New.
2993         (fold_builtin_call_valist): New.
2994         (rewrite_call_expr): New.
2995         (validate_arg): New.
2996         (validate_arglist): Change parameter to be entire CALL_EXPR instead
2997         of an arglist.  Change return type to bool.  Use new CALL_EXPR
2998         accessors.
2999
3000         (fold_builtin_strstr):  Pass call arguments individually instead
3001         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
3002         accessors and constructors.  Return NULL_TREE instead of 0.
3003         (fold_builtin_strchr): Likewise.
3004         (fold_builtin_strrchr): Likewise.
3005         (fold_builtin_strpbrk): Likewise.
3006         (fold_builtin_strcat): Likewise.
3007         (fold_builtin_strncat): Likewise.
3008         (fold_builtin_strspn): Likewise.
3009         (fold_builtin_strcspn): Likewise.
3010         (fold_builtin_fputs): Likewise.
3011         (fold_builtin_next_arg): Likewise.
3012         (fold_builtin_sprintf): Likewise.
3013
3014         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
3015         NULL_RTX instead of 0.
3016         (expand_builtin_memory_chk): Likewise.
3017         (maybe_emit_chk_warning): Likewise.
3018         (maybe_emit_sprintf_chk_warning): Likewise.
3019
3020         (fold_builtin_object_size): Pass call arguments individually instead
3021         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
3022         accessors and constructors.  Return NULL_TREE instead of 0.
3023         (fold_builtin_memory_chk): Likewise.
3024         (fold_builtin_stxcpy_chk): Likewise.
3025         (fold_builtin_strncpy_chk): Likewise.
3026         (fold_builtin_strcat_chk): Likewise.
3027         (fold_builtin_strcat_chk): Likewise.
3028         (fold_builtin_strncat_chk): Likewise.
3029         (fold_builtin_sprintf_chk): Likewise.
3030         (fold_builtin_snprintf_chk): Likewise.
3031         (fold_builtin_printf): Likewise.
3032         (fold_builtin_vprintf): Likewise.
3033
3034         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
3035         constructors.
3036         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
3037         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3038         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
3039         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
3040         (fold_unary): Likewise.
3041         (fold_binary): Likewise.
3042         (fold_ternary): Remove CALL_EXPR case, since they are no longer
3043         ternary expressions.
3044         (fold): Add logic for tcc_vl_exp.
3045         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
3046         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3047         (fold_build3_stat): Add assertion to flag broken interface for
3048         constructing CALL_EXPRs.
3049         (fold_build_call_list): New.
3050         (fold_build_call_list_initializer): New.
3051         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
3052         constructors.
3053         (fold_strip_sign_ops): Likewise.
3054
3055 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3056             Brooks Moses  <brooks.moses@codesourcery.com>
3057             Lee Millward  <lee.millward@codesourcery.com>
3058
3059         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
3060         accessors and dump arguments explicitly.
3061
3062         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
3063         TREE_CODE_LENGTH.
3064         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
3065         explicitly.
3066         (print_call_name): Use new CALL_EXPR accessors.
3067
3068         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
3069         CALL_EXPR arguments explicitly instead of as a list.  Use
3070         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3071
3072         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
3073         (vrp_visit_stmt): Likewise.
3074
3075         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
3076         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
3077         TREE_CODE_LENGTH.
3078         (force_move_till_expr): Likewise.
3079
3080         * targhooks.c (default_external_stack_protect_fail): Use
3081         build_call_expr instead of build_function_call_expr.
3082         (default_hidden_stack_protect_fail): Likewise.
3083
3084         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
3085         build the call.
3086
3087         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
3088         and walk arguments explicitly.
3089
3090         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
3091         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3092         (expand_simple_operations): Likewise.
3093         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
3094
3095         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
3096         of TREE_CODE_LENGTH.
3097         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
3098
3099         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
3100         instead of TREE_CODE_LENGTH.
3101
3102         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
3103         (tree_ic_transform): Likewise.
3104         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
3105         parameter instead of arglist.  Fix callers.
3106         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
3107         (tree_stringops_transform): Likewise.
3108         (tree_indirect_call_to_profile): Likewise.
3109         (tree_stringops_values_to_profile): Likewise.
3110
3111         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
3112         (eliminate_tail_call): Likewise.
3113
3114         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
3115
3116         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3117         Use TREE_OPERAND_LENGTH and generalize to handle any number of
3118         operands.
3119         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
3120
3121         * omp-low.c (build_omp_barrier): Use build_call_expr.
3122         (lower_rec_input_clauses): Likewise.
3123         (lower_reduction_clauses): Likewise.
3124         (expand_parallel_call): Likewise.
3125         (maybe_catch_exception): Likewise.
3126         (expand_omp_for_generic): Likewise.
3127         (expand_omp_for_static_nochunk): Likewise.
3128         (expand_omp_sections): Likewise.
3129         (lower_omp_single_simple): Likewise.
3130         (lower_omp_single_copy): Likewise.
3131         (lower_omp_master): Likewise.
3132         (lower_omp_ordered): Likewise.
3133         (lower_omp_critical): Likewise.
3134
3135         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
3136         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
3137
3138         * tree-gimple.c (is_gimple_call_addr): Fix doc.
3139         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
3140         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
3141
3142         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
3143         and generalize to handle any number of operands.
3144         (chrec_contains_undetermined): Likewise.
3145         (tree_contains_chrecs): Likewise.
3146         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
3147
3148         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
3149
3150         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
3151         fold_call_expr instead of fold_builtin.
3152         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
3153         match declarations there.
3154         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
3155         updates.
3156
3157         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
3158         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3159
3160         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
3161         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
3162
3163         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
3164         accessors.
3165
3166         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
3167         (execute_cse_sincos): Use new CALL_EXPR accessors.
3168
3169         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
3170
3171         * gimple-low.c (lower_function_body): Use build_call_expr.
3172         (lower_builtin_setjmp): Likewise.
3173
3174         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
3175         (set_storage_via_libcall): Likewise.
3176         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
3177         instead of TREE_CODE_LENGTH.
3178         (expand_expr_real_1): Use new CALL_EXPR accessors.
3179
3180         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
3181         generalize to handle any number of operands.
3182         (TB_parent_eq): Likewise.
3183
3184         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
3185         (strip_builtin_expect): Likewise.
3186
3187         * function.c (gimplify_parameters): Use build_call_expr.
3188
3189         * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
3190         instead of TREE_CODE_LENGTH.
3191
3192         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
3193         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
3194
3195         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
3196         iterators.
3197
3198         * gimplify.c (build_stack_save_restore): Use build_call_expr.
3199         (gimplify_decl_expr): Likewise.
3200         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
3201         Use new CALL_EXPR iterators.
3202         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
3203         (gimplify_modify_expr_to_memset): Likewise.
3204         (gimplify_variable_sized_compare): Likewise.
3205         (gimplify_omp_atomic_fetch_op): Likewise.
3206         (gimplify_omp_atomic_pipeline): Likewise.
3207         (gimplify_omp_atomic_mutex): Likewise.
3208         (gimplify_function_tree): Likewise.
3209
3210         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
3211         (call_expr_flags): Likewise.
3212         (expand_call): Likewise.
3213
3214         * except.c (expand_builtin_eh_return_data_regno): Pass entire
3215         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
3216         accessors.
3217
3218         * coverage.c (create_coverage): Use build_call_expr.
3219
3220         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
3221         (temp_call_expr_obstack): New.
3222         (pool_copy_list): Delete.
3223         (temp_copy_call_expr): New.
3224         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
3225         CALL_EXPR accessors.  Get rid of special goo for copying argument
3226         lists and use temp_copy_call_expr instead.
3227         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
3228         CALL_EXPR accessors.
3229         (create_expression_by_pieces): Likewise.  Use build_call_array
3230         to construct the result instead of fold_build3.
3231         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
3232         dealing with argument lists.
3233         (init_pre): Remove references to expression_node_pool and
3234         list_node_pool.  Init temp_call_expr_obstack instead.
3235         (fini_pre): Remove references to expression_node_pool and
3236         list_node_pool.
3237
3238         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
3239         and walk arguments explicitly instead of as a list.
3240
3241         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
3242         (mx_register_decls): Likewise.
3243         (mudflap_register_call): Likewise.
3244         (mudflap_finish_file): Likewise.
3245
3246         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
3247         (ipa_callsite_compute_param): Likewise.
3248
3249         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
3250         accessors and constructor.
3251
3252         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
3253         accessors and constructor.
3254         (convert_tramp_reference): Likewise.
3255         (convert_call_expr): Likewise.
3256         (finalize_nesting_tree_1): Likewise.
3257
3258         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
3259         accessors.
3260
3261         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
3262
3263         * tree-inline.c (initialize_inlined_parameters): Pass entire
3264         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
3265         accessors.
3266         (estimate_num_insns_1): Use new CALL_EXPR accessors.
3267         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
3268
3269         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
3270         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3271         (vectorizable_reduction): Likewise.
3272         (vectorizable_call): Use new CALL_EXPR iterators.
3273         (vectorizable_conversion): Use build_call_expr.
3274         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
3275         (vect_gen_widened_results_half): Use build_call_expr.
3276         (vect_setup_realignment): Likewise.
3277         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
3278
3279         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
3280         (pass_through_call): Likewise.
3281         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
3282         fold_builtin.
3283
3284         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
3285         (tree_gen_pow2_profiler): Likewise.
3286         (tree_gen_one_value_profiler): Likewise.
3287         (tree_gen_ic_func_profiler): Likewise.
3288         (tree_gen_average_profiler): Likewise.
3289         (tree_gen_ior_profiler): Likewise.
3290
3291         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
3292         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
3293         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
3294
3295         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
3296         of TREE_CODE_LENGTH.
3297
3298         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
3299         of TREE_CODE_LENGTH.
3300
3301         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
3302         constructor.
3303         (convert_to_integer): Likewise.
3304
3305         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
3306         accessors.
3307
3308 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3309             Brooks Moses  <brooks.moses@codesourcery.com>
3310             Lee Millward  <lee.millward@codesourcery.com>
3311
3312         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
3313         accessors.
3314         * config/frv/frv.c (frv_expand_builtin): Likewise.
3315         * config/s390/s390.c (s390_expand_builtin): Likewise.
3316
3317         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
3318         (sparc_expand_builtin): Use new CALL_EXPR accessors.
3319
3320         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
3321         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
3322         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
3323         (ix86_expand_store_builtin): Likewise.
3324         (ix86_expand_unop_builtin): Likewise.
3325         (ix86_expand_unop1_builtin): Likewise.
3326         (ix86_expand_sse_compare): Likewise.
3327         (ix86_expand_sse_comi): Likewise.
3328         (ix86_expand_vec_init_builtin): Likewise.
3329         (ix86_expand_vec_ext_builtin): Likewise.
3330         (ix86_expand_vec_set_builtin): Likewise.
3331         (ix86_expand_builtin): Use new CALL_EXPR accessors.
3332
3333         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
3334         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3335
3336         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
3337         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3338         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
3339
3340         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
3341         build_call_expr.
3342         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3343         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
3344         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3345         (altivec_expand_abs_builtin): Likewise.
3346         (rs6000_expand_binop_builtin): Likewise.
3347         (altivec_expand_predicate_builtin): Likewise.
3348         (altivec_expand_lv_builtin): Likewise.
3349         (spe_expand_stv_builtin): Likewise.
3350         (altivec_expand_stv_builtin): Likewise.
3351         (rs6000_expand_ternop_builtin): Likewise.
3352         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
3353         (altivec_expand_st_builtin): Likewise.
3354         (altivec_expand_dst_builtin): Likewise.
3355         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
3356         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3357         (altivec_expand_vec_set_builtin): Likewise.
3358         (altivec_expand_vec_ext_builtin): Likewise.
3359         (altivec_expand_builtin): Use new CALL_EXPR accessors.
3360         (spe_expand_builtin): Likewise.
3361         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
3362         arglist.  Use new CALL_EXPR accessors.  Fix callers.
3363         (spe_expand_evsel_builtin): Likewise.
3364         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
3365         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
3366
3367         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
3368         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3369         (arm_expand_unop_builtin): Likewise.
3370         (arm_expand_builtin): Use new CALL_EXPR accessors.
3371
3372         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
3373         accessors.
3374
3375         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
3376         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
3377         (bfin_expand_unop_builtin): Likewise.
3378         (bfin_expand_builtin): Use new CALL_EXPR accessors.
3379
3380 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
3381             Brooks Moses  <brooks.moses@codesourcery.com>
3382             Lee Millward  <lee.millward@codesourcery.com>
3383
3384         * c-semantics.c (build_stmt): Add internal diagnostic check.
3385
3386         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
3387         accessors.  Print arguments explicitly instead of as a list.
3388
3389         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
3390
3391         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
3392         (c_finish_omp_flish): Likewise.
3393
3394         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
3395         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
3396         instead of TREE_CODE_LENGTH.
3397         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
3398         (c_warn_unused_result): Likewise.
3399
3400 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3401
3402         PR c/26494
3403         * doc/invoke.texi (Warning Options): Remove
3404         -Werror-implicit-function-declaration.
3405         (Wimplicit-function-declaration): Update description.
3406         * opts.c (common_handle_option): Move handling of -Werror=* to...
3407         (enable_warning_as_error): ...here.
3408         * opts.h (enable_warning_as_error): Declare.
3409         * c-decl.c (implicit_decl_warning): Unless
3410         -Wno-implicit-function-declaration is given, emit a pedwarn if