OSDN Git Service

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