OSDN Git Service

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