OSDN Git Service

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