OSDN Git Service

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