OSDN Git Service

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