OSDN Git Service

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