OSDN Git Service

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