OSDN Git Service

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