OSDN Git Service

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