OSDN Git Service

* config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-09-28  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
4         instead of variants of (!reload_in_progress && !reload_completed).
5         (x86_expand_vector_move): Ditto.
6
7 2007-09-28  Ollie Wild  <aaw@google.com>
8
9         Revert
10         2007-09-27  Ollie Wild  <aaw@google.com>
11
12         * varasm.c (compare_constant): Removed call to
13         lang_hooks.expand_constant.
14         (copy_constants): Removed call to lang_hooks.expand_constant.
15         (compute_reloc_for_constant): Removed call to
16         lang_hooks.expand_constant.
17         (output_addressed_constants): Removed call to
18         lang_hooks.expand_constant.
19         (constructor_static_from_elts_p): Removed call to
20         lang_hooks.expand_constant.
21         (output_constant): Removed calls to lang_hooks.expand_constant.
22         * langhooks.h (struct lang_hooks): Removed field expand_constant.
23         * langhooks-def.h (lhd_return_tree): Removed.
24         (LANG_HOOKS_EXPAND_CONSTANT): Removed.
25         (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
26         * langhooks.c (lhd_return_tree): Removed.
27
28 2007-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29
30         PR target/33347
31         * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
32         argument to gen_selb.
33
34 2007-09-28  Chao-ying Fu  <fu@mips.com>
35
36         * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
37         * doc/libgcc.texi (Fixed-point fractional library routines):
38         Fix typos for neg and cmp functions.
39
40 2007-09-28  Michael Matz  <matz@suse.de>
41
42         PR rtl-optimization/33552
43         * function.c (match_asm_constraints_1): Check for overlap in
44         inputs and replace all occurences.
45
46 2007-09-28  Richard Sandiford  <rsandifo@nildram.co.uk>
47
48         * config/mips/mips.c (override_options): Fix comment typo.
49
50 2007-09-28  Jie Zhang  <jie.zhang@analog.com>
51
52         * config.gcc (bfin*-linux-uclibc*): Set extra_parts
53         to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
54         * config/bfin/t-bfin-linux (crti.o): Don't build.
55         (crtn.o): Likewise.
56         (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
57         * config/bfin/t-bfin-uclinux (crti.o): Don't build.
58         (crtn.o): Likewise.
59         (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
60
61 2007-09-27  Ollie Wild  <aaw@google.com>
62
63         * varasm.c (compare_constant): Removed call to
64         lang_hooks.expand_constant.
65         (copy_constants): Removed call to lang_hooks.expand_constant.
66         (compute_reloc_for_constant): Removed call to
67         lang_hooks.expand_constant.
68         (output_addressed_constants): Removed call to
69         lang_hooks.expand_constant.
70         (constructor_static_from_elts_p): Removed call to
71         lang_hooks.expand_constant.
72         (output_constant): Removed calls to lang_hooks.expand_constant.
73         * langhooks.h (struct lang_hooks): Removed field expand_constant.
74         * langhooks-def.h (lhd_return_tree): Removed.
75         (LANG_HOOKS_EXPAND_CONSTANT): Removed.
76         (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
77         * langhooks.c (lhd_return_tree): Removed.
78
79 2007-09-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
80
81         PR middle-end/33436
82         * expr.c (emit_group_load_1): Split constant double when destination
83         length is half source length.
84
85 2007-09-27  Richard Sandiford  <rsandifo@nildram.co.uk>
86
87         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
88         (mips_cpu_info): Add tune_flags.
89         (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
90         * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
91         Remove end marker.
92         (override_options): Remove deprecation code.  Use branch-likely
93         instructions for optimize_size or if the tuning flags do not
94         suggest otherwise.  Tweak warning.
95         (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
96
97 2007-09-27  Matthias Klose  <doko@ubuntu.com>
98
99         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
100         multilib osdirname if it exists.
101         * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
102
103 2007-09-27  Ian Lance Taylor  <iant@google.com>
104
105         PR tree-optimization/33565
106         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
107         assignments of comparisons.
108         * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
109         parameter.  Change caller.  Defer overflow warnings around call to
110         fold_binary.
111         * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
112         TREE_NO_WARNING is set on the statement.
113         * tree-ssa-forwprop.c
114         (tree_ssa_forward_propagate_single_use_vars): Don't test
115         TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
116         * tree-cfg.c (fold_cond_expr_cond): Likewise.
117
118 2007-09-27  Joseph Myers  <joseph@codesourcery.com>
119
120         * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
121         reduce offset by units of 0x10000 for SPE vector modes or modes
122         used with E500 double instructions.
123
124 2007-09-04  Paolo Bonzini  <bonzini@gnu.org>
125
126         * simplify-rtx.c (comparison_result): New.
127         (simplify_const_relational_operation): Use it instead of the five
128         "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
129         Improve bounds-checking optimizations; remove subsumed POPCOUNT
130         optimizations.  Extract nonzero_address_p optimizations into a
131         separate "if" together with optimizations where op1 is const0_rtx.
132         Optimize comparing an IOR with zero.  Simplify op0 RELOP op0 for
133         floating-point arguments too when appropriate.  Hoist test for ABS
134         outside the final switch statement.
135         * cse.c (fold_rtx): Don't look for an IOR equivalent of
136         folded_arg0 if we found a constant equivalent.  Remove
137         transformations done in simplify-rtx.c for "op0 RELOP op0".
138
139 2007-09-27  Jakub Jelinek  <jakub@redhat.com>
140
141         * builtins.c (expand_builtin, expand_builtin_object_size,
142         expand_builtin_memory_chk, maybe_emit_chk_warning,
143         maybe_emit_sprintf_chk_warning): Use new %K format string specifier
144         for diagnostics.
145         * expr.c (expand_expr_real_1): Likewise.
146         * langhooks-def.h (struct diagnostic_info): Add forward decl.
147         (lhd_print_error_function): Add third argument.
148         * langhooks.h (struct diagnostic_info): Add forward decl.
149         (struct lang_hooks): Add third argument to print_error_function.
150         * diagnostic.h (diagnostic_info): Add abstract_origin field.
151         (diagnostic_last_function_changed, diagnostic_set_last_function): Add
152         second argument.
153         (diagnostic_report_current_function): Likewise.
154         * toplev.c (announce_function): Pass NULL as second argument to
155         diagnostic_set_last_function.
156         * diagnostic.c (diagnostic_report_current_function): Add second
157         argument, pass it as third argument to lang_hooks.print_error_function.
158         (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
159         to diagnostic_report_current_function.
160         (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
161         and message.abstract_origin.
162         (verbatim): Initialize abstract_origin.
163         * pretty-print.h (text_info): Add abstract_origin field.
164         * pretty-print.c (pp_base_format): Handle %K.
165         * langhooks.c (lhd_print_error_function): Add third argument.  If
166         diagnostic->abstract_origin, print virtual backtrace.
167         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
168         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
169         (init_dynamic_diag_info): Likewise.
170
171 2007-09-26  David Daney  <ddaney@avtrex.com>
172
173         PR target/33479
174         * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
175         sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
176         sync_old_nand<mode>, sync_new_nand<mode>,
177         sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
178         Update length attributes.
179         (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
180         sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
181         length attributes.
182         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
183         MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
184         MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
185         post-loop sync.
186
187 2007-09-26  Richard Guenther  <rguenther@suse.de>
188
189         PR tree-optimization/33563
190         * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
191         (get_kill_of_stmt_lhs): ... this.  Re-structure.  Handle
192         aggregate stores.
193         (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
194         get_use_of_stmt_lhs.
195
196 2007-09-26  Joseph Myers  <joseph@codesourcery.com>
197
198         PR c/25309
199         * c-common.c (complete_array_type): Diagnose too-large arrays and
200         set type to error_mark_node.
201
202 2007-09-26  Richard Guenther  <rguenther@suse.de>
203
204         PR tree-optimization/30375
205         PR tree-optimization/33560
206         * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
207         with calls.
208
209         Revert
210         2006-05-22  Aldy Hernandez  <aldyh@redhat.com>
211
212         * tree-ssa-dse.c (aggregate_vardecl_d): New.
213         (dse_global_data): Add aggregate_vardecl field.
214         (dse_possible_dead_store_p): New.
215         Add prev_defvar variable.
216         Allow immediate uses and previous immediate uses to differ
217         if they are setting different parts of the whole.
218         (get_aggregate_vardecl): New.
219         (dse_record_partial_aggregate_store): New.
220         (dse_whole_aggregate_clobbered_p): New.
221         (dse_partial_kill_p): New.
222         Call dse_maybe_record_aggregate_store().
223         When checking whether a STMT and its USE_STMT refer to the
224         same memory address, check also for partial kills that clobber
225         the whole.
226         Move some variable definitions to the block where they are used.
227         (aggregate_vardecl_hash): New.
228         (aggregate_vardecl_eq): New.
229         (aggregate_vardecl_free): New.
230         (aggregate_whole_store_p): New.
231         (tree_ssa_dse): Initialize and free aggregate_vardecl.
232         Mark which aggregate stores we care about.
233
234 2007-09-25  DJ Delorie  <dj@redhat.com>
235
236         PR target/33551
237         * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
238         XINT.
239
240 2007-09-25  Michael Meissner  <michael.meissner@amd.com>
241
242         PR target/33524
243         * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
244         gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
245         for vector int32 -> int64 conversions.  Don't write beyond the end
246         of the allocated vector for int32 -> int64 conversions.
247
248 2007-09-25  Revital Eres  <eres@il.ibm.com>
249
250         * config/rs6000/paired.h (paired_sel): New.
251         * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
252         (rs6000_expand_ternop_builtin): Pass zero const_double operand
253         when expanding selv2sf.
254         * config/rs6000/rs6000.h (rs6000_builtins): Add
255         PAIRED_BUILTIN_SELV2SF4.
256
257 2007-09-25  Joseph Myers  <joseph@codesourcery.com>
258
259         PR c/32295
260         * c-typeck.c (default_conversion): Call require_complete_type
261         before perform_integral_promotions.
262         (build_unary_op): Call require_complete_type except for ADDR_EXPR.
263         (build_c_cast): Call require_complete_type except for casts to
264         void types.
265         (convert_for_assignment): Call require_complete_type.
266
267 2007-09-25  Revital Eres  <eres@il.ibm.com>
268
269         * config/spu/spu.md: Fix doloop pattern.
270
271 2007-09-25  Bernd Schmidt  <bernd.schmidt@analog.com>
272
273         * config/bfin/bfin.c (expand_prologue_reg_save,
274         expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs and
275         ASTAT moved here...
276         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
277         ... from here.  New argument ALL; callers changed.
278         (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
279         (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
280         have the "saveall" attribute.
281
282 2007-09-25  Hans-Peter Nilsson  <hp@bitrange.com>
283
284         * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
285         bogus target macro.
286         (INCOMING_REGNO, OUTGOING_REGNO): Define.
287         * config/mmix/mmix.c (mmix_opposite_regno): New function.
288         * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
289
290         * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
291         with REG_P tests before REGNO access.
292
293 2007-09-24  DJ Delorie  <dj@redhat.com>
294
295         PR target/31482
296         * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
297         constraint.
298         (movqicc_<code>_<mode>): Likewise.
299         (movhicc_<code>_<mode>): Likewise.
300
301 2007-09-24  Rask Ingemann Lambertsen  <rask@sygehus.dk>
302
303         PR target/33184
304         * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
305         register for reload.
306
307 2007-09-24  Danny Smith  <dannysmith@user.sourceforge.net>
308
309         PR c++/14688
310         * config/i386/i386.c (ix86_comp_type_attributes): Check
311         METHOD_TYPE too.
312
313 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
314
315         * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
316         "move.l %a4,%a4" to produce nops.
317         * config/m68k/m68k.c (override_options): Reset align options,
318         if neccessary align macro isn't avaible.
319
320 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
321
322         config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
323
324 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
325
326         * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
327         the basic block.
328         * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
329         reload is completed.
330         (peephole pattern): Convert most of them to RTL peephole pattern.
331
332 2007-09-24  Roman Zippel <zippel@linux-m68k.org> 
333
334         * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
335         (moved from fp compare patterns).
336         * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
337         Cleanup predicates to relieve reload.
338         (conditional_trap): Reject conditional trap with fp condition.
339         * gcc/config/m68k/predicates.md (fp_src_operand): New, reject
340         certain constants early.
341
342 2007-09-24  Roman Zippel <zippel@linux-m68k.org>
343
344         * gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
345
346 2007-09-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
347
348         * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
349         Allow --with-tune=cell and --with-cpu=cell.
350
351 2007-09-24  David Edelsohn  <edelsohn@gnu.org>
352
353         * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
354         * config/rs6000/rs6000.opt (swdiv): Change option to ...
355         (recip): this.
356         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
357         function.
358         (TARGET_BUILTIN_RECIPROCAL): Use it.
359         (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
360         (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
361         (rs6000_emit_swrsqrtsf): New.
362         * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
363         rsqrtf. 
364         * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
365         (divsf3): Remove swdiv support.
366         (recipsf3): New.
367         (rsqrtsf2): New.
368         (rsqrt_internal1): New.
369         (divdf3): Remove swdiv support.
370         (reciptdf3): New.
371
372 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
373
374         PR c++/33506
375         * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
376         field.
377         * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
378         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
379         * tree.c (type_hash_eq): For FUNCTION_TYPE use
380         lang_hooks.type.type_hash_eq in addition to generic tests.
381
382 2007-09-24  Pranav Bhandarkar  <pranav.bhandarkar@celunite.com>
383         Ramana Radhakrishnan  <ramana@hercules.pun.celunite.com>
384
385         * tree-inline.h (eni_weights): Add field target_builtin_cost to
386         reflect the cost per call to a target specific builtin.
387         * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
388         call to a target specific builtin, then use target_builtin_call_cost.
389         (init_inline_once): Initialize target_builtin_call_cost field.
390
391 2007-09-24  Kai Tietz  <kai.tietz@onevision.com>
392
393         PR middle-end/33472
394         * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
395         complex types.
396
397 2007-09-23  H.J. Lu  <hongjiu.lu@intel.com>
398
399         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
400         * configure: Regenerated.
401
402 2007-09-23  Ollie Wild  <aaw@google.com>
403
404         * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
405         operand.
406         (get_pointer_modulus_and_residue): New function.
407
408 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
409
410         * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
411         combine an SC return value into a single register.
412
413 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
414
415         * opth-gen.awk (target_flags_explicit): Declare.
416         * toplev.h (target_flags_explicit): Delete declaration.
417         * toplev.c (target_flags): Likewise.
418         * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
419         (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
420         Never return true for TARGET_MIPS16.
421         * config/mips/mips.c (mips_llsc): Delete.
422         (mips_handle_option): Remove -mllsc handling.
423         (mips_strip_unspec_address): Tweak comment.
424         * config/mips/mips.opt (mllsc): Use a target mask.
425
426 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
427
428         * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
429         word_mode as well as Pmode.
430
431 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
432
433         * function.c (assign_parm_setup_block): Explicitly convert BLKmode
434         parameters from word_mode to the subword type if such a truncation
435         is not a no-op.
436
437 2007-09-23  Jakub Jelinek  <jakub@redhat.com>
438
439         * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
440         * configure: Regenerated.
441
442 2007-09-23  Jan Hubicka  <jh@suse.cz>
443
444         * params.def (INLINE_CALL_COST): Set to 12.
445         * invoke.texi (inline-call-cost): Update default value.
446
447 2007-09-23  Eric Botcazou  <ebotcazou@adacore.com>
448
449         * config/alpha/alpha.md (movti): Use operand_subword for the split.
450
451 2007-09-23  Ayal Zaks  <zaks@il.ibm.com>
452             Revital Eres  <eres@il.ibm.com>
453
454         * modulo-sched.c (doloop_register_get): Rewrite the loop which
455         checks whether the count_reg is found outside the control part.
456
457 2007-09-23  Jakub Jelinek  <jakub@redhat.com>
458
459         * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
460         instead of checking CALL_EXPR_FN directly to test for builtins.
461         If error or warning attributes are present, print
462         error resp. warning.
463         * c-common.c (handle_error_attribute): New function.
464         (c_common_attribute_table): Add error and warning
465         attributes.
466         * doc/extend.texi: Document error and warning attributes.
467
468         * tree.h (block_nonartificial_location): New prototype.
469         * tree.c (block_nonartificial_location): New function.
470         * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
471         if artificial attribute is present on abstract inline decl.
472         * c-common.c (handle_artificial_attribute): New function.
473         (c_common_attribute_table): Add artificial attribute.
474         * final.c (override_filename, override_linenum): New variables.
475         (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
476         and override_linenum if inside of a block inlined from
477         __attribute__((__artificial__)) function.
478         (notice_source_line): Honor override_filename and override_linenum.
479         * doc/extend.texi: Document __attribute__((__artificial__)).
480         * config/i386/emmintrin.h: Add __artificial__ attribute to
481         all __always_inline__ functions.
482         * config/i386/mmintrin.h: Likewise.
483         * config/i386/tmmintrin.h: Likewise.
484         * config/i386/mm3dnow.h: Likewise.
485         * config/i386/pmmintrin.h: Likewise.
486         * config/i386/ammintrin.h: Likewise.
487         * config/i386/xmmintrin.h: Likewise.
488         * config/i386/smmintrin.h: Likewise.
489         * config/i386/bmmintrin.h: Likewise.
490         * config/i386/mmintrin-common.h: Likewise.
491
492         PR middle-end/28755
493         * expr.c (expand_constructor): New function.
494         (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
495         (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
496         CONSTRUCTOR.
497
498 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
499
500         * config/mips/mips.c (dump_constants_1): Generalize to include
501         fractional and accumulator modes.
502
503 2007-09-23  Richard Sandiford  <rsandifo@nildram.co.uk>
504
505         * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
506         * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
507         flags for MIPS16.
508         (override_options): Check TARGET_HARD_FLOAT_ABI instead of
509         TARGET_HARD_FLOAT when testing whether -mpaired-single is
510         supported.
511         (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
512         TARGET_DSP.
513         * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
514         TARGET_DSPR2.
515         * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
516         (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
517         TARGET_HARD_FLOAT.
518         (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
519         ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
520         * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
521         throughout.
522         * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
523         TARGET_HAS_DSPR2.
524         * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
525         instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
526         * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
527
528 2007-09-22  Jason Merrill  <jason@redhat.com>
529
530         PR c++/19407
531         * attribs.c (lookup_attribute_spec): Split out...
532         (decl_attributes): From here.
533         * tree.h: Declare it.
534
535 2007-09-22  Richard Sandiford  <rsandifo@nildram.co.uk>
536
537         * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
538
539 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
540
541         * tree-inline.c (remap_type_1): Correctly chain variants.
542
543 2007-09-22  Richard Guenther  <rguenther@suse.de>
544
545         PR tree-optimization/33146
546         * fold-const.c (fold_binary): Use the original tree
547         for negating.
548         * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
549         also changes "sign".
550
551 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
552
553         PR target/32325
554         * except.c (finish_eh_generation): Call commit_edge_insertions if
555         there are insns queued on the entry edge.
556         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
557         the entry edge.
558
559 2007-09-22  Richard Sandiford  <rsandifo@nildram.co.uk>
560
561         * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
562
563 2007-09-19  Michael Meissner  <michael.meissner@amd.com>
564
565         * gcc/config/i386/i386.c: Delete trailing whitespace.
566         * gcc/config/i386/i386.h: Ditto.
567         * gcc/config/i386/bmmintrin.h: Ditto.
568         * gcc/config/i386/sync.md: Ditto.
569         * gcc/config/i386/ppro.md: Ditto.
570         * gcc/config/i386/mmx.md: Ditto.
571         * gcc/config/i386/constraints.md: Ditto.
572         * gcc/config/i386/sse.md: Ditto.
573         * gcc/config/i386/athlon.md: Ditto.
574         * gcc/config/i386/i386.md: Ditto.
575
576 2007-09-21  Richard Guenther  <rguenther@suse.de>
577
578         PR tree-optimization/33508
579         * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
580         quadratic loop by keeping a bitmap of variables we have
581         to clobber all subvariables for.
582         (set_initial_properties): Likewise.
583
584 2007-09-21  Richard Sandiford  <rsandifo@nildram.co.uk>
585
586         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
587
588 2007-09-20  Nigel Stephens  <nigel@mips.com>
589             Chao-ying Fu  <fu@mips.com>
590
591         * c-decl.c (finish_declspecs): When _Sat is used without
592         _Fract or _Accum, set the default type to cts_fract.
593         This avoids a warning of "type defaults to int".
594
595 2007-09-20  Joseph Myers  <joseph@codesourcery.com>
596
597         * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
598         bit-fields wider than one bit.
599
600 2007-09-20  Jakub Jelinek  <jakub@redhat.com>
601
602         PR debug/33316
603         * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
604         DECL_NAME.
605         * dbxout.c (dbxout_type): Likewise.
606
607         PR c/33238
608         PR c/27301
609         * gimplify.c (gimplify_vla_decl): New function.
610         (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
611         Call it.
612         (gimplify_target_expr): Handle variable length TARGET_EXPRs.
613
614 2007-09-20  Richard Sandiford  <rsandifo@nildram.co.uk>
615
616         * doc/invoke.texi (-minterlink-mips16): Document.
617         * config/mips/mips.opt (minterlink-mips16): New option.
618         * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
619         -minterlink-mips16
620
621 2007-09-20  Joseph Myers  <joseph@codesourcery.com>
622
623         * doc/extend.texi (Attribute Syntax): Remove old speculative
624         future direction.
625
626 2007-09-20  Mark Shinwell  <shinwell@codesourcery.com>
627
628         * combine.c: Include cgraph.h.
629         (setup_incoming_promotions): Rework to allow more aggressive
630         elimination of sign extensions when all call sites of the
631         current function are known to lie within the current unit.
632
633 2007-09-20  Richard Sandiford  <rsandifo@nildram.co.uk>
634
635         * dse.c (find_shift_sequence): No-op rework of control flow.
636
637 2007-09-19  Richard Sandiford  <rsandifo@nildram.co.uk>
638
639         * config/mips/mips.c (build_mips16_call_stub): Tidy.  Fix second
640         GPR for DCmode on 64-bit targets.  Remove redundant fallback.
641
642 2007-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
643
644         * cfgexpand.c (dump_stack_var_partition): Use the correct
645         index for the offset.
646
647 2007-09-19  Joseph Myers  <joseph@codesourcery.com>
648
649         * config/mips/sde.h: Switch to GPLv3.
650
651 2007-09-19  Eric Botcazou  <ebotcazou@adacore.com>
652
653         * tree-sra.c (decide_block_copy): Decide if there are groups.
654
655 2007-09-19  Roman Zippel <zippel@linux-m68k.org>
656
657         * config/m68k/m68k.c (output_move_himode): Remove jump table
658         recognition.
659         config/m68k/m68k.md (lea): Likewise.
660         * config/m68k/m68k.c (print_operand_address): Use simple pc
661         relative addressing.
662
663 2007-09-19  Bernd Schmidt  <bernd.schmidt@analog.com>
664
665         * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
666         * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
667         default definition.
668         (asm_insn_count): Pass template as second argument to it.
669         * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
670         * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
671         * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
672         * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
673         * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
674         (sh_insn_length_adjustment): Pass template as second argument to it.
675         * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
676
677         * config/bfin/bfin.md (define_asm_attributes): New.
678
679 2007-09-19  Jie Zhang  <jie.zhang@analog.com>
680
681         * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
682         to tm_file.
683         * config/bfin/print-sysroot-suffix.sh: New.
684         * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
685         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
686         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
687         * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
688         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
689         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
690         * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
691         (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
692         MULTILIB_EXCEPTIONS): Redefine with new multilibs.
693         (linux-sysroot-suffix.h): New target.
694         * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
695         (mspecld-anomaly): Likewise.
696         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
697         (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
698         BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
699         BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
700         (bfin_si_revision): Declare.
701         (bfin_workarounds): Declare.
702         (WA_SPECULATIVE_LOADS): Define.
703         (ENABLE_WA_SPECULATIVE_LOADS): Define.
704         (WA_SPECULATIVE_SYNCS): Define.
705         (ENABLE_WA_SPECULATIVE_SYNCS): Define.
706         * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
707         (LIB_SPEC): Add %s to the linker scripts.
708         Use proper linker script for bf522, bf525, bf527,
709         bf538, bf539, bf542, bf544, bf548, and bf549.
710         * config/bfin/bfin.c (bfin_si_revision): Define.
711         (bfin_workarounds): Define.
712         (struct bfin_cpu): New.
713         (bfin_cpus): New.
714         (bfin_handle_option): Handle silicon revision part of -mcpu option.
715         (override_options): Set bfin_workarounds.
716         (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
717         ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
718         ENABLE_WA_SPECULATIVE_LOADS.
719         (bfin_reorg): Likewise.
720         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
721         macros for bf522, bf525, bf527, bf538, bf539,
722         bf542, bf544, bf548, and bf549.
723         Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
724         Don't define __ID_SHARED_LIB__ when -msep-data.
725         (TARGET_DEFAULT): Define as 0.
726         (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
727         * doc/invoke.texi (Blackfin Options): Document silicon
728         revision part of -mcpu option and it now accepts bf522, bf525,
729         bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
730
731 2007-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
732
733         * alias.c (memory_modified_1): Deconstify.
734         (memory_modified_in_insn_p): Don't use const_note_stores.
735         * rtl.h (const_note_stores): Delete.
736         * rtlanal.c (const_note_stores): Likewise.
737
738 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
739
740         * dse.c (find_shift_sequence): Temporarily revert to forbidding
741         word shifts.
742
743 2007-09-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
744
745         PR target/33388
746         PR target/33397
747         * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
748         (addsi_small_int): Likewise.
749         (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
750         (one_cmplsi2): Likewise.
751         (negsi2): Delete.
752         (enter_func): Expand insn using hard_frame_pointer_rtx and
753         stack_pointer_rtx.
754         (*enter_func): New.
755         * config/fr30/fr30.c (fr30_expand_prologue): Check for
756         hard_frame_pointer_rtx instead of using REGNO() check.
757         Properly sign extend GEN_INT() argument.
758
759 2007-09-18  Roman Zippel <zippel@linux-m68k.org>
760
761         * config/m68k/m68k.c (override_options): Remove USE_GAS,
762         use %. syntax.
763         (output_dbcc_and_branch, output_scc_di): Replace all jbcc
764         alternatives with just jcc.
765         * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
766         bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
767         bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
768         dbge_hi, dbge_si): Likewise.
769
770 2007-09-18  Roman Zippel <zippel@linux-m68k.org>
771
772         * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
773         bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
774         bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
775         bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
776         bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
777
778 2007-09-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
779
780         * config/m68k/m68k-devices.def (51qe): New device.
781         * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit.  Add it
782         to all uses of FL_FOR_isa_c for compatibility.
783         (all_microarchs): Add cfv1 microarchitecture.
784         (m68k_handle_option): Handle m51qe option.
785         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
786         (TUNE_CFV1): New macro.
787         (enum uarch_type): Add ucfv1.
788         * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
789         
790 2007-09-18  Richard Guenther  <rguenther@suse.de>
791
792         PR tree-optimization/31863
793         * tree-ssa-structalias.c (create_variable_info_for): Always
794         free the fieldstack.
795
796 2007-09-18  Dorit Nuzman  <dorit@il.ibm.com>
797
798         * opts.c (decode_options): Enable vectorization under -O3.
799
800 2007-09-18  Richard Guenther  <rguenther@suse.de>
801
802         PR tree-optimization/33340
803         * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
804         SSA_NAMEs that occur in abnormal PHI nodes.
805
806 2007-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
807
808         * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
809         Don't use const_get_call_expr_in.
810         * tree-gimple.c (const_get_call_expr_in): Delete.
811         * tree-gimple.h (const_get_call_expr_in): Likewise.
812
813 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
814
815         * df-scan.c (df_notes_rescan): Do nothing if the instruction does
816         not yet have a basic block.
817         * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
818
819 2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
820
821         * config/mips/mips.c (mips_file_start): Add ".previous" directives
822         to both ".section"s.
823
824 2007-09-17  Richard Sandiford  <rsandifo@nildram.co.uk>
825
826         * config/mips/mips.c (mips_output_mi_thunk): Use
827         mips_function_ok_for_sibcall and const_call_insn_operand
828         to determine if a direct sibcall is allowed.  Use
829         mips_classify_symbol to determine a global pointer is needed.
830
831 2007-09-17  Richard Sandiford  <rsandifo@nildram.co.uk>
832
833         * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
834
835 2007-09-17  Chao-ying Fu  <fu@mips.com>
836             Nigel Stephens  <nigel@mips.com>
837
838         * config/fixed-bit.h: New file.
839         * config/fixed-bit.c: New file.
840         * doc/libgcc.texi (Fixed-point fractional library routines): New node.
841
842 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
843
844         * c-format.h (format_kind_info): Add alloc_char field.
845         * c-format.c (scanf_flag_specs): Add 'm'.
846         (scanf_flag_pairs): Add 'a', 'm' pair.
847         (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
848         (format_types_orig): Add alloc_char fields.
849         (check_format_info_main): Rename aflag to alloc_flag.
850         Handle fki->alloc_char. modifier after width and before length
851         modifiers.  Move FMT_FLAG_SCANF_A_KLUDGE handling before
852         length modifiers as well.
853         * config/sol2-c.c (solaris_format_types): Add alloc_char field.
854
855         PR middle-end/33423
856         * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
857         returned by build_call_expr.
858
859 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
860
861         * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
862         NULL for variable-sized records too.
863         (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
864
865 2007-09-17  Tom Tromey  <tromey@redhat.com>
866
867         * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
868         (c_builtin_function): Likewise.
869         (grokdeclarator): Likewise.
870
871 2007-09-17  Zdenek Dvorak  <ook@ucw.cz>
872
873         PR rtl-optimization/26449
874         * loop-invariant.c (move_invariant_reg): Do not use force_operand.
875         (seq_insns_valid_p): Removed.
876
877 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
878
879         * tree-nomudflap.c (gate_mudflap): New static function.
880         (pass_mudflap_1): Use it as gate function.
881         (pass_mudflap_2): Likewise.
882
883 2007-09-17  Jan Hubicka  <jh@suse.cz>
884
885         PR middle-end/33348
886         PR target/33406
887         * loop-invariant.c (move_invariant_reg): Unshare sequence.
888
889 2007-09-17  Victor Kaplansky  <victork@il.ibm.com>
890
891         PR tree-optimization/33319
892         * tree-vect-analyze.c (vect_same_range_drs): New.
893         (vect_vfa_range_equal): New.
894         (vect_is_duplicate_ddr): Removed.
895         (vect_mark_for_runtime_alias_test): Do not perform marking when
896         optimizing for size or max_param for alias checking is zero.
897         Move the function before vect_analyze_data_ref_dependence.
898         (vect_analyze_data_ref_dependence): Add call to
899         vect_mark_for_runtime_alias_test in two cases when dependence
900         is not clear.
901         (vect_analyze_data_ref_dependences): Do not call to
902         vect_mark_for_runtime_alias_test.
903         (vect_prune_runtime_alias_test_list): New.
904         (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
905         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
906         Update vec_outside_cost.
907         (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
908         (vect_create_cond_for_alias_checks): Build the base address of data
909         reference from DR_GROUP_FIRST_DR.
910         (vect_loop_versioning): New.
911         (vect_transform_loop): Add a call to vect_loop_versioning.
912         Remove factored out code.
913
914 2007-09-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
915
916         PR middle-end/33273
917         * expr.c (store_expr): Call adjust_address to change mode of dest_mem
918         to BLKmode.
919
920 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
921
922         * dse.c (find_shift_sequence): Allow word as well as subword shifts.
923         Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
924         Fix the call to insn_rtx_cost.  Skip access sizes that require a
925         real truncation of the store register.  Use convert_move instead
926         of gen_lowpart when narrowing the result.
927         (replace_read): Use convert_move instead of gen_lowpart when
928         narrowing the store rhs.
929
930 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
931
932         * config/mips/mips.md (SHORT): Fix long line.
933         (SUBDI): New mode iterator.  Extend the shift-and-truncate insns
934         to QImode and HImode.
935
936 2007-09-16  Richard Sandiford  <rsandifo@nildram.co.uk>
937
938         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
939
940 2007-09-15  Zdenek Dvorak  <ook@ucw.cz>
941
942         * tree-parloops.c: New file.
943         * tree-ssa-operands.h (free_stmt_operands): Declare.
944         * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
945         block.
946         * tree-pass.h (pass_parallelize_loops): Declare.
947         * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
948         virtual operands.
949         (build_omp_regions_1): Allow analysing just a single OMP region and
950         its subregions.
951         ( build_omp_regions_root, omp_expand_local): New functions.
952         (build_omp_regions): Add argument to build_omp_regions_1 call.
953         * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
954         autoparallelization is run.
955         * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
956         * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
957         pass_parallelize_loops): New.
958         * common.opt (ftree-parallelize-loops): New.
959         * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
960         parallelize_loops): Declare.
961         (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
962         * Makefile.in (tree-parloops.o): Added.
963         * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
964         New functions.
965         (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
966         (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
967         one extra edge as well.
968         (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
969         Use VEC_free to free doms vector.
970         (move_block_to_fn): Update loop info. Remove phi nodes for virtual
971         operands.  Recompute operand caches in the new function.
972         (move_sese_region_to_fn): Update loop info.
973         * passes.c (init_optimization_passes): Add pass_parallelize_loops.
974         * tree-ssa-operands.c (free_stmt_operands): New function.
975
976         * doc/passes.texi: Document autoparallelization.
977         * doc/invoke.texi (-ftree-parallelize-loops): New option.
978
979 2007-09-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
980
981         PR target/33062
982         * pa.c (function_value): Use GET_MODE_BITSIZE instead of
983         TYPE_PRECISION.
984
985 2007-09-15  Dorit Nuzman  <dorit@il.ibm.com>
986
987         * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if 
988         the VEC is not NULL.
989         (vectorizable_type_demotion, vectorizable_type_promotion): Check that 
990         get_vectype_for_scalar_type succeeded.
991         (vectorizable_conversion): Likewise.
992
993 2007-09-14  Jan Hubicka  <jh@suse.cz>
994
995         * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
996         TARGET_64BIT.
997
998 2007-09-14  Uros Bizjak  <ubizjak@gmail.com>
999
1000         PR target/33438
1001         * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
1002         register when operands[2] equals operands[1].
1003         (remainderxf3): Ditto.
1004
1005 2007-09-14  Sandra Loosemore  <sandra@codesourcery.com>
1006             Nigel Stephens  <nigel@mips.com>
1007
1008         * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
1009         * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
1010         (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
1011         declaration.
1012         (_Unwind_ForcedUnwind): Likewise.
1013         (_Unwind_Resume): Likewise.
1014         (_Unwind_Resume_or_Rethrow): Likewise.
1015         (_Unwind_Backtrace): Likewise.
1016         (_Unwind_SjLj_RaiseException): Likewise.
1017         (_Unwind_SjLj_ForcedUnwind): Likewise.
1018         (_Unwind_SjLj_Resume): Likewise.
1019         (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
1020         * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
1021         to definition.
1022         (_Unwind_ForcedUnwind): Likewise.
1023         (_Unwind_Resume): Likewise.
1024         (_Unwind_Resume_or_Rethrow): Likewise.
1025         (_Unwind_Backtrace): Likewise.
1026         * unwind-compat.c (_Unwind_Backtrace): Likewise.
1027         (_Unwind_ForcedUnwind): Likewise.
1028         (_Unwind_RaiseException): Likewise.
1029         (_Unwind_Resume): Likewise.
1030         (_Unwind_Resume_or_Rethrow): Likewise.
1031
1032         * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
1033         nomips16 mode when IN_LIBGCC2 with hard float.
1034
1035 2007-09-14  Richard Sandiford  <rsandifo@nildram.co.uk>
1036
1037         * config/mips/sdemtk.opt: Update to GPLv3.
1038         * config/mips/sdemtk.h: Likewise.
1039
1040 2007-09-14  Nigel Stephens  <nigel@mips.com>
1041
1042         * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
1043         MIPS_ISA_DEFAULT appropriately.  Don't make soft-float the default
1044         for mipsisa32-*-linux*.
1045
1046 2007-09-14  Nigel Stephens  <nigel@mips.com>
1047             David Ung  <davidu@mips.com>
1048             Thiemo Seufer  <ths@mips.com>
1049             Richard Sandiford  <richard@codesourcery.com>
1050
1051         * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
1052         * configure.ac: Add a mipssde threading type.
1053         * configure: Regenerate.
1054         * config/mips/sdemtk.h: New file.
1055         * config/mips/t-sdemtk: Likewise.
1056         * config/mips/sdemtk.opt: Likewise.
1057         * gthr-mipssde.h: Likewise.
1058         * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
1059         * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
1060         (MIPS_ICACHE_SYNC): New macro, split from ...
1061         * config/mips/mips.md (clear_cache): ...here.
1062         * config/mips/mips.c (mips_save_reg_p): Check
1063         MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
1064         (build_mips16_function_stub): Use targetm.strip_name_encoding.
1065         (build_mips16_call_stub): Likewise.
1066
1067 2007-09-14  Richard Sandiford  <richard@codesourcery.com>
1068
1069         * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
1070
1071 2007-09-14  Jakub Jelinek  <jakub@redhat.com>
1072
1073         PR target/32337
1074         * config/ia64/ia64.c (find_gr_spill): Don't decrement
1075         current_frame_info.n_local_regs.  Don't return emitted local
1076         regs.
1077         (ia64_compute_frame_size): Improve unwind hack to put
1078         RP, PFS, FP in that order by allowing some of the registers
1079         been already emitted, as long as they are emitted to the
1080         desired register.
1081
1082 2007-09-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1083
1084         * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
1085         vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
1086         vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
1087
1088 2007-09-13  Eric Christopher  <echristo@apple.com>
1089             Kenneth Zadeck <zadeck@naturalbridge.com>
1090
1091         * dse.c (find_shift_sequence): New function.
1092         (replace_read): Add case to remove read if it requires shift.
1093         * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
1094         
1095 2007-09-13  Tom Tromey  <tromey@redhat.com>
1096
1097         * c-common.c (fname_as_string): Update.
1098         * c-parser.c (c_parser) <lex_untranslated_string>: New field.
1099         (c_lex_one_token): Update.  Add 'parser' argument.
1100         (c_parser_simple_asm_expr): Update.
1101         (c_parser_attributes): Update.
1102         (c_parser_asm_statement): Update.
1103         (c_parser_asm_operands): Update.
1104         (c_parser_peek_token): Update.
1105         (c_parser_peek_2nd_token): Update.
1106         * c-lex.c (c_lex_string_translate): Remove.
1107         (c_lex_return_raw_strings): Likewise.
1108         (c_lex_with_flags): Added 'lex_flags' argument.
1109         (lex_string): Added 'translate' argument.
1110         * c-pragma.h (c_lex_with_flags): Update.
1111         (c_lex_string_translate, c_lex_return_raw_strings): Remove.
1112         (C_LEX_STRING_NO_TRANSLATE): New define.
1113         (C_LEX_RAW_STRINGS): Likewise.
1114
1115 2007-09-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1116
1117         From Jie Zhang:
1118         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
1119         BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
1120         BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
1121         (bfin_init_builtins): Initialize __builtin_bfin_ones,
1122         __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
1123         __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
1124         __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
1125         __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
1126         __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
1127         (bdesc_1arg): Add __builtin_bfin_ones.
1128         (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
1129         __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
1130         and __builtin_bfin_csqu_fr16.
1131         * config/bfin/bfin.md (UNSPEC_ONES): New constant.
1132         (ones): New define_insn.
1133         (ssaddhi3_parts): New define_insn.
1134         (sssubhi3_parts): New define_insn.
1135         (flag_mulhi_parts): New define_insn.
1136
1137 2007-09-13  Seongbae Park <seongbae.park@gmail.com>
1138
1139         * common.opt (femit-class-debug-always): Turn off by default.
1140
1141 2007-09-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1142
1143         * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
1144         * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
1145
1146 2007-09-13  James E. Wilson  <wilson@specifix.com>
1147
1148         PR tree-optimization/33389
1149         * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
1150         then set build_loads before returning.
1151
1152 2007-09-13  Sandra Loosemore  <sandra@codesourcery.com>
1153             David Ung  <davidu@mips.com>
1154
1155         * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
1156         {d}addiu and a negative immediate such that it works with MIPS16
1157         instructions.
1158         
1159 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1160
1161         PR bootstrap/33418
1162         * configure.ac (ld_vers): Support Linux linker.
1163         * configure: Regenerated.
1164
1165 2007-09-13  Richard Sandiford  <richard@codesourcery.com>
1166             Sandra Loosemore <sandra@codesourcery.com>
1167
1168         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
1169         (SYMBOL_REF_MIPS16_FUNC_P): Delete.
1170         * config/mips/mips.c (mips_attribute_table): Turn mips16 and
1171         nomips16 into decl attributes.
1172         (TARGET_INSERT_ATTRIBUTES): Override.
1173         (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
1174         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
1175         (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
1176         (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
1177         (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
1178         (mips_use_mips16_mode_p): Reimplement as a function that takes
1179         a decl and considers only decl attributes.  If the decl is nested
1180         function, use its parent attributes.
1181         (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
1182         instead of SYMBOL_REF_MIPS16_FUNC_P.
1183         (mips_set_mips16_mode): Move call to sorry here from old
1184         mips_use_mips16_mode_p.
1185         (mflip_mips16_entry): New structure.
1186         (mflip_mips16_htab): New variable.
1187         (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
1188         (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
1189         (mips_merge_decl_attributes): New function.
1190         (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
1191         Use mips_use_mips16_mode_p.
1192         (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
1193         SYMBOL_REF_MIPS16_FUNC_P.
1194         (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
1195
1196 2007-09-13  Richard Sandiford  <richard@codesourcery.com>
1197
1198         * c-parser.c (c_parser_struct_declaration): Check for a null return.
1199
1200 2007-09-13  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1201
1202         PR driver/33309
1203         * gcc.c (xputenv): Make argument const, and use CONST_CAST.
1204
1205 2007-09-12  Michael Meissner  <michael.meissner@amd.com>
1206             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1207             Tony Linthicum  <tony.linthicum@amd.com>
1208
1209         * tree.h (function_args_iterator): New type to iterate over
1210         function arguments.
1211         (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
1212         function arguments providing a pointer to the argument.
1213         (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
1214         function arguments providing the argument.
1215         (function_args_iter_init): Inline function to initialize
1216         function_args_iterator.
1217         (function_args_iter_cond_ptr): Inline function to return the next
1218         pointer to hold the argument.
1219         (function_args_iter_cond): Inline function to return the next
1220         argument.
1221         (function_args_iter_cond_next): Advance the function args
1222         iterator.
1223         (stdarg_p): New function, return true if variable argument
1224         function.
1225         (prototype_p): New function, return true if function is
1226         prototyped.
1227         (function_args_count): New function, count the number of arguments
1228         of a function.
1229
1230         * tree.c (stdarg_p): New function, return true if variable
1231         argument function.
1232         (prototype_p): New function, return true if function is
1233         prototyped.
1234
1235         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
1236         (TARGET_ROUND): New macro for the round/ptest instructions which
1237         are shared between SSE4.1 and SSE5.
1238         (OPTION_MASK_ISA_ROUND): Ditto.
1239         (OPTION_ISA_ROUND): Ditto.
1240         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
1241         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
1242
1243         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
1244         (-mfused-madd): New switch to give users control over whether the
1245         compiler optimizes to use the multiply/add SSE5 instructions.
1246
1247         * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
1248         m_ATHLON_K8_AMDFAM10, and change all uses.
1249         (enum pta_flags): Add PTA_SSE5.
1250         (ix86_handle_option): Turn off 3dnow if -msse5.
1251         (override_options): Add SSE5 support.
1252         (print_operand): %Y prints comparison codes for SSE5 com/pcom
1253         instructions.
1254         (ix86_expand_sse_movcc): Add SSE5 support.
1255         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
1256         vector type to the next largest size.
1257         (ix86_expand_sse5_pack): New function to use pperm to pack a
1258         vector type to the next smallest size.
1259         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
1260         (IX86_BUILTIN_FMADDSD): Ditto.
1261         (IX86_BUILTIN_FMADDPS): Ditto.
1262         (IX86_BUILTIN_FMADDPD): Ditto.
1263         (IX86_BUILTIN_FMSUBSS): Ditto.
1264         (IX86_BUILTIN_FMSUBSD): Ditto.
1265         (IX86_BUILTIN_FMSUBPS): Ditto.
1266         (IX86_BUILTIN_FMSUBPD): Ditto.
1267         (IX86_BUILTIN_FNMADDSS): Ditto.
1268         (IX86_BUILTIN_FNMADDSD): Ditto.
1269         (IX86_BUILTIN_FNMADDPS): Ditto.
1270         (IX86_BUILTIN_FNMADDPD): Ditto.
1271         (IX86_BUILTIN_FNMSUBSS): Ditto.
1272         (IX86_BUILTIN_FNMSUBSD): Ditto.
1273         (IX86_BUILTIN_FNMSUBPS): Ditto.
1274         (IX86_BUILTIN_FNMSUBPD): Ditto.
1275         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
1276         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
1277         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
1278         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
1279         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
1280         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
1281         (IX86_BUILTIN_PPERM): Ditto.
1282         (IX86_BUILTIN_PERMPS): Ditto.
1283         (IX86_BUILTIN_PERMPD): Ditto.
1284         (IX86_BUILTIN_PMACSSWW): Ditto.
1285         (IX86_BUILTIN_PMACSWW): Ditto.
1286         (IX86_BUILTIN_PMACSSWD): Ditto.
1287         (IX86_BUILTIN_PMACSWD): Ditto.
1288         (IX86_BUILTIN_PMACSSDD): Ditto.
1289         (IX86_BUILTIN_PMACSDD): Ditto.
1290         (IX86_BUILTIN_PMACSSDQL): Ditto.
1291         (IX86_BUILTIN_PMACSSDQH): Ditto.
1292         (IX86_BUILTIN_PMACSDQL): Ditto.
1293         (IX86_BUILTIN_PMACSDQH): Ditto.
1294         (IX86_BUILTIN_PMADCSSWD): Ditto.
1295         (IX86_BUILTIN_PMADCSWD): Ditto.
1296         (IX86_BUILTIN_PHADDBW): Ditto.
1297         (IX86_BUILTIN_PHADDBD): Ditto.
1298         (IX86_BUILTIN_PHADDBQ): Ditto.
1299         (IX86_BUILTIN_PHADDWD): Ditto.
1300         (IX86_BUILTIN_PHADDWQ): Ditto.
1301         (IX86_BUILTIN_PHADDDQ): Ditto.
1302         (IX86_BUILTIN_PHADDUBW): Ditto.
1303         (IX86_BUILTIN_PHADDUBD): Ditto.
1304         (IX86_BUILTIN_PHADDUBQ): Ditto.
1305         (IX86_BUILTIN_PHADDUWD): Ditto.
1306         (IX86_BUILTIN_PHADDUWQ): Ditto.
1307         (IX86_BUILTIN_PHADDUDQ): Ditto.
1308         (IX86_BUILTIN_PHSUBBW): Ditto.
1309         (IX86_BUILTIN_PHSUBWD): Ditto.
1310         (IX86_BUILTIN_PHSUBDQ): Ditto.
1311         (IX86_BUILTIN_PROTB): Ditto.
1312         (IX86_BUILTIN_PROTW): Ditto.
1313         (IX86_BUILTIN_PROTD): Ditto.
1314         (IX86_BUILTIN_PROTQ): Ditto.
1315         (IX86_BUILTIN_PROTB_IMM): Ditto.
1316         (IX86_BUILTIN_PROTW_IMM): Ditto.
1317         (IX86_BUILTIN_PROTD_IMM): Ditto.
1318         (IX86_BUILTIN_PROTQ_IMM): Ditto.
1319         (IX86_BUILTIN_PSHLB): Ditto.
1320         (IX86_BUILTIN_PSHLW): Ditto.
1321         (IX86_BUILTIN_PSHLD): Ditto.
1322         (IX86_BUILTIN_PSHLQ): Ditto.
1323         (IX86_BUILTIN_PSHAB): Ditto.
1324         (IX86_BUILTIN_PSHAW): Ditto.
1325         (IX86_BUILTIN_PSHAD): Ditto.
1326         (IX86_BUILTIN_PSHAQ): Ditto.
1327         (IX86_BUILTIN_FRCZSS): Ditto.
1328         (IX86_BUILTIN_FRCZSD): Ditto.
1329         (IX86_BUILTIN_FRCZPS): Ditto.
1330         (IX86_BUILTIN_FRCZPD): Ditto.
1331         (IX86_BUILTIN_CVTPH2PS): Ditto.
1332         (IX86_BUILTIN_CVTPS2PH): Ditto.
1333         (IX86_BUILTIN_COMEQSS): Ditto.
1334         (IX86_BUILTIN_COMNESS): Ditto.
1335         (IX86_BUILTIN_COMLTSS): Ditto.
1336         (IX86_BUILTIN_COMLESS): Ditto.
1337         (IX86_BUILTIN_COMGTSS): Ditto.
1338         (IX86_BUILTIN_COMGESS): Ditto.
1339         (IX86_BUILTIN_COMUEQSS): Ditto.
1340         (IX86_BUILTIN_COMUNESS): Ditto.
1341         (IX86_BUILTIN_COMULTSS): Ditto.
1342         (IX86_BUILTIN_COMULESS): Ditto.
1343         (IX86_BUILTIN_COMUGTSS): Ditto.
1344         (IX86_BUILTIN_COMUGESS): Ditto.
1345         (IX86_BUILTIN_COMORDSS): Ditto.
1346         (IX86_BUILTIN_COMUNORDSS): Ditto.
1347         (IX86_BUILTIN_COMFALSESS): Ditto.
1348         (IX86_BUILTIN_COMTRUESS): Ditto.
1349         (IX86_BUILTIN_COMEQSD): Ditto.
1350         (IX86_BUILTIN_COMNESD): Ditto.
1351         (IX86_BUILTIN_COMLTSD): Ditto.
1352         (IX86_BUILTIN_COMLESD): Ditto.
1353         (IX86_BUILTIN_COMGTSD): Ditto.
1354         (IX86_BUILTIN_COMGESD): Ditto.
1355         (IX86_BUILTIN_COMUEQSD): Ditto.
1356         (IX86_BUILTIN_COMUNESD): Ditto.
1357         (IX86_BUILTIN_COMULTSD): Ditto.
1358         (IX86_BUILTIN_COMULESD): Ditto.
1359         (IX86_BUILTIN_COMUGTSD): Ditto.
1360         (IX86_BUILTIN_COMUGESD): Ditto.
1361         (IX86_BUILTIN_COMORDSD): Ditto.
1362         (IX86_BUILTIN_COMUNORDSD): Ditto.
1363         (IX86_BUILTIN_COMFALSESD): Ditto.
1364         (IX86_BUILTIN_COMTRUESD): Ditto.
1365         (IX86_BUILTIN_COMEQPS): Ditto.
1366         (IX86_BUILTIN_COMNEPS): Ditto.
1367         (IX86_BUILTIN_COMLTPS): Ditto.
1368         (IX86_BUILTIN_COMLEPS): Ditto.
1369         (IX86_BUILTIN_COMGTPS): Ditto.
1370         (IX86_BUILTIN_COMGEPS): Ditto.
1371         (IX86_BUILTIN_COMUEQPS): Ditto.
1372         (IX86_BUILTIN_COMUNEPS): Ditto.
1373         (IX86_BUILTIN_COMULTPS): Ditto.
1374         (IX86_BUILTIN_COMULEPS): Ditto.
1375         (IX86_BUILTIN_COMUGTPS): Ditto.
1376         (IX86_BUILTIN_COMUGEPS): Ditto.
1377         (IX86_BUILTIN_COMORDPS): Ditto.
1378         (IX86_BUILTIN_COMUNORDPS): Ditto.
1379         (IX86_BUILTIN_COMFALSEPS): Ditto.
1380         (IX86_BUILTIN_COMTRUEPS): Ditto.
1381         (IX86_BUILTIN_COMEQPD): Ditto.
1382         (IX86_BUILTIN_COMNEPD): Ditto.
1383         (IX86_BUILTIN_COMLTPD): Ditto.
1384         (IX86_BUILTIN_COMLEPD): Ditto.
1385         (IX86_BUILTIN_COMGTPD): Ditto.
1386         (IX86_BUILTIN_COMGEPD): Ditto.
1387         (IX86_BUILTIN_COMUEQPD): Ditto.
1388         (IX86_BUILTIN_COMUNEPD): Ditto.
1389         (IX86_BUILTIN_COMULTPD): Ditto.
1390         (IX86_BUILTIN_COMULEPD): Ditto.
1391         (IX86_BUILTIN_COMUGTPD): Ditto.
1392         (IX86_BUILTIN_COMUGEPD): Ditto.
1393         (IX86_BUILTIN_COMORDPD): Ditto.
1394         (IX86_BUILTIN_COMUNORDPD): Ditto.
1395         (IX86_BUILTIN_COMFALSEPD): Ditto.
1396         (IX86_BUILTIN_COMTRUEPD): Ditto.
1397         (IX86_BUILTIN_PCOMEQUB): Ditto.
1398         (IX86_BUILTIN_PCOMNEUB): Ditto.
1399         (IX86_BUILTIN_PCOMLTUB): Ditto.
1400         (IX86_BUILTIN_PCOMLEUB): Ditto.
1401         (IX86_BUILTIN_PCOMGTUB): Ditto.
1402         (IX86_BUILTIN_PCOMGEUB): Ditto.
1403         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
1404         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
1405         (IX86_BUILTIN_PCOMEQUW): Ditto.
1406         (IX86_BUILTIN_PCOMNEUW): Ditto.
1407         (IX86_BUILTIN_PCOMLTUW): Ditto.
1408         (IX86_BUILTIN_PCOMLEUW): Ditto.
1409         (IX86_BUILTIN_PCOMGTUW): Ditto.
1410         (IX86_BUILTIN_PCOMGEUW): Ditto.
1411         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
1412         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
1413         (IX86_BUILTIN_PCOMEQUD): Ditto.
1414         (IX86_BUILTIN_PCOMNEUD): Ditto.
1415         (IX86_BUILTIN_PCOMLTUD): Ditto.
1416         (IX86_BUILTIN_PCOMLEUD): Ditto.
1417         (IX86_BUILTIN_PCOMGTUD): Ditto.
1418         (IX86_BUILTIN_PCOMGEUD): Ditto.
1419         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
1420         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
1421         (IX86_BUILTIN_PCOMEQUQ): Ditto.
1422         (IX86_BUILTIN_PCOMNEUQ): Ditto.
1423         (IX86_BUILTIN_PCOMLTUQ): Ditto.
1424         (IX86_BUILTIN_PCOMLEUQ): Ditto.
1425         (IX86_BUILTIN_PCOMGTUQ): Ditto.
1426         (IX86_BUILTIN_PCOMGEUQ): Ditto.
1427         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
1428         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
1429         (IX86_BUILTIN_PCOMEQB): Ditto.
1430         (IX86_BUILTIN_PCOMNEB): Ditto.
1431         (IX86_BUILTIN_PCOMLTB): Ditto.
1432         (IX86_BUILTIN_PCOMLEB): Ditto.
1433         (IX86_BUILTIN_PCOMGTB): Ditto.
1434         (IX86_BUILTIN_PCOMGEB): Ditto.
1435         (IX86_BUILTIN_PCOMFALSEB): Ditto.
1436         (IX86_BUILTIN_PCOMTRUEB): Ditto.
1437         (IX86_BUILTIN_PCOMEQW): Ditto.
1438         (IX86_BUILTIN_PCOMNEW): Ditto.
1439         (IX86_BUILTIN_PCOMLTW): Ditto.
1440         (IX86_BUILTIN_PCOMLEW): Ditto.
1441         (IX86_BUILTIN_PCOMGTW): Ditto.
1442         (IX86_BUILTIN_PCOMGEW): Ditto.
1443         (IX86_BUILTIN_PCOMFALSEW): Ditto.
1444         (IX86_BUILTIN_PCOMTRUEW): Ditto.
1445         (IX86_BUILTIN_PCOMEQD): Ditto.
1446         (IX86_BUILTIN_PCOMNED): Ditto.
1447         (IX86_BUILTIN_PCOMLTD): Ditto.
1448         (IX86_BUILTIN_PCOMLED): Ditto.
1449         (IX86_BUILTIN_PCOMGTD): Ditto.
1450         (IX86_BUILTIN_PCOMGED): Ditto.
1451         (IX86_BUILTIN_PCOMFALSED): Ditto.
1452         (IX86_BUILTIN_PCOMTRUED): Ditto.
1453         (IX86_BUILTIN_PCOMEQQ): Ditto.
1454         (IX86_BUILTIN_PCOMNEQ): Ditto.
1455         (IX86_BUILTIN_PCOMLTQ): Ditto.
1456         (IX86_BUILTIN_PCOMLEQ): Ditto.
1457         (IX86_BUILTIN_PCOMGTQ): Ditto.
1458         (IX86_BUILTIN_PCOMGEQ): Ditto.
1459         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
1460         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
1461         (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
1462         OPTION_MASK_ISA_ROUND for instructions that are shared between
1463         SSE4.1 and SSE5.
1464         (bdesc_2arg): Ditto.
1465         (bdesc_sse_3arg): Ditto.
1466         (enum multi_arg_type): New enum for describing the various SSE5
1467         intrinsic argument types.
1468         (bdesc_multi_arg): New table for SSE5 intrinsics.
1469         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
1470         (ix86_expand_multi_arg_builtin): New function for creating SSE5
1471         intrinsics.
1472         (ix86_expand_builtin): Add SSE5 intrinsic support.
1473         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
1474         operand instructions.
1475         (ix86_expand_sse5_multiple_memory): New function to split the
1476         second memory reference from SSE5 instructions.
1477         (type_has_variadic_args_p): Delete in favor of stdarg_p.
1478         (ix86_return_pops_args): Use stdarg_p to determine if the function
1479         has variable arguments.
1480         (ix86_setup_incoming_varargs): Ditto.
1481         (x86_this_parameter): Ditto.
1482
1483         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
1484         declaration.
1485         (ix86_expand_sse5_pack): Ditto.
1486         (ix86_sse5_valid_op_p): Ditto.
1487         (ix86_expand_sse5_multiple_memory): Ditto.
1488
1489         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
1490         constant for SSE5 support.
1491         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
1492         (UNSPEC_SSE5_TRUEFALSE): Ditto.
1493         (UNSPEC_SSE5_PERMUTE): Ditto.
1494         (UNSPEC_SSE5_ASHIFT): Ditto.
1495         (UNSPEC_SSE5_LSHIFT): Ditto.
1496         (UNSPEC_FRCZ): Ditto.
1497         (UNSPEC_CVTPH2PS): Ditto.
1498         (UNSPEC_CVTPS2PH): Ditto.
1499         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
1500         (PCOM_TRUE): Ditto.
1501         (COM_FALSE_S): Ditto.
1502         (COM_FALSE_P): Ditto.
1503         (COM_TRUE_S): Ditto.
1504         (COM_TRUE_P): Ditto.
1505         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
1506         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
1507         types.
1508         (memory attribute): Ditto.
1509         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
1510         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
1511         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
1512         (floor<mode>2): Ditto.
1513         (ceil<mode>2): Ditto.
1514         (btrunc<mode>2): Ditto.
1515         (nearbyintdf2): Ditto.
1516         (nearbyintsf2): Ditto.
1517         (sse_setccsf): Disable if SSE5.
1518         (sse_setccdf): Ditto.
1519         (sse5_setcc<mode>): New support for SSE5 conditional move.
1520         (sse5_pcmov_<mode>): Ditto.
1521
1522         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
1523         (SSEMODEF4): Ditto.
1524         (SSEMODEF2P): Ditto.
1525         (ssemodesuffixf4): New mode attribute for SSE5.
1526         (ssemodesuffixf2s): Ditto.
1527         (ssemodesuffixf2c): Ditto.
1528         (sserotatemax): Ditto.
1529         (ssescalarmode): Ditto.
1530         (sse_maskcmpv4sf3): Disable if SSE5.
1531         (sse_maskcmpv2df3): Ditto.
1532         (sse_vmmaskcmpv4sf3): Ditto.
1533         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
1534         instructions.
1535         (sse5_vmfmadd<mode>4): Ditto.
1536         (sse5_fmsub<mode>4): Ditto.
1537         (sse5_vmfmsub<mode>4): Ditto.
1538         (sse5_fnmadd<mode>4): Ditto.
1539         (sse5_vmfnmadd<mode>4): Ditto.
1540         (sse5_fnmsub<mode>4): Ditto.
1541         (sse5_vmfnmsub<mode>4): Ditto.
1542         (sse5i_fmadd<mode>4): Ditto.
1543         (sse5i_fmsub<mode>4): Ditto.
1544         (sse5i_fnmadd<mode>4): Ditto.
1545         (sse5i_fnmsub<mode>4): Ditto.
1546         (sse5i_vmfmadd<mode>4): Ditto.
1547         (sse5i_vmfmsub<mode>4): Ditto.
1548         (sse5i_vmfnmadd<mode>4): Ditto.
1549         (sse5i_vmfnmsub<mode>4): Ditto.
1550         (mulv16qi3): Add SSE5 support.
1551         (mulv4si3): Ditto.
1552         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
1553         (sse2_mulv4si3): Disable if SSE5.
1554         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
1555         (sse4_1_roundps): Ditto.
1556         (sse4_1_roundsd): Ditto.
1557         (sse4_1_roundss): Ditto.
1558         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
1559         be generated.
1560         (sse_maskcmpsf3): Ditto.
1561         (sse_vmmaskcmpv4sf3): Ditto.
1562         (sse2_maskcmpv2df3): Ditto.
1563         (sse2_maskcmpdf3): Ditto.
1564         (sse2_vmmaskcmpv2df3): Ditto.
1565         (sse2_eq<mode>3): Ditto.
1566         (sse2_gt<mode>3): Ditto.
1567         (sse5_pcmov_<mode>): Add SSE5 support.
1568         (vec_unpacku_hi_v16qi): Ditto.
1569         (vec_unpacks_hi_v16qi): Ditto.
1570         (vec_unpacku_lo_v16qi): Ditto.
1571         (vec_unpacks_lo_v16qi): Ditto.
1572         (vec_unpacku_hi_v8hi): Ditto.
1573         (vec_unpacks_hi_v8hi): Ditto.
1574         (vec_unpacku_lo_v8hi): Ditto.
1575         (vec_unpacks_lo_v8hi): Ditto.
1576         (vec_unpacku_hi_v4si): Ditto.
1577         (vec_unpacks_hi_v4si): Ditto.
1578         (vec_unpacku_lo_v4si): Ditto.
1579         (vec_unpacks_lo_v4si): Ditto.
1580         (sse5_pmacsww): New SSE5 intrinsic insn.
1581         (sse5_pmacssww): Ditto.
1582         (sse5_pmacsdd): Ditto.
1583         (sse5_pmacssdd): Ditto.
1584         (sse5_pmacssdql): Ditto.
1585         (sse5_pmacssdqh): Ditto.
1586         (sse5_pmacsdqh): Ditto.
1587         (sse5_pmacsswd): Ditto.
1588         (sse5_pmacswd): Ditto.
1589         (sse5_pmadcsswd): Ditto.
1590         (sse5_pmadcswd): Ditto.
1591         (sse5_pcmov_<move>): Conditional move support on SSE5.
1592         (sse5_phaddbw): New SSE5 intrinsic insn.
1593         (sse5_phaddbd): Ditto.
1594         (sse5_phaddbq): Ditto.
1595         (sse5_phaddwd): Ditto.
1596         (sse5_phaddwq): Ditto.
1597         (sse5_phadddq): Ditto.
1598         (sse5_phaddubw): Ditto.
1599         (sse5_phaddubd): Ditto.
1600         (sse5_phaddubq): Ditto.
1601         (sse5_phadduwd): Ditto.
1602         (sse5_phadduwq): Ditto.
1603         (sse5_phaddudq): Ditto.
1604         (sse5_phsubbw): Ditto.
1605         (sse5_phsubwd): Ditto.
1606         (sse5_phsubdq): Ditto.
1607         (sse5_pperm): Ditto.
1608         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
1609         (sse5_pperm_zero_v16qi_v8hi): Ditto.
1610         (sse5_pperm_sign_v8hi_v4si): Ditto.
1611         (sse5_pperm_zero_v8hi_v4si): Ditto.
1612         (sse5_pperm_sign_v4si_v2di): Ditto.
1613         (sse5_pperm_sign_v4si_v2di): Ditto.
1614         (sse5_pperm_pack_v2di_v4si): Ditto.
1615         (sse5_pperm_pack_v4si_v8hi): Ditto.
1616         (sse5_pperm_pack_v8hi_v16qi): Ditto.
1617         (sse5_perm<mode>): New SSE5 intrinsic insn.
1618         (rotl<mode>3): Ditto.
1619         (sse5_rotl<mode>3): Ditto.
1620         (sse5_ashl<mode>3): Ditto.
1621         (sse5_lshl<mode>3): Ditto.
1622         (sse5_frcz<mode>2): Ditto.
1623         (sse5s_frcz<mode>2): Ditto.
1624         (sse5_cvtph2ps): Ditto.
1625         (sse5_cvtps2ph): Ditto.
1626         (sse5_vmmaskcmp<mode>3): Ditto.
1627         (sse5_com_tf<mode>3): Ditto.
1628         (sse5_maskcmp<mode>3): Ditto.
1629         (sse5_maskcmp_uns<mode>3): Ditto.
1630         (sse5_maskcmp_uns2<mode>3): Ditto.
1631         (sse5_pcom_tf<mode>3): Ditto.
1632         
1633         * config/i386/predicates.md (const_0_to_31_operand): New predicate
1634         to match 0..31.
1635         (sse5_comparison_float_operator): New predicate to match the
1636         comparison operators supported by the SSE5 com instruction.
1637         (ix86_comparison_int_operator): New predicate to match just the
1638         signed int comparisons.
1639         (ix86_comparison_uns_operator): New predicate to match just the
1640         unsigned int comparisons.
1641
1642         * doc/invoke.texi (-msse5): Add documentation.
1643         (-mfused-madd): Ditto.
1644
1645         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
1646
1647         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
1648         mmintrin-common.h.
1649         (x86_64-*-*): Ditto.
1650
1651         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
1652
1653         * config/i386/bmmintrin.h: New file, provide common x86 compiler
1654         intrinisics for SSE5.
1655
1656         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
1657         mmintrin-common.h.
1658
1659         * config/i386/mmintrin-common.h: New file, to contain common
1660         instructions between SSE4.1 and SSE5.
1661
1662         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
1663         FOREACH_FUNCTION_ARGS to iterate over the argument list.
1664         (gen_regparm_prefix): Ditto.
1665
1666         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
1667         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
1668         prototype_p to determine if a function is prototyped.
1669
1670 2007-09-12  Janis Johnson  <janis187@us.ibm.com>
1671
1672         * config/dfp-bit.c (dfp_conversion_exception): New function.
1673         (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
1674         (DFP_TO_INT): Ditto.
1675         (INT_TO_DFP): Ditto.
1676         * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
1677
1678 2007-09-12  Jakub Jelinek  <jakub@redhat.com>
1679
1680         PR target/32338
1681         * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
1682         before sp restoration even when total_size is 0, but
1683         frame_pointer_needed.
1684
1685 2007-09-12  Bob Wilson  <bob.wilson@acm.org>
1686
1687         * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
1688         (xtensa_copy_incoming_a7): Use start_sequence instead of
1689         push_to_sequence.  Stash insns in vararg_a7_copy for builtin_saveregs.
1690         (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
1691         of the saveregs sequence.
1692
1693 2007-09-12  Richard Sandiford  <richard@codesourcery.com>
1694
1695         * c-tree.h (grokfield): Add a "tree *" argument.
1696         * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
1697         Chain nested decl attributes to it.  Don't call decl_attributes here.
1698         (groktypename): Pass grokdeclarator a pointer to the attribute list.
1699         (start_decl, grokparm, push_parm_decl, start_function): Likewise.
1700         (grokfield): Take a pointer to the decl's attributes and pass
1701         it to grokdeclarator.
1702         * c-parser.c (c_parser_struct_declaration): Update the calls to
1703         grokfield.  Call decl_attributes for anonymous struct and union
1704         fields.
1705
1706 2007-09-12  Jan Hubicka  <jh@suse.cz>
1707
1708         * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
1709
1710 2007-09-12  Ira Rosen  <irar@il.ibm.com>
1711
1712         PR tree-optimization/32377
1713         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
1714         between positive and negative dependence distance using DDR_REVERSED_P.
1715
1716 2007-09-12  Dorit Nuzman  <dorit@il.ibm.com>
1717
1718         PR tree-optimization/33373
1719         * tree-vect-analyze (vect_determine_vectorization_factor): Call 
1720         TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT. 
1721
1722 2007-09-12  Jan Hubicka  <jh@suse.cz>
1723
1724         PR target/33393
1725         * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
1726         for !SSE_MATH
1727
1728 2007-09-12  Christian Bruel  <christian.bruel@st.com>
1729
1730         * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
1731         * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed. 
1732         
1733 2007-09-12  Ira Rosen  <irar@il.ibm.com>
1734
1735         * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
1736         for oprnd1 if not required.
1737         (vectorizable_operation): Use scalar operand in SLP in case of 
1738         shift with scalar argument.
1739
1740 2007-09-12  Ira Rosen  <irar@il.ibm.com>
1741
1742         * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum 
1743         to 1.
1744
1745 2007-09-11  James E. Wilson  <wilson@specifix.com>
1746
1747         * defaults.h (DWARF2_UNWIND_INFO): Don't define if
1748         TARGET_UNWIND_INFO is defined.
1749         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
1750         after definition.
1751
1752 2007-09-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1753
1754         * config/sh/sh.c (calc_live_regs): Use
1755         current_function_saves_all_registers instead of
1756         current_function_has_nonlocal_label.
1757         (sh_allocate_initial_value): Likewise.
1758         (sh_get_pr_initial_val): Likewise.
1759         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
1760         * config/sh/sh.md (load_ra): Likewise.
1761
1762 2007-09-12  Hans-Peter Nilsson  <hp@axis.com>
1763
1764         * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
1765
1766         PR target/33360
1767         * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
1768         GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
1769
1770 2007-09-12  Sa Liu  <saliu@de.ibm.com>
1771
1772         * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
1773         operands to DFmode GE or LE compares.
1774
1775 2007-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1776
1777         * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
1778         REG_CLASS_NAMES): Add P0REGS.
1779         (REGNO_REG_CLASS): Return it where appropriate.
1780         (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
1781         (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
1782         * doc/md.texi (Blackfin family): Document 'q' constraints.
1783
1784 2007-09-11  Steve Kenton  <skenton@ou.edu>
1785
1786         * pa/linux-unwind.h: Guard with inhibit_libc.
1787         * pa/hpux-unwind.h: Likewise.
1788
1789 2007-09-11  David Daney  <ddaney@avtrex.com>
1790
1791         * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
1792         * doc/install.texi: Document new --with-llsc and --without-llsc
1793         options.
1794         * config.gcc: Handle --with-llsc and --without-llsc configure options.
1795         * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
1796         in %| and %- operand codes.  Depend on GENERATE_SYNC instead of
1797         ISA_HAS_SYNC.
1798         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
1799         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1800         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1801         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1802         sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
1803         GENERATE_LL_SC instead of ISA_HAS_LL_SC.
1804         * config/mips/mips.opt (mllsc): New option.
1805         * config/mips/mips.c (mips_llsc): Define variable.
1806         (mips_handle_option): Handle mllsc option.
1807         (override_options): Set mips_print_operand_punct for '|' and '-'.
1808         (print_operand): Add new %| and %- operand codes.
1809         * config/mips/mips.h (mips_llsc_setting): New enum type.
1810         (mips_llsc): Declare.
1811         (OPTION_DEFAULT_SPECS): Add llsc handling.
1812         (GENERATE_SYNC): New macro.
1813         (GENERATE_LL_SC): New macro.
1814         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
1815         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1816         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
1817         in %| and %- operand codes.
1818
1819 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
1820
1821         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
1822         TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
1823
1824 2007-09-11  Jason Merrill  <jason@redhat.com>
1825
1826         PR middle-end/27945
1827         * stor-layout.c (layout_decl): Do pack variable size fields.    
1828
1829 2007-09-11  Maxim Kuvyrkov  <maxim@codesourcery.com>
1830
1831         * config/m68k/predicates.md (movsi_const0_operand,
1832         non_symbolic_call_operand): New predicates.
1833
1834         * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
1835         New constraints.
1836         * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
1837         Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
1838         CW, CZ, CS, Ap and Ac.
1839
1840         * config/m68k/m68k.md (UNSPEC_IB): New constant.
1841         (constraints.md): New include.
1842         (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
1843         opx_mem, opy_mem, op_mem, guess, split): New attributes.
1844         (movdf_internal): Name pattern.  Fix to use alternatives.  Add split.
1845         Specify attributes.
1846         (pushdi): Add split.
1847         (tstsi_internal): Name pattern.  Fix to use alternatives.  Specify
1848         attributes.  Split tstsi_internal_68020_cf from it.
1849         (tstsi_internal_68020_cf): New pattern.
1850         (tsthi_internal, tstqi_internal): Name pattern.  Specify attributes.
1851         (tst<mode>_cf): Specify attributea.
1852         (cmpsi_cf): Name pattern.  Specify attributes.
1853         (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
1854         (pushexthisi_const): Fix to use alternatives.  Specify
1855         attributes.
1856         (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
1857         from it.  Fix to use alternatives.  Specify attributes.
1858         (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
1859         (movsi_cf, movstrictqi_cf): Fix to use alternatives.  Specify
1860         attributes.
1861         (movsf_cf_soft): Specify attributes.
1862         (movdf_cf_soft): Add split.
1863         (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
1864         cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
1865         68k_extendqisi2, truncdfsf2_cf): Specify attributes.
1866         (truncdfsf2_68881): Name pattern.  Specify attributes.
1867         (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
1868         floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
1869         fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
1870         Specify attributes.
1871         (addsi3_5200): Fix to use alternatives.  Specify attributes.
1872         Add splits.
1873         (add<mode>3_cf, subdi_dishl32): Specify attributes.
1874         (subsi3): Add alternative for subq.l.  Specify attributes.
1875         (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
1876         (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern.  Specify
1877         attributes.
1878         (umulhisi3): Specify attributes.
1879         (mulhisisi3_z): Name pattern.  Specify attributes.
1880         (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
1881         sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
1882         subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
1883         bsetmemqi): Specify attributes.
1884         (bsetmemqi_ext): Name pattern.  Specify attributes.
1885         (bclrmemqi): Specify attributes.
1886         (bclrmemqi_ext, scc, sls): Name pattern.  Specify attributes.
1887         (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
1888         attributes.
1889         (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
1890         pattern.  Specify attributes.
1891         (jump): Specify attributes.
1892         (tablejump_internal): Name pattern.  Specify attributes.
1893         (call_value): Split into non_symbolic_call_value,
1894         symbolic_call_value_jsr, symbolic_call_value_bsr.  Fix to use
1895         alternatives.  Specify attributes.
1896         (non_symbolic_call_value, symbolic_call_value_jsr,
1897         symbolic_call_value_bsr): New patterns.
1898         (nop, return, unlink, indirect_jump): Specify attributes.
1899         (trap): Fix condition.  Specify attributes.
1900         (ib): New pattern.
1901
1902         * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
1903         (override_options): Initialize it.  Initialize m68k_sched_cpu.
1904         (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
1905         (const_method): Make global, rename to m68k_const_method.
1906         (const_int_cost, output_move_const_into_data_reg): Update.
1907         (output_move_double): Parametrize to emit rtl code, rename to
1908         handle_move_double.
1909         (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
1910         emit_movsi): New static functions.
1911         (output_move_double): New function with semantics of old
1912         output_move_double.
1913         (m68k_emit_move_double): New function.
1914         (m68k_sched_cpu): New variable.
1915         (attr_op_type): New enum.
1916         (sched_guess_p): New variable.
1917         (sched_address_type, sched_operand_type, sched_attr_op_type):
1918         New static functions.
1919         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
1920         m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
1921         (sched_branch_type): New static variable.
1922         (m68k_sched_branch_type): New function.
1923         * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
1924         (m68k_symbolic_call_var): Declare.
1925         (M68K_CONST_METHOD): Rename from CONST_METHOD.  Move here from m68k.c.
1926         (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
1927         m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
1928         m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
1929         Declare.
1930
1931 2007-09-11  Jakub Jelinek  <jakub@redhat.com>
1932
1933         * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
1934         * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
1935         error if __builtin_va_arg_pack_len () wasn't optimized out during
1936         inlining.
1937         * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
1938         with the number of inline's anonymous arguments.
1939         * doc/extend.texi: Document __builtin_va_arg_pack_len ().
1940
1941 2007-09-11  Zdenek Dvorak  <ook@ucw.cz>
1942
1943         * fold-const.c (extract_muldiv_1): Do not simplify
1944         var * c * c to var.
1945
1946 2007-09-11  Jan Hubicka <jh@suse.cz>
1947
1948         * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
1949         (TARGET_INTER_UNIT_CONVERSIONS): New.
1950         * i386.md (floatsi expanders): Remove redundant check for SImode
1951         source; offload to memory when asked for.
1952         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
1953         floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
1954         Update conditions;
1955         (floatsisf2_mixed_memory, floatsisf2_sse_memory,
1956         floatsidf2_mixed_memory, floatsidf2_sse_memory
1957         floatdisf2_mixed_memory, floatsisf2_sse_memory,
1958         floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
1959
1960 2007-09-11  Jan Hubicka <jh@suse.cz>
1961
1962         * toplev.c (process_options): all frontends now do unit-at-a-time.
1963         * cgraphunit.c: update comments.
1964         (cgraph_expand_function): call passmanager dirrectly; emit thunks.
1965         * c-decl.c (finish_function): use cgraph_add_new_function.
1966         * function.c (expand_function_end): We are always unit-at-a-time.
1967
1968 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
1969
1970         * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
1971         settings for MIPS16.
1972         (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
1973
1974 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
1975
1976         * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
1977         SYMBOL_FORCE_TO_MEM constants.
1978         (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
1979         (mips16_rewrite_pool_refs_info): New structure.
1980         (mips16_rewrite_pool_constant): New function, split out from...
1981         (mips16_rewrite_pool_refs): ...here.  Take a pointer to a
1982         mips16_rewrite_pool_refs_info structure rather than a pointer
1983         to a constant pool.  Force force_to_mem_operands into memory.
1984         (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
1985         * config/mips/predicates.md (force_to_mem_operand): New predicate.
1986         * config/mips/constraints.md (kf): New constraint.
1987         * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
1988         (*movsi_mips16): Likewise.
1989
1990 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
1991             Nigel Stephens  <nigel@mips.com>
1992             David Ung  <davidu@mips.com>
1993
1994         * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
1995         * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
1996         (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
1997         (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
1998         (mips_zero_extend_cost): New functions.
1999         (mips_rtx_costs): Treat COMPARE constants as having zero cost.
2000         Use the new functions.  Tweak many cost estimates, both here
2001         and in the new subroutines.  Return false when the cost of the
2002         operands has not been calculated.  Check for *clear_upper32.
2003         Check for floating-point multiply-add, reciprocal and rsqrt
2004         patterns.  Handle comparison and rotation codes.
2005
2006 2007-09-11  Danny Smith  <dannysmith@users.sourceforge.net>
2007
2008         * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
2009         override default.
2010         * config/i386/i386.c (get_dllimport_decl): Don't strip
2011         FASTCALL_PREFIX.
2012
2013 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2014
2015         PR c/30013
2016         * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
2017         declarations to top.
2018         (DFP_TO_BFP): Use for either XFmode or TFmode.
2019         (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
2020         of BFP_VIA_TYPE.
2021         * config/dfp-bit.h: Include float.h.
2022         (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
2023         double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
2024         which doesn't mean the same thing.
2025         (BFP_KIND): Use 4 to mean TFmode.
2026         (BFP_FMT): Specify the number of decimal digits based on the
2027         number of mantissa digits.
2028         (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
2029         (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
2030         (STR_TO_BFP): Use strtold for XFmode or TFmode.
2031         (TFtype): Define if TFmode is supported.
2032         * doc/libgcc.texi (Decimal float library routines): Document
2033         TF conversion functions.
2034
2035 2007-09-10  Chao-ying Fu  <fu@mips.com>
2036
2037         * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
2038         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2039         (mips_emit_compare): Process fixed-point modes.
2040         (mips_pad_arg_upward): Support fixed-point types.
2041         (override_options): Allow fixed-point modes in accumulators.
2042         (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
2043         (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
2044         V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
2045         (mips_scalar_mode_supported_p): New function to accept fixed-point
2046         modes if the width is not greater than two BITS_PER_WORD.
2047         * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
2048         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
2049         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
2050         LONG_LONG_ACCUM_TYPE_SIZE): Define.
2051         * config/mips/mips.md ("d"): Update mode attribute for fixed-point
2052         modes.
2053         ("IMODE"): New mode attribute.
2054         (mips-fixed.md): Include.
2055         * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
2056         ACCUM, UACCUM.
2057         * config/mips/mips-fixed.md: New file.
2058
2059 2007-09-11  Ben Elliston  <bje@au.ibm.com>
2060
2061         * config/spu/spu.md: Formatting fixes.
2062
2063 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2064
2065         * config/dfp-bit.c (dfp_unary_func): Delete.
2066         (dfp_unary_op): Delete.
2067         (dfp_binary_op): Use decFloat functions instead of decNumber
2068         functions for binary operations.
2069         (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
2070         (dnn_binary_op): Call dfp_binary_op with decFloat rather than
2071         DFP_C_TYPE.
2072         (dfp_compare_op): Use decFloat functions insteadof decNumber
2073         functions for comparisons.
2074         (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
2075         (dnn_binary_op): Call dfp_compare_op with decFloat rather than
2076         DFP_C_TYPE.
2077         (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
2078         call to dxx_binary_op and decFloat function.
2079         (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
2080         calls to dxx_binary_op and decFloat function.
2081         * config/dfp-bit.h: Include decFloat header files.
2082         (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
2083         DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
2084         DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
2085         DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
2086
2087 2007-09-10  Harsha Jagasia <harsha.jagasia@amd.com>
2088             Jan Sjodin <jan.sjodin@amd.com>
2089
2090         * tree-vect-analyze.c (vect_analyze_operations): Change
2091         comparison of loop iterations with threshold to less than
2092         or equal to instead of less than. Reduce
2093         min_scalar_loop_bound by one.
2094         * tree-vect-transform.c (vect_estimate_min_profitable_iters): 
2095         Change prologue and epilogue iterations estimate to vf/2,
2096         when unknown at compile-time. Change versioning guard
2097         cost to taken_branch_cost. If peeling for alignment is
2098         unknown at compile-time, change peel guard costs to one
2099         taken branch and one not-taken branch per peeled loop.
2100         If peeling for alignment is known but number of scalar loop
2101         iterations is unknown at compile-time, change peel guard
2102         costs to one taken branch per peeled loop. Change the cost
2103         model equation to consider vector iterations as the loop
2104         iterations less the prologue and epilogue iterations.
2105         Change outside vector cost check to less than or equal to
2106         zero instead of equal to zero.
2107         (vect_do_peeling_for_loop_bound): Reduce
2108         min_scalar_loop_bound by one.
2109         * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
2110         TARG_COND_NOT_TAKEN_BRANCH_COST.        
2111         * config/i386/i386.h (processor_costs): Add
2112         scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
2113         vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
2114         vec_align_load_cost, vect_unalign_load_cost,
2115         vec_store_cost, cond_taken_branch_cost,
2116         cond_not_taken_branch_cost.
2117         Define macros for x86 costs.
2118         * config/i386/i386.c:
2119         (size_cost): Set scalar_stmt_cost, scalar_load_cost,
2120         scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
2121         scalar_to_vec_cost, vec_align_load_cost, 
2122         vect_unalign_load_cost, vec_store_cost,
2123         cond_taken_branch_cost, cond_not_taken_branch_cost to one. 
2124         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
2125         geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost, 
2126         core2_cost, generic64_cost, generic32_cost): Set to default
2127         untuned costs.
2128         (k8_cost, amdfam10_cost): Costs for vectorization tuned.
2129         (x86_builtin_vectorization_cost): New.
2130
2131 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
2132             Ben Elliston  <bje@au.ibm.com>
2133
2134         * dfp.c: Include decimal128Local.h; 
2135         (dfp_byte_swap): Remove.
2136         (encode_decimal32, decode_decimal32): Don't handle endianness.
2137         (encode_decimal64, decode_decimal64): Ditto.
2138         (encode_decimal128, decode_decimal128): Ditto.
2139         * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
2140         (__swap64): Remove.
2141         (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
2142         (__swap128): Remove
2143         (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
2144         * Makefile.in (DECNUM_H): Add decimal128Local.h.
2145
2146 2007-09-10  David Daney  <ddaney@avtrex.com>
2147
2148         * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
2149         define_constants.
2150         (memory_barrier): Rewrote as an insn that clobbers memory.
2151
2152 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
2153
2154         * config/mips/mips.c (mips_global_pointer): Check
2155         call_really_used_regs instead of call_used_regs.
2156         (mips_save_reg_p): Likewise.  Save all call-saved registers
2157         if current_function_saves_all_registers.  Fix indentation.
2158         No longer treat $18 as a special case.
2159         (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
2160
2161 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
2162
2163         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
2164         * config/mips/mips.c (mips_cpu_info_table): Mention it in the
2165         the introductory comment.
2166         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
2167         (override_options): Don't test for it.
2168         * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
2169         (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
2170         * config/mips/vr.h: As for config/mips/sde.h.
2171
2172 2007-09-10  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2173             Revital Eres  <eres@il.ibm.com>
2174
2175         * target.h (struct gcc_target.sched): New field: sms_res_mii.
2176         (struct ddg): Define.
2177         * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
2178         (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
2179         * config/spu/spu.c: Include ddg.h.
2180         (TARGET_SCHED_SMS_RES_MII): Define.
2181         (spu_sms_res_mii): New function to calculate mii.
2182         * modulo-sched (res_MII): Use it.
2183         * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
2184
2185 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2186
2187         * config/s390/s390.c (s390_dump_pool): Create copy of constant
2188         pool entries since they might hold values that must not be shared.
2189
2190 2007-09-10  Uros Bizjak  <ubizjak@gmail.com>
2191
2192         PR target/33369
2193         * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
2194         Use 'N' operand constraint for op2.
2195         (lshr<mode>3): Ditto.
2196         (ashl<mode>3): Ditto.
2197         (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
2198         (vec_shr_<mode>): Ditto.
2199         * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
2200         IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
2201
2202 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2203
2204         * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
2205         Change mode macro in the last real_2expN parameter to uppercase.
2206
2207 2007-09-10  Michael Matz  <matz@suse.de>
2208
2209         * tree-pass.h (pass_cselim): Declare new pass.
2210         * passes.c (init_optimization_passes): Link in pass_cselim.
2211         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
2212         tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
2213         cond_store_replacement.
2214         (condstoretemp): New static variable.
2215         (cond_store_replacement): New function.
2216         (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
2217         tree_ssa_phiopt_worker.
2218         (struct name_to_bb): New.
2219         (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
2220         nt_init_block, nt_fini_block): New static functions.
2221         (seen_ssa_names, nontrap_set): New static variables.
2222         (gate_cselim, pass_cselim): Define new pass.
2223         * common.opt (ftree-cselim): New flag.
2224         * toplev.c (process_options): Set flag_tree_cselim if required.
2225
2226 2007-09-10  Hans-Peter Nilsson  <hp@axis.com>
2227
2228         * simplify-rtx.c (simplify_relational_operation_1): For recent
2229         canonicalization, don't recurse if op1 equals both PLUS arguments.
2230
2231 2007-09-09  David Daney  <ddaney@avtrex.com>
2232
2233         * optabs.c (expand_sync_operation):  Use plus insn if minus
2234         CONST_INT_P(val).
2235         (expand_sync_fetch_operation):  Ditto.
2236
2237 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
2238
2239         * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
2240         of cvtpq2ps.
2241         (*floatsisf2_sse_vector): Likewise.
2242
2243 2007-09-09  Krister Walfridsson  <cato@df.lth.se>
2244
2245         * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
2246
2247 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
2248
2249         * config/i386/i386.h (ix86_tune_indices): Rename
2250         X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
2251         (TARGET_USE_VECTOR_CONVERTS): Updated.
2252         * config/i386/i386.c: Likewise.
2253
2254 2007-09-09  Sandra Loosemore  <sandra@codesourcery.com>
2255             Nigel Stephens <nigel@mips.com>
2256
2257         * doc/invoke.texi (Overall Options):  Add .sx file extension
2258         as a synonym for .S.
2259         * cppspec.c (known_suffixes): Likewise.
2260         * gcc.c (default_compilers): Likewise.
2261
2262 2007-09-09  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2263
2264         PR target/30315
2265         * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
2266         * simplify-rtx.c (simplify_relational_operation_1): Add the
2267         canonicalization from i386.h.
2268         * doc/md.texi (Canonicalization of Instructions): Document it.
2269
2270 2007-09-09  Jan Hubicka  <jh@suse.cz>
2271             Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2272
2273         * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
2274         (TARGET_USE_VECTOR_CONVERTS): New.
2275         * i386.md: New post-reload splitters for converting SF to DF and DF to
2276         SF.
2277         (floatsi* expander): Special case vector conversions.
2278         (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
2279         floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
2280         floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
2281         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
2282         Disable when doing vector converts.
2283         (floatsi<mode>2_i387): Disable when
2284         * sse.md (vec_dupv2df): Export.
2285         * i386.c (ix86_tune_features): Enable SSE conversions.
2286
2287 2007-09-09  Richard Guenther  <rguenther@suse.de>
2288
2289         * tree-ssa-operands.c (add_virtual_operand): Only mark
2290         stores as has_volatile_ops if alias information is not available.
2291
2292 2007-09-09  Revital Eres  <eres@il.ibm.com>
2293
2294         * doc/contrib.texi: Add myself.
2295
2296 2007-09-09  Ira Rosen  <irar@il.ibm.com>
2297
2298         * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
2299         stmt_vinfo_set_outside_of_loop_cost): New functions.
2300         * tree-vect-transform.c (vect_get_cost_fields): Remove.
2301         (vect_model_simple_cost): Call
2302         stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
2303         field instead of calling vect_get_cost_fields.
2304         (vect_model_store_cost, vect_model_load_cost): Likewise.
2305
2306 2007-09-09  Revital Eres  <eres@il.ibm.com>
2307
2308         * config/rs6000/rs6000.c (paired_init_builtins): Add const
2309         declaration to bdesc_paired_preds variable.
2310         (paired_expand_builtin): Likewise.
2311
2312 2007-09-09  Revital Eres  <eres@il.ibm.com>
2313
2314         * dbgcnt.def (sms_sched_loop): New counter.
2315         * modulo-sched.c: Use sms_sched_loop instead of
2316         MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
2317         perform swing modulo scheduling on.  Include dbgcnt.h.
2318         * Makefile.in: Add DBGCNT_H to modulo-sched.o.
2319         * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
2320
2321 2007-09-09  Uros Bizjak  <ubizjak@gmail.com>
2322
2323         * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
2324         Substitute all uses with ...
2325         (MODEF): New mode iterator.
2326
2327         (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
2328         from pre-regalloc define_insn_and_split splitter pattern.
2329         (*fix_trunc<mode>_i387_1): Ditto.
2330         (*fistdi2_1): Ditto.
2331         (*fist<mode>2_1): Ditto.
2332         (frndintxf2_floor): Ditto.
2333         (*fist<mode>2_floor_1): Ditto.
2334         (frndintxf2_ceil): Ditto.
2335         (*fist<mode>2_ceil_1): Ditto.
2336         (frndintxf2_trunc): Ditto.
2337         (frndintxf2_mask_pm): Ditto.
2338
2339         (prologue): Use (const_int 0) as never generated filler insn.
2340         (epilogue): Ditto.
2341         (sibcall_epilogue): Ditto.
2342         (eh_return_si): Ditto.
2343         (eh_return_di): Ditto.
2344
2345         (add<mode>3): Rename from adddf3 and addsf3.  Macroize expander
2346         using MODEF mode iterator.
2347         (sub<mode>3): Rename from subdf3 and subsf3.  Macroize expander
2348         using MODEF mode iterator.
2349         (mul<mode>3): Rename from muldf3 and mulsf3.  Macroize expander
2350         using MODEF mode iterator.
2351         (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
2352         Macroize expander using MODEF mode iterator.
2353
2354         (zero_extendsidi2): Remove operand constraints from expander.
2355         (smuldi3_highpart): Ditto.
2356         (indirect_jump): Ditto.
2357         (tablejump): Ditto.
2358         (rsqrtsf2): Ditto.
2359         * config/i386/sse.md (storentv4sf): Ditto.
2360         (storentv2df): Ditto.
2361         (storentv2di): Ditto.
2362         (storentsi): Ditto.
2363         (sse2_cvtpd2ps): Ditto.
2364         (vec_interleave_highv16qi): Ditto.
2365         (vec_interleave_lowv16qi): Ditto.
2366         (vec_interleave_highv8hi): Ditto.
2367         (vec_interleave_lowv8hi): Ditto.
2368         (vec_interleave_highv4si): Ditto.
2369         (vec_interleave_lowv4si): Ditto.
2370         (vec_interleave_highv2di): Ditto.
2371         (vec_interleave_lowv2di): Ditto.
2372         (sse2_maskmovdqu): Ditto.
2373         * config/i386/mmx.md (mmx_maskmovq): Ditto.
2374
2375 2007-09-09  Ira Rosen  <irar@il.ibm.com>
2376
2377         * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
2378         (struct _slp_tree, struct _slp_instance): Define new data structures
2379         along macros for their access.
2380         (struct _loop_vec_info): Define new fields: strided_stores,
2381         slp_instances, and slp_unrolling_factor along macros for their access.
2382         (enum slp_vect_type): New.
2383         (struct _stmt_vec_info): Define new field, slp_type, and macros for
2384         its access.
2385         (STMT_VINFO_STRIDED_ACCESS): New macro.
2386         (vect_free_slp_tree): Declare.
2387         (vectorizable_load): Add an argument of type slp_tree.
2388         (vectorizable_store, vectorizable_operation, vectorizable_conversion,
2389         vectorizable_assignment): Likewise.
2390         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2391         Declare (make extern).
2392         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
2393         (new_loop_vec_info): Likewise.
2394         (destroy_loop_vec_info): Free memory allocated for SLP structures.
2395         * tree-vect-analyze.c: Include recog.h.
2396         (vect_update_slp_costs_according_to_vf): New.
2397         (vect_analyze_operations): Add argument for calls to vectorizable_ ()
2398         functions. For not pure SLP stmts with strided access check that the
2399         group size is power of 2. Update the vectorization factor according to
2400         SLP. Call vect_update_slp_costs_according_to_vf.
2401         (vect_analyze_group_access): New.
2402         (vect_analyze_data_ref_access): Call vect_analyze_group_access.
2403         (vect_free_slp_tree): New functions.
2404         (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
2405         vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
2406         vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
2407         vect_detect_hybrid_slp): Likewise.
2408         (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
2409         and vect_detect_hybrid_slp.
2410         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
2411         SLP costs into account.
2412         (vect_get_cost_fields): New function.
2413         (vect_model_simple_cost): Make extern, add SLP parameter and handle
2414         SLP.
2415         (vect_model_store_cost, vect_model_load_cost): Likewise.
2416         (vect_get_constant_vectors): New function.
2417         (vect_get_slp_vect_defs, vect_get_slp_defs,
2418         vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
2419         vect_get_vec_defs): Likewise.
2420         (vectorizable_reduction): Don't handle SLP for now.
2421         (vectorizable_call): Don't handle SLP for now. Add argument to
2422         vect_model_simple_cost.
2423         (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
2424         get SLPed and vectorized defs). Fix indentation and spacing.
2425         (vectorizable_assignment): Handle SLP.
2426         (vectorizable_induction): Don't handle SLP for now.
2427         (vectorizable_operation): Likewise.
2428         (vectorizable_type_demotion): Add argument to
2429         vect_model_simple_cost.
2430         (vectorizable_type_promotion): Likewise.
2431         (vectorizable_store, vectorizable_load): Handle SLP.
2432         (vectorizable_condition): Don't handle SLP for now.
2433         (vect_transform_stmt): Add a new argument for SLP. Check that there is
2434         no SLP transformation required for unsupported cases. Add SLP
2435         argument for supported cases.
2436         (vect_remove_stores): New function.
2437         (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
2438         (vect_transform_loop): Schedule SLP instances.
2439         * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
2440
2441 2007-09-09  Andrew Haley  <aph@redhat.com>
2442
2443         * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
2444         signed optab.
2445
2446 2007-09-09  Hans-Peter Nilsson  <hp@axis.com>
2447
2448         Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
2449         * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
2450         Similar for what label_refs can go in the JUMP_TARGET field.  Split
2451         REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
2452         * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
2453         REG_LABEL when replacing an operand with a LABEL_REF for a
2454         non-jump insn.
2455         (subst_reloads): When replacing a LABEL_REG with a register,
2456         instead of generating a REG_LABEL note, assert that there already
2457         is one or that the label is a known target for the insn.
2458         * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
2459         note, check the JUMP_LABEL field.  Remove "else" after return.
2460         * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
2461         cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
2462         (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
2463         REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
2464         insns.  Iterate over all notes; don't assume there's only one.
2465         * cse.c (recorded_label_ref): Adjust comment to refer to
2466         REG_LABEL_OPERAND.
2467         (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
2468         insns, not just NONJUMP_INSN_P.
2469         (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
2470         isn't a jump target.
2471         * jump.c (rebuild_jump_labels): Adjust head comment.
2472         (init_label_info): Ditto.  Remove REG_LABEL_OPERAND notes only;
2473         don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
2474         (mark_all_labels): For JUMP_P insns without a target, check if the
2475         the target is noted on the previous nonjump insn.
2476         (mark_jump_label_1): New function, guts from mark_jump_label.
2477         <case IF_THEN_ELSE>: Handle first operand as a non-target when
2478         marking jump target labels.
2479         <case LABEL_REF>: Adjust for whether to generate a
2480         REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
2481         For 'E' format rtl, iterate in descending element order.
2482         (delete_related_insns): Handle both REG_LABEL_TARGET and
2483         REG_LABEL_OPERAND notes.  For JUMP_P insns with labels with zero
2484         reference count, delete and fallthrough.  Move finding-next-
2485         non-deleted insn last in the function.  Look at all INSN_P insns
2486         for REG_LABEL_OPERAND notes.
2487         (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
2488         JUMP.
2489         * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
2490         JUMP_LABEL, output the INSN_UID of it.
2491         * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
2492         and/or REG_LABEL_TARGET.
2493         (add_label_notes): Only add REG_LABEL_OPERAND notes.  Put in line
2494         with jump.c copy by only adding notes for labels actually
2495         referenced in the insn.
2496         * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
2497         usage count increment; handle all INSN_P trial insns.
2498         (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
2499         notes.
2500         * rtl.h (struct rtx_def) <volatil>: Adjust to mention
2501         REG_LABEL_TARGET and REG_LABEL_OPERAND.
2502         (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
2503         REG_LABEL_OPERAND.
2504         * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
2505         JUMP_P insns and REG_LABEL_OPERAND everywhere.
2506         * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
2507         on all INSN_P insns.
2508         * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
2509         * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
2510         REG_LABEL_OPERAND notes.
2511         * reload1.c (calculate_needs_all_insns): Adjust comments.
2512         (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
2513         * config/alpha/alpha.md (split for load of an address into a
2514         four-insn sequence on Unicos/Mk): Adjust to use
2515         REG_LABEL_OPERAND.
2516         * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
2517
2518 2007-09-09  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2519
2520         Revert:
2521         2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2522         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
2523         FOR_BB_INSNS_SAFE instead of for loop.
2524         * cse.c (cse_extended_basic_block): Likewise.
2525         * postreload.c (reload_cse_regs_1): New variable next. Make sure
2526         that the for loop does not invoke NEXT_INSN on a deleted insn.
2527         * function.c (instantiate_virtual_regs): Likewise.
2528         * lower-subreg.c (remove_retval_note): Likewise.
2529         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
2530         FOR_BB_INSNS.
2531         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
2532         a deleted insn.
2533         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
2534         insn, if it's a jump.
2535         (try_redirect_by_replacing_jump): New variable jump_p. Call
2536         tablejump_p before delete_insn_chain.
2537         * reload1.c (reload): New variable next. Make sure that the for
2538         loop does not invoke NEXT_INSN on a deleted insn.
2539         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
2540         (delete_output_reload): New variable prev. Make sure the the for
2541         loops do not invoke PREV_INSN on a deleted insn.
2542
2543 2007-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2544
2545         * pa/constraints.md: Remove 'X' from unused letters comment.
2546
2547 2007-09-08  Richard Guenther  <rguenther@suse.de>
2548
2549         * tree-tailcall.c (find_tail_calls): If we don't have aliases
2550         computed check stmt_ann->references_memory instead of counting
2551         virtual operands.
2552  
2553 2007-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
2554
2555         * cse.c (fold_rtx): Use validate_unshare_change() instead of
2556         validate_change() in one more case.
2557
2558 2007-09-08  Zdenek Dvorak  <ook@ucw.cz>
2559
2560         PR tree-optimization/32283
2561         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
2562         estimated_loop_iterations.
2563         (determine_use_iv_cost_condition): Decrease cost of expressions
2564         used in iv elimination.
2565
2566 2007-09-08  Richard Guenther  <rguenther@suse.de>
2567
2568         * tree-cfg.c (verify_gimple_expr): Avoid building new
2569         pointer types, use TYPE_POINTER_TO if available instead.
2570
2571 2007-09-08  Uros Bizjak  <ubizjak@gmail.com>
2572
2573         PR target/33329
2574         PR rtl-optimization/26449
2575         * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
2576         (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
2577         split1 pass.
2578         (mulv16qi3): Implement as define_insn_and_split pattern instead of
2579         define_expand.  Split insn in split1 pass.
2580         (mulv2di3): Ditto.
2581
2582 2007-09-08  Dorit Nuzman  <dorit@il.ibm.com>
2583
2584         PR tree-optimization/33301
2585         * tree-vect-analyze (analyze_operations): Look at the type of the rhs
2586         when relevant.
2587
2588 2007-09-07  Zdenek Dvorak  <ook@ucw.cz>
2589
2590         PR tree-optimization/32183
2591         * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
2592
2593         * tree-ssa-reassoc.c: Include cfgloop.h.
2594         (is_reassociable_op): Add a loop argument and return true only
2595         for inside loop.
2596         (linearize_expr): Updated.
2597         (should_break_up_subtract): Likewise.
2598         (linearize_expr_tree): Likewise.
2599         (init_reassoc): Call loop_optimizer_init with
2600         AVOID_CFG_MODIFICATIONS.  Remove calculate_dominance_info call
2601         with CDI_DOMINATORS.
2602         (fini_reassoc): Call loop_optimizer_finalize.
2603
2604 2007-09-07  Sterling Augustine  <sterling@tensilica.com>
2605
2606         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
2607         if there is no i-cache.
2608
2609 2007-09-07  Richard Guenther  <rguenther@suse.de>
2610
2611         Reapply
2612         2007-09-06  Richard Guenther  <rguenther@suse.de>
2613
2614         PR tree-optimization/32586
2615         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
2616         folding if nothing changed.
2617         (simplify_unary_expression): New function.  Do tree combining
2618         on conversion like codes.
2619         (try_to_simplify): Call it.
2620
2621 2007-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2622
2623         PR target/33286
2624         * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
2625         (__gthread_active,__gthread_start, __gthread_active_init): New.
2626         * gthr-posix95.h: Likewise.
2627
2628 2007-09-07  Roman Zippel <zippel@linux-m68k.org>
2629
2630         * function.h (struct function): Rename calls_unwind_init
2631         to saves_all_registers.
2632         (current_function_saves_all_registers): Renamed from
2633         current_function_calls_unwind_init.
2634         * reload1.c (reload): Set current_function_saves_all_registers.
2635         * except.c (expand_builtin_unwind_init): Likewise.
2636         * config/m68k/m68k.c (m68k_save_reg): Use
2637         current_function_saves_all_registers to save pic register.
2638
2639 2007-09-07  Janis Johnson  <janis187@us.ibm.com>
2640
2641         config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
2642         config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
2643
2644         Reapply reverted changes:
2645
2646         2007-09-06  Jan Hubicka  <jh@suse.cz>
2647  
2648         * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
2649         of real_2expN.
2650
2651         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
2652
2653         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2654         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
2655
2656         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
2657
2658         * optabs.c (expand_float): Convert unsigned integer as signed only
2659         if it provides sufficient accuracy; add mode argument to real_2expN.
2660         (expand_fix): Fix comment typos; extend binary float into mode
2661         wider than destination for converion to unsigned integer; add mode
2662         argument to real_2expN.
2663         * real.c (real_2expN): Add mode argument to special-case decimal
2664         float values.
2665         * real.h (real_2expN): Ditto.
2666         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
2667         real_2expN.
2668         (fixed_from_string): Ditto.
2669         (fixed_to_decimal): Ditto.
2670         (fixed_convert_from_real): Ditto.
2671         (real_convert_from_fixed): Ditto.
2672         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
2673         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
2674         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
2675         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
2676
2677 2007-09-07  Diego Novillo  <dnovillo@google.com>
2678
2679         * tree-flow.h (const_block_stmt_iterator): Remove.
2680         Update all users to use block_stmt_iterator.
2681         * tree-iterator.h (const_tree_stmt_iterator): Remove.
2682         Update all users to use tree_stmt_iterator.
2683
2684 2007-09-07  Sandra Loosemore  <sandra@codesourcery.com>
2685
2686         * config/mips/mips.c (mips_set_current_function): Temporarily
2687         make this a no-op to fix bootstrap errors, pending rewrite.
2688
2689 2007-09-07  Jan Hubicka  <jh@suse.cz>
2690
2691         * reorg.c (dbr_schedule): Move code removing placeholder USEs later
2692         in the pass.
2693
2694 2007-09-07  Dorit Nuzman  <dorit@il.ibm.com>
2695
2696         PR tree-optimization/33299
2697         * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
2698         uses for all relevant loop-exit phis, not just the first.
2699
2700 2007-09-07  Richard Guenther  <rguenther@suse.de>
2701
2702         PR middle-end/33330
2703         * tree-ssa-operands.c (access_can_touch_variable): An access
2704         of the form (*p)[0] can touch a variable of same size.
2705
2706 2007-09-07  Jan Hubicka  <jh@suse.cz>
2707
2708         * passes.c (init_optimization_passes): Add simple dce and addressable
2709         passes.
2710         * tree-ssa.c (execute_update_addresses_taken): New function.
2711         (pass_update_address_taken): New.
2712         * tree-ssa-dse.c (execute_simple_dse): New function.
2713         (pass_simple_dse): New.
2714         * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
2715
2716 2007-09-07  Tobias Burnus  <burnus@net-b.de>
2717
2718         PR middle-end/33321
2719         * doc/invoke.texi: Fix -Wstrict-overflow= table.
2720
2721 2007-09-07  Richard Guenther  <rguenther@suse.de>
2722
2723         Revert
2724         2007-09-06  Richard Guenther  <rguenther@suse.de>
2725
2726         PR tree-optimization/32586
2727         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
2728         folding if nothing changed.
2729         (simplify_unary_expression): New function.  Do tree combining
2730         on conversion like codes.
2731         (try_to_simplify): Call it.
2732
2733 2007-09-07  Richard Guenther  <rguenther@suse.de>
2734             Uros Bizjak  <ubizjak@gmail.com>
2735
2736         PR tree-optimization/32821
2737         * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
2738         NULL in the call to set_bb_stmt_list.
2739
2740 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
2741
2742         * config/mips/mips.c (build_mips16_call_stub): Emit all direct
2743         float calls here, rather than leaving some to the caller.
2744         Use call_internal_direct and call_value_internal_direct.
2745         * config/mips/mips.md (call_internal_direct): New pattern.
2746         (call_value_internal_direct): Likewise.
2747
2748 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
2749
2750         * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
2751         (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
2752         to 0 for MIPS16.
2753         (override_options): Set mips_base_move_loop_invariants.
2754
2755 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
2756
2757         * config/mips/mips.opt (mcode-readable=): Move to keep list
2758         alphabetical.
2759
2760 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
2761
2762         * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
2763         and -mgpopt options.  Adjust the -G documentation to match.
2764         * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
2765         * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
2766         function, split out from mips_classify_symbol.  Return false for
2767         !TARGET_LOCAL_SDATA.
2768         (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
2769         Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
2770         (override_options): Check whether the -mgpopt setting is consistent
2771         with the other flags.
2772         (symbolic_expression_p): Delete.
2773         (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
2774         and default_elf_select_rtx_section.
2775         (mips_in_small_data_p): Honor section attributes for MIPS16 too.
2776         Return false for local data unless TARGET_LOCAL_SDATA.  Likewise
2777         external data and TARGET_EXTERN_SDATA.
2778
2779 2007-09-07  Tobias Burnus  <burnus@net-b.de>
2780
2781         PR fortran/33303
2782         * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
2783
2784 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2785
2786         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
2787         FOR_BB_INSNS_SAFE instead of for loop.
2788         * cse.c (cse_extended_basic_block): Likewise.
2789         * postreload.c (reload_cse_regs_1): New variable next. Make sure
2790         that the for loop does not invoke NEXT_INSN on a deleted insn.
2791         * function.c (instantiate_virtual_regs): Likewise.
2792         * lower-subreg.c (remove_retval_note): Likewise.
2793         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
2794         FOR_BB_INSNS.
2795         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
2796         a deleted insn.
2797         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
2798         insn, if it's a jump.
2799         (try_redirect_by_replacing_jump): New variable jump_p. Call
2800         tablejump_p before delete_insn_chain.
2801         * reload1.c (reload): New variable next. Make sure that the for
2802         loop does not invoke NEXT_INSN on a deleted insn.
2803         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
2804         (delete_output_reload): New variable prev. Make sure the the for
2805         loops do not invoke PREV_INSN on a deleted insn.
2806
2807 2007-09-06  Zdenek Dvorak  <ook@ucw.cz>
2808
2809         * cgraphbuild.c (rebuild_cgraph_edges): Export.
2810         * cgraph.h (rebuild_cgraph_edges): Declare.
2811         * tree-pass.h (pass_expand_omp_ssa): New.
2812         * omp-low.c (find_omp_clause): Export.
2813         (copy_var_decl): Split from omp_copy_decl_2.
2814         (build_omp_barrier): Return the call to emit instead of emitting
2815         it directly.
2816         (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
2817         build_omp_barrier.
2818         (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
2819         expand_omp_for_generic, expand_omp_for_static_nochunk,
2820         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
2821         Adapted to work on SSA form.
2822         (execute_expand_omp): Do not invalidate dominance information.
2823         (gate_expand_omp): Do not run with -fopenmp-ssa flag.
2824         (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
2825         * gimplify.c (gimplify_omp_for): Ensure that the control variable is
2826         a gimple_reg.
2827         (force_gimple_operand): Allow gimplifying code expressions without
2828         value.
2829         * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
2830         * common.opt (fopenmp-ssa): New.
2831         * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
2832         * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
2833         * tree-cfg.c: Include tree-inline.h.
2834         (struct move_stmt_d): Replace vars_to_remove by vars_map field.
2835         (replace_by_duplicate_decl, replace_ssa_name,
2836         mark_virtual_ops_in_region): New functions.
2837         (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
2838         to work on SSA form.
2839         * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
2840         * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
2841         constructs.
2842
2843 2007-09-06  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2844
2845         * tree-loop-linear.c: Include obstack.h.
2846         (linear_transform_loops): New obstack lambda_obstack.
2847         Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
2848         lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
2849         and free afterwards.
2850         * lambda.h (struct obstack): New forward declaration.
2851         (lambda_linear_expression_new): New parameter of type struct
2852         obstack *.
2853         (lambda_loopnest_new): Likewise.
2854         (lambda_loopnest_transform): Likewise.
2855         (lambda_body_vector_new): Likewise.
2856         (lambda_body_vector_compute_new): Likewise.
2857         (gcc_loopnest_to_lambda_loopnest): Likewise.
2858         (lambda_loopnest_to_gcc_loopnest): Likewise.
2859         * lambda-code.c: Include obstack.h.
2860         (lambda_lattice_new): New parameter lambda_obstack.  Use it for
2861         allocation of ret.
2862         (lambda_body_vector_new): Likewise.
2863         (lambda_linear_expression_new): Likewise.
2864         (lambda_lattice_new): Likewise.
2865         (lambda_loopnest_new): Likewise.  Additionally use obstack to
2866         allocate LN_LOOPS(ret).
2867         (lambda_lattice_compute_base): New parameter lambda_obstack.  Pass
2868         it to lambda_lattice_new.
2869         (lambda_body_vector_compute_new): New parameter lambda_obstack.
2870         Pass it to lambda_body_vector_new.
2871         (lambda_lattice_compute_base): New paramater lambda_obstack.  Pass
2872         it to lambda_lattice_new.
2873         (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
2874         Pass it to lambda_loopnest_new, lambda_linear_expression_new.
2875         (lambda_compute_target_space): Likewise.
2876         (lambda_compute_auxillary_space): New parameter lambda_obstack.
2877         Pass it to lambda_lattice_compute_base and
2878         compute_nest_using_fourieer_motzkin.
2879         (lambda_loopnest_transform): New parameter lambda_obstack.  Pass
2880         it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
2881         and lambda_lattice_compute_target_space.
2882         (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
2883         Pass it to lambda_linear_expression_new.
2884         (gcc_loop_to_lambda_loop): New parameter lambda_obstack.  Pass it
2885         to gcc_tree_to_linear_expression.
2886         (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
2887         Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
2888         (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
2889         Pass it to lambda_body_vector_new and
2890         lambda_body_vector_compute_new.
2891         * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
2892         (lambda-code.o): Likewise.
2893
2894 2007-09-06  Chao-ying Fu  <fu@mips.com>
2895
2896         * ginclude/stdfix.h: New file.
2897         * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
2898         (convert.o): Add dependence on fixed-value.h.
2899         * c-convert.c (convert): Support FIXED_POINT_TYPE.
2900         * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
2901         to define fixed-point constants.
2902         (c_cpp_builtins): Define fixed-point constants.
2903         * convert.c (fixed-value.h): New include.
2904         (convert_to_real): Update comment to include fixed-point.
2905         Support FIXED_POINT_TYPE.
2906         (convert_to_integer): Update comment to include fixed-point.
2907         Support FIXED_POINT_TYPE.
2908         (convert_to_complex): Support FIXED_POINT_TYPE.
2909         (convert_to_fixed): New function.
2910         * convert.h (convert_to_fixed): Declare.
2911         * genopinit.c: Add comment about $Q for only fixed-point modes.
2912         (optabs): Add fract_optab, fractuns_optab, satfract_optab,
2913         satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
2914         sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
2915         ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
2916         usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
2917         usneg_optab for fixed-point modes.
2918         (gen_insn): Add force_fixed to track the $Q format for all fixed-point
2919         modes.
2920         * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
2921         PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
2922         unsigned saturation optabs, when type is saturating.
2923         (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
2924         (expand_fixed_convert): New function.
2925         (gen_fixed_libfunc, gen_signed_fixed_libfunc,
2926         gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
2927         gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
2928         gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
2929         gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
2930         gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
2931         functions.
2932         (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
2933         ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
2934         usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
2935         ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
2936         usneg_optab, fract_optab, fractuns_optab, satfract_optab,
2937         satfractuns_optab.
2938         Initialize fixed-point libraries, including add, ssadd, usadd, sub,
2939         sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
2940         ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
2941         fractuns, satfractuns.
2942         * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
2943         OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
2944         OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
2945         OTI_ssmsub_widen,  OTI_usmsub_widen.
2946         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
2947         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
2948         ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
2949         umsub_widen_optab, usmsub_widen_optab): Define.
2950         (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
2951         COI_satfractuns.
2952         (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
2953         Define.
2954         (expand_fixed_convert): Declare.
2955         * expr.c (convert_move): Support the move of fixed-point modes.
2956         (emit_move_insn_1): Handle fixed-point mode to move via integer.
2957         (categorize_ctor_elements_1): Handle FIXED_CST.
2958         (count_type_elements): Handle FIXED_POINT_TYPE.
2959         (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
2960         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2961         Support FIXED_CST.
2962         For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
2963         multiply and add/subtract for fixed-point types.
2964         For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
2965         mode, we jump to binop directly.
2966         Support FIXED_CONVERT_EXPR.
2967         (do_store_flag): Check FIXED_CST to put a constant second.
2968         (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
2969         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2970         (const_vector_from_tree): Support FIXED_CST.
2971         * doc/extend.texi (Fixed-Point): New node.
2972         * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
2973         ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
2974         satfract, fractuns, satfractuns): Document them.
2975
2976 2007-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2977
2978         * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
2979         addresses into I registers.
2980
2981 2007-09-06  Jan Hubicka  <jh@suse.cz>
2982             Andreas Tobler  <a.tobler@schweiz.org>
2983
2984         * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
2985         sharing.
2986         (machopic_legitimize_pic_address): Likewise.
2987
2988 2007-09-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2989             Jan Hubicka  <jh@suse.cz>
2990
2991         * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
2992         instead of ufloat_optab->handlers directly.
2993         (floatdidf2): Likewise.
2994
2995 2007-09-06  Sandra Loosemore  <sandra@codesourcery.com>
2996
2997         * config/mips/mips.c:  Include diagnostic.h.
2998         (mips_set_current_function): Check errorcount and sorrycount 
2999         before generating RTL.
3000
3001 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3002
3003         PR target/33256
3004         * config/mips/mips.c (mips_classify_symbolic_expression): New function.
3005         (mips_classify_address): Use it instead of mips_symbolic_constant_p.
3006         (print_operand_reloc): Likewise.
3007
3008 2007-09-06  Janis Johnson  <janis187@us.ibm.com>
3009
3010         Revert:
3011
3012         2007-09-06  Jan Hubicka  <jh@suse.cz>
3013  
3014         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
3015         real_2expN.
3016
3017         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3018
3019         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3020         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
3021
3022         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
3023
3024         * optabs.c (expand_float): Convert unsigned integer as signed only
3025         if it provides sufficient accuracy; add mode argument to real_2expN.
3026         (expand_fix): Fix comment typos; extend binary float into mode
3027         wider than destination for converion to unsigned integer; add mode
3028         argument to real_2expN.
3029         * real.c (real_2expN): Add mode argument to special-case decimal
3030         float values.
3031         * real.h (real_2expN): Ditto.
3032         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
3033         real_2expN.
3034         (fixed_from_string): Ditto.
3035         (fixed_to_decimal): Ditto.
3036         (fixed_convert_from_real): Ditto.
3037         (real_convert_from_fixed): Ditto.
3038         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
3039         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
3040         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
3041         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
3042
3043 2007-09-06  Tom Tromey  <tromey@redhat.com>
3044
3045         * tree-cfg.c (remove_bb): Only warn if line is non-zero.
3046         * c-pch.c (c_common_read_pch): Restore current location after
3047         reading PCH file.
3048         * tree.c (expand_location): Update.
3049         (expr_filename): Changed return type.  Unified the two cases.
3050         (expr_lineno): Likewise.
3051         (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
3052         as lvalues.
3053         * toplev.c (line_table): Changed type.
3054         (general_init): Update.
3055         (realloc_for_line_map): New function.
3056         (general_init): Allocate line_table using GC.
3057         * fix-header.c (line_table): Changed type.
3058         (read_scan_file): Update.
3059         (read_scan_file): Update.
3060         * c-ppoutput.c (maybe_print_line): Update.
3061         (print_line): Update.
3062         (cb_line_change): Update.
3063         (cb_define): Update.
3064         (pp_file_change): Update.
3065         * c-opts.c (c_common_init_options): Update.
3066         (finish_options): Update.
3067         (push_command_line_include): Update.
3068         * c-lex.c (cb_line_change): Update.
3069         (cb_def_pragma): Update.
3070         (cb_define): Update.
3071         (cb_undef): Update.
3072         (c_lex_with_flags): Use cpp_get_token_with_location.
3073         * input.h (line_table): Changed type.
3074         (location_from_locus): New macro.
3075         * tree.h (EXPR_FILENAME): No longer an lvalue.
3076         (EXPR_LINENO): Likewise.
3077         (expr_locus, set_expr_locus): Declare separately for
3078         USE_MAPPED_LOCATION.
3079         (expr_filename, expr_lineno): Changed return type.
3080         * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
3081         * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
3082         (expand_gimple_basic_block): Likewise.
3083         * final.c (final_scan_insn): Use expanded_location.
3084
3085 2007-09-06  Richard Guenther  <rguenther@suse.de>
3086
3087         PR tree-optimization/32586
3088         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
3089         folding if nothing changed.
3090         (simplify_unary_expression): New function.  Do tree combining
3091         on conversion like codes.
3092         (try_to_simplify): Call it.
3093         * builtins.c (fold_builtin_cexp): Fold the built expressions.
3094         * fold-const.c (fold_unary): Test result of get_callee_fndecl().
3095
3096 2007-09-06  Jan Hubicka  <jh@suse.cz>
3097
3098         PR target/33318
3099         * cse.c (fold_rtx): Avoid invalid sharing.
3100
3101 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3102
3103         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3104         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
3105
3106 2007-09-06  Revital Eres  <eres@il.ibm.com>
3107
3108         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
3109         Fix offsettable memory reference for 750CL.
3110
3111 2007-09-06  Pat Haugen  <pthaugen@us.ibm.com>
3112
3113         * reload.c (find_reloads_address_1): Try to preserve original
3114         base/index regclass of operands.
3115         * regrename.c (scan_rtx_address): Likewise.
3116         (replace_oldest_value_addr): Likewise.
3117
3118 2007-09-06  Richard Guenther  <rguenther@suse.de>
3119
3120         PR tree-optimization/33302
3121         * domwalk.c (walk_dominator_tree): The exit block is
3122         interesting even if it is not reachable.
3123
3124 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
3125
3126         PR middle-end/33306
3127         * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
3128
3129 2007-09-06  Basile Starynkevitch  <basile@starynkevitch.net>
3130
3131         * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for 
3132         robustness.
3133
3134 2007-09-05  Ian Lance Taylor  <iant@google.com>
3135
3136         * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
3137         when printing.
3138         (dump_generic_node): Likewise.
3139         * print-rtl.c (print_decl_name): Likewise.
3140         * print-tree.c (print_node_brief): Likewise.
3141         (print_node): Likewise.
3142         * Makefile.in (RTL_BASE_H): Add alias.h.
3143         (TREE_H): Likewise.
3144
3145 2007-09-06  Jesper Nilsson  <jesper.nilsson@axis.com>
3146
3147         * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
3148         Defined.
3149         * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
3150         * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
3151
3152 2007-09-06  Jie Zhang  <jie.zhang@analog.com>
3153
3154         * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
3155         (tm_defines): Define UCLIBC_DEFAULT to 1.
3156         (extra_options): Add linux.opt.
3157         * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
3158         (CRT_CALL_STATIC_FUNCTION): Likewise.
3159         (NO_IMPLICIT_EXTERN_C): Likewise.
3160         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
3161         * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
3162         * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
3163         (ENDFILE_SPEC): Don't define.
3164         (LIB_SPEC): Likewise.
3165         (CRT_CALL_STATIC_FUNCTION): Likewise.
3166         (NO_IMPLICIT_EXTERN_C): Likewise.
3167         (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
3168         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
3169
3170 2007-09-06  Jan Hubicka  <jh@suse.cz>
3171
3172         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
3173         real_2expN.
3174
3175 2007-09-06  Jan Hubicka  <jh@suse.cz>
3176
3177         * opts.c (common_handle_option): Enable inlining functions for
3178         -fprofile-generate.
3179
3180 2007-09-06  Jakub Jelinek  <jakub@redhat.com>
3181
3182         * builtin-attrs.def (ATTR_NONNULL_3): New.
3183         (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
3184         ATTR_NOTHROW_NONNULL_##FA.
3185         (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
3186         (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
3187         ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
3188         ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
3189         ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
3190         ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
3191         ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
3192         New.
3193         (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
3194         ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
3195         ATTR_FORMAT_NOTHROW_3_4): Remove.
3196         * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
3197         vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
3198         __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
3199         instead of ATTR_FORMAT_*_*.
3200
3201 2007-09-06  Hans-Peter Nilsson  <hp@axis.com>
3202
3203         * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
3204         parts re-used for REG_FRAME_RELATED_EXPR.
3205
3206 2007-09-05  Janis Johnson  <janis187@us.ibm.com>
3207
3208         * optabs.c (expand_float): Convert unsigned integer as signed only
3209         if it provides sufficient accuracy; add mode argument to real_2expN.
3210         (expand_fix): Fix comment typos; extend binary float into mode
3211         wider than destination for converion to unsigned integer; add mode
3212         argument to real_2expN.
3213         * real.c (real_2expN): Add mode argument to special-case decimal
3214         float values.
3215         * real.h (real_2expN): Ditto.
3216         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
3217         real_2expN.
3218         (fixed_from_string): Ditto.
3219         (fixed_to_decimal): Ditto.
3220         (fixed_convert_from_real): Ditto.
3221         (real_convert_from_fixed): Ditto.
3222         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
3223         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
3224         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
3225         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
3226
3227 2007-09-05  Ian Lance Taylor  <iant@google.com>
3228
3229         * init-regs.c (initialize_uninitialized_regs): Call
3230         emit_insn_before rather than add_insn_before.
3231
3232 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
3233
3234         * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
3235         * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
3236         * tree-inline.h (copy_body_data): Add call_expr field.
3237         * tree-inline.c (expand_call_inline): Initialize call_expr.
3238         (copy_bb): Append anonymous inline fn arguments to arguments
3239         when inlining a CALL_EXPR_VA_ARG_PACK call.
3240         * builtins.c (expand_builtin): Issue an error if
3241         BUILT_IN_VA_ARG_PACK is seen during expand.
3242         (fold_call_expr, fold_builtin_call_array): Don't fold
3243         CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
3244         __builtin_va_arg_pack () call as last argument.
3245         * gimplify.c (gimplify_call_expr): If last argument to a vararg
3246         function is __builtin_va_arg_pack (), decrease number of call
3247         arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
3248         * expr.c (expand_expr_real_1): Issue an error if
3249         CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
3250         * tree-pretty-print.c (dump_generic_node): Handle printing
3251         CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
3252         * doc/extend.texi (__builtin_va_arg_pack): Document.
3253
3254 2007-09-05  Adam Nemet  <anemet@caviumnetworks.com>
3255
3256         PR tree-optimization/21513
3257         * builtins.c (build_builtin_expect_predicate): New function.
3258         (fold_builtin_expect): Add argument for expected value.
3259         Distribute __builtin_expect over short-circuiting operations.
3260         Fold nested builtin_expects.
3261         (fold_builtin_2): Adjust call to fold_builtin_expect.
3262
3263 2007-09-05  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3264
3265         PR web/32965
3266         PR tree-optimization/13756
3267         * doc/invoke.texi (Options That Control Optimization): Document
3268         -ftree-dse.
3269
3270 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
3271
3272         * gcc/config/i386/cpuid.h: New file.
3273         * gcc/config/i386/driver-i386.c: Include cpuid.h.
3274         (describe_cache): Shrink size and line strings to 100 bytes.
3275         (detect_caches_amd): Return "" for unsupported max_ext_level.
3276         Use __cpuid function.
3277         (detect_caches_intel): Return "" for unsupported max_level.
3278         Use __cpuid function.
3279         (host_detect_local_cpu): Change feature flag variables to
3280         unsigned int.  Initialize only extended feature flag variables.
3281         Use __get_cpuid_max to determine max supported cpuid level.
3282         Use __cpuid function to determine supported features.  Fix
3283         calculation of family id.  Remove is_amd and check signature
3284         directly.  Check for Geode signature.  Handle family 4 id.
3285         [PROCESSOR_GENERIC32]: New default for unknown family id.  Move
3286         cpu discovery code to lower part of the function.
3287         [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
3288         for sub-architecture.
3289         [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
3290         [PROCESSOR_K8]: Add k8-sse3 architecture.
3291         [PROCESSOR_NOCONA]: Remove.
3292         [PROCESSOR_GENERIC64]: Ditto.
3293         * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
3294         * gcc/config/i386/crtfastmath.c: Include cpuid.h.  Use __get_cpuid
3295         to check for SSE and FXSAVE support.
3296         * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
3297         Add -minline-all-stringops.
3298         * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
3299         (x86_64-*-*): Ditto.
3300
3301 2007-09-05  Jie Zhang  <jie.zhang@analog.com>
3302
3303         * config/bfin/linux-unwind.h: New file.
3304         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
3305         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
3306
3307 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3308
3309         * Makefile.in (stmt.o): Add alloc-pool.h dependency.
3310         * stmt.c: Include alloc-pool.h.
3311         (struct case_node): Remove GTY marker.
3312         (add_case_node): New parameter case_node_pool.  Use it for
3313         allocation of r.
3314         (expand_case): New allocation pool case_node_pool.  Initialize it,
3315         pass to add_case_node and free it.
3316
3317 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3318             David Ung  <davidu@mips.com>
3319             Nigel Stephens <nigel@mips.com>
3320
3321         Add mips16/nomips16 function attributes and -mflip-mips16 option
3322         for testing mixed-mode compilation.
3323
3324         * config/mips/mips.opt (mflip-mips16): New.
3325
3326         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
3327         (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
3328
3329         * config/mips/mips.c (mips_base_target_flags): New.
3330         (mips_base_mips16): New.
3331         (mips_base_schedule_insns): New.
3332         (mips_base_reorder_blocks_and_partition): New.
3333         (mips_base_align_loops): New.
3334         (mips_base_align_jumps): New.
3335         (mips_base_align_functions): New.
3336         (mips16_flipper): New.
3337         (mips_attribute_table): Add "mips16" and "nomips16" entries.
3338         (TARGET_SET_CURRENT_FUNCTION): Define.
3339         (mips_mips16_type_p, mips_nomips16_type_p): New.
3340         (mips_comp_type_attributes): Check mips16/nomips16 attributes.
3341         (mips_function_ok_for_sibcall): Make it deal with functions with
3342         mips16 attributes.
3343         (mips_init_split_addresses): New, split out from override_options.
3344         (mips_init_relocs): New, split out from override_options.
3345         (was_mips16_p): New.
3346         (mips_set_mips16_mode): New, split out from override_options.
3347         (mips_set_current_function): New.
3348         (override_options): Add sorry for unsupported mips16/pic
3349         combination.  Remove error for mips16/dsp combination.  Save
3350         base option settings.  
3351         (mips_file_start): Move mips16 mode setting output from here....
3352         (mips_output_function_prologue): ....to here.
3353         (mips_output_mi_thunk): Check for mips16 function.
3354         (build_mips16_function_stub): Don't set .mips16 here.
3355         (build_mips16_call_stub): Likewise.
3356         (mips_expand_builtin): Error in mips16 mode.
3357         (mips_use_mips16_mode_p): New.
3358         (mips_encode_section_info): Check for mips16 function, and set
3359         SYMBOL_REF_FLAGS accordingly.
3360
3361         * doc/extend.texi (Function Attributes): Document new
3362         mips16/nomips16 attributes.
3363         * doc/invoke.texi (Option Summary): Add -mflip-mips16.
3364         (MIPS Options): Document -mflip-mips16.
3365
3366 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3367
3368         * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
3369         if we encounter TLS address in MIPS16 mode.
3370         (mips_legitimize_const_move): Check cannot_force_const_mem for
3371         the (const (plus symbol offset)) case; this forces invalid TLS
3372         address in MIPS16 mode to be caught by the above call to sorry.
3373         (override_options): Don't reset targetm.have_tls in MIPS16 mode,
3374         because that now enables emutls, which is not ABI compatible
3375         with native TLS in non-MIPS16 mode.
3376
3377 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3378
3379         Add target hook invoked when cfun changes.
3380
3381         * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
3382         * target.h (struct gcc_target): Add set_current_function.
3383         * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
3384         (TARGET_INITIALIZER): Add initializer for set_current_function.
3385         * tree.h (push_struct_function): New.
3386         * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
3387         * function.h: Here.
3388         (set_cfun): Declare.
3389         * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
3390         * function.c: Here.
3391         (push_function_context_to): Use allocate_struct_function
3392         to create null context, not init_dummy_function_start.  Use set_cfun.
3393         (pop_function_context_from): Use set_cfun.
3394         (in_dummy_function): New.
3395         (invoke_set_current_function_hook): New.
3396         (set_cfun): New.
3397         (push_cfun, pop_cfun): Use set_cfun.
3398         (push_struct_function): New.
3399         (allocate_struct_function): Call invoke_set_current_function_hook
3400         before returning.
3401         (prepare_function_start): Don't set cfun here.  Remove unused
3402         argument; fix all callers.
3403         (init_dummy_function_start): Fiddle with in_dummy_function.  Call
3404         push_struct_function.
3405         (init_function_start): Set cfun here.
3406         (expand_dummy_function_end): Fiddle with in_dummy_function.  Pop cfun.
3407         * omp-low.c (create_omp_child_function): Use push_struct_function
3408         and pop_cfun to save/restore state.
3409         (expand_omp_parallel): Remove unused saved_cfun variable.
3410         * cgraphunit.c (ipa_passes): Use set_cfun.
3411         * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
3412         * dwarf2out.c (dwarf2out_abstract_function): Likewise.
3413         * matrix-reorg.c (transform_allocation_sites): Likewise.
3414         (matrix_reorg): Use set_cfun.
3415         * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
3416         * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
3417         assignment to cfun; use set_cfun for the other.
3418         * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
3419         (dump_function_to_file): Use push_cfun/pop_cfun here.
3420         * c-decl.c (finish_function): Use set_cfun.
3421
3422 2007-09-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3423
3424         * regrename.c (rerename_optimize): Use deferred rescanning and
3425         insert explicit calls to rescan insns when changed.
3426         
3427 2007-09-05  Jan Hubicka  <jh@suse.cz>
3428
3429         * optabs.c (libfunc_entry): Change optab to integer.
3430         (hash_libfunc, convert_optab_libfunc, optab_libfunc,
3431         set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
3432         of pointers for hashing.
3433
3434 2007-09-05  Jan Hubicka  <jh@suse.cz>
3435
3436         * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
3437         verifier.
3438         * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
3439         * see.c (pass_see): Likewise.
3440         * tracer.c (pass_tracer): Likewise.
3441         * postreload-gcse.c (pass_gcse2): Likewise.
3442         * postreload.c (pass_postreload_cse): Likewise.
3443         * mode-switching.c (pass_mode_switching): Likewise.
3444         * modulo-sched.c (pass_sms): Likewise.
3445         * cse.c (cse_insn): Likewise.
3446         * web.c (pass_web): Likweise.
3447         * combine-stack-adj.c (pass_stack_adjustments): Likewise.
3448         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
3449         * loop-init.c (pass_rtl_loop_init): Likewise.
3450         (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
3451         pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
3452         * global.c (pass_global_alloc): Likewise.
3453         * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
3454         pass_if_after_reload): Likewise.
3455         * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
3456         * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
3457         * regmove.c (pass_regmove): Likewise.
3458         * function.c (pass_thread_prologugues_epilogues): Likewise.
3459         * gcse.c (pass_gcse): Likewise.
3460         * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
3461         * lower-subreg.c (pass_lower_subreg2): Likewise.
3462         * bt-load.c (pass_branch_target_load): Likewise.
3463         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
3464         * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
3465         * combine.c (pass_combine): Likewise.
3466         * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
3467         (pass_partition_blocks): Likewise.
3468         * var-tracking.c (pass_variable_track): Likewise.
3469         * reg-stack.c (pass_stack_regs_run): Likewise.
3470         * sched-rgn.c (pass_sched, pass_sched2): Likewise.
3471         * passes.c (pass_postreload): Likewise.
3472         (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
3473         * tree-pass.h (TODO_verify_rtl_sharing): New.
3474         (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3475         TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
3476         TODO_set_props, TODO_df_finish, TODO_df_verify,
3477         TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
3478
3479 2007-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3480
3481         * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
3482         fold_real_zero_addition_p, reorder_operands_p,
3483         div_if_zero_remainder, fold_undefer_overflow_warnings,
3484         int_binop_types_match_p, fold_convert_const_int_from_int,
3485         fold_convert_const_int_from_real,
3486         fold_convert_const_int_from_fixed,
3487         fold_convert_const_real_from_real,
3488         fold_convert_const_real_from_fixed,
3489         fold_convert_const_fixed_from_fixed,
3490         fold_convert_const_fixed_from_int,
3491         fold_convert_const_fixed_from_real, maybe_lvalue_p,
3492         fold_checksum_tree, fold_check_failed, print_fold_checksum,
3493         debug_fold_checksum, multiple_of_p): Constify.
3494         * tree-flow-inline.h (get_lineno): Likewise.
3495         * tree-flow.h (get_lineno): Likewise.
3496         * tree-object-size.c (compute_object_offset, addr_object_size,
3497         alloc_object_size, pass_through_call): Likewise.
3498         * tree-pretty-print.c (op_symbol, print_call_name,
3499         print_struct_decl, do_niy): Likewise.
3500         * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
3501         debug_fold_checksum): Likewise.
3502
3503 2007-09-04  Steven Bosscher  <steven@gcc.gnu.org>
3504
3505         PR middle-end/33029
3506         * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
3507         note, remove the associated REG_RETVAL note.
3508
3509 2007-09-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3510
3511         * config.gcc (powerpc*-*-*): Install
3512         spu2vmx.h, vec_types.h, and si2vmx.h headers.
3513         * config/rs6000/spu2vmx.h: New header.
3514         * config/rs6000/si2vmx.h: New header.
3515         * config/rs6000/vec_types.h: New header.
3516
3517 2007-09-05  Ben Elliston  <bje@au.ibm.com>
3518
3519         * varasm.c (initializer_constant_valid_p): Fix comment typo.
3520
3521 2007-09-05  Ben Elliston  <bje@au.ibm.com>
3522
3523         * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
3524         not `m' for *ptrp.
3525         (__stdcx): Make asm volatile.
3526         (__stwcx, __stdcx): Return only 0 or 1.
3527
3528 2007-09-05  Jan Hubicka  <jh@suse.cz>
3529
3530         Revert:
3531
3532         2007-09-04  Jan Hubicka  <jh@suse.cz>
3533         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
3534
3535         2007-09-04  Richard Guenther  <rguenther@suse.de>
3536         * tree-ssa-operands.c (add_virtual_operand): Only mark
3537         stores as has_volatile_ops if alias information is not available.
3538
3539 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
3540
3541         * config/rs6000/tramp.asm: Include config.h.
3542         Check __PIC__ or __pic__ macro instead of SHARED.
3543
3544         PR rtl-optimization/32300
3545         * see.c (see_copy_insn): New function.
3546         (see_def_extension_not_merged, see_merge_one_use_extension,
3547         see_merge_one_def_extension): Use it.  Avoid changing
3548         PREV_INSN/NEXT_INSN chains directly, insted emit insns
3549         into sequences.  Call df_insn_delete on temporary insns
3550         that won't be emitted into the insn stream.
3551         (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
3552         and run df_process_deferred_rescans () before run_fast_dce.
3553
3554         PR tree-optimization/33017
3555         * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
3556         recurse for pure or const function calls.
3557
3558 2007-09-04  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3559
3560         * c-format.c: Include alloc-pool.h.
3561         (check_format_info_main): New argument fwt_alloc.  Use allocation
3562         pool instead of GC.  Remove GC deallocation code.
3563         (check_format_arg): Create allocation pool, pass it to
3564         check_format_info_main and free it afterwards.
3565         * Makefile.in (c-format.o): Add alloc-pool.h dependency.
3566
3567 2007-09-05  Ben Elliston  <bje@au.ibm.com>
3568
3569         * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
3570         Rename count macro arugment for clarity.
3571         (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
3572         (__protected_stream_set): Likewise, pass 0.
3573
3574 2007-09-04  Jan Hubicka  <jh@suse.cz>
3575
3576         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
3577
3578 2007-09-04  Jan Hubicka  <jh@suse.cz>
3579
3580         * invoke.texi (-finline-small-functions): Document.
3581         * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
3582         when deciding what is inlinable.
3583         (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
3584         (cgraph_decide_inlining_of_small_function): Handle new flags.
3585         (cgraph_decide_inlining_incrementally): Likewise.
3586         * opts.c (decode_options): Enable flag_inline_small_functions at -O2
3587         * common.opt (finline-small-functions): New.
3588         * Makefile.in (build/gengtype.o-warn): Work around PR29478
3589
3590 2007-09-04  Richard Guenther  <rguenther@suse.de>
3591
3592         * tree-ssa-operands.c (add_virtual_operand): Only mark
3593         stores as has_volatile_ops if alias information is not available.
3594
3595 2007-09-04  Andrew Haley  <aph@redhat.com>
3596
3597         * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
3598
3599 2007-09-04  Andrew Haley  <aph@redhat.com>
3600
3601         * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
3602         * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
3603         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
3604
3605 2007-09-04  Emmanuel Thome  <Emmanuel.Thome@inria.fr>
3606
3607         PR c++/14178
3608         * common.opt: Mention ABI version 2 in comment.
3609
3610 2007-09-04  Jan Hubicka  <jh@suse.cz>
3611
3612         * optabs.c (debug_optab_libfunc): Update; make available to gdb.
3613         (libfunc_entry): New structure.
3614         (libfunc_hash): New hashtable.
3615         (hash_libfunc): New function.
3616         (eq_libfunc): New function.
3617         (convert_optab_libfunc): New function.
3618         (optab_libfunc): New function.
3619         (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
3620         expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
3621         expand_float, expand_fix, new_optab, new_convert_optab):
3622          Update for new libfunc API.
3623         (init_libfunc, init_integral_libfuncs,
3624         init_floating_libfuncs, init_interclass_conv_libfuncs
3625         init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
3626         (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
3627         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3628         gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
3629         gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
3630         gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
3631         gen_extend_conv_libfunc): New.
3632         (init_one_libfunc): Revamp for hashtables.
3633         (set_conv_libfunc): Likewise.
3634         (init_optabs): Initialize hashtable; use lazy initialization where
3635         possible.
3636         * optabs.h (optab_handlers): Move out of GGC.
3637         (optab, convert_optab): Move out of GGC; add lazy gen info.
3638         (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
3639         (optab_libfunc, convert_optab_libfunc): New.
3640         * builtins.c (expand_builtin_powi): Update for new API.
3641         * expr.c (convert_move): Likewise.
3642         * expmed.c (expand_divmod): Likewise.
3643
3644 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
3645
3646         * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
3647         GOT pointer only if there is a constant pool.  Use the allocated space
3648         for SPE also.
3649
3650 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
3651
3652         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
3653         typo for AltiVec.
3654
3655 2007-09-04  Revital Eres  <eres@il.ibm.com>
3656             Richard Guenther  <rguenther@suse.de>
3657             R. Clint Whaley  <whaley@cs.utsa.edu>
3658
3659         * doc/invoke.texi (-fassociative-math, -freciprocal-math):
3660         Document new flags.
3661         * tree-tailcall.c (process_assignment): Use -fassociative-math
3662         when reodering operands of floating-point type.
3663         * fold-const.c (fold_comparison, fold_binary): Use
3664         -fassociative-math and -freciprocal-math instead of
3665         -funsafe-math-optimization flag.
3666         * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
3667         * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
3668         -freciprocal-math instead of -funsafe-math-optimizations.
3669         * opts.c (set_fast_math_flags): Set -freciprocal-math and
3670         -fassociative-math when -ffast-math is set.
3671         (set_unsafe_math_optimizations_flags): New Function
3672         to set -freciprocal-math and -fassociative-math when
3673         -funsafe-math-optimizations is set.
3674         (common_handle_option): Call it.
3675         * tree-vectorizer.c (vect_is_simple_reduction): Use
3676         -fassociative-math when doing reduction on floats.
3677         * loop-unroll.c (analyze_insn_to_expand_var): Use
3678         -fassociative-math when expanding an accumulator of type float.
3679         * simplify-rtx.c (simplify_binary_operation_1): Use
3680         -fassociative-math and -freciprocal-math when reordeing operands
3681         of floating-point type.
3682         * combine.c (combine_simplify_rtx): Likewise.
3683         * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
3684         Likewise.
3685         * common.opt (-fassociative-math, -freciprocal-math): New flags.
3686
3687 2007-09-04  Paolo Carlini  <pcarlini@suse.de>
3688
3689         PR c++/18608
3690         * doc/install.texi (--enable-__cxa_atexit): Fix typo.
3691
3692 2007-09-04  Jan Hubicka  <jh@suse.cz>
3693
3694         * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
3695
3696 2007-09-04  Jan Hubicka  <jh@suse.cz>
3697
3698         * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
3699         and corresponding MATCH_DUP.
3700
3701 2007-09-04  Uros Bizjak  <ubizjak@gmail.com>
3702
3703         PR middle-end/33187
3704         * combine.c (subst): Do not try to simplify X if it represents load
3705         of FP constant from the constant pool via float extension.
3706
3707 2007-09-04  Ben Elliston  <bje@au.ibm.com>
3708
3709         * c-opts.c: Include "tm_p.h".
3710         * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
3711
3712 2007-09-04  Richard Guenther  <rguenther@suse.de>
3713
3714         PR tree-optimization/33291
3715         * tree-pretty-print.c (dump_generic_node): Dump all
3716         qualifiers for pointer types, not only first.  Dump
3717         qualifiers for aggregate types as well.
3718         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
3719         use the canonical type for building ARRAY_REFs.
3720         * gimplify.c (canonicalize_addr_expr): Clean up.  The
3721         correct validness check is compatibility of the pointer
3722         types.  Always use the canonical type for building
3723         ARRAY_REFs and ADDR_EXPRs.
3724         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
3725         change that disabled propagation of ADDR_EXPRs into statements
3726         with volatile ops.
3727
3728 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
3729
3730         * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
3731         (umulsi3_highpart): Make into expanders; existing insns are
3732         now named *[insn]_nov6.  Add stars to existing [insn]_v6
3733         counterparts' names.
3734
3735 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
3736
3737         * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
3738         (unprotoize.o): Remove SHLIB_MULTILIB.
3739
3740 2007-09-03  Eric Weddington  <eweddington@cso.atmel.com>
3741
3742         * doc/extend.texi: Document progmem attribute for AVR.
3743
3744 2007-09-03  Anatoly Sokolov <aesok@post.ru>
3745
3746         PR target/28902
3747         * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
3748
3749 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
3750
3751         * optabs.c (expand_ffs): Initialize val and defined_at_zero
3752         to avoid warnings.
3753
3754         * optabs.c: Remove unnecessary forward declarations.
3755         (expand_unop_direct): New, broken out of expand_unop.
3756         (expand_doubleword_clz): New.
3757         (expand_ctz): Move above expand_ffs.  Use
3758         start_sequence, end_sequence, add_equal_note, and
3759         expand_unop_direct.  Add more commentary.
3760         (expand_ffs): Try both ctz optab and expand_ctz.
3761         Generate a test and branch if the hardware doesn't give us
3762         a useful value for input zero.  Style improvements similar to
3763         expand_ctz.
3764
3765         * config/arm/arm.md (ffssi2, ctzsi2): Delete.
3766
3767 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
3768
3769         * config.gcc: Delete stanza for arm-semi-aof and
3770         armel-semi-aof targets.
3771         * config/arm/arm-protos.h
3772         * config/arm/arm.c
3773         * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
3774         make all #ifndef AOF_ASSEMBLER blocks unconditional.  Also
3775         delete aof_pic_label and remove mention of AOF in comments.
3776         * config/arm/arm.md: Delete patterns used only for AOF assembly.
3777         * config/arm/aof.h
3778         * config/arm/semiaof.h
3779         * config/arm/t-semi: Delete file.
3780
3781 2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3782
3783         * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
3784         CONST_CAST_BB): New macros for type-specific casts.
3785         (CONST_CAST): Add a TYPE parameter and define it in terms of
3786         CONST_CAST2.
3787
3788         * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
3789         * c-lex.c (cb_ident, lex_string): Likewise,
3790         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
3791         * config/i386/i386.c (ix86_function_regparm,
3792         ix86_function_sseregparm): Use CONST_CAST_TREE.
3793         * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
3794         CONST_CAST.
3795         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
3796         give_switch, set_multilib_dir): Likewise,
3797         * gengtype-parse.c (string_seq, typedef_name): Likewise,
3798         * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
3799         * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
3800         * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
3801         * prefix.c (update_path): Likewise,
3802         * pretty-print.c (pp_base_destroy_prefix): Likewise,
3803         * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
3804         * tree-cfg.c (tree_can_merge_blocks_p,
3805         tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
3806         * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
3807         * tree.c (build_string): Supply a TYPE for CONST_CAST.
3808         (attribute_list_contained): Use CONST_CAST_TREE.
3809
3810 2007-09-03  Krister Walfridsson  <cato@df.lth.se>
3811
3812         * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
3813
3814 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
3815
3816         PR middle-end/33290
3817         * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
3818         before forcing them into a register.
3819
3820 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
3821
3822         * config/mips/mips.md (fetchop_bit): Use define_code_iterator
3823         rather than define_code_macro.
3824
3825 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3826
3827         * gcc.c (xputenv): New function.
3828         (putenv_from_prefixes): Use xputenv instead of putenv.
3829         (process_command): Use xputenv instead of putenv.
3830         (set_collect_gcc_options): Use xputenv instead of putenv.
3831         (main): Use xputenv instead of putenv.
3832
3833 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
3834
3835         * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
3836         availability of swap instruction.
3837         * config/cris/cris.md (bswapsi2): Implement using swap instruction.
3838
3839 2007-09-03  Revital Eres  <eres@il.ibm.com>
3840
3841         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
3842         Documentation.
3843
3844 2007-09-03  Vladimir Yanovsky  <yanov@il.ibm.com>
3845             Ayal Zaks  <zaks@il.ibm.com>
3846             Revital Eres  <eres@il.ibm.com>
3847
3848         * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
3849         compute_split_row): New functions.
3850         (ps_unschedule_node): Remove.
3851         (normalize_sched_times): Iterate over the already scheduled
3852         insns instead of the number of nodes.
3853         (MAX_SPLIT_NUM): New definition.
3854         (sms_schedule_by_order): Change the scheduling heuristic to
3855         avoid useless increases of initiation interval ii.
3856         (get_sched_window): Add dump printouts.
3857
3858 2007-09-02  David Daney  <ddaney@avtrex.com>
3859
3860         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
3861         UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
3862         (optab, insn): Add more attributes.
3863         (fetchop_bit): New code macro.
3864         (immediate_insn): New code macro attribute.
3865         (sync): Change condition to ISA_HAS_SYNC.
3866         (rdhwr): Change predicate for operand 0 to register_operand.
3867         (memory_barrier): New expand.
3868         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
3869         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3870         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3871         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3872         sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
3873         * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
3874         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
3875         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3876         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
3877         
3878 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
3879             Hans-Peter Nilsson  <hp@axis.com>
3880
3881         * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
3882         Defined to describe availability and behavior of CLZ.
3883         * config/cris/cris.md (clzsi2): Implement using lz instruction.
3884         * config/cris/cris.opt: Tweak comment for "-metrax4".
3885         * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
3886         * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
3887         (count_leading_zeros): Define.
3888
3889 2007-09-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3890
3891         * ggc-page.c (ggc_pch_read): Call validate_free_objects.
3892
3893 2007-09-02  Joseph Myers  <joseph@codesourcery.com>
3894
3895         PR middle-end/33272
3896         * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
3897         decayed from array.
3898
3899 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
3900
3901         * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
3902         config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
3903         ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
3904         sched-deps.c, sched-int.h, system.h, target.h,
3905         tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
3906         tree.def: Fix comment typos.
3907
3908 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
3909
3910         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
3911         (override_options): Turn on -mstrict-align on non-ColdFire
3912         targets.
3913         * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
3914
3915 2007-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3916
3917         * c-common.c (const_strip_array_types): Delete.
3918         * c-common.h (const_strip_array_types): Likewise.
3919         * emit-rtl.c (const_next_insn, const_previous_insn,
3920         const_next_nonnote_insn, const_prev_nonnote_insn,
3921         const_next_real_insn, const_prev_real_insn,
3922         const_next_active_insn, const_prev_active_insn, const_next_label,
3923         const_prev_label): Delete.
3924         * gimple-low.c (block_may_fallthru): Use expr_last.
3925         * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
3926         * rtl.h (const_previous_insn, const_next_insn,
3927         const_prev_nonnote_insn, const_next_nonnote_insn,
3928         const_prev_real_insn, const_next_real_insn,
3929         const_prev_active_insn, const_next_active_insn, const_prev_label,
3930         const_next_label): Delete.
3931         * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
3932         * system.h (CONST_CAST): Update comment.
3933         * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
3934         (const_first_stmt, const_last_stmt): Delete.
3935         (tree_block_ends_with_condjump_p): Use last_stmt.
3936         * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
3937         * tree-iterator.c (const_expr_first, const_expr_last,
3938         const_expr_only): Delete.
3939         * tree.c (const_lookup_attribute): Likewise.
3940         (attribute_list_contained): Use lookup_attribute.
3941         * tree.h (const_lookup_attribute, const_expr_first,
3942         const_expr_last, const_expr_only): Delete.
3943
3944 2007-09-01  Richard Guenther  <rguenther@suse.de>
3945
3946         * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
3947         instead of TREE_THIS_VOLATILE.
3948         * tree-ssa-operands.c (add_virtual_operand): Do not set
3949         has_volatile_ops.  Do not check s_ann for NULL.
3950         (get_indirect_ref_operands): Likewise.
3951         (get_expr_operands): Likewise.  For all reference trees
3952         set has_volatile_ops based on TREE_THIS_VOLATILE.  Also
3953         check base of reference for TREE_THIS_VOLATILE.
3954
3955 2007-09-01  Richard Guenther  <rguenther@suse.de>
3956
3957         * tree-cfg.c (verify_gimple_expr): Fix check for conversions
3958         between integral types.  Also allow conversions between
3959         pointer types.
3960
3961 2007-08-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3962
3963         * optabs.c (prepare_float_lib_cmp): Use
3964         libgcc_cmp_return_mode instead of word_mode.
3965         * config/dfp-bit.h: Likewise.
3966         * config/fp-bit.h: Likewise.
3967         * config/spu/spu.c (spu_libgcc_cmp_return_mode):
3968         New function.
3969         (spu_libgcc_shift_count_mode): New function.
3970         (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
3971         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
3972
3973 2007-08-31  Joseph Myers  <joseph@codesourcery.com>
3974
3975         * tree-pretty-print.c: Include output.h.
3976         (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
3977         HOST_WIDE_INT_PRINT_DEC.
3978         * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
3979
3980 2007-08-31  Zdenek Dvorak  <ook@ucw.cz>
3981
3982         PR rtl-optimization/33224
3983         * loop-iv.c (latch_dominating_def): Check that the definition belongs
3984         to the analysed region.
3985
3986 2007-08-31  Richard Guenther  <rguenther@suse.de>
3987
3988         * function.c (allocate_struct_function): Do not set
3989         current_function_returns_pointer.
3990         * function.h (struct var_refs_queue): Remove.
3991         (struct simple_obstack_stack): Likewise.
3992         (struct function): Remove fixup_var_refs_queue member.
3993         Remove returns_pointer flag.
3994         (current_function_returns_pointer): Remove define.
3995
3996 2007-08-31  Nick Clifton  <nickc@redhat.com>
3997
3998         * tree-ssa-coalesce.c (compare_pairs): Use the elements as
3999         secondary keys in order to obtain a stable sort.
4000
4001 2007-08-31  Nick Clifton  <nickc@redhat.com>
4002
4003         PR target/33132
4004         * config/m32r/constraints.md: Add W constraint for integer zero.
4005         * config/m32r/m32r.md (get_pc): Use W and i constraints.
4006         Fix length calculation by using alternatives.
4007
4008 2007-08-31  Richard Sandiford  <richard@codesourcery.com>
4009
4010         * optabs.c (shift_optab_p, commutative_optab_p): New functions,
4011         split out from expand_binop.
4012         (avoid_expensive_constant): New function.
4013         (expand_binop_directly): Remove commutative_op argument and
4014         (expand_binop_directly): Remove commutative_op argument and
4015         call cummutative_optab_p instead.  Do not change op0 or op1
4016         when swapping xop0 and xop1.  Apply avoid_expensive_constant
4017         to each argument after potential swapping.  Enforce the
4018         canonical order of commutative operands.
4019         (expand_binop): Use shift_optab_p and commutative_optab_p.
4020         Update the calls to expand_binop_directly.  Only force constants
4021         into registers when widening an operation.  Only swap operands
4022         once a direct expansion has been rejected.
4023         (expand_twoval_binop): Only force constants into registers when
4024         using a direct expansion.
4025
4026 2007-08-31  Maxim Kuvyrkov  <maxim@codesourcery.com>
4027
4028         * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
4029         (sched_analyze_insn): Don't postprocess speculative dependencies when
4030         target has no scheduling.
4031         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
4032         'uninitialized' warning.
4033
4034 2007-08-31  Richard Guenther  <rguenther@suse.de>
4035
4036         * tree.c (build_complex_type): Always set TYPE_NAME for
4037         comples types.
4038
4039 2007-08-31  Olivier Hainque  <hainque@adacore.com>
4040
4041         * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
4042         internal macro. Default alignment factor for csect directives, chosen
4043         to match what BIGGEST_ALIGNMENT allows.
4044         (DATA_SECTION_ASM_OP): Use it.
4045         * config/rs6000/rs6000.c
4046         (rs6000_xcoff_output_readonly_section_asm_op):
4047         Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
4048         (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
4049         
4050 2007-08-31  Olivier Hainque  <hainque@adacore.com>
4051
4052         * dbxout.c (dbxout_block): Move declaration within the first
4053         #if defined (DBX_DEBUGGING_INFO) block.  Rearrange another such
4054         block to include the definition, together with the associated
4055         helpers.
4056
4057 2007-08-31  David Edelsohn  <edelsohn@gnu.org>
4058             Revital Eres  <eres@il.ibm.com>
4059
4060         * doc/invoke.texi (-mpaired): Document flag.
4061         * config.gcc: Include paired.h in powerpc extra_headers and
4062         750cl.h in powerpc-*-linux*paired*.
4063         * config/rs6000/rs6000.opt (-mpaired): New flag.
4064         * config/rs6000/rs6000.c (paired_init_builtins,
4065         paired_expand_builtin, paired_expand_lv_builtin,
4066         paired_expand_stv_builtin, paired_expand_predicate_builtin):
4067         New functions to support the paired single builtin functions.
4068         (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
4069         (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
4070         single builtins.
4071         (bdesc_paired_preds): New structure for paired predicate
4072         instructions.
4073         (rs6000_expand_builtin): Expand paired single builtins.
4074         (rs6000_init_builtins): Init paired single builtins.
4075         (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
4076         Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
4077         and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf.  Add new types
4078         v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
4079         (rs6000_vector_mode_supported_p): Support paired vector mode.
4080         * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
4081         PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
4082         New.
4083         (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
4084         (DATA_ALIGNMENT): Likewise.
4085         (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
4086         (rs6000_builtins): Add PAIRED builtins.
4087         * config/rs6000/rs6000.md: Include paired.md.
4088         * config/rs6000/paired.h: New.
4089         * config/rs6000/paired.md: New.
4090         * config/rs6000/750cl.h: New.
4091         * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
4092
4093 2007-08-30  Ollie Wild  <aaw@google.com>
4094
4095         * c-opts.c (c_common_handle_option): Support -fno-directives-only.
4096         * gcc.c (default_compilers): Add -fno-directives-only to
4097         @assembler-with-cpp.
4098
4099 2007-08-30  Sandra Loosemore  <sandra@codesourcery.com>
4100
4101         PR middle-end/33211
4102
4103         * regclass.c (initial_fixed_regs): Revert previous change and make
4104         it const again.
4105         (initial_call_used_regs): Likewise.
4106         (initial_call_really_used_regs): Delete, reverting previous addition.
4107         (initial_reg_names): Likewise.
4108         (init_reg_sets): Revert previous change.
4109         (saved_fixed_regs): New.
4110         (saved_call_used_regs): New.
4111         (saved_call_really_used_regs): New.
4112         (saved_reg_names): New.
4113         (save_register_info): New.
4114         (restore_register_info): New.
4115         (init_reg_sets_1): Replace reset of register info with call to
4116         restore_register_info.
4117         * rtl.h (save_register_info): Declare.
4118         * toplev.c (backend_init): Call save_register_info.
4119
4120 2007-08-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4121
4122         * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
4123         from the original statement.
4124
4125 2007-08-30  Chao-ying Fu  <fu@mips.com>
4126
4127         * c-lex.c (interpret_fixed): Declare.
4128         (interpret_float): Process _Fract and _Accum.
4129         (interpret_fixed): New function.
4130         * final.c (output_addr_const): Process CONST_FIXED.
4131         * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
4132         (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
4133         SS_DIV, US_DIV.
4134         (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
4135         US_DIV, US_ASHIFT.
4136         (simplify_immed_subreg): Support CONST_FIXED.
4137         Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
4138         (simplify_subreg): Support CONST_FIXED.
4139
4140 2007-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4141
4142         * config/rs6000/ppu_intrinsics.h: New file.
4143         * config.gcc (powerpc*-*-* <extra_headers>): Install
4144         ppu_intrinsics.h.
4145
4146 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4147
4148         * cfg.c (dump_flow_info): Change to also print entry and exit
4149         block info.
4150         * print-rtl.c (print_rtl_single): Allow to print rtl with
4151         -fdump-unnumbered.
4152         
4153 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4154
4155         * df-core.h (df_dump_region): New function.
4156         * df.h (df_dump_region): New function.
4157         * loop-invariant.c (find_defs): Add call to df_dump_region.
4158         * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
4159         df_dump_region.
4160         
4161 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
4162
4163         PR target/33168
4164         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
4165         true if any of the compare_section_name calls returned true,
4166         rather than if any returned false.
4167
4168 2007-08-30  Richard Guenther  <rguenther@suse.de>
4169
4170         PR tree-optimization/33199
4171         * tree-ssa-structalias.c (handle_lhs_call): New function.
4172         (find_func_aliases): In non-IPA mode make sure that for
4173         calls that return a pointer we add a constraint for the
4174         result to point to anything.
4175
4176 2007-08-30  Richard Guenther  <rguenther@suse.de>
4177
4178         * doc/invoke.texi (-mveclibabi): Document new target option.
4179         * config/i386/i386.opt (-mveclibabi): New target option.
4180         * config/i386/i386.c (ix86_veclib_handler): Handler for
4181         vectorization library support.
4182         (override_options): Handle the -mveclibabi option, initialize
4183         the vectorization library handler.
4184         (ix86_builtin_vectorized_function): As fallback call the
4185         vectorization library handler, if set.
4186         (ix86_veclibabi_acml): New static function for ACML ABI style
4187         vectorization support.
4188
4189 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
4190
4191         * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
4192         used_m, even if it is 32-bit aligned, adjust used_m MEM to have
4193         SImode and update m.  Don't run gen_lowpart_common on arbitrary
4194         memory address, force it to register first.
4195
4196         PR middle-end/32758
4197         * dce.c (dce_process_block): Don't delete setters of
4198         artificially used registers.
4199
4200 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4201
4202         * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
4203         "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
4204         "*add<mode>3_alc_carry2_cconly"): New insn definitions.
4205
4206 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4207
4208         * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
4209         pattern.
4210         * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
4211         "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
4212
4213 2007-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4214
4215         * system.h: Activate -Wcast-qual as warning-only.
4216
4217 2007-08-29  Paolo Bonzini  <bonzini@gnu.org>
4218
4219         PR target/33168
4220         * config/rs6000/rs6000.c (compare_section_name): New function.
4221         (rs6000_elf_in_small_data_p): Compare section prefixes instead
4222         of full name.
4223
4224 2007-08-29  Olivier Hainque  <hainque@adacore.com>
4225
4226         * xcoffout.c: #include debug.h.
4227         * Makefile.in (xcoffout.o): Add debug.h dependency.
4228
4229 2007-08-29  Uros Bizjak  <ubizjak@gmail.com>
4230
4231         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
4232         Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
4233
4234 2007-08-29  Richard Guenther  <rguenther@suse.de>
4235
4236         * tree-pretty-print.c (dump_generic_node): Print
4237         label DECL_UID as D.%u.
4238         * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
4239
4240 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4241
4242         * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
4243         * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
4244
4245 2007-08-29  Douglas Gregor  <doug.gregor@gmail.com>
4246
4247         PR c++/33194
4248         * tree.c (build_type_attribute_qual_variant): Set canonical types
4249         on the final, unqualified attribute variant before building the
4250         qualified version.
4251
4252 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4253
4254         * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
4255         order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
4256
4257 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4258
4259         Revert
4260         2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4261         * config/bfin/bfin.md (composev2hi): Put operands into vector
4262         with correct order.
4263
4264 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4265
4266         * config/bfin/bfin.md (composev2hi): Put operands into vector
4267         with correct order.
4268
4269 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
4270
4271         * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
4272         attribute when appropriate.
4273         (bfin_handle_l1_text_attribute): New.
4274         (bfin_handle_l1_data_attribute): New.
4275         (bfin_attribute_table): Add attributes: l1_text, l1_data,
4276         l1_data_A and l1_data_B.
4277         * doc/extend.texi (node Function Attributes): Document l1_text
4278         function attribute.
4279         (Variable Attributes): Add Blackfin subsection. Document l1_data,
4280         l1_data_A and l1_data_B variable attributes.
4281
4282 2007-08-28  Jie Zhang  <jie.zhang@analog.com>
4283
4284         * config/bfin/bfin.opt (minline-plt): Add.
4285         * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
4286         call to global functions.
4287         * doc/invoke.texi (Option Summary): Mention -minline-plt.
4288         (Blackfin Options): Document -minline-plt.
4289
4290 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4291
4292         * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
4293         given a non-function.
4294         (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
4295
4296 2007-08-28  DJ Delorie  <dj@redhat.com>
4297
4298         * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
4299
4300 2007-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4301
4302         * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
4303
4304 2007-08-28  Richard Guenther  <rguenther@suse.de>
4305
4306         * tree.h (struct tree_function_decl): Increase size of
4307         function_code bitfield.
4308
4309 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4310             Kazu Hirata  <kazu@codesourcery.com>
4311
4312         * gcc/config/m68k/linux.h
4313         (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
4314         * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
4315         (m68k_return_in_memory): New.
4316         * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
4317         New.
4318
4319 2007-08-28  Uros Bizjak  <ubizjak@gmail.com>
4320
4321         PR target/32661
4322         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
4323         Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
4324         operand) when top VEC_SELECT extracts scalar element.
4325         * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
4326         (*vec_extract_v4sf_mem): Ditto.
4327
4328 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4329
4330         PR middle-end/32370
4331         * passes.c (init_optimization_passes): Move pass_df_finish
4332         after pass_postreload sublist.
4333
4334         PR rtl-optimization/33148
4335         * simplify-rtx.c (simplify_unary_operation_1): Only optimize
4336         (neg (lt X 0)) if X has scalar int mode.
4337
4338         PR debug/32914
4339         * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
4340         initializer, use build_vector_from_ctor if possible to create
4341         VECTOR_CST out of it.  If vector initializer is not VECTOR_CST
4342         even after this, return NULL.
4343
4344 2007-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4345
4346         * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
4347
4348 2007-08-28  Richard Guenther  <rguenther@suse.de>
4349
4350         * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
4351         (struct tree_function_decl): Make function_code a bitfield.
4352         Add disregard_inline_limits flag.
4353         * cgraphunit.c (cgraph_process_new_functions): Check
4354         DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
4355         (cgraph_preserve_function_body_p): Likewise.
4356         * ipa-inline.c (compute_inline_parameters): Likewise.
4357         * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
4358         for GNU C extern inline functions.
4359         (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
4360         * tree-inline.c (disregard_inline_limits_p): Remove.
4361         * tree-inline.h (disregard_inline_limits_p): Likewise.
4362         * c-common.c (handle_always_inline_attribute): Set
4363         DECL_DISREGARD_INLINE_LIMITS.
4364         * langhooks.c (add_builtin_function): Verify the function code
4365         fits in the bitfield.
4366
4367 2007-08-28  Mircea Namolaru  <namolaru@il.ibm.com>
4368             Vladimir Yanovsky  <yanov@il.ibm.com>
4369             Revital Eres  <eres@il.ibm.com>
4370             Andrey Belevantsev  <abel@ispras.ru>
4371
4372         * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
4373         is set.
4374         * modulo-sched.c: Add documentation regarding do-loop.
4375         (doloop_register_get): Change number of arguments to support
4376         the new do-loop pattern and check whether COUNT_REG has no other
4377         occurences in the loop besides in the control part.
4378         (duplicate_insns_of_cycles): Do not duplicate the insn which
4379         changes count_reg as it is already adjusted.
4380         (generate_prolog_epilog): New argument to support the new
4381         do-loop pattern.  Change the subtract instruction to use
4382         expand_simple_binop.  Call duplicate_insns_of_cycles with new
4383         argument.
4384         (sms_schedule): Call doloop_register_get and
4385         generate_prolog_epilog with new argument.  Do not handle loops
4386         with single sets insns with subreg in their lhs.
4387         * loop-doloop.c (doloop_optimize): Support for another do-loop
4388         pattern.
4389         (doloop_condition_get): Gets an instruction instead of a pattern
4390         and change the return condition when the do-loop pattern is
4391         not parallel.
4392         * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
4393         deps when considering to not create edges.
4394
4395 2007-08-27  Alexandre Oliva  <aoliva@redhat.com>
4396
4397         * doc/extend.texi (gnu_inline funtion attribute): Document C++
4398         behavior.
4399
4400 2007-08-27  Jason Merrill  <jason@redhat.com>
4401
4402         PR c++/31337
4403         * gimplify.c (gimplify_modify_expr): Discard the assignment of 
4404         zero-sized types after calling gimplify_modify_expr_rhs.
4405
4406 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4407
4408         * regclass.c (init_reg_autoinc): Fix typo.
4409
4410 2007-08-27  Daniel Berlin  <dberlin@dberlin.org>
4411         
4412         Fix PR tree-optimization/33173
4413         * tree-ssa-alias.c (find_used_portions): Fix reversed test.
4414
4415 2007-08-27  H.J. Lu  <hongjiu.lu@intel.com>
4416
4417         PR target/31385
4418         * config/i386/i386.h (VALID_DFP_MODE_P): New.
4419         * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
4420         GPR.
4421
4422 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
4423             David Ung  <davidu@mips.com>
4424             Nigel Stephens <nigel@mips.com>
4425
4426         Separate target-specific initialization from general
4427         back-end initialization.
4428
4429         * toplev.c (init_alignments): New, split out from...
4430         (process_options): ...here.
4431         (backend_init_target): New, split out from...
4432         (backend_init): ...here.
4433         (lang_dependent_init_target): New, split out from...
4434         (lang_dependent_init): ...here.
4435         (target_reinit): New.
4436         * toplev.h (target_reinit): Declare.
4437         * expr.c (init_expr_target): Renamed from init_expr_once, since it
4438         now can be called more than once.  Update comments.
4439         * expr.h (init_expr_target): Likewise.
4440         * alias.c (init_alias_target): Renamed from init_alias_once, since it
4441         now can be called more than once.  Explicitly zero
4442         static_reg_base_value.
4443         * emit-rtl.c (init_emit_regs): New, split out from...
4444         (init_emit_once): Here.
4445         * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
4446         non-const, so that changes from command-line arguments can overwrite
4447         values provided by the static initializers.
4448         (initial_call_really_used_regs): New, used similarly to the above.
4449         (initial_reg_names): Likewise.
4450         (last_mode_for_init_move_cost): Promoted function-local static to
4451         file-scope static to make it accessible outside init_move_cost.
4452         (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
4453         Do not initialize inv_reg_alloc_order yet, either.  Do initialize
4454         reg_names since it is needed for parsing command-line options.
4455         (init_move_cost): Use last_mode_for_init_move_cost instead of
4456         function-local static.
4457         (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
4458         call_really_used_regs now.  Reinitialize reg_names.  Also
4459         initialize inv_reg_alloc_order.  Zero reg_class_subunion and
4460         reg_class_superunion.  Clear losing_caller_save_reg_set.
4461         Preserve global registers if called more than once.  Reset
4462         move cost, may_move_in_cost, may_move_out_cost, and
4463         last_mode_for_init_move_cost.
4464         (init_reg_modes_target): Renamed from init_reg_modes_once, since it
4465         can now be invoked more than once.  Update comments.
4466         (init_regs): Update comments.
4467         (fix_register): Update initial_fixed_regs, initial_call_used_regs,
4468         and initial_call_really_used_regs, instead of the non-initial 
4469         variables.  This allows us to save the command-line register settings
4470         after target reinitialization.
4471         (init_reg_autoinc): Zero forbidden_inc_dec_classes.
4472         * rtl.h (init_emit_regs): Declare.
4473         (init_reg_modes_target, init_alias_target): Renamed as described
4474         above.
4475         * reload1.c (init_reload): Update comments.
4476         * optabs.c (init_optabs): Likewise.
4477         * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
4478         
4479 2007-08-26  Chao-ying Fu  <fu@mips.com>
4480
4481         * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
4482         __typeof().
4483
4484 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4485
4486         * alias.c (memory_modified_1, memory_modified_in_insn_p):
4487         Constify.
4488         * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
4489         Likewise.
4490         * bb-reorder.c (copy_bb_p): Likewise.
4491         * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
4492         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
4493         block_ends_with_condjump_p): Likewise.
4494         * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
4495         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
4496         block_ends_with_condjump_p): Likewise.
4497         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
4498         * cfgrtl.c (can_delete_note_p, can_delete_label_p,
4499         rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
4500         rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
4501         need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
4502         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
4503         debug_true_const_tree instad of debug_true_tree.
4504         * debug.c (do_nothing_debug_hooks): Likewise.
4505         * debug.h (ignore_block, debug_true_const_tree): Constify.
4506         * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
4507         dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
4508         decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
4509         same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
4510         dbx_reg_number, is_based_loc, field_type,
4511         simple_type_align_in_bits, simple_decl_align_in_bits,
4512         simple_type_size_in_bits, field_byte_offset, insert_float,
4513         type_tag, member_declared_type, is_redundant_typedef,
4514         secname_for_decl, is_inlined_entry_point): Likewise.
4515         * emit-rtl.c (const_next_insn, const_previous_insn,
4516         const_next_nonnote_insn, const_prev_nonnote_insn,
4517         const_next_real_insn, const_prev_real_insn,
4518         const_next_active_insn, const_prev_active_insn, const_next_label,
4519         const_prev_label): Likewise.
4520         * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
4521         Likewise.
4522         * haifa-sched.c (may_trap_exp, haifa_classify_insn,
4523         find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
4524         sched_insn_is_legitimate_for_speculation_p): Likewise.
4525         * jump.c (reversed_comparison_code_parts,
4526         reversed_comparison_code, reversed_comparison, condjump_label):
4527         Likewise.
4528         * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
4529         * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
4530         Likewise.
4531         * rtl.h (const_previous_insn, const_next_insn,
4532         const_prev_nonnote_insn, const_next_nonnote_insn,
4533         const_prev_real_insn, const_next_real_insn,
4534         const_prev_active_insn, const_next_active_insn, const_prev_label,
4535         const_next_label, modified_between_p, modified_in_p,
4536         const_note_storeskeep_with_call_p, condjump_label,
4537         reversed_comparison, reversed_comparison_code,
4538         reversed_comparison_code_parts, memory_modified_in_insn_p,
4539         stack_regs_mentioned): Likewise.
4540         * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
4541         keep_with_call_p): Likewise.
4542         * sched-deps.c (deps_may_trap_p, sched_get_condition,
4543         conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
4544         sd_lists_size, sd_lists_empty_p): Likewise.
4545         * sched-int.h (sched_insns_conditions_mutex_p,
4546         haifa_classify_insn, no_real_insns_p,
4547         sched_insn_is_legitimate_for_speculation_p, sd_next_list,
4548         sd_lists_size, sd_lists_empty_p): Likewise.
4549         * sdbout.c (sdb_debug_hooks): Likewise.
4550         * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
4551         stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
4552         -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
4553         Likewise.
4554         * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
4555         tree_can_throw_internal): Likewise.
4556         * tree-flow-inline.h (phi_nodes): Likewise.
4557         * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
4558         tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
4559         * tree-gimple.c (const_get_call_expr_in): Likewise.
4560         * tree-gimple.h (const_get_call_expr_in): Likewise.
4561         * tree.c (const_lookup_attribute, attribute_list_equal,
4562         attribute_list_contained): Likewise.
4563         * tree.h (attribute_list_equal, attribute_list_contained,
4564         const_lookup_attribute): Likewise.
4565         * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
4566
4567 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
4568
4569         * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
4570         tree-ssa-pre.c: Remove unnecessary trailing whitespace.
4571
4572 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4573
4574         PR target/32991
4575         * config/alpha/constraints.md: Delete "svn:mime-type" property
4576         with svn propdel "svn:mime-type".
4577
4578 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4579
4580         PR middle-end/33181
4581         * ifcvt.c (noce_get_alt_condition): Make sure that the previous
4582         non NOTE insn doesn't cross basic block.
4583         (noce_try_abs): Likewise.
4584         (noce_process_if_block): Likewise.
4585
4586 2007-08-26  David Edelsohn  <edelsohn@gnu.org>
4587
4588         PR target/33151
4589         * config/rs6000/predicates.md (offsettable_mem_operand): Memory
4590         operand without auto-inc-dec.
4591         * config/rs6000/rs6000.md (floatsidf2_internal): Use
4592         offsettable_mem_operand.
4593         (floatunssidf2_internal): Same.
4594         (fix_truncdfsi2_internal): Same.
4595         (floatsidf_ppc64): Same.
4596         (floatunssidf_ppc64): Same.
4597         (fix_trunctfsi2_internal): Same.
4598
4599 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
4600
4601         PR bootstrap/30620
4602         * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
4603         pass defines needed for version.c.
4604
4605 2007-08-25  Joseph Myers  <joseph@codesourcery.com>
4606
4607         * configure.ac (--debug-prefix-map check): Change assembler
4608         version presumed to have feature to 2.18.
4609         * configure: Regenerate.
4610
4611 2007-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4612
4613         * c-common.c (vector_types_convertible_p,
4614         decl_with_nonnull_addr_p, c_promoting_integer_type_p,
4615         self_promoting_args_p): Constify.
4616         * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
4617         c_promoting_integer_type_p, self_promoting_args_p,
4618         anon_aggr_type_p, vector_types_convertible_p): Likewise.
4619         * c-decl.c (anon_aggr_type_p): Likewise.
4620         * * c-dump.c (dump_stmt): Likewise.
4621         * c-objc-common.c (has_c_linkage): Likewise.
4622         * c-tree.h (same_translation_unit_p): Likewise.
4623         * c-typeck.c (null_pointer_constant_p,
4624         tagged_types_tu_compatible_p, function_types_compatible_p,
4625         type_lists_compatible_p, lvalue_or_else, lvalue_p,
4626         comptypes_internal, struct tagged_tu_seen_cache,
4627         same_translation_unit_p, alloc_tagged_tu_seen_cache,
4628         c_size_in_bytes): Likewise.
4629         * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
4630         hash_ptr, eq_ptr): Likewise.
4631         * langhooks-def.h (lhd_decl_ok_for_sibcall,
4632         LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
4633         * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
4634         * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
4635         Likewise.
4636         * optabs.c (optab_for_tree_code): Likewise.
4637         * optabs.h (optab_for_tree_code): Likewise.
4638         * rtl.h (simplify_rtx): Likewise.
4639         * simplify-rtx.c (simplify_rtx): Likewise.
4640         * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
4641         dump_flag, dump_node): Likewise.
4642         * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
4643         queue_and_dump_type, dump_flag): Likewise.
4644         * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
4645         * tree-pass.h (dump_node): Likewise.
4646         * tree-vectorizer.c (vect_can_force_dr_alignment_p,
4647         supportable_narrowing_operation): Likewise.
4648         * tree-vectorizer.h (vect_can_force_dr_alignment_p,
4649         supportable_narrowing_operation): Likewise.
4650         * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
4651         is_negative_overflow_infinity, is_positive_overflow_infinity,
4652         is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
4653         nonnull_arg_p, get_value_range, vrp_operand_equal_p,
4654         update_value_range, add_equivalence, ssa_name_nonnegative_p,
4655         ssa_name_nonzero_p, fp_predicate): Likewise.
4656         * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
4657         * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
4658         ssa_name_nonnegative_p): Likewise.
4659
4660 2007-08-25  Hans Kester  <hans.kester@ellips.nl>
4661
4662         * config.gcc : Add x86_64-elf target.
4663
4664 2007-08-25  Jakub Jelinek  <jakub@redhat.com>
4665
4666         * expr.c (store_expr): Fix order of store_by_pieces arguments.
4667
4668 2007-08-24  Sandra Loosemore  <sandra@codesourcery.com>
4669             Nigel Stephens <nigel@mips.com>
4670
4671         PR target/11787
4672
4673         * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
4674         (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
4675         * expr.c (SET_BY_PIECES_P): Define.
4676         (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
4677         it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
4678         (store_expr): Pass MEMSETP argument to can_store_by_pieces and
4679         store_by_pieces.
4680         * expr.h (SET_RATIO): Define.
4681         (can_store_by_pieces, store_by_pieces): Update prototypes.
4682         * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
4683         can_store_by_pieces/store_by_pieces.
4684         (expand_builtin_memcpy_args): Likewise.
4685         (expand_builtin_strncpy): Likewise.
4686         (expand_builtin_memset_args): Likewise.  Also remove special case
4687         for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
4688         decide what to do instead.
4689         * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
4690         to can_store_by_pieces.
4691
4692         * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
4693         * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
4694
4695         * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
4696         * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
4697         * config/mips/mips.h (MIPS_CALL_RATIO): Define.
4698         (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
4699         (STORE_BY_PIECES_P): Define.
4700
4701 2007-08-24  Tom Tromey  <tromey@redhat.com>
4702
4703         * varpool.c (varpool_last_needed_node): Fix comment typo.
4704         * c-decl.c (duplicate_decls): Fix comment typo.
4705         (clone_underlying_type): Update comment.
4706
4707 2007-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4708
4709         * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
4710         alpha_in_small_data_p, alpha_split_complex_arg,
4711         alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
4712         Constify.
4713         * config/arm/arm-protos.h (arm_mangle_type): Likewise.
4714         * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
4715         Likewise.
4716         * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
4717         TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4718         * config/darwin-protos.h (darwin_binds_local_p): Likewise.
4719         * config/darwin.c (darwin_binds_local_p): Likewise.
4720         * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
4721         Likewise.
4722         * config/i386/i386-protos.h (i386_pe_binds_local_p,
4723         i386_pe_valid_dllimport_attribute_p): Likewise.
4724         * config/i386/i386.c (ix86_function_regparm,
4725         ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
4726         x86_can_output_mi_thunk, ix86_mangle_type,
4727         TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
4728         * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
4729         i386_pe_binds_local_p): Likewise.
4730         * config/ia64/ia64.c
4731         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
4732         ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
4733         ia64_invalid_conversion, ia64_invalid_unary_op,
4734         ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
4735         Likewise.
4736         * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
4737         * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
4738         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4739         * config/mips/mips.c (mips_use_blocks_for_constant_p,
4740         mips_in_small_data_p, mips_use_anchors_for_symbol_p,
4741         mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
4742         mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
4743         mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
4744         * config/pa/pa.c (pa_commutative_p): Likewise.
4745         * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
4746         Likewise.
4747         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
4748         rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
4749         rs6000_use_blocks_for_constant_p,
4750         rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
4751         invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
4752         TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
4753         * config/s390/s390.c (s390_mangle_type,
4754         TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
4755         Likewise.
4756         * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
4757         th_in_small_data_p): Likewise.
4758         * config/sh/sh.c (sh_ms_bitfield_layout_p,
4759         sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
4760         Likewise.
4761         * config/sparc/sparc.c (sparc_can_output_mi_thunk,
4762         sparc_mangle_type): Likewise.
4763         * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
4764         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
4765         * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
4766         Likewise.
4767         * hooks.c (hook_bool_mode_const_rtx_false,
4768         hook_bool_mode_const_rtx_true,
4769         hook_bool_const_tree_hwi_hwi_const_tree_false,
4770         hook_bool_const_tree_hwi_hwi_const_tree_true,
4771         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
4772         hook_constcharptr_const_tree_null,
4773         hook_constcharptr_const_rtx_null,
4774         hook_constcharptr_const_tree_const_tree_null,
4775         hook_constcharptr_int_const_tree_null,
4776         hook_constcharptr_int_const_tree_const_tree_null): New.
4777         (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
4778         hook_bool_tree_hwi_hwi_tree_false,
4779         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
4780         hook_int_tree_tree_1, hook_constcharptr_tree_null,
4781         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
4782         hook_constcharptr_int_tree_null,
4783         hook_constcharptr_int_tree_tree_null): Delete.
4784         (default_can_output_mi_thunk_no_vcall): Constify.
4785         * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
4786         hook_bool_tree_hwi_hwi_tree_false,
4787         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
4788         hook_int_tree_tree_1, hook_constcharptr_tree_null,
4789         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
4790         hook_constcharptr_int_tree_null,
4791         hook_constcharptr_int_tree_tree_null): Delete.
4792         (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
4793         hook_bool_const_tree_hwi_hwi_const_tree_false,
4794         hook_bool_const_tree_hwi_hwi_const_tree_true,
4795         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
4796         hook_constcharptr_const_tree_null,
4797         hook_constcharptr_const_rtx_null,
4798         hook_constcharptr_const_tree_const_tree_null,
4799         hook_constcharptr_int_const_tree_null,
4800         hook_constcharptr_int_const_tree_const_tree_null): New.
4801         (default_can_output_mi_thunk_no_vcall): Constify.
4802         * integrate.c (function_attribute_inlinable_p): Likewise.
4803         * integrate.h (function_attribute_inlinable_p): Likewise.
4804         * jump.c (rtx_renumbered_equal_p): Likewise.
4805         * output.h (decl_readonly_section, categorize_decl_for_section,
4806         default_use_anchors_for_symbol_p, default_binds_local_p,
4807         default_binds_local_p_1): Likewise.
4808         * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
4809         Likewise.
4810         * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
4811         TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
4812         TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
4813         TARGET_COMP_TYPE_ATTRIBUTES,
4814         TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
4815         TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
4816         TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
4817         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
4818         TARGET_DWARF_CALLING_CONVENTION): Likewise.
4819         * target.h (can_output_mi_thunk, needs_block_p,
4820         first_cycle_multipass_dfa_lookahead_guard_spec,
4821         vector_alignment_reachable, comp_type_attributes,
4822         function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
4823         commutative_p, use_blocks_for_constant_p,
4824         use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
4825         vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
4826         invalid_within_doloop, valid_dllimport_attribute_p,
4827         split_complex_arg, invalid_arg_for_unprototyped_fn,
4828         invalid_conversion, invalid_unary_op, invalid_binary_op):
4829         Likewise.
4830         * targhooks.c (default_invalid_within_doloop,
4831         hook_invalid_arg_for_unprototyped_fn,
4832         default_builtin_vector_alignment_reachable): Likewise.
4833         (hook_bool_rtx_commutative_p): Delete.
4834         (hook_bool_const_rtx_commutative_p): New.
4835         * targhooks.h (default_invalid_within_doloop,
4836         default_builtin_vector_alignment_reachable,
4837         hook_invalid_arg_for_unprototyped_fn): Constify.
4838         (hook_bool_rtx_commutative_p): Delete.
4839         (hook_bool_const_rtx_commutative_p): New.
4840         * varasm.c (bss_initializer_p, decl_default_tls_model,
4841         categorize_decl_for_section, decl_readonly_section,
4842         default_use_anchors_for_symbol_p, default_binds_local_p,
4843         default_binds_local_p_1): Constify.
4844
4845 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
4846
4847         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4848         __NO_BUILTIN if -fno-builtin.
4849
4850 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
4851
4852         * config/bfin/bfin.c (print_operand): Report error instead of
4853         ICE for wrong operand.
4854
4855 2007-08-24  Michael Matz  <matz@suse.de>
4856
4857         * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
4858
4859 2007-08-24  Richard Guenther  <rguenther@suse.de>
4860
4861         PR middle-end/33166
4862         * tree-ssa.c (useless_type_conversion_p): Split into a
4863         recursive and a non-recursive part.
4864         (useless_type_conversion_p_1): New function.
4865         * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
4866         from maybe_fold_offset_to_reference is trivially convertible
4867         to the desired type before doing the simplification.
4868
4869 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
4870
4871         * expr.c (store_expr): Optimize initialization of an array
4872         with STRING_CST.
4873         * expr.h (builtin_strncpy_read_str): New prototype.
4874         * builtins.c (builtin_strncpy_read_str): Remove prototype.
4875         No longer static.
4876
4877 2007-08-24  Uros Bizjak  <ubizjak@gmail.com>
4878
4879         PR middle-end/33157
4880         * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
4881         field when initializing if_info structure.
4882
4883 2007-08-24  Richard Guenther  <rguenther@suse.de>
4884
4885         * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
4886         dependencies.
4887         * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
4888         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
4889         * tree-inline.c (inlinable_function_p): Fold in common parts of
4890         the cannot_inline_tree_fn langhook.
4891         * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
4892         (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
4893         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
4894         cannot_inline_tree_fn langhook.
4895         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
4896         cannot_inline_tree_fn member.
4897
4898 2007-08-24  Richard Guenther  <rguenther@suse.de>
4899
4900         * expr.c (get_inner_reference): Do computation of bitoffset
4901         from offset in a way we can detect overflow reliably.
4902
4903 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
4904
4905         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
4906
4907 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
4908
4909         * config/bfin/bfin.opt (mfast-fp): Add.
4910         * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
4911         libbffastfp override libgcc if -mfast-fp.
4912         * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4913         * doc/invoke.texi (Option Summary): Mention -mfast-fp.
4914         (Blackfin Options): Document -mfast-fp.
4915
4916 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
4917
4918         PR tree-optimization/32573
4919         PR middle-end/32946
4920         * tree-data-ref.c (initialize_data_dependence_relation): Clear
4921         DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
4922         (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
4923         (build_classic_dist_vector): Return false rather than true if
4924         DDR_ARE_DEPENDENT is non-NULL at the beginning.  Return false
4925         if either subscript_dependence_tester_1 or build_classic_dist_vector_1
4926         returned false.  Don't call save_dist_v before calling
4927         build_classic_dist_vector_1.
4928         (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
4929         with NULL DDR_ARE_DEPENDENT.  Also free DDR_DIST_VECTS and/or
4930         DDR_DIR_VECTS vectors.
4931
4932 2007-08-23  Brian Sidebotham  <brian.sidebotham@gmail.com>
4933
4934         * configure.ac (leb128): Modify sed statement to work with any
4935         binutils version string.
4936         * configure: Regenerate
4937
4938 2007-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4939
4940         * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
4941         Wrap in RTX_CODE macro guard.
4942         * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
4943         arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
4944         arm_mark_dllimport, arm_pe_encode_section_info,
4945         arm_pe_unique_section): Use ISO-C function declarations.
4946         * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
4947         c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
4948         c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
4949         Likewise.
4950         * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
4951         * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
4952         defining.
4953         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
4954         warnings.
4955         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
4956         * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
4957         (register_move_cost): Use ISO-C function declarations.
4958         * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
4959         * config/score/score-protos.h (score_declare_object): Add
4960         ATTRIBUTE_PRINTF_4.
4961         * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
4962         warnings.
4963         * final.c (profile_function): Avoid empty if-bodies.
4964         
4965         
4966         * calls.c (must_pass_in_stack_var_size,
4967         must_pass_in_stack_var_size_or_pad): Constify.
4968         * config/alpha/alpha-protos.h (function_value): Likewise.
4969         * config/alpha/alpha.c (alpha_return_in_memory,
4970         alpha_pass_by_reference, function_value,
4971         unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
4972         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
4973         Likewise.
4974         * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
4975         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4976         TARGET_PROMOTE_PROTOTYPES): Likewise.
4977         * config/arm/arm-protos.h (arm_return_in_memory,
4978         arm_pad_arg_upward, arm_function_value): Likewise.
4979         * config/arm/arm.c (arm_pass_by_reference,
4980         arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
4981         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4982         arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
4983         Likewise.
4984         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
4985         * config/avr/avr-protos.h (avr_function_value): Likewise.
4986         * config/avr/avr.c (avr_return_in_memory,
4987         gas_output_limited_string, gas_output_ascii, avr_function_value,
4988         avr_return_in_memory): Likewise.
4989         * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
4990         * config/bfin/bfin.c (bfin_pass_by_reference,
4991         bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
4992         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
4993         Likewise.
4994         * config/cris/cris.c (cris_pass_by_reference,
4995         TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
4996         * config/crx/crx.c (crx_return_in_memory): Likewise.
4997         * config/darwin.c (function_base, machopic_function_base_name):
4998         Likewise.
4999         * config/fr30/fr30.c (fr30_must_pass_in_stack,
5000         TARGET_PROMOTE_PROTOTYPES): Likewise.
5001         * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
5002         * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
5003         * config/i386/i386-protos.h (ix86_return_in_memory,
5004         ix86_sol10_return_in_memory): Likewise.
5005         * config/i386/i386.c (ix86_function_value,
5006         ix86_function_sseregparm, ix86_must_pass_in_stack,
5007         type_natural_mode, classify_argument, examine_argument,
5008         construct_container, ix86_pass_by_reference, function_value_32,
5009         function_value_64, ix86_function_value_1, return_in_memory_32,
5010         return_in_memory_64, return_in_memory_ms_64,
5011         ix86_return_in_memory, ix86_sol10_return_in_memory,
5012         TARGET_PROMOTE_PROTOTYPES): Likewise.
5013         * config/ia64/ia64-protos.h (ia64_function_value,
5014         ia64_hpux_function_arg_padding): Likewise.
5015         * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
5016         ia64_function_value, bundle_state_hash, bundle_state_eq_p,
5017         ia64_hpux_function_arg_padding): Likewise.
5018         * config/iq2000/iq2000-protos.h (function_arg,
5019         iq2000_function_value): Likewise.
5020         * config/iq2000/iq2000.c (iq2000_return_in_memory,
5021         iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
5022         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5023         function_arg, iq2000_function_value): Likewise.
5024         * config/m32c/m32c-protos.h (m32c_function_value,
5025         m32c_promote_function_return): Likewise.
5026         * config/m32c/m32c.c (m32c_pass_by_reference,
5027         m32c_promote_prototypes, m32c_promote_function_return,
5028         m32c_function_value): Likewise.
5029         * config/m32r/m32r.c (m32r_return_in_memory,
5030         m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
5031         m32r_in_small_data_p): Likewise.
5032         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
5033         Likewise.
5034         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
5035         m68hc11_function_arg_padding): Likewise.
5036         * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
5037         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
5038         m68k_function_value): Likewise.
5039         * config/mcore/mcore-protos.h (mcore_num_arg_regs,
5040         mcore_function_value): Likewise.
5041         * config/mcore/mcore.c (handle_structs_in_regs,
5042         mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
5043         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5044         mcore_num_arg_regs, mcore_function_value): Likewise.
5045         * config/mips/mips-protos.h (mips_pad_arg_upward,
5046         mips_function_value): Likewise.
5047         * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
5048         mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
5049         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5050         TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
5051         mips_function_value): Likewise.
5052         * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
5053         Likewise.
5054         * config/mmix/mmix.c (mmix_pass_by_reference,
5055         TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
5056         mmix_encode_section_info): Likewise.
5057         * config/mn10300/mn10300-protos.h (mn10300_function_value):
5058         Likewise.
5059         * config/mn10300/mn10300.c (mn10300_return_in_memory,
5060         mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
5061         mn10300_function_value): Likewise.
5062         * config/mt/mt-protos.h (mt_function_value): Likewise.
5063         * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
5064         mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
5065         * config/pa/pa-protos.h (function_arg_padding, function_value,
5066         pa_return_in_memory): Likewise.
5067         * config/pa/pa.c (pa_pass_by_reference,
5068         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5069         function_arg_padding, function_value, pa_return_in_memory):
5070         Likewise.
5071         * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
5072         * config/rs6000/rs6000-protos.h (rs6000_function_value,
5073         function_arg_padding): Likewise.
5074         * config/rs6000/rs6000.c (rs6000_return_in_memory,
5075         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
5076         rs6000_pass_by_reference, rs6000_must_pass_in_stack,
5077         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5078         function_arg_padding, altivec_expand_dst_builtin,
5079         altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
5080         altivec_init_builtins, rs6000_common_init_builtins,
5081         rs6000_function_value): Likewise.
5082         * s390/s390-protos.h (s390_function_value): Likewise.
5083         * config/s390/s390.c (s390_function_arg_size,
5084         s390_pass_by_reference, s390_return_in_memory,
5085         s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
5086         TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5087         * config/score/score-protos.h (score_function_value): Likewise.
5088         * config/score/score.c (score_arg_partial_bytes,
5089         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5090         TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
5091         score_pass_by_reference, score_add_offset, score_function_value):
5092         Likewise.
5093         * config/sh/sh-protos.h (sh_attr_renesas_p,
5094         sh_promote_prototypes): Likewise.
5095         * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
5096         sh_callee_copies, sh_promote_prototypes, shcompact_byref,
5097         sh_attr_renesas_p): Likewise.
5098         * config/sparc/sparc-protos.h (function_value,
5099         function_arg_padding): Likewise.
5100         * config/sparc/sparc.c (sparc_promote_prototypes,
5101         sparc_return_in_memory, sparc_pass_by_reference,
5102         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5103         function_arg_record_value_2, function_arg_record_value_1,
5104         function_arg_record_value, function_arg_record_value,
5105         function_arg_padding, function_value): Likewise.
5106         * config/spu/spu-protos.h (spu_function_value): Likewise.
5107         * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
5108         spu_function_value): Likewise.
5109         * config/stormy16/stormy16-protos.h (xstormy16_function_value):
5110         Likewise.
5111         * config/stormy16/stormy16.c (xstormy16_return_in_memory,
5112         xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
5113         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
5114         Likewise.
5115         * config/v850/v850.c (v850_return_in_memory,
5116         v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
5117         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
5118         * config/xtensa/xtensa.c (xtensa_return_in_msb,
5119         xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
5120         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
5121         Likewise.
5122         * explow.c (promote_mode, hard_function_value): Likewise.
5123         * expr.h (hard_function_value, promote_mode): Likewise.
5124         * function.c (aggregate_value_p): Likewise.
5125         * hooks.c (hook_bool_const_tree_true): New.
5126         * hooks.h (hook_bool_const_tree_true): New.
5127         * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
5128         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
5129         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5130         TARGET_RETURN_IN_MSB): Likewise.
5131         * target.h (promote_function_args, promote_function_return,
5132         promote_prototypes, return_in_memory, return_in_msb,
5133         pass_by_reference, must_pass_in_stack, callee_copies,
5134         function_value): Likewise.
5135         * targhooks.c (default_return_in_memory,
5136         hook_pass_by_reference_must_pass_in_stack,
5137         hook_callee_copies_named,
5138         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
5139         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
5140         default_function_value): Likewise. 
5141         * targhooks.h (default_return_in_memory,
5142         hook_pass_by_reference_must_pass_in_stack,
5143         hook_callee_copies_named,
5144         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
5145         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
5146         default_function_value): Likewise.
5147         * tree-ssa-structalias.c (const_equiv_class_label_t): New.
5148         (equiv_class_label_hash, equiv_class_label_eq): Constify.
5149         * tree-vectorizer.c (bb_in_loop_p): Likewise.
5150         * tree.c (needs_to_live_in_memory): Likewise.
5151         * tree.h (struct tree_type, needs_to_live_in_memory,
5152         aggregate_value_p, must_pass_in_stack_var_size,
5153         must_pass_in_stack_var_size_or_pad): Likewise.
5154         * vmsdbgout.c (write_debug_addr, write_debug_delta4,
5155         write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
5156         lookup_filename): Likewise.
5157
5158 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
5159
5160         PR target/17390
5161         * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
5162         fake fcomi i387 instruction for !TARGET_CMOVE.
5163         (ix86_expand_branch): Expand natural sequence with one jump for
5164         all targets, not only TARGET_CMOVE.
5165         * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
5166         pattern to implement fake fcomi sequence.  Split instruction after
5167         reload to correct compare sequences.
5168         (*cmpfp_xf_cc): Ditto.
5169         (*cmpfp_<mode>_cc): Ditto.
5170         (*cmpfp_u_cc): Ditto.
5171         (*cmpfp_<mode>_cc): Ditto.
5172
5173 2007-08-23  Richard Guenther  <rguenther@suse.de>
5174
5175         * tree-pretty-print.c (dump_generic_node): Annotate
5176         GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
5177
5178 2007-08-23  Richard Guenther  <rguenther@suse.de>
5179
5180         * builtins.c (expand_builtin_mathfn): Wrap argument in
5181         save_expr directly instead of re-building the call.
5182         (expand_builtin_mathfn_2): Likewise.
5183         (expand_builtin_mathfn_3): Likewise.
5184         (expand_builtin_interclass_mathfn): Likewise.
5185         (expand_builtin_int_roundingfn): Set arg.
5186         (expand_builtin_int_roundingfn_2): Likewise.
5187
5188 2007-08-23  Paolo Bonzini  <bonzini@gnu.org>
5189
5190         * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
5191         *sse_nand<mode>3, *sse_xor<mode>3): New.
5192
5193 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
5194
5195         * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
5196         * config/i386/i386.c (print_operand): Handle ';' code.  Output
5197         semicolon for TARGET_MACHO.
5198         * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
5199         emit semicolon after 'lock' prefix.
5200         (sync_double_compare_and_swap<mode>): Ditto.
5201         (*sync_double_compare_and_swapdi_pic): Ditto.
5202         (*sync_compare_and_swap_cc<mode>): Ditto.
5203         (sync_double_compare_and_swap_cc<mode>): Ditto.
5204         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
5205         (sync_old_add<mode>): Ditto.
5206         (sync_add<mode>): Ditto.
5207         (sync_sub<mode>): Ditto.
5208         (sync_ior<mode>): Ditto.
5209         (sync_and<mode>): Ditto.
5210         (sync_xor<mode>): Ditto.
5211
5212 2007-08-22  Chao-ying Fu  <fu@mips.com>
5213
5214         * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
5215         in DEF_RTL_EXPR.
5216         (copy_rtx): Handle CONST_FIXED.
5217         (rtx_equal_p): Likewise.
5218         * rtl.h (fixed_value.h): New include.
5219         (rtx_def): Add a new field of fixed_value to u.
5220         (XCNMPFV): Define for accessing fixed_value.
5221         (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
5222         Define.
5223         * rtl.def (CONST_FIXED): New constant.
5224         (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
5225         UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
5226         US_ASHIFT): New codes.
5227         * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
5228         us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
5229         unsigned_fract_convert, unsigned_sat_fract): Document them.
5230         * varasm.c (assemble_integer): Extend to support fixed-point constants
5231         by using different machine classes.
5232         (decode_addr_const): Handle FIXED_CST.
5233         (const_hash_1): Likewise.
5234         (compare_constant): Likewise.
5235         (copy_constant): Likewise.
5236         (const_rtx_hash_1): Handle CONST_FIXED.
5237         (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
5238         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
5239         MODE_VECTOR_UACCUM.
5240         (initializer_constant_valid_p): Handle FIXED_CST.
5241         (output_constant): Support FIXED_POINT_TYPE.
5242         * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
5243         * cse.c (hash_rtx): Support CONST_FIXED.
5244         (exp_equiv_p): Likewise.
5245         (cannon_reg): Likewise.
5246         (fold_rtx): Likewise.
5247         (equiv_constant): Likewise.
5248         (cse_process_notes_1): Likewise.
5249         (count_reg_usage): Likewise.
5250         * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
5251         (rtx_equal_for_cselib_p): Handle CONST_FIXED.
5252         (wrap_constant): Check CONST_FIXED.
5253         (cselib_hash_rtx): Support CONST_FIXED.
5254         (cselib_subst_to_values): Likewise.
5255         * df-scan.c (df_uses_record): Likewise.
5256         * gcse.c (want_to_gcse_p): Likewise.
5257         (oprs_unchanged_p): Likewise.
5258         (oprs_not_set_p): Likewise.
5259         (compute_transp): Likewise.
5260         (extract_mentioned_regs_helper): Likewise.
5261         * genemit.c (gen_exp): Likewise.
5262         * local-alloc.c (equiv_init_varies_p): Likewise.
5263         (contains_replace_regs): Likewise.
5264         (memref_referenced_p): Likewise.
5265         * loop-invariant.c (check_maybe_invariant): Likewise.
5266         (hash_invariant_expr_1): Likewise.
5267         (invariant_expr_equal_p): Likewise.
5268         * postreload-gcse.c (oprs_unchanged_p): Likewise.
5269         * regclass.c (reg_scan_mark_refs): Likewise.
5270         * regrename.c (scan_rtx): Likewise.
5271         * resource.c (mark_referenced_resources): Likewise.
5272         (mark_set_resources): Likewise.
5273         * rtlanal.c (rtx_unstable_p): Likewise.
5274         (rtx_varies_p): Likewise.
5275         (count_occurrences): Likewise.
5276         (reg_mentioned_p): Likewise.
5277         (modified_between_p): Likewise.
5278         (modified_in_p): Likewise.
5279         (volatile_insn_p): Likewise.
5280         (volatile_refs_p): Likewise.
5281         (side_effects_p): Likewise.
5282         (may_trap_p_1): Likewise.
5283         (inequality_comparisons_p): Likewise.
5284         (computed_jump_p_1): Likewise.
5285         (commutative_operand_precedence): Likewise.
5286         * sched-deps.c (sched_analyze_2): Likewise.
5287         * sched-vis.c (print_value): Likewise.
5288         * reload.c (operands_match_p): Likewise.
5289         (subst_reg_equivs): Likewise.
5290         * reload1.c (eliminate_regs_1): Likewise.
5291         (elimination_effects): Likewise.
5292         (scan_paradoxical_subregs): Likewise.
5293         * alias.c (rtx_equal_for_memref_p): Likewise.
5294         * Makefile.in (RTL_BASE_H): Add fixed-value.h.
5295         * emit-rtl.c (const_fixed_htab): New hash table.
5296         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
5297         Declare.
5298         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
5299         const_fixed_from_fixed_value): New functions.
5300         (verify_rtx_sharing): Handle CONST_FIXED.
5301         (copy_rtx_if_shared_1): Likewise.
5302         (reset_used_flags): Likewise.
5303         (set_used_flags): Likewise.
5304         (copy_insn_1): Likewise.
5305         (init_emit_once): Create const_fixed_htab.
5306         Store fixed-point scalar and vector zero and one to const_tiny_rtx.
5307
5308 2007-08-22  Zdenek Dvorak  <ook@ucw.cz>
5309
5310         PR tree-optimization/32949
5311         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
5312         before failing for ivs with non-constant step.
5313
5314 2007-08-22  Hans-Peter Nilsson  <hp@axis.com>
5315
5316         * doc/md.texi (Iterators): Renamed from Macros.  All contents
5317         changed to reflect rename of respectively define_code_macro and
5318         define_mode_macro to define_code_iterator and define_mode_iterator.
5319         (Mode Iterators, Code Iterators): Similar.
5320         * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
5321         (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
5322         (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
5323         (initialize_iterators, find_iterator, check_code_iterator)
5324         (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
5325         (read_mapping, read_rtx_1): Similar.
5326         * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
5327         config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
5328         config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
5329         config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
5330         config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
5331         config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
5332         config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
5333         config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
5334         config/rs6000/sync.md, config/rs6000/rs6000.md,
5335         config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
5336         config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
5337         config/vax/vax.md, config/bfin/bfin.md: Similar.
5338
5339 2007-08-22  David Daney  <ddaney@avtrex.com>
5340
5341         * doc/install.texi (Testing): Mention testing on a simulator.
5342
5343 2007-08-22  Janis Johnson  <janis187@us.ibm.com>
5344
5345         * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
5346
5347         * doc/libgcc.texi (Decimal float library routines): Fix formatting
5348         and rearrange floating point conversion functions into different
5349         categories.
5350
5351 2007-08-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5352
5353         * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
5354         dfa_post_advance_cycle): New scheduler hooks.
5355         * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
5356         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
5357         new hooks.
5358         (TARGET_SCHED): Use them.
5359         * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
5360         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
5361         * haifa-sched.c (advance_one_cycle): Invoke new hooks.
5362
5363         * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
5364         function to facilitate debugging.
5365         (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
5366         (output_insn_has_dfa_reservation_p): New static function to output
5367         insn_has_dfa_reservation_p ().
5368         (write_automata): Use it.
5369         * genattr.c (main): Output declaration for
5370         insn_has_dfa_reservation_p ().
5371
5372 2007-08-22  Christian Bruel  <christian.bruel@st.com>   
5373             Richard Guenther <rguenther@suse.de>
5374         
5375         * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
5376         * simplify_rtx (simplify_binary_operation_1): Likewise.
5377                 
5378 2007-08-22  Rask Ingemann Lambertsen  <rask@sygehus.dk>
5379
5380         PR rtl-optimization/32557
5381         * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
5382         of REGNO (mws->mw_reg).
5383
5384 2007-08-22  Richard Guenther  <rguenther@suse.de>
5385
5386         PR middle-end/33007
5387         * builtins.c (expand_builtin_int_roundingfn): Replace call
5388         argument wrapped with SAVE_EXPR directly.
5389         (expand_builtin_int_roundingfn_2): Likewise.
5390
5391 2007-08-22  Richard Guenther  <rguenther@suse.de>
5392
5393         * tree-inline.c (inlinable_function_p): Restore disregarding
5394         inline limits for GNU extern inline functions.
5395
5396 2007-08-22  Richard Guenther  <rguenther@suse.de>
5397
5398         PR middle-end/32563
5399         * tree.c (host_integerp): Treat sizetype as signed as it is
5400         sign-extended.
5401
5402 2007-08-21  Ian Lance Taylor  <iant@google.com>
5403
5404         PR tree-optimization/33134
5405         * tree-vrp.c (adjust_range_with_scev): Call
5406         set_value_range_to_value.
5407
5408 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
5409
5410         * value-prof.h (gimple_remove_histogram_value): Remove duplicate
5411         prototype.
5412         
5413 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
5414
5415         * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
5416         whitespace.
5417
5418 2007-08-21  Nathan Froyd  <froydnj@codesourcery.com>
5419
5420         * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
5421         cases to set eight bytes at a time.
5422         (expand_block_move): Likewise.
5423         
5424 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5425
5426         PR debug/32610
5427         * dwarf2out.c (gen_decl_die): Don't call
5428         gen_tagged_type_instantiation_die if decl doesn't have tagged type.
5429
5430 2007-08-21  Paul Brook  <paul@codesourcery.com>
5431             Nathan Sidwell  <nathan@codesourcery.com>
5432             Mark Mitchell  <mark@codesourcery.com>
5433             Joseph Myers  <joseph@codesourcery.com>
5434
5435         * configure.ac: Add --with-pkgversion and --with-bugurl.
5436         * configure: Regenerate.
5437         * doc/install.texi: Document them.
5438         * version.c (version_string): Remove VERSUFFIX.
5439         (VERSUFFIX): Remove.
5440         (pkgversion_string): New.
5441         (bug_report_url): Do not hard-code initializer.
5442         * version.h (pkgversion_string): Declare.
5443         * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
5444         Define.
5445         (version.o): Define PKGVERSION and BUGURL.
5446         (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
5447         (%.pod): Define BUGURL.
5448         * gcc.c (process_command, main): Use pkgversion_string.
5449         * toplev.c (compile_file, print_version): Likewise.
5450         * protoize.c (main): Likewise.
5451         * gcov.c (print_version): Likewise.  Update copyright date.
5452         * gcov-dump.c (print_version): Likewise.  Update copyright date.
5453         * mips-tdump.c (main): Likewise.  Update copyright date.
5454         * mips-tfile.c (main): Likewise.  Update copyright date.
5455         * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
5456         * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
5457         shorten description.
5458         * doc/gcc.texi: Include VERSION_PACKAGE in version description.
5459         * doc/gccint.texi: Likewise.
5460         * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
5461         Update copyright date.
5462
5463 2007-08-21  Uros Bizjak  <ubizjak@gmail.com>
5464
5465         * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
5466         (ix86_expand_strlensi_unroll_1): Ditto.
5467         (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
5468         (ix86_expand_carry_flag_compare): Update comment.
5469
5470 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5471
5472         PR middle-end/32912
5473         * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
5474         (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
5475
5476 2007-08-21  Richard Guenther  <rguenther@suse.de>
5477
5478         * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
5479
5480 2007-08-21  Richard Guenther  <rguenther@suse.de>
5481
5482         PR middle-end/33122
5483         * fold-const.c (fold_binary): Remove index +p PTR folding.
5484         Fix types of POINTER_PLUS_EXPR generated by folding of
5485         (PTR +p B) +p A.
5486
5487 2007-08-20  Chao-ying Fu  <fu@mips.com>
5488
5489         * c-common.h (enum rid): Add new enumeration values of RID_SAT,
5490         RID_FRACT, and RID_ACCUM.  RID_SAT needs to be inserted before
5491         RID_ONEWAY, so that it can be checked in declspecs_add_type.
5492         (c_common_fixed_point_type_for_size): Declare.
5493         * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
5494         (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
5495         (c_token_starts_declspecs): Likewise.
5496         (c_parser_declspecs): Likewise.
5497         (c_parser_attributes): Likewise.
5498         * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
5499         (c_declspecs): Add saturating_p.
5500         * c-decl.c (build_null_declspecs): Initialize saturating_p.
5501         (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
5502         _Sat.  Handle RID_SAT.
5503         Avoid using void, bool, char, int, float, double, _Decimal32,
5504         _Decimal64, _Decimal128, and complex with _Sat.
5505         Handle RID_FRACT and RID_ACCUM.
5506         Make sure _Sat is used with _Fract or _Accum.
5507         (finish_declspecs): Handle cts_fract and cts_accum.
5508         * c-common.c (fixed-value.h): New include.
5509         (constant_expression_warning): Handle FIXED_CST.
5510         (overflow_warning): Likewise.
5511         (warnings_for_convert_and_check): Likewise.
5512         (c_common_fixed_point_type_for_size): New.
5513         (c_common_type_for_mode): Handle fixed-point modes to
5514         return various saturating/non-saturating, signed/unsigned types.
5515         (c_common_signed_or_unsigned_type): Support fixed-point types.
5516         (shorten_compare): Check fixed-point zero.
5517         Handle FIXED_POINT_TYPE.
5518         (c_common_truthvalue_conversion): Handle FIXED_CST.
5519         Handle FIXED_POINT_TYPE.
5520         (c_common_nodes_and_builtins): Record builtin types for fixed-point
5521         types.
5522         (handle_mode_attribute): Handle fixed-point modes.  Need to check
5523         if the signness of base type and fixed-point modes are consistent.
5524         (handle_vector_size_attribute): Handle fixed-point modes.
5525         (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
5526         (warn_for_div_by_zero): Check fixed-point zero.
5527         * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE.  Build
5528         a common fixed-point type based on fbit, ibit, sign, and saturation.
5529         (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
5530         NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
5531         PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
5532         (convert_for_assignment): Support FIXED_POINT_TYPE.
5533         (digest_init): Handle FIXED_POINT_TYPE.
5534         (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
5535         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
5536         TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
5537         GE_EXPR, LT_EXPR, GT_EXPR.
5538         * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
5539         (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
5540         * target.h (gcc_target): Add fixed_point_supported_p.
5541         * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
5542         MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
5543         (default_fixed_point_supported_p): Define.
5544         * targhooks.h (default_fixed_point_supported_p): Declare.
5545         * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
5546         * doc/install.texi (Configuration): Add --enable-fixed-point.
5547         * configure.ac (--enable-fixed-point): New to enable fixed-point
5548         arithmetic extension to C.  For mips targets, we enable it by default.
5549         * configure, config.in: Regenerate.
5550
5551 2007-08-20  Pawel Sikora  <pluto@pld-linux.org>
5552
5553         * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
5554
5555 2007-08-20  David Edelsohn  <edelsohn@gnu.org>
5556
5557         * dwarf2out.c (text_section_used): Move declaration outside ifdef
5558         DWARF2_DEBUGGING_INFO.
5559         (cold_text_section_used): Same.
5560         (cold_text_section): Same.
5561
5562 2007-08-20  Richard Guenther  <rguenther@suse.de>
5563
5564         * c-typeck.c (convert_for_assignment): Use the type of
5565         the member for the initialization.
5566
5567 2007-08-20  Richard Guenther  <rguenther@suse.de>
5568
5569         * c-objc-common.c (c_disregard_inline_limits): Remove.
5570         * c-objc-common.h (c_disregard_inline_limits): Likewise.
5571         * cgraphunit.c (cgraph_process_new_functions): Call
5572         disregard_inline_limits_p.
5573         (cgraph_preserve_function_body_p): Likewise.
5574         * ipa-inline.c (compute_inline_parameters): Likewise.
5575         * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
5576         Remove.
5577         (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
5578         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
5579         disregard_inline_limits langhook.
5580         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5581         Remove.
5582         * langhooks.h (lang_hooks_for_tree_inlining): Remove
5583         disregard_inline_limits langhook.
5584         * tree-inline.c (disregard_inline_limits_p): New function.
5585         * tree-inline.h (disregard_inline_limits_p): Declare.
5586
5587 2007-08-20  Richard Guenther  <rguenther@suse.de>
5588
5589         * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
5590         (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
5591         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
5592         auto_var_in_fn_p langhook.
5593         * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
5594         move ...
5595         * tree.c (auto_var_in_fn_p): ... here.
5596         (find_var_from_fn): Call auto_var_in_fn_p directly.
5597         * langhooks.h (lang_hooks_for_tree_inlining): Remove
5598         auto_var_in_fn_p langhook.
5599         * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
5600         (copy_body_r): Likewise.
5601         (self_inlining_addr_expr): Likewise.
5602         * tree.h (auto_var_in_fn_p): Declare.
5603
5604 2007-08-20  Richard Guenther  <rguenther@suse.de>
5605
5606         * tree.c (WALK_SUBTREE): Call walk_tree_1.
5607         (walk_type_fields): Take lh parameter.
5608         (walk_tree): Rename to ...
5609         (walk_tree_1): ... this.  Do not call the walk_subtrees
5610         langhook but the now passed callback.  Pass lh on recursion.
5611         (walk_tree_without_duplicates): Rename to ...
5612         (walk_tree_without_duplicates_1): ... this.  Take lh parameter
5613         and call walk_tree_1.
5614         * tree.h (walk_tree_lh): New typedef.
5615         (walk_tree_1): Declare.
5616         (walk_tree_without_duplicates_1): Likewise.
5617         (walk_tree): New define to walk_tree_1 with NULL lh parameter.
5618         (walk_tree_without_duplicates): New define to
5619         walk_tree_without_duplicates_1 with NULL lh parameter.
5620         * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
5621         * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
5622         langhook.
5623         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
5624         (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
5625         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
5626         initializer.
5627
5628 2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5629
5630         PR middle-end/30564
5631         * tree-inline.c (optimize_inline_calls): Move the cgraph checking
5632         code in front of the compacting of basic blocks.
5633         Move the folding of statements inbetween the cgraph checking
5634         and compacting of basic blocks.
5635
5636 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5637            Serge Belyshev  <belyshev@depni.sinp.msu.ru>
5638
5639         PR target/32522
5640         * config/alpha/alpha.c (va_list_skip_additions): Check for
5641         POINTER_PLUS_EXPR in addition to PLUS_EXPR.
5642         (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
5643         PLUS_EXPR when checking ap.__base.
5644         (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
5645         when doing addition on pointer types.  Use size_int instead of
5646         build_int_cst.
5647         (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
5648         ptr_type in the second operand.
5649
5650 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
5651
5652         PR target/33115
5653         * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
5654
5655 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5656
5657         PR middle-end/32940
5658         * cfgexpand.c  (expand_one_register_var): Mark pointer
5659         DECL_ARTIFICIAL as REG_POINTER also.
5660         * stmt.c (expand_decl): Likewise.
5661
5662 2007-08-19  Daniel Berlin  <dberlin@dberlin.org>
5663
5664         Fix PR 32772
5665         Fix PR 32716
5666         Fix PR 32328
5667         Fix PR 32303
5668
5669         * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
5670         * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
5671         on_worklist argument and avoid adding things to worklist multiple
5672         times.
5673         (add_to_worklist): Ditto.
5674         (mark_aliases_call_clobbered): Mark entire structure clobbered if
5675         single SFT is clobbered.
5676         (set_initial_properties): Ditto.
5677         (compute_call_clobbered): Update for changes to function
5678         arguments.
5679         (create_overlap_variables_for): Always create SFT for offset 0.
5680         (create_structure_vars): Handle PHI's, since we are in SSA form at
5681         this point.
5682         * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
5683         * tree-ssa-operands.c (access_can_touch_variable): Don't handle
5684         TARGET_MEM_REF.
5685         (add_vars_for_offset): Figure out aliases from access + points-to.
5686         (add_virtual_operand): Use add_vars-for_offset.
5687         (get_tmr_operands): Update for NMT changes, rewrite to be correct.
5688         (add_call_clobber_ops): Remove makes_clobbering_call set.
5689         (get_expr_operands): Always pass through the INDIRECT_REF
5690         reference.
5691         * tree-ssa-structalias.c (struct constraint_graph): Remove
5692         variables member.
5693         Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
5694         address_taken, pt_used, number_incoming.
5695         (FIRST_ADDR_NODE): Removed.
5696         (merge_graph_nodes): Remove broken code for the moment.
5697         (init_graph): New function.
5698         (build_pred_graph): Remove code to init_graph.
5699         Add location equivalence support.
5700         (struct scc_info): Rename roots to deleted.
5701         (scc_visit): Ditto.
5702         (init_scc_info): Ditto
5703         (init_topo_info): Use graph->size.
5704         (compute_topo_order): Ditto.
5705         (do_da_constraint): Removed.
5706         (do_sd_constraint): Remove calls to find().
5707         set_union_with_increment should always get 0 as last arg here.
5708         (do_complex_constraint): Replace do_da_constraint with assert.
5709         Stop calling find.
5710         (struct equiv_class_label): New.
5711         (pointer_equiv_class_table): Ditto.
5712         (location_equiv_class_table): Ditto.
5713         (equiv_class_label_hash): Ditto.
5714         (equiv_class_label_eq): Ditto
5715         (equiv_class_lookup): Ditto.
5716         (equiv_class_ladd): Ditto.
5717         (pointer_equiv_class): Ditto.
5718         (location_equiv_class): Ditto.
5719         (condense_visit): Rename and rewrite from label_visit to do only
5720         SCC related stuff for HU.
5721         (label_visit): Do HU work for HU.
5722         (perform_var_substitution): Update to do HU and location
5723         equivalence.
5724         (free_var_substitution_info): Update to free HU and location
5725         equivalence structures.  */
5726         (find_equivalent_node): Update for pointer but not location
5727         equivalence.
5728         (unite_pointer_equivalences): New function.
5729         (move_complex_constraints): Rewrite to only do moving.
5730         (rewrite_constraints): Split out of move_complex_constraints.
5731         (solve_graph): Use graph->size.
5732         (process_constraint_1): Add from_call argument, use it.
5733         Split *a = &b into two constraints.
5734         (process_constraint): Use new process_constraint_1.
5735         (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
5736         (get_constraint_for): Handle non-pointer integers properly.
5737         Remove code that used to handle structures.
5738         (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
5739         with unknown addends.
5740         (handle_rhs_call): New function.
5741         (find_func_aliases): Use handle_rhs_call.
5742         (set_uids_in_ptset): Add an assert.
5743         (set_used_smts): Fix bug in not considering unified vars.
5744         (compute_tbaa_pruning): Stop initing useless iteration_obstack.
5745         (compute_points_to_sets): Update for other function changes.
5746         (delete_points_to_sets): Ditto.
5747         (ipa_pta_execute): Ditto.
5748         (pass_ipa_pta): We need to update SSA after ipa_pta.
5749         
5750 2007-08-19  Jan Hubicka  <jh@suse.cz>
5751
5752         * i386.md: Replace "rim" and "mri" constraints by "g".
5753
5754 2007-08-19  Joseph Myers  <joseph@codesourcery.com>
5755
5756         * dwarf2out.c (text_section_used, cold_text_section_used,
5757         cold_text_section, dwarf2out_note_section_used): New.
5758         (dwarf2out_init): Initialize cold_text_section.
5759         (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
5760         dwarf2out_note_section_used.
5761         (size_of_aranges): Only count entry for text section if it was
5762         used.  Count entry for cold text section if it was used.
5763         (output_aranges): Only output entries for text section and cold
5764         text section if they were used.
5765
5766 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
5767
5768         * tree-pretty-print.c (debug_generic_expr): Add a comment about
5769         the function.
5770         (debug_generic_stmt): Likewise.
5771         (debug_tree_chain): Likewise.
5772
5773 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
5774
5775         * tree-data-refs.c (split_constant_offset): Expose.
5776         * tree-data-refs.h (split_constant_offset): Add declaration.
5777
5778         * tree-vectorizer.h (dr_alignment_support): Renamed
5779         dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
5780         Added a new value dr_explicit_realign.
5781         (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
5782         dr_offset, dr_step, and dr_aligned_to, along with new access
5783         functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
5784         STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
5785         STMT_VINFO_DR_ALIGNED_TO.
5786
5787         * tree-vectorizer.c (vect_supportable_dr_alignment): Add
5788         documentation.
5789         In case of outer-loop vectorization with non-fixed misalignment - use
5790         the dr_explicit_realign scheme instead of the optimized realignment
5791         scheme.
5792         (new_stmt_vec_info): Initialize new fields.
5793
5794         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
5795         'nested_in_vect_loop' case. Change verbosity level.
5796         (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
5797         Don't fail on zero step in the outer-loop for loads.
5798         (vect_analyze_data_refs): Call split_constant_offset to calculate
5799         base, offset and init relative to the outer-loop.
5800
5801         * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
5802         BSI function argument with a new function argument - at_loop.
5803         Simplify the condition that determines STEP. Takes additional argument
5804         INV_P. Support outer-loop vectorization (handle the
5805         nested_in_vect_loop case), including zero step in the outer-loop. Call
5806         vect_create_addr_base_for_vector_ref with additional argument.
5807         (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
5808         Updated function documentation. Handle the 'nested_in_vect_loop' case.
5809         Fixed and simplified calculation of step.
5810         (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
5811         of bsi, and with additional argument. Call bump_vector_ptr with
5812         additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
5813         (vect_setup_realignment): Takes additional arguments INIT_ADDR and
5814         DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
5815         when the realignment setup needs to take place inside the loop.
5816         Support the dr_explicit_realign scheme. Allow generating the optimized
5817         realignment scheme for outer-loop vectorization. Added documentation.
5818         (vectorizable_load): Support the dr_explicit_realign scheme. Handle
5819         the 'nested_in_vect_loop' case, including loads that are invariant in
5820         the outer-loop and the realignment schemes. Handle the case when the
5821         realignment setup needs to take place inside the loop. Call
5822         vect_setup_realignment with additional arguments.  Call
5823         vect_create_data_ref_ptr with additional argument and with loop instead
5824         of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
5825         (vect_gen_niters_for_prolog_loop): Call
5826         vect_create_addr_base_for_vector_ref with additional arguments.
5827         (vect_create_cond_for_align_checks): Likewise.
5828         (bump_vector_ptr): Updated to support the new dr_explicit_realign
5829         scheme: takes additional argument bump; argument ptr_incr is now
5830         optional; updated documentation.
5831         (vect_init_vector): Takes additional argument (bsi). Use it, if
5832         available, to insert the vector initialization.
5833         (get_initial_def_for_induction): Pass additional argument in call to
5834         vect_init_vector.
5835         (vect_get_vec_def_for_operand): Likewise.
5836         (vect_setup_realignment): Likewise.
5837         (vectorizable_load): Likewise.
5838
5839 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
5840
5841         * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
5842         as argument instead of struct loop.
5843         (nested_in_vect_loop_p): New function.
5844         (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
5845         vect_used_in_outer.
5846         (is_loop_header_bb_p): New. Used to differentiate loop-header phis
5847         from other phis in the loop.
5848         (destroy_loop_vec_info): Add additional argument to declaration.
5849
5850         * tree-vectorizer.c (supportable_widening_operation): Also check if
5851         nested_in_vect_loop_p (don't allow changing the order in this case).
5852         (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
5853         of struct loop. Call nested_in_vect_loop_p and don't require
5854         flag_unsafe_math_optimizations if it returns true.
5855         (new_stmt_vec_info): When setting def_type for phis differentiate 
5856         loop-header phis from other phis.
5857         (bb_in_loop_p): New function.
5858         (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
5859         just update their loop_vinfo.  Order of BB traversal now matters -
5860         call dfs_enumerate_from with bb_in_loop_p.
5861         (destroy_loop_vec_info): Takes additional argument to control whether
5862         stmt_vinfo of the loop stmts should be destroyed as well.
5863         (vect_is_simple_reduction): Allow the "non-reduction" use of a
5864         reduction stmt to be defines by a non loop-header phi.
5865         (vectorize_loops): Call destroy_loop_vec_info with additional argument.
5866
5867         * tree-vect-transform.c (vectorizable_reduction): Call
5868         nested_in_vect_loop_p. Check for multitypes in the inner-loop.
5869         (vectorizable_call): Likewise.
5870         (vectorizable_conversion): Likewise.
5871         (vectorizable_operation): Likewise.
5872         (vectorizable_type_promotion): Likewise.
5873         (vectorizable_type_demotion): Likewise.
5874         (vectorizable_store): Likewise.
5875         (vectorizable_live_operation): Likewise.
5876         (vectorizable_reduction): Likewise. Also pass loop_info to
5877         vect_is_simple_reduction instead of loop.
5878         (vect_init_vector): Call nested_in_vect_loop_p.
5879         (get_initial_def_for_reduction): Likewise.
5880         (vect_create_epilog_for_reduction): Likewise.
5881         (vect_init_vector): Check which loop to work with, in case there's an
5882         inner-loop.
5883         (get_initial_def_for_inducion): Extend to handle outer-loop
5884         vectorization. Fix indentation.
5885         (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
5886         In the case vect_induction_def get the vector def from the induction
5887         phi node, instead of calling get_initial_def_for_inducion.
5888         (get_initial_def_for_reduction): Extend to handle outer-loop 
5889         vectorization.
5890         (vect_create_epilog_for_reduction): Extend to handle outer-loop
5891         vectorization.
5892         (vect_transform_loop): Change assert to just skip this case.  Add a
5893         dump printout.
5894         (vect_finish_stmt_generation): Add a couple asserts.
5895
5896         (vect_estimate_min_profitable_iters): Multiply
5897         cost of inner-loop stmts (in outer-loop vectorization) by estimated
5898         inner-loop bound.
5899         (vect_model_reduction_cost): Don't add reduction epilogue cost in case
5900         this is an inner-loop reduction in outer-loop vectorization.
5901
5902         * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
5903         Same code as what used to be vect_analyze_scalar_cycles, only with
5904         additional argument loop, and loop_info passed to
5905         vect_is_simple_reduction instead of loop.
5906         (vect_analyze_scalar_cycles): Code factored out into
5907         vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
5908         Updated documentation.
5909         (analyze_operations): Check for inner-loop loop-closed exit-phis during
5910         outer-loop vectorization that are live or not used in the outerloop,
5911         cause this requires special handling.
5912         (vect_enhance_data_refs_alignment): Don't consider versioning for
5913         nested-loops.
5914         (vect_analyze_data_refs): Check that there are no datarefs in the
5915         inner-loop.
5916         (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
5917         and vect_used_in_outer_by_reduction cases.
5918         (process_use): Also consider the case of outer-loop stmt defining an
5919         inner-loop stmt and vice versa.
5920         (vect_analyze_loop_1): New function.
5921         (vect_analyze_loop_form): Extend, to allow a restricted form of nested
5922         loops.  Call vect_analyze_loop_1.
5923         (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
5924         been vectorized.  Call destroy_loop_vec_info with additional argument.
5925
5926         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
5927         in the inner-loop when doing outer-loop vectorization. Add
5928         documentation and printout.
5929         (vect_recog_dot_prod_pattern): Likewise. Also add check for
5930         GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
5931
5932 2007-08-18  Andrew Pinski  <pinskia@gmail.com>
5933
5934         * tree-affine.h (print_aff): New prototype.
5935         (debug_aff): Likewise.
5936         * tree-affine.c (print_aff): New function.
5937         (debug_aff): Likewise.
5938
5939 2007-08-18  Paul Brook  <paul@codesourcery.com>
5940             Joseph Myers  <joseph@codesourcery.com>
5941
5942         * common.opt (-fdebug-prefix-map=): New option.
5943         * opts.c: Include debug.h.
5944         (common_handle_option): Handle -fdebug-prefix-map.
5945         * final.c: Include ggc.h.
5946         (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
5947         remap_debug_filename): New.
5948         * Makefile.in (final.o, opts.o): Update dependencies.
5949         * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
5950         * configure.ac: Check for assembler --debug-prefix-map support.
5951         * configure, config.in: Regenerate.
5952         * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
5953         (ASM_DEBUG_SPEC): Include ASM_MAP.
5954         * doc/install.texi (--with-debug-prefix-map): Document.
5955         * doc/invoke.texi (-fdebug-prefix-map): Document.
5956         * dbxout.c (dbxout_init, dbxout_start_source_file,
5957         dbxout_source_file): Call remap_debug_filename.
5958         * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
5959         dwarf2out_start_source_file, dwarf2out_finish): Call
5960         remap_debug_filename.
5961         (file_table_relative_p): Do not check d->emitted_number.
5962         * toplev.c (output_file_directive): Call remap_debug_filename.
5963         * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
5964         * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
5965
5966 2007-08-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5967
5968         * loop-invariant.c (find_invariants_to_move): Add missing macro
5969         argument.
5970
5971 2007-08-17  Tom Tromey  <tromey@redhat.com>
5972
5973         * tree.h (struct tree_label_decl): Removed old "java" fields.
5974
5975 2007-08-17  Richard Sandiford  <richard@codesourcery.com>
5976             Nigel Stephens  <nigel@mips.com>
5977
5978         * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
5979         Treat -mno-data-in-code and -mcode-xonly as aliases for
5980         -mcode-readable=no and -mcode-readable=pcrel respectively.
5981         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
5982         (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
5983         (MULTILIB_DIRNAMES): Update accordingly.
5984
5985 2007-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5986
5987         * Makefile.in (version.o): Depend on $(REVISION) only if
5988         REVISION_s is defined.
5989
5990 2007-08-17  Sa Liu  <saliu@de.ibm.com>
5991             Ulrich Weigand  <uweigand@de.ibm.com>
5992
5993         PR middle-end/32970
5994         * tree.c (reconstruct_complex_type): For a pointer to a vector,
5995         use build_qualified_type to retain qualifiers of the base type.
5996
5997 2007-08-17  Chen Liqin  <liqin@sunnorth.com.cn>
5998
5999         * config/score/score.md : Update pattern tablejump.
6000         * config/score/score.c : Update score_initialize_trampoline 
6001         function.
6002         * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
6003         (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
6004         * doc/contrib.texi: Add my entry.
6005
6006 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6007
6008         * Makefile.in (REVISION): New.
6009         (REVISION_c): New.
6010         (REVISION_s): New.
6011         (version.o): Also depend on $(REVISION). Add
6012         -DREVISION=$(REVISION_s).
6013
6014         * version.c (version_string): Add REVISION.
6015
6016 2007-08-16  Seongbae Park <seongbae.park@gmail.com>
6017
6018         * tree-eh.c (lower_try_finally_onedest): Reset the locus
6019         of GOTO that's relocated to a different block.
6020
6021 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6022
6023         * c-common.c (const_strip_array_types): New.
6024         * c-common.h (lang_missing_noreturn_ok_p): Delete.
6025         (const_strip_array_types): New.
6026         * c-objc-common.c (c_disregard_inline_limits,
6027         c_warn_unused_global_decl): Constify.
6028         * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
6029         c_vla_type_p, c_incomplete_type_error): Likewise.
6030         * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
6031         * hooks.c (hook_bool_const_tree_false): New.
6032         * hooks.h (hook_bool_const_tree_false): Likewise.
6033         * langhooks-def.h (lhd_warn_unused_global_decl,
6034         lhd_incomplete_type_error, lhd_expr_size,
6035         lhd_tree_inlining_disregard_inline_limits,
6036         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
6037         LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
6038         * langhooks.c (lhd_warn_unused_global_decl,
6039         lhd_incomplete_type_error,
6040         lhd_tree_inlining_disregard_inline_limits,
6041         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
6042         lhd_expr_size): Likewise.
6043         * langhooks.h (lang_hooks_for_tree_inlining,
6044         lang_hooks_for_tree_dump, lang_hooks_for_types,
6045         lang_hooks_for_decls, lang_hooks): Likewise.
6046         * pointer-set.c (pointer_set_t, pointer_set_create,
6047         pointer_set_contains, insert_aux, pointer_set_insert,
6048         pointer_set_traverse, pointer_map_t, pointer_map_create,
6049         pointer_map_contains, pointer_map_insert, pointer_map_traverse):
6050         Likewise.
6051         * pointer-set.h (pointer_set_contains, pointer_set_insert,
6052         pointer_set_traverse, pointer_map_contains, pointer_map_insert,
6053         pointer_map_traverse): Likewise.
6054         * predict.c (assert_is_empty): Likewise.
6055         * tree-affine.c (free_name_expansion): Likewise.
6056         * tree-cfg.c (edge_to_cases_cleanup): Likewise.
6057         * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
6058         * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
6059
6060 2007-08-16  Victor Kaplansky <victork@il.ibm.com>
6061
6062         * tree-vectorizer.c (new_loop_vec_info): Initialize new 
6063         field.
6064         (destroy_loop_vec_info): Add call to VEC_free.
6065         * tree-vectorizer.h (may_alias_ddrs): Define.
6066         (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
6067         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
6068         Change reporting to dump.
6069         (vect_is_duplicate_ddr): New.
6070         (vect_mark_for_runtime_alias_test): New.
6071         (vect_analyze_data_ref_dependences) Add call to
6072         vect_mark_for_runtime_alias_test.
6073         (vect_enhance_data_refs_alignment): Define local variable
6074         vect_versioning_for_alias_required, don't perform
6075         peeling for alignment if versioning for alias is
6076         required.
6077         (vect_enhance_data_refs_alignment): Use
6078         PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
6079         PARAM_VECT_MAX_VERSION_CHECKS.
6080         * tree-vect-transform.c
6081         (vect_create_cond_for_alias_checks): New.
6082         (vect_transform_loop): Add call to
6083         vect_create_cond_for_alias_checks.
6084         (vect_vfa_segment_size): New.
6085         * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
6086         Rename.
6087         (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
6088         * gcc/doc/invoke.texi
6089         (vect-max-version-for-alignment-checks): Document.
6090         (vect-max-version-for-alias-checks): Document.
6091         (vect-max-version-checks): Remove.
6092      
6093 2007-08-16  Uros Bizjak  <ubizjak@gmail.com>
6094
6095         * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
6096         the same line as the instruction for all asm dialects.
6097         (*rep_movsi): Ditto.
6098         (*rep_movsi_rex64): Ditto.
6099         (*rep_movqi): Ditto.
6100         (*rep_movqi_rex64): Ditto.
6101         (*rep_stosdi_rex64): Ditto.
6102         (*rep_stossi): Ditto.
6103         (*rep_stossi_rex64): Ditto.
6104         (*rep_stosqi): Ditto.
6105         (*rep_stosqi_rex64): Ditto.
6106         (*cmpstrnqi_nz_1): Ditto.
6107         (*cmpstrnqi_nz_rex_1): Ditto.
6108         (*cmpstrnqi_1): Ditto.
6109         (*cmpstrnqi_rex_1): Ditto.
6110         (*strlenqi_1): Ditto.
6111         (*strlenqi_rex_1): Ditto.
6112         * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
6113         prefix on the same line as the instruction for all asm dialects.
6114         (sync_double_compare_and_swap<mode>): Ditto.
6115         (*sync_double_compare_and_swapdi_pic): Ditto.
6116         (*sync_compare_and_swap_cc<mode>): Ditto.
6117         (sync_double_compare_and_swap_cc<mode>): Ditto.
6118         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
6119         (sync_old_add<mode>): Ditto.
6120         (sync_add<mode>): Ditto.
6121         (sync_sub<mode>): Ditto.
6122         (sync_ior<mode>): Ditto.
6123         (sync_and<mode>): Ditto.
6124         (sync_xor<mode>): Ditto.
6125
6126 2007-08-16  Richard Sandiford  <richard@codesourcery.com>
6127
6128         PR middle-end/32897
6129         * reload.c (find_reloads): Check that the memory returned by
6130         find_reloads_toplev was not the result of forcing a constant
6131         to memory.
6132         (find_reloads_toplev): Always use simplify_gen_subreg to get
6133         the subreg of a constant.  If the result is also a constant,
6134         but not a legitimate one, force it into the constant pool
6135         and reload its address.
6136
6137 2007-08-15  David Edelsohn  <edelsohn@gnu.org>
6138
6139         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
6140         POPCOUNT.
6141
6142 2007-08-15  Daniel Jacobowitz  <dan@codesourcery.com>
6143
6144         * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
6145         directive for the current vector ABI.
6146
6147 2007-08-15  Steve Ellcey  <sje@cup.hp.com>
6148
6149         PR target/32963
6150         * caller-save.c (reg_save_code): Set invalide status on restore code.
6151         
6152 2007-08-15  Diego Novillo  <dnovillo@google.com>
6153
6154         * tree-ssa-alias.c (compute_memory_partitions): Use
6155         alias_bitmap_obstack to allocate bitmaps.
6156         (reset_alias_info): Factor out of init_alias_info.
6157         Mark all name tags not associated to an SSA name for renaming.
6158         (init_alias_info): Call it.
6159         (create_name_tags): Tidy.  Add comments.
6160         (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
6161
6162 2007-08-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6163
6164         * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
6165         scheduler dependencies.
6166
6167 2007-08-15  Rask Ingemann Lambertsen  <rask@sygehus.dk>
6168
6169         * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
6170         "register_operand".
6171         (*iorsi_1_zext): Likewise.
6172         (*iorsi_1_zext_imm): Likewise.
6173         * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
6174         with "rm"/"xm" constraint.
6175         (sse2_vmsqrtv2df2): Likewise.
6176
6177 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6178
6179         PR middle-end/33074
6180         * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
6181         REG_LIBCALL note.
6182
6183 2007-08-14  Daniel Berlin  <dberlin@dberlin.org>
6184
6185         * tree-pass.h (PROP_pta): Removed.
6186         (TODO_rebuild_alias): New.
6187         (pass_may_alias): Removed.
6188         * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
6189         aliasing if we changed something.
6190         * tree-ssa-alias.c (compute_may_aliases): Make non-static.  Update
6191         SSA internally.
6192         (pass_may_alias): Removed.
6193         (create_structure_vars): Return TODO_rebuild_alias.
6194         * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
6195         * tree-sra.c (tree_sra): Only rebuild aliasing if something
6196         changed.
6197         (tree_sra_early): We never affect aliasing right now.
6198         * tree-flow.h (compute_may_aliases): New prototype.
6199         * passes.c: Remove pass_may_alias from the passes.
6200         (execute_function_todo): Support TODO_rebuild_alias.    
6201
6202 2007-08-14  Kai Tietz  <kai.tietz@onevision.com>
6203
6204         * i386.c: (legitimize_address): Move dllimported variable check
6205         infront of legitimizing pic address of CONST symbols.
6206
6207 2007-08-14  Steve Ellcey  <sje@cup.hp.com>
6208
6209         PR tree-optimization/32941
6210         * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
6211         (goto_queue_cmp): Remove.
6212         (find_goto_replacement): Change search method.
6213         (maybe_record_in_goto_queue): Add assert.
6214         (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
6215         * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
6216
6217 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6218
6219         * alias.c (component_uses_parent_alias_set): Constify.
6220         * alias.h (component_uses_parent_alias_set): Likewise.
6221         * cfgrtl.c (print_rtl_with_bb): Likewise.
6222         * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
6223         mpz_get_double_int): Likewise.
6224         * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
6225         mpz_get_double_int): Likewise.
6226         * expr.c (is_aligning_offset, undefined_operand_subword_p,
6227         mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
6228         Likewise.
6229         * expr.h (safe_from_p): Likewise.
6230         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
6231         Likewise.
6232         * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
6233         zero_sized_type, goa_lhs_expr_p): Likewise.
6234         * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
6235         * rtl.h (print_rtl_with_bb): Likewise.
6236         * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
6237         * tree-cfg.c (const_first_stmt, const_last_stmt): New.
6238         * tree-flow-inline.h (bb_stmt_list): Constify.
6239         (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
6240         cbsi_stmt): New.
6241         * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
6242         const_first_stmt, const_last_stmt): New.
6243         (block_may_fallthru, empty_block_p): Constify.
6244         * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
6245         EXPR_ONLY_BODY): New.
6246         (expr_first, expr_last, expr_only): Use macro for body.
6247         (const_expr_first, const_expr_last, const_expr_only): New.
6248         * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
6249         ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
6250         ctsi_prev, ctsi_stmt): New.
6251         * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
6252         * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
6253         * tree-ssa-loop-niter.c (loop_only_exit_p,
6254         derive_constant_upper_bound): Likewise.
6255         * tree-ssa-phiopt.c (empty_block_p): Likewise.
6256         * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
6257         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
6258         * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
6259         * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
6260         * tree.c (get_type_static_bounds): Likewise.
6261         * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
6262         (get_type_static_bounds): Constify.
6263
6264 2007-08-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
6265
6266         PR target/30315
6267         * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
6268         * config/i386/i386.md (plusminus)(addsub)(SWI): New.
6269         (*<addsub><mode>3_cc_overflow): New.
6270         (*add<mode>3_cconly_overflow): New.
6271         (*sub<mode>3_cconly_overflow): New.
6272         (*<addsub>si3_zext_cc_overflow): New.
6273         * config/i386/predicates.md (fcmov_comparison_operator): Accept
6274         CCCmode for LTU, GTU, LEU and GEU.
6275         (ix86_comparison_operator): Likewise.
6276         (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
6277         * config/i386/i386.c (put_condition_code): Support CCCmode.
6278         (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
6279         or MINUS expressions.
6280
6281 2007-08-14  Andrew Pinski  <pinskia@gmail.com>
6282
6283         PR c/30428
6284         * c-typeck.c (build_binary_op): Disallow vector float types with
6285         BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
6286
6287 2007-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
6288
6289         * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
6290         (DEP_KIND): Rename to DEP_TYPE.  Update all uses.
6291         (dep_def): New typedef.
6292         (init_dep_1, sd_debug_dep): Declare functions.
6293         (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
6294         (debug_dep_links): Remove.
6295         (struct _deps_list): New field 'n_links'.
6296         (DEPS_LIST_N_LINKS): New macro.
6297         (FOR_EACH_DEP_LINK): Remove.
6298         (create_deps_list, free_deps_list, delete_deps_list): Remove
6299         declaration.
6300         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
6301         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
6302         (copy_deps_list_change_con, move_dep_link): Ditto.
6303         (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
6304         and 'spec_back_deps'.  New field 'resolved_forw_deps'.  Remove field
6305         'dep_count'.
6306         (INSN_BACK_DEPS): Remove.
6307         (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
6308         New macros.
6309         (INSN_DEP_COUNT): Remove.
6310         (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP.  Fix comments.
6311         (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
6312         Declare global variables.
6313         (deps_pools_are_empty_p, sched_free_deps): Declare functions.
6314         (add_forw_dep, compute_forward_dependences): Remove declarations.
6315         (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
6316         (add_back_forw_dep, delete_back_forw_dep): Ditto.
6317         (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
6318         functions.
6319         (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
6320         New constants.
6321         (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
6322         (sd_list_types_def): New typedef.
6323         (sd_next_list): Declare function.
6324         (struct _sd_iterator): New type.
6325         (sd_iterator_def): New typedef.
6326         (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
6327         functions.
6328         (FOR_EACH_DEP): New cycle wrapper.
6329         (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
6330         Declare functions.
6331         (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
6332         (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
6333         Ditto.
6334
6335         * sched-deps.c (init_dep_1): Make global.
6336         (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
6337         constants.
6338         (dump_dep): New static function.
6339         (dump_dep_flags): New static variable.
6340         (sd_debug_dep): New function.
6341         (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
6342         the list.
6343         (move_dep_link): Use remove_from_deps_list (), instead of
6344         detach_dep_link ().
6345         (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
6346         (dep_link_is_detached_p): New static function.
6347         (deps_obstack, dl_obstack, dn_obstack): Remove.  Use dn_pool, dl_pool
6348         instead.
6349         (dn_pool, dl_pool): New alloc_pools.
6350         (dn_pool_diff, dl_pool_diff): New static variables.
6351         (create_dep_node, delete_dep_node): New static function.
6352         (create_deps_list): Make it static.  Use alloc_pool 'dl_pool'.
6353         (deps_list_empty_p): Make it static.  Use 'n_links' field.
6354         (deps_pools_are_empty_p): New static function.
6355         (alloc_deps_list, delete_deps_list): Remove.
6356         (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
6357         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
6358         (copy_deps_list_change_con): Remove.  Use sd_copy_back_deps () instead.
6359         (forward_dependency_cache): Remove.
6360         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
6361         'back' from the names.  Change signature to use dep_t instead of
6362         equivalent quad.
6363         (add_back_dep): Ditto.  Make global.
6364         (check_dep_status): Rename to check_dep ().
6365         (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
6366         New functions.
6367         (sd_finish_insn): Ditto.
6368         (sd_find_dep_between_no_cache): New static function.
6369         (sd_find_dep_between): New function.
6370         (ask_dependency_caches, set_dependency_caches): New static functions.
6371         (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
6372         (add_or_update_dep_1): Separate pieces of functionality into
6373         ask_dependency_caches (), update_dependency_caches (),
6374         change_spec_dep_to_hard (), update_dep ().
6375         (get_back_and_forw_lists): New static function.
6376         (sd_add_dep): Separate setting of dependency caches into
6377         set_dependency_caches ().
6378         (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
6379         New functions.
6380         (sd_delete_dep): Ditto.
6381         (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
6382         (dump_lists): New static function.
6383         (sd_debug_lists): New debug function.
6384         (delete_all_dependences, fixup_sched_groups): Update to use
6385         sd_* infrastructure.
6386         (sched_analyze_2): Create data-speculative dependency only if
6387         data-speculation is enabled.
6388         (sched_analyze_insn): If insn cannot be speculative, make all its
6389         dependencies non-speculative.
6390         (sched_analyze): Use sd_init_insn ().
6391         (add_forw_dep, compute_forward_dependencies): Remove.
6392         (delete_dep_nodes_in_back_deps): New static function.
6393         (sched_free_deps): New function.
6394         (init_dependency_caches): Init alloc_pools.
6395         (extend_depedency_caches): Update after removing of
6396         forward_dependency_cache.
6397         (free_dependency_caches): Ditto.  Free alloc_pools.
6398         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
6399         (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
6400         Ditto.
6401         (add_back_forw_dep, delete_back_forw_dep): Ditto.
6402         (add_dependence): Use init_dep ().
6403         (get_dep_weak_1): New static function.
6404         (get_dep_weak): Move logic to get_dep_weak_1 ().
6405         (dump_ds): New static function moved from haifa-sched.c:
6406         debug_spec_status ().
6407         (debug_ds): New debug function.
6408         (check_dep_status): Rename to check_dep ().  Update to check whole
6409         dependencies.
6410
6411         * haifa-sched.c (spec_info): Make global.
6412         (added_recovery_block_p): Rename to
6413         'haifa_recovery_block_was_added_during_current_schedule_block_p'.
6414         (haifa_recovery_block_was_added_during_scheduling_p): New variable.
6415         (dep_cost, priority, rank_for_schedule, schedule_insn): Update
6416         to use new interfaces.
6417         (ok_for_early_queue_removal): Ditto.
6418         (schedule_block): Initialize logical uids of insns emitted by the
6419         target.
6420         (sched_init): Initialize new variable.
6421         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
6422         interfaces.
6423         (extend_global): Initialize insn data.
6424         (init_h_i_d): Remove code that is now handled in sd_init_insn ().
6425         (process_insn_forw_deps_be_in_spec): Change signature.  Update to use
6426         new interfaces.
6427         (add_to_speculative_block): Update to use new interfaces.
6428         (create_recovery_block): Set new variables.
6429         (create_check_block_twin, fix_recovery_deps): Update to use new
6430         interfaces.
6431         (sched_insn_is_legitimate_for_speculation_p): New function.
6432         (speculate_insn): Move checking logic to
6433         sched_insn_is_legitimate_for_speculation_p ().
6434         (sched_remove_insn): Finalize sched-deps information of instruction.
6435         (clear_priorities, add_jump_dependencies): Update to use new
6436         interfaces.
6437         (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
6438         
6439         * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
6440         to use new interfaces.
6441         (is_conditionally_protected, is_pfree, is_prisky) Ditto.
6442         (new_ready): Try to use control speculation only if it is available.
6443         (add_branch_dependences): Update to use new interfaces.
6444         (compute_block_backward_dependences): Rename to
6445         compute_block_dependences ().  Call
6446         targetm.sched.dependencies_evaluation_hook ().
6447         (free_block_dependencies): New static function.
6448         (debug_dependencies): Update to use new interfaces.
6449         (schedule_region): Remove separate computation of forward dependencies.
6450         Move call of targetm.sched.dependencies_evaluation_hook () to
6451         compute_block_dependences ().  Free dependencies at the end of
6452         scheduling the region.
6453
6454         * sched-ebb.c (earliest_block_with_similiar_load): Update to use
6455         new interfaces.
6456         (add_deps_for_risky_insns): Ditto.
6457         (schedule_ebb): Remove separate computation of forward dependencies.
6458         Free dependencies at the end of scheduling the ebb.
6459
6460         * ddg.c (create_ddg_dependence): Update to use new interfaces.
6461         (build_intra_loop_deps): Ditto.  Remove separate computation of
6462         forward dependencies.  Free sched-deps dependencies.
6463
6464         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
6465         to use new interfaces.
6466         (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
6467
6468         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
6469         new interfaces.
6470         (is_costly_group): Ditto.
6471
6472 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6473
6474         * alias.c (rtx_equal_for_memref_p): Constify.
6475         * basic-block.h (const_edge, const_basic_block): New.
6476         (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
6477         single_pred_p, single_succ_edge, single_pred_edge, single_succ,
6478         single_pred, maybe_hot_bb_p, probably_cold_bb_p,
6479         probably_never_executed_bb_p, edge_probability_reliable_p,
6480         br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
6481         inside_basic_block_p, control_flow_insn_p, dominated_by_p):
6482         Likewise.
6483         * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
6484         * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
6485         Likewise.
6486         * cfganal.c (flow_active_insn_p, forwarder_block_p,
6487         flow_nodes_print, dfs_enumerate_from): Likewise.
6488         * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
6489         control_flow_insn_p, count_basic_blocks): Likewise.
6490         * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
6491         get_loop_body_with_size, loop_exit_edge_p): Likewise.
6492         * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
6493         average_num_loop_insns, loop_exit_edge_p,
6494         just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
6495         * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
6496         average_num_loop_insns, seq_cost): Likewise.
6497         * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
6498         * dominance.c (dominated_by_p): Likewise.
6499         * emit-rtl.c (validate_subreg): Likewise.
6500         * except.c (can_throw_internal, can_throw_external): Likewise.
6501         * except.h (can_throw_internal, can_throw_external): Likewise.
6502         * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
6503         oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
6504         compute_transp, load_killed_in_block_p, reg_killed_on_edge,
6505         simple_mem, store_ops_ok, load_kills_store, find_loads,
6506         store_killed_in_insn, store_killed_after, store_killed_before,
6507         gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
6508         Likewise.
6509         * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
6510         noce_mem_write_may_trap_or_fault_p): Likewise.
6511         * pointer-set.c (pointer_set_contains, pointer_map_contains):
6512         Likewise.
6513         * pointer-set.h (pointer_set_contains, pointer_map_contains):
6514         Likewise.
6515         * predict.c (can_predict_insn_p, maybe_hot_bb_p,
6516         probably_cold_bb_p, probably_never_executed_bb_p,
6517         edge_probability_reliable_p, br_prob_note_reliable_p,
6518         can_predict_insn_p): Likewise.
6519         * regclass.c (reg_set_to_hard_reg_set): Likewise.
6520         * resource.c (return_insn_p): Likewise.
6521         * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
6522         Likewise.
6523         * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
6524         * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
6525         * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
6526         verify_gimple_modify_stmt): Likewise.
6527         * tree-chrec.c (is_not_constant_evolution,
6528         is_multivariate_chrec_rec, is_multivariate_chrec,
6529         chrec_contains_symbols, chrec_contains_undetermined,
6530         tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
6531         evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
6532         eq_evolutions_p, scev_direction): Likewise.
6533         * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
6534         eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
6535         chrec_contains_symbols_defined_in_loop,
6536         chrec_contains_undetermined, tree_contains_chrecs,
6537         evolution_function_is_affine_multivariate_p,
6538         evolution_function_is_univariate_p, chrec_zerop,
6539         evolution_function_is_constant_p, evolution_function_is_affine_p,
6540         evolution_function_is_affine_or_constant_p,
6541         tree_does_not_contain_chrecs, chrec_type): Likewise.
6542         * tree-data-ref.c (tree_fold_divides_p,
6543         object_address_invariant_in_loop_p, dr_may_alias_p,
6544         ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
6545         same_access_functions, constant_access_functions,
6546         access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
6547         Likewise.
6548         * tree-flow.h (scev_direction): Likewise.
6549         * tree-gimple.c (is_gimple_stmt): Likewise.
6550         * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
6551         Likewise.
6552         * tree-pretty-print.c (op_prio): Likewise.
6553         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
6554         analyzable_condition, backedge_phi_arg_p): Likewise.
6555         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6556         * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
6557         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
6558         Likewise.
6559
6560 2007-08-13  Dan Hipschman  <dsh@google.com>
6561
6562         PR c/32953
6563         * c-format.c (check_format_arg): Move check for zero-length
6564         format strings below the check for unterminated strings.
6565
6566 2007-08-13  Andrew Pinski  <pinskia@gmail.com>
6567
6568         PR C/30427
6569         * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
6570         types.
6571
6572 2007-08-13  Nick Clifton  <nickc@redhat.com>
6573
6574         * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
6575
6576 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6577
6578         PR fortran/32860
6579         * c-format.c (gcc_gfc_length_specs): New array.
6580         (gcc_gfc_char_table): Add unsigned specifier, and references to
6581         the l length modifier.
6582         (format_types_orig): Use the new gcc_gfc_length_specs.
6583
6584 2007-08-12  Sa Liu  <saliu@de.ibm.com>
6585
6586         * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
6587         and with REG_RETVAL note after split.
6588
6589 2007-08-11  David Daney  <ddaney@avtrex.com>
6590
6591         * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
6592         as ATTRIBUTE_UNUSED.
6593
6594 2007-08-11  David Edelsohn  <edelsohn@gnu.org>
6595             Segher Boessenkool  <segher@kernel.crashing.org>
6596
6597         * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
6598         HAVE_LOCAL_CPU_DETECT not defined.
6599
6600 2007-08-11  Jan Hubicka  <jh@suse.cz>
6601
6602         * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
6603         (cgraph_process_new_functions): Honor previous value of
6604         disregard_inline_limits.
6605         * ipa-inline.c (compute_inline_parameters): Likewise.
6606
6607 2007-08-11  Ian Lance Taylor  <iant@google.com>
6608
6609         * alias.h (alias_set_type): Define new type.
6610         (ALIAS_SET_MEMORY_BARRIER): Use it.
6611         * rtl.h: Include alias.h.
6612         (struct mem_attrs): Use alias_set_type.
6613         * tree.h: Include alias.h
6614         (struct tree_type): Use alias_set_type.
6615         (struct tree_struct_field_tag): Likewise.
6616         (struct tree_decl_common): Likewise.
6617         * alias.c (struct alias_set_entry): Use alias_set_type.
6618         (get_alias_set_entry, alias_set_subset_of): Likewise.
6619         (alias_sets_conflict_p): Likewise.
6620         (alias_sets_must_conflict_p): Likewise.
6621         (objects_must_conflict_p): Likewise.
6622         (get_alias_set, new_alias_set): Likewise.
6623         (record_alias_subset, record_component_aliases): Likewise.
6624         (varargs_set, frame_set): Change to alias_set_type.
6625         (get_varargs_alias_set): Use alias_set_type.
6626         (get_frame_alias_set): Likewise.
6627         * builtins.c (setjmp_alias_set): Change to alias_set_type.
6628         * dse.c (struct store_info): Use alias_set_type.
6629         (struct read_info, struct clear_alias_mode_holder): Likewise.
6630         (clear_alias_set_lookup, canon_address): Likewise.
6631         (record_store, check_mem_read_rtx): Likewise.
6632         (dse_record_singleton_alias_set): Likewise.
6633         (dse_invalidate_singleton_alias_set): Likewise.
6634         * emit-rtl.c (get_mem_attrs): Likewise.
6635         (set_mem_attributes_minus_bitpos): Likewise.
6636         (set_mem_alias_set): Likewise.
6637         * expr.c (store_constructor_field, store_field): Likewise.
6638         * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
6639         * langhooks.c (lhd_get_alias_set): Likewise.
6640         * langhooks-def.h (lhd_get_alias_set): Likewise.
6641         * reload1.c (alter_reg): Likewise.
6642         * tree-flow.h (struct fieldoff): Likewise.
6643         * tree-ssa-alias.c (struct alias_map_d): Likewise.
6644         (may_alias_p, get_smt_for, create_sft): Likewise.
6645         * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
6646         * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
6647         (merge_smts_into): Likewise.
6648         * varasm.c (const_alias_set): Likewise.
6649         * c-common.c (strict_aliasing_warning): Likewise.
6650         (c_common_get_alias_set): Likewise.
6651         * dse.h (dse_record_singleton_alias_set): Update declaration.
6652         (dse_invalidate_singleton_alias_set): Likewise.
6653         * emit-rtl.h (set_mem_alias_set): Likewise.
6654         * c-common.h (c_common_get_alias_set): Likewise.
6655         * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
6656         * print-tree.c (print_node): Likewise.
6657         * config/alpha/alpha.c (alpha_sr_alias_set): Change to
6658         alias_set_type.
6659         (alpha_setup_incoming_varargs): Use alias_set_type.
6660         * config/i386/i386.c (setup_incoming_varargs_64): Use
6661         alias_set_type.
6662         (setup_incoming_varargs_ms_64): Likewise.
6663         (ix86_GOT_alias_set): Likewise.
6664         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6665         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
6666         (set): Change to alias_set_type.
6667         (get_TOC_alias_set): Use alias_set_type.
6668         * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
6669         declaration.
6670         * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
6671         * config/sparc/sparc.c (sparc_sr_alias_set): Change to
6672         alias_set_type.
6673         (struct_value_alias_set): Likewise.
6674         * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
6675
6676 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
6677
6678         * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
6679         * config/vxworks.h (TARGET_VXWORKS): Override.
6680         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
6681         "mips" if TARGET_VXWORKS.
6682
6683 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
6684
6685         * calls.c (avoid_likely_spilled_reg): New function.
6686         (expand_call): Use it.
6687
6688 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6689
6690         * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
6691
6692 2007-08-10  Adam Nemet  <anemet@caviumnetworks.com>
6693
6694         * config/mips/predicates.md (const_call_insn_operand): Invoke
6695         SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
6696
6697 2007-08-10  David Edelsohn  <edelsohn@gnu.org>
6698
6699         PR target/33042
6700         * config/rs6000/driver-rs6000.c: Include link.h.
6701         Use ElfW instead of wordsize-specif typedef.
6702
6703 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6704
6705         * system.h (CONST_CAST): New.
6706         * c-decl.c (c_make_fname_decl): Use it.
6707         * c-lex.c (cb_ident, lex_string): Likewise.
6708         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
6709         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
6710         give_switch, set_multilib_dir): Likewise.
6711         * gengtype-parse.c (string_seq, typedef_name): Likewise.
6712         * passes.c (execute_one_pass): Likewise.
6713         * prefix.c (update_path): Likewise.
6714         * pretty-print.c (pp_base_destroy_prefix): Likewise.
6715         * tree.c (build_string): Likewise.
6716
6717 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
6718
6719         * tree-flow-inline.h (is_exec_stmt): Remove.
6720         (is_label_stmt): Remove.
6721         * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
6722         is_label_stmt.
6723
6724 2007-08-10  Andreas Krebbel  <krebbel1@de.ibm.com>
6725
6726         * lower-subreg.c (resolve_shift_zext): Don't adjust
6727         src_reg_num for wordmode operands.
6728
6729 2007-08-10  Sandra Loosemore  <sandra@codesourcery.com>
6730             David Ung  <davidu@mips.com>
6731
6732         * config/mips/mips.c (TARGET_SCHED_INIT): Define.
6733         (TARGET_SCHED_REORDER2): Define.
6734         (mips_maybe_swap_ready): New.
6735         (mips_last_74k_agen_insn): New.
6736         (mips_74k_agen_init): New.
6737         (mips_74k_agen_reorder): New function to group loads and stores
6738         in the ready queue.
6739         (mips_sched_init): New.  
6740         (mips_sched_reorder): Don't do initialization here.  Call
6741         mips_74k_agen_reorder.
6742         (mips_variable_issue): Call mips_74k_agen_init.
6743
6744 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
6745
6746         * tree-flow-inline.h (get_filename): Remove.
6747
6748 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
6749
6750         * config/mips/mips-protos.h (mips_address_insns): Add a boolean
6751         argument.
6752         (mips_fetch_insns): Delete in favor of...
6753         (mips_load_store_insns): ...this new function.
6754         * config/mips/mips.c (mips_address_insns): Add a boolean argument
6755         to say whether multiword moves _might_ be split.
6756         (mips_fetch_insns): Delete in favor of...
6757         (mips_load_store_insns): ...this new function.
6758         (mips_rtx_costs): Update the call to mips_address_insns.
6759         (mips_address_cost): Likewise.
6760         * config/mips/mips.md (length): Use mips_load_store_insns instead
6761         of mips_fetch_insns.
6762         * config/mips/constraints.md (R): Use mips_address_insns rather
6763         than mips_fetch_insns.  Assume that the move never needs to be split.
6764
6765 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
6766
6767         * config/mips/mips.opt (mhard-float, msoft-float): Make these
6768         control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
6769         than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.  
6770         * config/mips/mips.h (mips16_hard_float): Delete.
6771         (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
6772         definitions, and replace with....
6773         (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
6774         * config/mips/mips.c (mips16_hard_float): Delete.  Replace
6775         all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
6776         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
6777         (override_options): Replace MASK_SOFT_FLOAT references with
6778         MASK_SOFT_FLOAT_ABI.  Delete twiddling with MASK_SOFT_FLOAT
6779         and mips16_hard_float when TARGET_MIPS16.
6780         
6781 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6782
6783         PR c/32796
6784         * c-typeck.c (build_binary_op): Check for non pointer types before
6785         calling int_fits_type_p.
6786
6787 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6788
6789         PR middle-end/32813
6790         * fold-const.c (omit_one_operand): Return only the ommitted expression
6791         if the result is an empty statement.
6792         (pedantic_omit_one_operand): Likewise.
6793
6794 2007-08-09  Daniel Berlin  <dberlin@dberlin.org>
6795
6796         * c-typeck.c (readonly_error): Improve error for assignment.
6797         
6798         * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
6799         expression. 
6800         (pp_c_expression): Ditto.
6801
6802 2007-08-09  Simon Baldwin  <simonb@google.com>
6803
6804         * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
6805         break that was preventing simplify_associative_operation() for xor.
6806
6807 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
6808             Nigel Stephens  <nigel@mips.com>
6809
6810         * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
6811         Document change in interpretation of value from boolean to
6812         tri-state integer.
6813         * optabs.c (expand_ffs, expand_ctz): New functions to compute
6814         ffs and ctz using clz.
6815         (expand_unop): Call them.
6816         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
6817         result value.
6818         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
6819         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
6820         enable the new ffs expansion on this target.
6821
6822 2007-08-09  Jan Hubicka  <jh@suse.cz>
6823
6824         * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
6825         (expand_ternary_op): Likewise.
6826         (expand_vec_shift_expr): Likewise.
6827         (expand_binop_directly): Likewise.
6828         (expand_binop): Likewise.
6829         (sign_expand_binop): Likewise.
6830         (expand_twoval_unop): Likewise.
6831         (expand_twoval_binop): Likewise.
6832         (expand_twoval_binop_libfunc): Likewise.
6833         (widen_clz): Likewise.
6834         (widen_bswap): Likewise.
6835         (expand_parity): Likewise.
6836         (expand_unop): Likewise.
6837         (expand_abs_nojump): Likewise.
6838         (expand_copysign): Likewise.
6839         (emit_no_conflict_block): Likewise.
6840         (emit_libcall_block): Likewise.
6841         (can_compare_p): Likewise.
6842         (prepare_cmp_insn): Likewise.
6843         (emit_cmp_and_jump_insn_1): Likewise.
6844         (prepare_float_lib_cmp): Likewise.
6845         (emit_conditional_add): Likewise.
6846         (gen_add2_insn): Likewise.
6847         (have_add2_insn): Likewise.
6848         (gen_sub2_insn): Likewise.
6849         (have_sub2_insn): Likewise.
6850         (can_extend_p): Likewise.
6851         (can_fix_p): Likewise.
6852         (can_float_p): Likewise.
6853         (expand_float): Likewise.
6854         (expand_fix): Likewise.
6855         (expand_sfix_optab): Likewise.
6856         (new_optab): Likewise.
6857         (new_convert_optab): Likewise.
6858         (init_libfuncs): Likewise.
6859         (init_interclass_conv_libfuncs): Likewise.
6860         (init_intraclass_conv_libfuncs): Likewise.
6861         (set_conv_libfunc): Likewise.
6862         (init_optabs): Likewise.
6863         (debug_optab_libfuncs): Likewise.
6864         (gen_cond_trap): Likewise.
6865         * optabs.h (optab_handler, convert_optab_hanlder): New.
6866         * genopinit.c: Update optabs generation table.
6867         * reload.c (find_reloads_address_1): Use optabs accestors.
6868         * builtins.c (expand_builtin_mathfn): Likewise.
6869         (expand_builtin_mathfn_2): Likewise.
6870         (expand_builtin_mathfn_3): Likewise.
6871         (expand_builtin_interclass_mathfn): Likewise.
6872         (expand_builtin_sincos): Likewise.
6873         (expand_builtin_cexpi): Likewise.
6874         (expand_builtin_powi): Likewise.
6875         (expand_builtin_strlen): Likewise.
6876         * dojump.c (do_jump): Likewise.
6877         * expr.c (convert_move): Likewise.
6878         (move_by_pieces): Likewise.
6879         (move_by_pieces_ninsns): Likewise.
6880         (can_store_by_pieces): Likewise.
6881         (store_by_pieces_1): Likewise.
6882         (emit_move_via_integer): Likewise.
6883         (emit_move_complex): Likewise.
6884         (emit_move_ccmode): Likewise.
6885         (emit_move_insn_1): Likewise.
6886         (emit_single_push_insn): Likewise.
6887         (store_constructor): Likewise.
6888         (expand_expr_real_1): Likewise.
6889         (do_store_flag): Likewise.
6890         * ada/misc.c (gnat_compute_largest_alignment): Likewise.
6891         (enumerate_modes): Likewise.
6892         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6893         (supportable_widening_operation): Likewise.
6894         (supportable_narrowing_operation): Likewise.
6895         * expmed.c (store_bit_field_1): Likewise.
6896         (extract_bit_field_1): Likewise.
6897         (expand_mult_highpart_optab): Likewise.
6898         (expand_smod_pow2): Likewise.
6899         (expand_divmod): Likewise.
6900         (emit_store_flag): Likewise.
6901         * tree-vect-patterns.c
6902         (vect_pattern_recog_1): Likewise.
6903         * tree-ssa-loop-prefetch.c
6904         (nontemporal_store_p): Likewise.
6905         * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
6906         (vect_create_epilog_for_reduction): Likewise.
6907         (vectorizable_reduction): Likewise.
6908         (vectorizable_operation): Likewise.
6909         (vect_strided_store_supported): Likewise.
6910         (vectorizable_store): Likewise.
6911         (vect_strided_load_supported): Likewise.
6912         (vectorizable_load): Likewise.
6913         * combine.c (simplify_comparison): Likewise.
6914         * tree-vect-generic.c
6915         (type_for_widest_vector_mode): Likewise.
6916         (expand_vector_operations_1): Likewise.
6917         * config/spu/spu.c (spu_expand_mov): Likewise.
6918         (spu_emit_vector_compare): Likewise.
6919         * config/rs6000/rs6000.c
6920         (rs6000_emit_vector_compare): Likewise.
6921         * stmt.c (add_case_node): Likewise.
6922         * reload1.c (gen_reload):
6923
6924 2007-08-09  Michael Matz  <matz@suse.de>
6925
6926         * tree.h (fixed_zerop): Declare as taking a const_tree.
6927         * tree.c (fixed_zerop): Take a const_tree.
6928
6929 2007-08-09  Ira Rosen  <irar@il.ibm.com>
6930
6931         * tree-vect-transform.c (vectorizable_store): Remove call to
6932         copy_virtual_operands() and call mark_symbols_for_renaming() for
6933         the created vector store.
6934         (vect_setup_realignment): Don't call copy_virtual_operands() and
6935         update_vuses_to_preheader(). 
6936         (vectorizable_load): Don't call copy_virtual_operands(). 
6937         (update_vuses_to_preheader): Remove.
6938
6939 2007-08-08  Chao-ying Fu  <fu@mips.com>
6940
6941         * tree.def (FIXED_POINT_TYPE): New type.
6942         (FIXED_CST): New constant.
6943         (FIXED_CONVERT_EXPR): New expr.
6944         * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
6945         (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
6946         * tree.h (struct tree_base): Add saturating_flag.
6947         Remove one bit of spare for saturating_flag.
6948         (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
6949         (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
6950         FIXED_POINT_TYPE_P): Define.
6951         (TYPE_SATURATING): Define.
6952         (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
6953         (struct tree_fixed_cst): New.
6954         (TYPE_IBIT, TYPE_FBIT): Define.
6955         (tree_node): Add fixed_cst.
6956         (enum tree_index): Add new enumeration values of
6957         TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
6958         TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
6959         TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
6960         TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
6961         TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
6962         TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
6963         TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
6964         TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
6965         TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
6966         TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
6967         TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
6968         TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
6969         TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
6970         TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
6971         TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
6972         TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
6973         TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
6974         TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
6975         (sat_short_fract_type_node, sat_fract_type_node,
6976         sat_long_fract_type_node, sat_long_long_fract_type_node,
6977         sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
6978         sat_unsigned_long_fract_type_node,
6979         sat_unsigned_long_long_fract_type_node, short_fract_type_node,
6980         fract_type_node, long_fract_type_node, long_long_fract_type_node,
6981         unsigned_short_fract_type_node, unsigned_fract_type_node,
6982         unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
6983         sat_short_accum_type_node, sat_accum_type_node,
6984         sat_long_accum_type_node, sat_long_long_accum_type_node,
6985         sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
6986         sat_unsigned_long_accum_type_node,
6987         sat_unsigned_long_long_accum_type_node, short_accum_type_node,
6988         accum_type_node, long_accum_type_node, long_long_accum_type_node,
6989         unsigned_short_accum_type_node, unsigned_accum_type_node,
6990         unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
6991         qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
6992         uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
6993         utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
6994         sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
6995         sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
6996         sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
6997         ta_type_node, uha_type_node, usa_type_node, uda_type_node,
6998         uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
6999         sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
7000         sat_uda_type_node, sat_uta_type_node): New macro.
7001         (make_fract_type, make_accum_type): Declare.
7002         (make_signed_fract_type, make_unsigned_fract_type,
7003         make_sat_signed_fract_type, make_sat_unsigned_fract_type,
7004         make_signed_accum_type, make_unsigned_accum_type,
7005         make_sat_signed_accum_type, make_sat_unsigned_accum_type,
7006         make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
7007         make_or_reuse_sat_signed_fract_type,
7008         make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
7009         make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
7010         make_or_reuse_sat_unsigned_accum_type): New macro.
7011         (fixed_zerop): Declare.
7012         * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
7013         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
7014         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
7015         LONG_LONG_ACCUM_TYPE_SIZE): Define.
7016         * treestruct.def: Add TS_FIXED_CST.
7017         * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
7018         (tree.o): Likewise.
7019         (tree-dump.o): Likewise.
7020         (print-tree.o): Likewise.
7021         (tree-pretty-print.o): Likewise.
7022         (fold-const.o): Likewise.
7023         * tree-complex.c (some_nonzerop): Handle FIXED_CST.
7024         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
7025         (is_gimple_min_invariant): Handle FIXED_CST.
7026         * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
7027         MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
7028         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
7029         (layout_type): Handle FIXED_POINT_TYPE.
7030         (make_fract_type, make_accum_type): New functions.
7031         * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
7032         * tree-dump.c (fixed-value.h): New include.
7033         (dump_fixed): New function.
7034         (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
7035         * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
7036         (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
7037         * tree-pretty-print.c (fixed-value.h): New include.
7038         (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
7039         FIXED_CONVERT_EXPR.
7040         * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
7041         * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
7042         * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
7043         * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
7044         for non-saturating fixed-point types.
7045         (reassociate_bb): Likewise.
7046         * emit-rtl.c (fixed-value.h): New include.
7047         (fconst0, fconst1): New array.
7048         (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
7049         * tree-vect-generic.c expand_vector_operation): Support
7050         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
7051         MODE_VECTOR_UACCUM.
7052         (type_for_widest_vector_mode): Add one parameter for the 
7053         saturating flag.
7054         Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
7055         vector mode.
7056         Pass the satp parameter to type_for_mode for fixed-point types.
7057         (expand_vector_operations_1): Pass the saturating flag to
7058         type_for_widest_vector_mode.
7059         Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
7060         and MODE_VECTOR_UACCUM.
7061         * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
7062         (vectorizable_condition): Likewise.
7063         * tree.c (fixed-value.h): New include.
7064         (tree_code_size): Support FIXED_CST.
7065         (build_fixed): New function.
7066         (build_one_cst): Support FIXED_POINT_TYPE for accum types.
7067         (fixed_zerop): New function.
7068         (tree_node_structure): Support FIXED_CST.
7069         (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
7070         (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
7071         (type_hash_eq): Handle FIXED_POINT_TYPE.
7072         (simple_cst_equal): Support FIXED_CST.
7073         (iterative_hash_expr): Handle FIXED_CST.
7074         (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
7075         (get_narrower): Likewise.
7076         (variably_modified_type_p): Handle FIXED_POINT_TYPE.
7077         (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
7078         (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
7079         MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
7080         nodes.
7081         (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
7082         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
7083         (initializer_zerop): Support FIXED_CST.
7084         (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
7085         * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
7086         DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
7087         (is_base_type): Handle FIXED_POINT_TYPE.
7088         (add_type_attribute): Handle FIXED_POINT_TYPE.
7089         (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
7090         * print-tree.c (fixed-value.h): New include.
7091         (print_node_brief): Support FIXED_CST.
7092         (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
7093         * c-pretty-print.c (fixed-value.h): New include.
7094         (pp_c_type_specifier): Handle FIXED_POINT_TYPE.  Need to pass
7095         TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
7096         (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
7097         Support fixed-point types for inner items in VECTOR_TYPE.
7098         (pp_c_direct_declarator): Likewise.
7099         (pp_c_declarator): Likewise.
7100         (pp_c_fixed_constant): New function.
7101         (pp_c_constant): Handle FIXED_CST.
7102         (pp_c_primary_expression): Likewise.
7103         (pp_c_expression): Likewise.
7104         * fold-const.c (fixed-value.h): New include.
7105         (negate_expr_p): Return true for FIXED_CST.
7106         (fold_negate_expr): Support FIXED_CST.
7107         (split_tree): Support FIXED_CST.
7108         (const_binop): Support FIXED_CST.
7109         (fold_convert_const_int_from_fixed): New function to convert from
7110         fixed to int.
7111         (fold_convert_const_real_from_fixed): New function to convert from
7112         fixed to real.
7113         (fold_convert_const_fixed_from_fixed): New function to convert from
7114         fixed to another fixed.
7115         (fold_convert_const_fixed_from_int): New function to convert from
7116         int to fixed.
7117         (fold_convert_const_fixed_from_real): New function to convert from
7118         real to fixed.
7119         (fold_convert_const): Support conversions from fixed to int, from
7120         fixed to real, from fixed to fixed, from int to fixed, and from real
7121         to fixed.
7122         (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
7123         (operand_equal_p): Support FIXED_CST.
7124         (make_range): For fixed-point modes, we need to pass the
7125         saturating flag as the 2nd parameter.
7126         (tree_swap_operands_p): Handle FIXED_CST.
7127         (fold_plusminus_mult_expr): For fract modes, we cannot generate
7128         constant 1.
7129         (fold_unary): Support FIXED_CONVERT_EXPR.
7130         (fold_binary): Handle FIXED_CST.
7131         Make sure the type is not saturating, before associating operations.
7132         Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
7133         (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
7134         (fold_negate_const): Support FIXED_CST.
7135         (fold_relational_const): Support FIXED_CST.
7136         * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
7137         (gimplify_expr): Handle FIXED_CST.
7138         (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
7139         * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
7140         * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
7141         * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
7142         FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
7143         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
7144         LONG_LONG_ACCUM_TYPE_SIZE.
7145         * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
7146         * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
7147         * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
7148         * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
7149         MODE_ACCUM, and MODE_UACCUM.
7150         * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
7151         fixed-point types to disable reduction.
7152         * explow.c (promote_mode): Support FIXED_POINT_TYPE.
7153
7154 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
7155
7156         * config/rs6000/x-rs6000: New file.
7157         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
7158         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
7159         (EXTRA_SPEC_FUNCTIONS): Define.
7160         (HAVE_LOCAL_CPU_DETECT): Define.
7161         (CC1_CPU_SPEC): Define.
7162         * config/rs6000/driver-rs6000.c: New file.
7163         * config/rs6000/aix.h (CC1_SPEC): Define.
7164         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
7165         * config.host: Add x-rs6000 to host_xmake_file if host and target
7166         are rs6000 or powerpc.
7167
7168 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
7169
7170         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
7171
7172 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7173             Sandra Loosemore  <sandra@codesourcery.com>
7174             Chao-ying Fu  <fu@mips.com>
7175             Nigel Stephens  <nigel@mips.com>
7176             David Ung  <davidu@mips.com>
7177
7178         * doc/invoke.texi (-mcode-readable): Document.
7179         * config/mips/mips.opt (mcode-readable): New option.
7180         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
7181         * config/mips/mips.h (mips_code_readable_setting): New enum.
7182         (mips_code_readable): Declare.
7183         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
7184         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
7185         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
7186         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
7187         boiler-plate comments.
7188         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
7189         * config/mips/mips.c (mips_code_readable): New variable.
7190         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
7191         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
7192         context and -mcode-readable setting to restrict the use of
7193         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
7194         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
7195         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
7196         (mips_blocks_for_constant_p): Only return false for
7197         TARGET_MIPS16_PCREL_LOADS.
7198         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
7199         for MIPS16.  Handle SYMBOL_32_HIGH.
7200         (mips_const_insns): Allow HIGHs for MIPS16 too.
7201         (mips_unspec_address_offset): New function, split out from...
7202         (mips_unspec_address): ...here.
7203         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
7204         16-bit symbolic constants.  Assert approropiate conditions for
7205         using the "la" and "dla" macros.
7206         (mips_handle_option): Handle -mcode-readable=.
7207         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
7208         Set up mips_lo_relocs[SYMBOL_32_HIGH].
7209         (mips_strip_unspec_address): New function, split out from...
7210         (print_operand_reloc): ...here.
7211         (print_operand): Pass constants through mips_strip_unspec_address.
7212         (print_operand_address): Likewise.
7213         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
7214         (mips_select_rtx_section): Remove MIPS16 handling.
7215         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
7216         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
7217         (mips16_lay_out_constants): Do nothing unless
7218         TARGET_MIPS16_PCREL_LOADS.
7219         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
7220         * config/mips/mips.md: Split HIGHs for MIPS16.
7221         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
7222
7223 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7224
7225         * config/mips/mips-protos.h (mips_emit_move): Declare.
7226         * config/mips/mips.c (mips_emit_move): New function.
7227         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
7228         (mips_legitimize_const_move): Likewise.
7229         (mips_legitimize_move): Likewise.
7230         (mips_split_64bit_move): Likewise.
7231         (mips_restore_gp): Likewise.
7232         (mips_load_call_address): Likewise.
7233         (mips_emit_fcc_reload): Likewise.
7234         (mips_set_return_address): Likewise.
7235         (mips_block_move_straight): Likewise.
7236         (mips_block_move_loop): Likewise.
7237         (mips_setup_incoming_varargs): Likewise.
7238         (mips_save_reg): Likewise.
7239         (mips_expand_prologue): Likewise.
7240         (mips_restore_reg): Likewise.
7241         (mips_expand_epilogue): Likewise.
7242         (mips_output_mi_thunk): Likewise.
7243         (build_mips16_call_stub): Likewise.
7244         (mips_builtin_branch_and_move): Likewise.
7245         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
7246         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
7247         (fixuns_truncdfdi2): Likewise.
7248         (fixuns_truncsfsi2): Likewise.
7249         (fixuns_truncsfdi2): Likewise.
7250         (loadgp_absolute): Likewise.
7251         (builtin_setjmp_setup): Likewise.
7252         (builtin_longjmp): Likewise.
7253         (untyped_call): Likewise.
7254
7255 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7256
7257         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
7258         an "rtx *" argument.  Return a bool.
7259         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
7260         values and return true if they can be split.  Take the same kind of
7261         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
7262         and store the lo_sum there if nonnull.  Use the symbol type to
7263         determine whether a $gp or HIGH is needed.
7264         (mips_legitimize_address): Update call to mips_split_symbol and
7265         simplify accordingly.
7266         (mips_legitimize_const_move): Likewise.
7267         * config/mips/mips.md: In the combine define_split,
7268         check mips_split_symbol instead of splittable_symbolic_operand.
7269         Update use of mips_split_symbol in the generator code.
7270         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
7271
7272 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7273
7274         * config/mips/mips.c (mips_symbolic_address_p): Delete.
7275         (mips_symbol_insns_1): New function, split out from...
7276         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
7277         and stores separately from load addresses.
7278         (mips_classify_address): Replace uses of mips_symbolic_address_p
7279         with uses of mips_symbol_insns.
7280         (mips_address_insns): Update calls to mips_symbol_insns.
7281         (mips_const_insns): Likewise.
7282         (mips_legitimize_address): Likewise.
7283
7284 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7285
7286         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
7287         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
7288         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
7289         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
7290         non-call contexts if TARGET_MIPS16.
7291         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
7292         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
7293         code for SYMBOL_ABSOLUTE.
7294         (mips_symbol_insns): Likewise.
7295
7296 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7297
7298         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
7299         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
7300         (mips_symbolic_constant_p): Likewise.  Update the call to
7301         mips_classify_symbol.
7302         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
7303         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
7304         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
7305         (print_operand_reloc): Add a context argument.  Update the call to
7306         mips_symbolic_constant_p.
7307         (print_operand): Update the calls to print_operand_reloc.
7308         (print_operand_address): Use print_operand_reloc rather than
7309         print_operand.
7310         (mips_rewrite_small_data_p): Add a context argument.  Update the call
7311         to mips_symbolic_constant_p.
7312         (mips_small_data_pattern_1): Make DATA the containing mem.
7313         Update the call to mips_rewrite_small_data_p.
7314         (mips_rewrite_small_data_1): Likewise.
7315         (mips_use_anchors_for_symbol_p): Update the call to
7316         mips_symbolic_constant_p.
7317         * config/mips/predicates.md (const_call_insn_operand): Likewise.
7318         (splittable_symbolic_operand): Likewise.
7319         (move_operand): Likewise.
7320         (absolute_symbolic_operand): Likewise.
7321         (got_disp_operand): Likewise.
7322         (got_page_ofst_operand): Likewise.
7323
7324 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
7325
7326         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
7327         (SYMBOL_ABSOLUTE): ...this.
7328         (SYMBOL_SMALL_DATA): Rename to...
7329         (SYMBOL_GP_RELATIVE): ...this.
7330         (SYMBOL_CONSTANT_POOL): Rename to...
7331         (SYMBOL_PC_RELATIVE): ...this.
7332         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
7333         (mips_symbolic_address_p, mips_symbol_insns, override_options)
7334         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
7335         after above changes.
7336         * config/mips/predicates.md (const_call_insn_operand): Likewise.
7337         (general_symbolic_operand): Rename to...
7338         (absolute_symbolic_operand): ...this.
7339         * config/mips/mips.md: Update after above changes.
7340
7341 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
7342             Revital Eres  <eres@il.ibm.com>
7343
7344         * ddg.c (print_ddg): Add dump information.
7345         * modulo-sched.c (print_node_sched_params): Add parameter and
7346         verbosity.
7347         (calculate_maxii): Remove function.
7348         (undo_generate_reg_moves): Likewise.
7349         (undo_permute_partial_schedule): Likewise.
7350         (kernel_number_of_cycles): Likewise.
7351         (MAXII_FACTOR): New definition to calculate the upper bound of II.
7352         (sms_schedule): Use it.  Remove profitability checks.
7353         (sms_schedule_by_order): Fix order of nodes within the cycle.
7354
7355 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7356
7357         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
7358         -profile option, add pie support.
7359         (ENDFILE_SPEC): New spec.
7360         * config/gnu.h (LIB_SPEC): Add -profile option.
7361
7362 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7363
7364         * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
7365         * config/gnu.h (LIB_SPEC): Likewise.
7366
7367 2007-08-07  Yaz Saito  <saito@google.com>
7368             Ian Lance Taylor  <iant@google.com>
7369
7370         * common.opt (finstrument-functions-exclude-function-list): New
7371         option.
7372         (finstrument-functions-exclude-file-list): New option.
7373         * opts.c (char_p): Define and DEF_VEC.
7374         (flag_instrument_functions_exclude_functions): New static
7375         variable.
7376         (flag_instrument_functions_exclude_files): New static variable.
7377         (add_instrument_functions_exclude_list): New static function.
7378         (flag_instrument_functions_exclude_p): New function.
7379         (common_handle_option): Handle new options.
7380         * flags.h (flag_instrument_functions_exclude_p): Declare.
7381         * gimplify.c (gimplify_function_tree): Call
7382         flag_instrument_functions_exclude_p.
7383         * doc/invoke.texi (Option Summary): Mention new options.
7384         (Code Gen Options): Document new options.
7385
7386 2007-08-07  Ian Lance Taylor  <iant@google.com>
7387
7388         PR rtl-optimization/32776
7389         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
7390         (resolve_use): Likewise.
7391         (decompose_multiword_subregs): Remove "changed" local variable.
7392
7393 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
7394
7395         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
7396         * configure: Regenerate.
7397         * config.in: Regenerate.
7398         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
7399         spec string.
7400
7401 2007-08-07  Ian Lance Taylor  <iant@google.com>
7402
7403         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
7404         note, just delete the insn.
7405
7406 2007-08-07  Andreas Schwab  <schwab@suse.de>
7407
7408         PR bootstrap/32973
7409         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
7410         struct definition.
7411
7412 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7413
7414         * lower-subreg.c (resolve_subreg_use): Remove assertion.
7415         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
7416         (decompose_multiword_subregs): Use the functions above to decompose
7417         multiword shifts and zero-extends.
7418
7419 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
7420
7421         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
7422         "assemble" descriptions which were swapped.
7423
7424 2007-08-06  Chao-ying Fu  <fu@mips.com>
7425
7426         * fixed-value.h: New file.
7427         * fixed-value.c: New file.
7428         * Makefile.in (OBJS-common): Add fixed-value.o.
7429         (fixed-value.o): New rule.
7430         (GTFILES): Add fixed-value.h.
7431         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
7432         to compare a.low and b.low.
7433         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
7434
7435 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7436             Daniel Jacobowitz  <dan@codesourcery.com>
7437
7438         PR target/31868
7439         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
7440         tmake_file.
7441         (x86_64-*-netbsd*): Likewise.
7442         (x86_64-*-linux*): Likewise.
7443         (x86_64-*-kfreebsd*-gnu): Likewise.
7444         (x86_64-*-knetbsd*-gnu): Likewise.
7445         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
7446
7447         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
7448
7449         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
7450         Add -fno-asynchronous-unwind-tables.
7451
7452         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
7453         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
7454         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
7455         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
7456         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
7457
7458 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7459
7460         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
7461         (TARGET_C_MODE_FOR_SUFFIX): New.
7462
7463 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7464
7465         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
7466
7467 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
7468
7469         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
7470
7471 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7472
7473         * config/i386/i386.md: Check TARGET_ macros and optimize_size
7474         before checking function returns in conditional expressions.
7475
7476 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
7477
7478         PR pch/13676
7479         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
7480
7481 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7482
7483         PR middle-end/32988
7484         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
7485         for INTEGRAL_TYPE_P.
7486
7487 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
7488
7489         * configure.ac: Remove --enable-checking=df from default settings.
7490         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
7491         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
7492         if the parameter is true.
7493         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
7494         DF_VERIFY_SCHEDULED flag is true.
7495         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
7496         (df_finish_pass): Adjust prototype.
7497         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
7498         true.
7499
7500         * see.c (pass_see): Add TODO_df_verify.
7501         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
7502         * global.c (rest_of_handle_global_alloc): Schedule verification
7503         after the pass.
7504         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
7505         before the pass.
7506         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
7507         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
7508         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
7509
7510         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
7511         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
7512         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
7513
7514 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
7515             Revital Eres <eres@il.ibm.com>
7516
7517         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
7518         flag.
7519         * ddg.c (create_ddg_dependence): Rename to...
7520         (create_ddg_dep_from_intra_loop_link): This.  Do not check
7521         for interloop edges.  Do not create anti dependence edge when
7522         a true dependence edge exists in the opposite direction and
7523         -fmodulo-sched-allow-regmoves is set.
7524         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
7525         (add_cross_iteration_register_deps): Create anti dependence edge
7526         when -fno-modulo-sched-allow-regmoves is set.
7527         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
7528
7529 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
7530
7531         * config/arm/arm.md (movsi): Add braces.
7532
7533 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7534
7535         PR middle-end/32780
7536         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
7537         operands for the folding of "A - (A & B)" into "~B & A"; cast them
7538         to type.
7539
7540 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
7541
7542         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
7543         state accessor functions.
7544         * cfgloopmanip.c (remove_path, create_preheaders,
7545         force_single_succ_latches, fix_loop_structure): Ditto.
7546         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
7547         tree_duplicate_loop_to_header_edge): Ditto.
7548         * cfgloopanal.c (mark_irreducible_loops): Ditto.
7549         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
7550         Ditto.
7551         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
7552         cleanup_tree_cfg): Ditto.
7553         * tree-cfg.c (tree_merge_blocks): Ditto.
7554         * cfgloop.c (rescan_loop_exit, record_loop_exits,
7555         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
7556         loop_preheader_edge, single_exit): Ditto.
7557         (flow_loops_find): Do not clear loops->state.
7558         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
7559         loops_state_clear): New functions.
7560
7561 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7562
7563         PR middle-end/32399
7564         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7565         when adding to the base and convert ELT to sizetype instead of type.
7566
7567 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7568
7569         PR middle-end/32304
7570         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
7571         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
7572
7573 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7574
7575         PR middle-end/32935
7576         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
7577          correct type the negate expression.
7578
7579 2007-08-03  Jan Hubicka  <jh@suse.cz>
7580
7581         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
7582         stack boundary.
7583
7584 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
7585
7586         * config/rs6000/rs6000.c (struct processor_cost): Change
7587         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
7588         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
7589         information.
7590         (rios1_costs, rios2_cost): Correct cache line size.
7591         (rs6000_override_options): Set l2-cache-size parameter.
7592
7593 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7594             Diego Novillo  <dnovillo@google.com>
7595
7596         PR 31521
7597         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
7598         if the range includes 0.
7599
7600 2007-08-03  Ben Elliston  <bje@au.ibm.com>
7601
7602         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
7603         mode to unspec expressions to silence a warning from the generator
7604         programs.
7605         
7606 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
7607
7608         * config/ia64/constraints.md ("U"): Make constraint vector only.
7609
7610 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
7611
7612         PR middle-end/25446
7613         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
7614         always_inline attribute on the function decl.
7615
7616 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
7617
7618         PR middle-end/25445
7619         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
7620         if we are compiling with -fPIC.
7621
7622 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
7623             Nigel Stephens  <nigel@mips.com>
7624
7625         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
7626         Define for MIPS32 and MIPS64.
7627
7628 2007-08-02  Nick Clifton  <nickc@redhat.com>
7629
7630         * config/host-hpux.c: Change copyright header to refer to version
7631         3 of the GNU General Public License and to point readers at the
7632         COPYING3 file and the FSF's license web page.
7633         * config/alpha/predicates.md, config/alpha/vms-ld.c,
7634         config/alpha/linux.h, config/alpha/alpha.opt,
7635         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
7636         config/alpha/vms-unwind.h, config/alpha/ev4.md,
7637         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
7638         config/alpha/alpha.h, config/alpha/sync.md,
7639         config/alpha/openbsd.h, config/alpha/alpha.md,
7640         config/alpha/alpha-modes.def, config/alpha/ev5.md,
7641         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
7642         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
7643         config/alpha/constraints.md, config/alpha/osf.h,
7644         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
7645         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
7646         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
7647         config/frv/frv-asm.h, config/frv/frv-protos.h,
7648         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
7649         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
7650         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
7651         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
7652         config/s390/s390.opt, config/s390/s390-modes.def,
7653         config/s390/fixdfdi.h, config/s390/constraints.md,
7654         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
7655         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
7656         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
7657         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
7658         config/m32c/prologue.md, config/m32c/m32c.abi,
7659         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
7660         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
7661         config/m32c/t-m32c, config/m32c/m32c-modes.def,
7662         config/m32c/jump.md, config/m32c/shift.md,
7663         config/m32c/m32c-protos.h, config/libgloss.h,
7664         config/spu/spu-protos.h, config/spu/predicates.md,
7665         config/spu/spu-builtins.h, config/spu/spu.c,
7666         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
7667         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
7668         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
7669         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
7670         config/sparc/hypersparc.md, config/sparc/predicates.md,
7671         config/sparc/linux.h, config/sparc/sp64-elf.h,
7672         config/sparc/supersparc.md, config/sparc/cypress.md,
7673         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
7674         config/sparc/niagara.md, config/sparc/sparc.md,
7675         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
7676         config/sparc/sparc.opt, config/sparc/sync.md,
7677         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
7678         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
7679         config/sparc/sparc.c, config/sparc/little-endian.opt,
7680         config/sparc/sysv4-only.h, config/sparc/sparc.h,
7681         config/sparc/linux64.h, config/sparc/freebsd.h,
7682         config/sparc/sol2.h, config/sparc/rtemself.h,
7683         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
7684         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
7685         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
7686         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
7687         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
7688         config/m32r/linux.h, config/m32r/constraints.md,
7689         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
7690         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
7691         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
7692         config/i386/i386.md, config/i386/netware-crt0.c,
7693         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
7694         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
7695         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
7696         config/i386/sol2.h, config/i386/constraints.md,
7697         config/i386/netware-libgcc.c, config/i386/sysv5.h,
7698         config/i386/predicates.md, config/i386/geode.md,
7699         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
7700         config/i386/freebsd64.h, config/i386/vxworksae.h,
7701         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
7702         config/i386/rtemself.h, config/i386/netbsd-elf.h,
7703         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
7704         config/i386/netware.h, config/i386/i386-modes.def,
7705         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
7706         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
7707         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
7708         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
7709         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
7710         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
7711         config/i386/xm-mingw32.h, config/i386/linux64.h,
7712         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
7713         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
7714         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
7715         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
7716         config/i386/cygwin2.c, config/i386/i386-protos.h,
7717         config/i386/sync.md, config/i386/openbsd.h,
7718         config/i386/host-mingw32.c, config/i386/i386-aout.h,
7719         config/i386/nto.h, config/i386/biarch64.h,
7720         config/i386/i386-coff.h, config/i386/freebsd.h,
7721         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
7722         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
7723         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
7724         config/darwin-protos.h, config/linux.opt, config/sol2.c,
7725         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
7726         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
7727         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
7728         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
7729         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
7730         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
7731         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
7732         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
7733         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
7734         config/sh/superh64.h, config/sh/rtemself.h,
7735         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
7736         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
7737         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
7738         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
7739         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
7740         config/avr/predicates.md, config/avr/constraints.md,
7741         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
7742         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
7743         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
7744         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
7745         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
7746         config/c4x/c4x-modes.def, config/c4x/rtems.h,
7747         config/c4x/predicates.md, config/c4x/c4x.h,
7748         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
7749         config/xtensa/predicates.md, config/xtensa/xtensa.c,
7750         config/xtensa/linux.h, config/xtensa/xtensa.h,
7751         config/xtensa/elf.h, config/xtensa/xtensa.md,
7752         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
7753         config/xtensa/xtensa-protos.h, config/dbx.h,
7754         config/stormy16/predicates.md, config/stormy16/stormy16.md,
7755         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
7756         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
7757         config/host-solaris.c, config/fr30/fr30.h,
7758         config/fr30/predicates.md, config/fr30/fr30-protos.h,
7759         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
7760         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
7761         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
7762         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
7763         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
7764         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
7765         config/host-linux.c, config/interix3.h, config/cris/cris.c,
7766         config/cris/predicates.md, config/cris/linux.h,
7767         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
7768         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
7769         config/cris/aout.opt, config/cris/cris-protos.h,
7770         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
7771         config/iq2000/iq2000.h, config/iq2000/predicates.md,
7772         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
7773         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
7774         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
7775         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
7776         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
7777         config/chorus.h, config/mn10300/mn10300.c,
7778         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
7779         config/mn10300/mn10300.h, config/mn10300/linux.h,
7780         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
7781         config/mn10300/mn10300.md, config/ia64/predicates.md,
7782         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
7783         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
7784         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
7785         config/ia64/freebsd.h, config/ia64/ia64.md,
7786         config/ia64/ia64-modes.def, config/ia64/constraints.md,
7787         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
7788         config/gofast.h, config/rtems.h, config/sol2-10.h,
7789         config/m68k/predicates.md, config/m68k/m68k.md,
7790         config/m68k/linux.h, config/m68k/m68k-modes.def,
7791         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
7792         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
7793         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
7794         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
7795         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
7796         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
7797         config/m68k/constraints.md, config/m68k/rtemself.h,
7798         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
7799         config/m68k/uclinux.h, config/rs6000/power4.md,
7800         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
7801         config/rs6000/linux.h, config/rs6000/eabi.h,
7802         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
7803         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
7804         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
7805         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
7806         config/rs6000/windiss.h, config/rs6000/603.md,
7807         config/rs6000/aix41.h, config/rs6000/cell.md,
7808         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
7809         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
7810         config/rs6000/darwin.md, config/rs6000/darwin64.h,
7811         config/rs6000/default64.h, config/rs6000/7xx.md,
7812         config/rs6000/darwin.opt, config/rs6000/spe.md,
7813         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
7814         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
7815         config/rs6000/7450.md, config/rs6000/linux64.h,
7816         config/rs6000/constraints.md, config/rs6000/440.md,
7817         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
7818         config/rs6000/rs6000.c, config/rs6000/aix52.h,
7819         config/rs6000/rs6000.h, config/rs6000/power6.md,
7820         config/rs6000/predicates.md, config/rs6000/altivec.md,
7821         config/rs6000/aix64.opt, config/rs6000/rios1.md,
7822         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
7823         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
7824         config/rs6000/darwin7.h, config/rs6000/dfp.md,
7825         config/rs6000/linux64.opt, config/rs6000/sync.md,
7826         config/rs6000/vxworksae.h, config/rs6000/power5.md,
7827         config/rs6000/lynx.h, config/rs6000/biarch64.h,
7828         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
7829         config/rs6000/eabispe.h, config/rs6000/e500.h,
7830         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
7831         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
7832         config/rs6000/aix.h, config/rs6000/vxworks.h,
7833         config/rs6000/40x.md, config/rs6000/aix51.h,
7834         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
7835         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
7836         config/arc/arc.h, config/mcore/mcore-elf.h,
7837         config/mcore/mcore-protos.h, config/mcore/predicates.md,
7838         config/mcore/mcore.md, config/mcore/mcore.c,
7839         config/mcore/mcore.opt, config/mcore/mcore.h,
7840         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
7841         config/score/predicates.md, config/score/score-version.h,
7842         config/score/score-protos.h, config/score/misc.md,
7843         config/score/elf.h, config/score/score.c, config/score/mac.md,
7844         config/score/score7.md, config/score/score.h,
7845         config/score/score-conv.h, config/score/score-mdaux.c,
7846         config/score/score.md, config/score/score.opt,
7847         config/score/score-modes.def, config/score/score-mdaux.h,
7848         config/score/mul-div.S, config/arm/uclinux-elf.h,
7849         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
7850         config/arm/symbian.h, config/arm/linux-elf.h,
7851         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
7852         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
7853         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
7854         config/arm/strongarm-pe.h, config/arm/arm.h,
7855         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
7856         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
7857         config/arm/arm-modes.def, config/arm/linux-eabi.h,
7858         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
7859         config/arm/arm-cores.def, config/arm/arm-protos.h,
7860         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
7861         config/arm/wince-pe.h, config/arm/neon.md,
7862         config/arm/constraints.md, config/arm/neon.ml,
7863         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
7864         config/arm/arm.opt, config/arm/arm926ejs.md,
7865         config/arm/predicates.md, config/arm/iwmmxt.md,
7866         config/arm/arm_neon.h, config/arm/unknown-elf.h,
7867         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
7868         config/arm/neon-testgen.ml, config/arm/arm.md,
7869         config/arm/xscale-coff.h, config/arm/pe.c,
7870         config/arm/arm-generic.md, config/arm/pe.h,
7871         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
7872         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
7873         config/arm/strongarm-elf.h, config/arm/cirrus.md,
7874         config/arm/netbsd-elf.h, config/arm/vxworks.h,
7875         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
7876         config/pa/predicates.md, config/pa/pa64-hpux.h,
7877         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
7878         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
7879         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
7880         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
7881         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
7882         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
7883         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
7884         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
7885         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
7886         config/pa/pa64-regs.h, config/pa/pa-modes.def,
7887         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
7888         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
7889         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
7890         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
7891         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
7892         config/mips/linux64.h, config/mips/elforion.h,
7893         config/mips/constraints.md, config/mips/generic.md,
7894         config/mips/predicates.md, config/mips/4300.md,
7895         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
7896         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
7897         config/mips/5k.md, config/mips/vr4120-div.S,
7898         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
7899         config/mips/mips-protos.h, config/mips/6000.md,
7900         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
7901         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
7902         config/mips/mips-modes.def, config/mips/vr.h,
7903         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
7904         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
7905         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
7906         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
7907         config/vax/openbsd1.h, config/vax/netbsd.h,
7908         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
7909         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
7910         config/h8300/rtems.h, config/h8300/predicates.md,
7911         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
7912         config/h8300/h8300.md, config/h8300/h8300.opt,
7913         config/h8300/coff.h, config/h8300/h8300-protos.h,
7914         config/v850/v850.md, config/v850/predicates.md,
7915         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
7916         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
7917         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
7918         config/mmix/mmix.h, config/mmix/predicates.md,
7919         config/mmix/mmix-protos.h, config/mmix/mmix.md,
7920         config/mmix/mmix.c, config/mmix/mmix.opt,
7921         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
7922         config/bfin/rtems.h, config/bfin/bfin-modes.def,
7923         config/bfin/predicates.md, config/bfin/bfin-protos.h,
7924         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
7925         Likewise.
7926
7927 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
7928
7929         * emit-rtl.c (reset_used_decls): Rename to...
7930         (set_used_decls): ...this.  Set the used flag rather than clearing it.
7931         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
7932         DECL_RTLs rather than resetting them.
7933
7934 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
7935
7936         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
7937
7938 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
7939
7940         * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
7941         argument to find_reloads_address.
7942
7943 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
7944
7945         PR tree-optimization/32919
7946         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
7947         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
7948         (coalesce_ssa_name): Call it.
7949
7950 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
7951             David Ung  <davidu@mips.com>
7952
7953         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
7954         (__mips16_unorddf2, __mips16_floatunsidf): New.
7955         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
7956         above functions.
7957         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
7958
7959 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
7960
7961         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
7962         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
7963         * tree.h (OMP_SECTIONS_CONTROL): New macro.
7964         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
7965         * omp-low.c (get_ws_args_for, determine_parallel_type,
7966         expand_omp_for_generic, expand_omp_for_static_nochunk,
7967         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
7968         Work with more precise CFG.
7969         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
7970         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
7971         OMP_CONTINUE.
7972         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
7973         * gimple-low.c (lower_stmt): Ditto.
7974         * tree-inline.c (estimate_num_insns_1): Ditto.
7975         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
7976         (OMP_SECTIONS_SWITCH): New.
7977         * tree-cfgcleanup.c (cleanup_omp_return): New.
7978         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
7979         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
7980         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
7981         (tree_redirect_edge_and_branch): Handle omp constructs.
7982
7983         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
7984         with three arguments.
7985
7986 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
7987
7988         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
7989         in loop closed ssa.
7990
7991 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
7992
7993         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
7994         the loop structures may need fixing.
7995         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7996         New functions.
7997         (cleanup_tree_cfg_loop): Removed.
7998         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
7999         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
8000         instead of running cleanup_tree_cfg_loop.
8001         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
8002         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
8003         (tree_predictive_commoning): Declaration changed.
8004         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
8005
8006 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
8007
8008         * doc/invoke.texi (l1-cache-size): Update documentation.
8009         (l2-cache-size): Document.
8010         * params.h (L2_CACHE_SIZE): New macro.
8011         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
8012         that L1_CACHE_SIZE is in kB now.
8013         (L2_CACHE_SIZE_BYTES): New macro.
8014         (tree_ssa_prefetch_arrays): Show size in kB.
8015         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
8016         and l2_cache_size fields.
8017         * config/i386/driver-i386.c (describe_cache): Detect cache size
8018         in kB.
8019         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
8020         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
8021         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
8022         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
8023         (override_options): Set l1-cache-size and l2-cache-size to default
8024         values if not specified otherwise.
8025         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
8026         (PARAM_L2_CACHE_SIZE): New.
8027
8028 2007-08-01  Nigel Stephens  <nigel@mips.com>
8029             David Ung  <davidu@mips.com>
8030             Thiemo Seufer  <ths@mips.com>
8031             Chris Dearman  <chris@mips.com>
8032             Richard Sandiford  <richard@codesourcery.com>
8033
8034         * config.gcc (mips*-sde-elf*): New stanza.
8035         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
8036         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
8037         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
8038         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
8039         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
8040         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
8041         to tmake_file.
8042         * config/mips/sde.h: New file.
8043         * config/mips/t-libgcc-mips16: Likewise.
8044         * config/mips/t-sde: Likewise.
8045         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
8046         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
8047         _MIPS_FPSET and _MIPS_SZINT.
8048         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
8049         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
8050         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
8051         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
8052         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
8053         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
8054         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
8055         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
8056         _MIPS_SZPTR and _MIPS_FPSET.
8057         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
8058         architecture is specified.
8059         (MIPS_32BIT_OPTION_SPEC): New macro.
8060
8061 2007-07-31  Dan Hipschman  <dsh@google.com>
8062
8063         * gcc.c (end_going_arg): New function.
8064         (do_spec_2): Use it.
8065         (do_spec_1): Use it.
8066
8067 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8068
8069         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
8070         only if ENABLE_CHECKING is defined.
8071
8072 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
8073
8074         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
8075         df_ru_add_problem, df_ru_get_bb_info): Removed.
8076         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
8077         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
8078         df_ru_free_bb_info, df_ru_alloc,
8079         df_ru_bb_local_compute_process_def,
8080         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
8081         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
8082         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
8083         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
8084         df_ru_add_problem): Removed.
8085
8086 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8087
8088         PR target/32847
8089         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
8090         (casesi32p, casesi64p): Likewise.
8091         (casesi): Adjust for above.
8092
8093 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
8094
8095         * mode-switching.c (create_pre_exit): Don't search past calls.
8096
8097 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
8098
8099         * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
8100
8101 2007-07-31  Revital Eres  <eres@il.ibm.com>
8102
8103         * ddg.c (add_deps_for_def): Rename to...
8104         (add_cross_iteration_register_deps): This.  Change implementation
8105         to use only reaching def and def-use chains to construct the
8106         inter loop dependencies.
8107         (add_deps_for_use): Remove function.
8108         (build_inter_loop_deps): Call add_cross_iteration_register_deps
8109         function to build the inter loop dependencies.
8110         * modulo-sched.c (sms_schedule): Build only
8111         reaching def and def-use chains for the propose of the ddg
8112         construction.
8113
8114 2007-07-31  Julian Brown  <julian@codesourcery.com>
8115
8116         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
8117         New define_insns. Use correct RTL.
8118         (vec_set<mode>): Write as expander.
8119
8120 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
8121
8122         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
8123         to an unallocated space.
8124
8125 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
8126
8127         * tree-data-ref.c
8128         (split_constant_offset): Enable split_constant_offset to extract
8129         constants from other statements.
8130         * tree-vect-transform.c
8131         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
8132         to a temp var. Force base_offset to be simple.
8133
8134 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
8135
8136         * df-scan.c (df_scan_verify): Remove artificial limit on
8137         the number of blocks for verification.
8138         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
8139         df_simulate_defs): Avoid unnecessary insn checking for defs.
8140
8141 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
8142
8143         * config/m68k/lb1sf68.asm (FUNC): New macro.
8144         (__mulsi3): Use it.
8145         (__udivsi3): Likewise.
8146         (__divsi3): Likewise.
8147         (__umodsi3): Likewise.
8148         (__modsi3): Likewise.
8149         (__subdf3): Likewise.
8150         (__adddf3): Likewise.
8151         (__muldf3): Likewise.
8152         (__divdf3): Likewise.
8153         (__negdf2): Likewise.
8154         (__cmpdf2): Likewise.
8155         (__subsf3): Likewise.
8156         (__addsf3): Likewise.
8157         (__mulsf3): Likewise.
8158         (__divsf3): Likewise.
8159         (__negsf2): Likewise.
8160         (__cmpsf2): Likewise.
8161         (__eqdf2): Likewise.
8162         (__nedf2): Likewise.
8163         (__gtdf2): Likewise.
8164         (__gedf2): Likewise.
8165         (__ltdf2): Likewise.
8166         (__ledf2): Likewise.
8167         (__eqsf2): Likewise.
8168         (__nesf2): Likewise.
8169         (__gtsf2): Likewise.
8170         (__gesf2): Likewise.
8171         (__ltsf2): Likewise.
8172         (__lesf2): Likewise.
8173
8174 2007-07-30  Ollie Wild  <aaw@google.com>
8175
8176         * c-ppoutput.c (print_lines_directives_only): New function.
8177         (scan_translation_unit_directives_only): New function.
8178         (preprocess_file): Add call to scan_translation_unit_directives_only.
8179         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
8180         (sanitize_cpp_opts): Add default flag_dump_macros setting for
8181         -fdirectives-only.  Add errors for -fdirectives-only conflict with
8182         -Wunused-macros and -traditional.
8183         (finish_options): Add builtin macro initialization for
8184         -fdirectives-only + -fpreprocessed.
8185         * c.opt (fdirectives-only): New.
8186         * doc/cppopts.texi (fdirectives-only): New.
8187
8188 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8189
8190         * alias.c (record_set, memory_modified_1): Constify.
8191         * bt-load.c (note_btr_set): Likewise.
8192         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
8193         * combine.c (set_nonzero_bits_and_sign_copies,
8194         expand_field_assignment, record_dead_and_set_regs_1,
8195         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
8196         likely_spilled_retval_1): Likewise.
8197         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
8198         frv_io_handle_set): Likewise.
8199         * config/mips/mips.c (mips_sim_record_set,
8200         vr4130_true_reg_dependence_p_1): Likewise.
8201         * config/mt/mt.c (insn_dependent_p_1): Likewise.
8202         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
8203         * config/sh/sh.c (flow_dependent_p_1): Likewise.
8204         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
8205         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
8206         * ddg.c (mark_mem_store): Likewise.
8207         * df-problems.c (df_urec_mark_reg_change): Likewise.
8208         * function.c (update_epilogue_consts): Likewise.
8209         * gcse.c (record_set_info, record_last_set_info,
8210         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
8211         reg_clear_last_set): Likewise.
8212         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
8213         Likewise.
8214         * jump.c (reversed_comparison_code_parts): Likewise.
8215         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
8216         reg_is_set): Likewise.
8217         * loop-iv.c (mark_altered): Likewise.
8218         * mode-switching.c (reg_becomes_live): Likewise.
8219         * optabs.c (no_conflict_move_test): Likewise.
8220         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
8221         Likewise.
8222         * postreload.c (reload_combine_note_store, move2add_note_store):
8223         Likewise.
8224         * regmove.c (flags_set_1): Likewise.
8225         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
8226         Likewise.
8227         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
8228         Likewise. 
8229         * resource.c (update_live_status): Likewise.
8230         * rtl.h (set_of, note_stores): Likewise.
8231         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
8232         note_stores, parms_set): Likewise.
8233         * sched-rgn.c (sets_likely_spilled_1): Likewise.
8234         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
8235         Likewise. 
8236         * var-tracking.c (count_stores, add_stores): Likewise.
8237
8238 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8239
8240         * alias.c (mems_in_disjoint_alias_sets_p,
8241         fixed_scalar_and_varying_struct_p, aliases_everything_p,
8242         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
8243         write_dependence_p, mems_in_disjoint_alias_sets_p,
8244         read_dependence, true_dependence, canon_true_dependence,
8245         anti_dependence, output_dependence): Constify.
8246         * combine.c (extended_count): Likewise.
8247         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
8248         * cselib.c (get_value_hash, references_value_p,
8249         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
8250         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
8251         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
8252         * function.c (contains, prologue_epilogue_contains,
8253         sibcall_epilogue_contains): Likewise. 
8254         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
8255         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
8256         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
8257         reg_or_subregno): Likewise.
8258         * recog.c (asm_noperands): Likewise.
8259         * reload1.c (function_invariant_p): Likewise.
8260         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
8261         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
8262         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
8263         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
8264         true_regnum, reg_or_subregno, condjump_in_parallel_p,
8265         extended_count, prologue_epilogue_contains,
8266         sibcall_epilogue_contains, function_invariant_p, true_dependence,
8267         canon_true_dependence, read_dependence, anti_dependence,
8268         output_dependence): Likewise.
8269         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
8270
8271 2007-07-30  Julian Brown  <julian@codesourcery.com>
8272
8273         * config/arm/neon.md (V_ext): New mode attribute.
8274         (neon_vget_lane<mode>): Replace with define_expand.
8275         (neon_vget_lane<mode>_sext_internal)
8276         (neon_vget_lane<mode>_zext_internal): New define_insns for double
8277         and quad precision vectors.
8278         (neon_vget_lanedi): Add bounds check. Remove dead comment.
8279         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
8280         have typeless 32-bit result.
8281
8282 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8283
8284         PR tree-opt/32527
8285         * tree-affine.h (aff_tree): The type of rest is sizetype for types
8286         of pointers.
8287         * tree-affine.c (aff_combination_scale): If type is a pointer type,
8288         use sizetype for rest.
8289         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
8290         (aff_combination_convert): Don't convert rest for pointer types.
8291
8292 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
8293
8294         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
8295
8296         * tree-ssa-alias.c: Add alloc-pool.h.
8297         (init_alias_info): Free alias_bitmap_obstack.
8298         (delete_alias_info): Call delete_mem_ref_stats.
8299         (get_mem_sym_stats_for): Use alloc_pool.
8300         (init_mem_ref_stats): Do not delete mem_ref_stats here.
8301         (delete_mem_sym_stats): Removed.
8302         
8303 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
8304
8305         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
8306         functions cannot be represented as classical distance vectors.
8307
8308 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8309
8310         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
8311         * builtins.c (validate_arg, builtin_mathfn_code,
8312         validate_arglist): Likewise.
8313         * calls.c (call_expr_flags): Likewise.
8314         * combine.c (reg_nonzero_bits_for_combine,
8315         reg_num_sign_bit_copies_for_combine, get_last_value,
8316         reg_truncated_to_mode): Likewise.
8317         * emit-rtl.c (subreg_lowpart_p): Likewise.
8318         * expr.c (highest_pow2_factor_for_target,
8319         categorize_ctor_elements_1, categorize_ctor_elements,
8320         count_type_elements, contains_packed_reference,
8321         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
8322         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
8323         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
8324         native_encode_int, native_encode_real, native_encode_complex,
8325         native_encode_vector, native_encode_expr, native_interpret_int,
8326         native_interpret_real, native_interpret_complex,
8327         native_interpret_vector, native_interpret_expr): Likewise.
8328         * function.c (use_register_for_decl): Likewise.
8329         * gimplify.c (get_name): Likewise.
8330         * langhooks-def.h (lhd_return_null_const_tree): New.
8331         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
8332         * langhooks.c (lhd_return_null_const_tree): New.
8333         * langhooks.h (lang_get_callee_fndecl): Constify.
8334         * output.h (constructor_static_from_elts_p): Likewise.
8335         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
8336         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
8337         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
8338         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
8339         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
8340         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
8341         * rtlhooks-def.h (reg_nonzero_bits_general,
8342         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
8343         Likewise. 
8344         * rtlhooks.c (reg_num_sign_bit_copies_general,
8345         reg_nonzero_bits_general, reg_truncated_to_mode_general):
8346         Likewise. 
8347         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
8348         * stor-layout.c (mode_for_size_tree): Likewise.
8349         * tree-ssa-loop-im.c (memref_eq): Likewise.
8350         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
8351         * tree.c (contains_placeholder_p, type_list_equal,
8352         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
8353         Likewise. 
8354         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
8355         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
8356         contains_placeholder_p, contains_packed_reference,
8357         get_callee_fndecl, operand_equal_for_phi_arg_p,
8358         warn_if_unused_value, is_body_block, native_encode_expr,
8359         native_interpret_expr, fold_convertible_p, operand_equal_p,
8360         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
8361         validate_arglist, simple_cst_equal, type_list_equal,
8362         use_register_for_decl, call_expr_flags, get_name,
8363         highest_pow2_factor): Likewise.
8364         (const_call_expr_arg_iterator_d,
8365         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
8366         first_const_call_expr_arg, more_const_call_expr_args_p,
8367         FOR_EACH_CONST_CALL_EXPR_ARG): New.
8368         * varasm.c (constructor_static_from_elts_p): Constify.
8369
8370 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
8371
8372         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
8373         config/arm/neon-schedgen.ml, config/arm/neon.ml,
8374         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
8375         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
8376         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
8377         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
8378         spelling conventions.
8379         * doc/invoke.texi: Follow spelling conventions.
8380
8381 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
8382             Revital Eres  <eres@il.ibm.com>
8383
8384         * modulo-sched.c (sms_schedule): Avoid loops which includes
8385         auto-increment instructions.
8386
8387 2007-07-28  Richard Guenther  <rguenther@suse.de>
8388
8389         PR middle-end/32920
8390         * fold-const.c (fold_cond_expr_with_comparison): Convert
8391         operand zero of MIN/MAX_EXPR to correct type.
8392
8393 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8394
8395         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
8396         flags_from_decl_or_type): Constify.
8397         * gcc.c (do_spec_1): Likewise.
8398         * print-tree.c (dump_addr, print_node_brief): Likewise.
8399         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
8400         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
8401         tree_purge_all_dead_eh_edges): Likewise.
8402         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
8403         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
8404         Likewise. 
8405         * tree.c (expr_location, expr_has_location, expr_locus,
8406         expr_filename, expr_lineno, get_inner_array_type,
8407         fields_compatible_p): Likewise.
8408         * tree.h (get_inner_array_type, fields_compatible_p,
8409         expr_location, expr_has_location, expr_locus, expr_filename,
8410         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
8411         setjmp_call_p, alloca_call_p): Likewise.
8412
8413 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
8414
8415         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
8416         TV_FLOW_INSENSITIVE.
8417
8418         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
8419         TV_CALL_CLOBBER.
8420         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
8421         (compute_flow_insensitive_aliasing): Ditto for
8422         TV_FLOW_INSENSITIVE.    
8423
8424 2007-07-27  Jan Hubicka  <jh@suse.cz>
8425
8426         * config/i386/i386.c (register_move_cost): Remove accidentally
8427         comitted #if 0 block.
8428
8429         * attribs.c: Include hashtab.h
8430         (attribute_hash): New.
8431         (substring): New structure.
8432         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
8433         New function.
8434         (init_attributes): Initialize attribute hash.
8435         (decl_attributes): Use attribute hash.
8436         * Makefile.in (attribs.c): Depend on hashtab.h.
8437
8438 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
8439
8440         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
8441
8442 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
8443
8444         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
8445         __mips_dspr2 and __mips_dsp_rev macros.
8446         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
8447
8448 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
8449         
8450        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
8451
8452 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
8453
8454         PR middle-end/32749
8455         
8456         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
8457         and the updating of the live and do_not_gen sets.
8458         (df_note_bb_compute): Added updating of live and do_not_gen sets
8459         for regular defs so that the case of clobber inside conditional
8460         call is processed correctly.
8461         
8462 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8463
8464         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
8465         operands with compatible type.
8466
8467 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
8468
8469         * expr.h (store_bit_field): Don't return a value.
8470         * expmed.c (check_predicate_volatile_ok): New function.
8471         (store_bit_field_1): New function, extracted from store_bit_field.
8472         Take a fallback_p argument and return true if the operation succeeded.
8473         Only use store_fixed_bit_field if fallback_p.  Don't recompute
8474         mode_for_extraction; use op_mode instead.  Try forcing memories
8475         into registers if the insv expander fails.
8476         (store_bit_field): Use store_bit_field_1 with fallback_p true.
8477         Don't return a value.
8478         (convert_extracted_bit_field): New function, extracted from
8479         store_bit_field.
8480         (extract_bit_field_1): Likewise.  Take a fallback_p argument
8481         and return NULL if the operation succeeded.  Only use
8482         extract_fixed_bit_field if fallback_p.  Only calculate one
8483         extraction mode.  Combine code for extv and extzv.  Try forcing
8484         memories into registers if the ext(z)v expander fails.
8485         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
8486
8487 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
8488
8489         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
8490         into bitfields.
8491         (df_ref): Likewise.  Put regno with other integer fields.
8492
8493 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
8494
8495         * df.h (df_mw_hardreg): Remove "loc" field.
8496         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
8497         local variable.
8498         * df-problems.c (df_whole_mw_reg_unused_p): New function,
8499         split out from df_set_unused_notes_for_mw.  Return false for
8500         partial references.  Assert that mw_reg is a REG when returning true.
8501         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
8502         (df_whole_mw_reg_dead_p): New function, split out from
8503         df_set_dead_notes_for_mw.  Return false for partial references.
8504         Assert that mw_reg is a REG when returning true.
8505         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
8506         Remove redundant bitmap check.
8507
8508 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8509
8510         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
8511         ($(T)crtend.o): Likwise.
8512         ($(T)crtbeginS.o): Likwise.
8513         ($(T)crtendS.o): Likwise.
8514         ($(T)crtfastmath.o): Likwise.
8515
8516 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
8517
8518         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
8519         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
8520         * basic-block.h (struct control_flow_graph): Added x_dom_computed
8521         and x_n_bbs_in_dom_tree fields.
8522
8523 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
8524
8525         PR tree-optimization/32087
8526         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8527         Do not call scale_bbs_frequencies_int with prob of zero.
8528
8529 2007-07-26  Julian Brown  <julian@codesourcery.com>
8530
8531         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
8532         (neon_element_bits): Add prototypes.
8533         * config/arm/arm.c (bounds_check, neon_lane_bounds)
8534         (neon_const_bounds, neon_element_bits): New functions.
8535         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
8536         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
8537         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
8538         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
8539         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
8540         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
8541         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
8542         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
8543         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
8544         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
8545         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
8546         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
8547         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
8548
8549 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
8550
8551         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
8552         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
8553
8554 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
8555             Julian Brown  <julian@codesourcery.com>
8556
8557         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
8558         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
8559         * config/arm/cortex-a8.md: New.
8560         * config/arm/cortex-a8-neon.md: New.
8561         * config/arm/neon-schedgen.ml: New.
8562         * config/arm/neon.md (vqh_mnem): New.
8563         (neon_type): New.
8564         (Is_float_mode): New.
8565         (Scalar_mul_8_16): New.
8566         (Is_d_reg): New.
8567         (V_mode_nunits): New.
8568         (All instruction patterns): Annotate with neon_type attribute
8569         values.
8570         * config/arm/arm.md: Include cortex-a8.md.
8571         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
8572         values.
8573         Annotate instruction patterns accordingly.
8574         (generic_sched): Do not use generic scheduling for Cortex-A8.
8575         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
8576
8577 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
8578
8579         * fold-const.c (fold_read_from_constant_string): Use
8580         build_int_cst_type.
8581         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8582
8583 2007-07-26  Nick Clifton  <nickc@redhat.com>
8584
8585         * tree-ssa-operands.h: Change copyright header to refer to version
8586         3 of the GNU General Public License and to point readers at the
8587         COPYING3 file and the FSF's license web page.
8588         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
8589         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
8590         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
8591         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
8592         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
8593         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
8594         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
8595         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
8596         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
8597         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
8598         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
8599         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
8600         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
8601         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
8602         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
8603         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
8604         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
8605         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
8606         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
8607         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
8608         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
8609         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
8610         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
8611         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
8612         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
8613         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
8614         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
8615         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
8616         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
8617         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
8618         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
8619         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
8620         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
8621         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
8622         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
8623         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
8624         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
8625         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
8626         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
8627         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
8628         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
8629         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
8630         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
8631         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
8632         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
8633         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
8634         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
8635         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
8636         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
8637         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
8638         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
8639         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
8640         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
8641         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
8642         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
8643         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
8644         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
8645         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
8646         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
8647         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
8648         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
8649         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
8650         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
8651         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
8652         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
8653         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
8654         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
8655         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
8656         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
8657         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
8658         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
8659         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
8660         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
8661         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
8662         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
8663         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
8664         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
8665         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
8666         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
8667         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
8668         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
8669         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
8670         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
8671         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
8672         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
8673         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
8674         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
8675         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
8676         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
8677         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
8678         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
8679         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
8680         vecprim.h, basic-block.h, tree-ssa-structalias.c,
8681         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
8682         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
8683         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
8684         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
8685         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
8686         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
8687         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
8688         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
8689         convert.c, convert.h, langhooks-def.h, reload1.c,
8690         tree-ssa-operands.c: Likewise.
8691
8692 2007-07-26  Jan Hubicka  <jh@suse.cz>
8693
8694         * tree-ssa-live.c: Include debug.h and flags.h.
8695         (mark_scope_block_unused): New function.
8696         (remove_unused_scope_block_p): New function.
8697         (remove_unused_locals): Remove unused blocks too.
8698
8699 2007-07-25  Ian Lance Taylor  <iant@google.com>
8700
8701         * combine.c (combine_max_regno): Remove.  Remove all uses.
8702         (struct reg_stat_struct): Rename from struct reg_stat.
8703         (reg_stat_type): Define, and declare VECs.
8704         (reg_stat): Change from pointer to VEC.  Change all uses.
8705         (combine_split_insns): New static function.
8706         (try_combine, find_split_point): Call it instead of split_insns.
8707
8708 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
8709
8710         * cfghooks.c (split_block): Fix the information about loop latch.
8711
8712 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
8713
8714         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
8715
8716 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
8717
8718         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8719         Scan the new edge for loop exit info.
8720
8721 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
8722
8723         * config/darwin.c: Include debug.h.
8724
8725 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
8726
8727         PR target/32218
8728         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
8729
8730 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
8731
8732         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
8733         (HARD_REGNO_MODE_OK): Ditto.
8734         (MODES_TIEABLE_P): Ditto.
8735         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
8736         (CLASS_MAX_NREGS): Ditto.
8737         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
8738         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
8739         (divdf3_internal_thr): Removed.
8740         * config/ia64/div.md: New file.
8741         * config/ia64/constraints.md: Add H constraint.
8742
8743 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8744
8745         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
8746         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
8747         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
8748         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
8749         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
8750         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
8751         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
8752         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
8753         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
8754         dump_sbitmap_file, debug_sbitmap, popcount_table,
8755         sbitmap_popcount): Constify.
8756         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
8757         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
8758         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
8759         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
8760         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
8761         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
8762         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
8763         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
8764         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
8765         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
8766         sbitmap_popcount, sbitmap_verify_popcount): Constify.
8767
8768 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8769
8770         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
8771         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
8772         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
8773         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
8774         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
8775         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
8776         bitmap_intersect_p, bitmap_intersect_compl_p,
8777         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
8778         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
8779         Constify.
8780         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
8781         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
8782         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
8783         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
8784         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
8785         debug_bitmap, debug_bitmap_file, bitmap_print,
8786         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
8787         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
8788
8789 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
8790
8791         * config/darwin.c (darwin_override_options): Additional fix for
8792         debug info formats that don't support var tracking.
8793
8794 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8795
8796         * cselib.c (entry_and_rtx_equal_p): Constify.
8797         * gengtype.c (output_mangled_typename, write_types, write_local):
8798         Likewise.
8799         * gengtype.h (const_type_p): New.
8800         * see.c (eq_descriptor_extension, hash_descriptor_extension):
8801         Constify.
8802         * tlink.c (scan_linker_output): De-constify.
8803         * tree-ssa-loop-im.c (memref_eq): Constify.
8804         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
8805         (shared_bitmap_hash, shared_bitmap_eq): Constify.
8806
8807 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8808
8809         * c-common.c (fname_as_string, c_type_hash): Constify.
8810         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
8811         * cgraph.c (edge_hash, edge_eq): Likewise.
8812         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
8813         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
8814         reg_attrs_htab_eq): Likewise.
8815         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
8816         Likewise.
8817         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
8818         const_decl_t, const_state_t, const_automata_list_el_t): New.
8819         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
8820         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
8821         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
8822         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
8823         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
8824         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
8825         compare_max_occ_cycle_nums, out_state_arcs_num,
8826         compare_transition_els_num, units_cmp, state_reservs_cmp):
8827         Constify.
8828         * genmodes.c (cmp_modes): Likewise.
8829         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
8830         * gimplify.c (compare_case_labels): Likewise.
8831         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
8832         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
8833         * matrix-reorg.c (mtt_info_hash): Likewise.
8834         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
8835         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
8836         (htab_hash_bucket, htab_hash_elem): Constify.
8837         * tree-browser.c (TB_parent_eq): Likewise.
8838         * tree-scalar-evolution.c (hash_scev_info): Likewise.
8839         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
8840         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
8841         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
8842         Constify.
8843         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
8844         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
8845         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
8846         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
8847         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
8848         New.
8849         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
8850         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
8851         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
8852         * tree-ssa-threadupdate.c (redirection_data_hash,
8853         redirection_data_eq): Likewise. 
8854         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
8855         * tree-ssa.c (var_ann_eq): Likewise.
8856         * tree-vrp.c (compare_case_labels): Likewise.
8857         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
8858         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
8859         tree_not_check_failed, tree_class_check_failed,
8860         tree_range_check_failed, tree_not_class_check_failed,
8861         omp_clause_check_failed, omp_clause_range_check_failed,
8862         tree_contains_struct_check_failed, tree_operand_check_failed):
8863         Likewise. 
8864         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
8865         tree_not_check_failed, tree_class_check_failed,
8866         tree_range_check_failed, tree_not_class_check_failed,
8867         tree_operand_check_failed, omp_clause_operand_check_failed,
8868         tree_operand_length): Likewise. 
8869         * var-tracking.c (const_variable): New.
8870         (variable_htab_hash, variable_htab_eq): Constify.
8871         * varasm.c (const_desc_hash): Likewise.
8872
8873 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8874
8875         * expr.c (handled_component_p): Constify.
8876         * fold-const.c (fit_double_type): Likewise.
8877         * real.h (real_value_from_int_cst): Likewise.
8878         * tree-flow-inline.h (gimple_in_ssa_p,
8879         gimple_aliases_computed_p, gimple_addressable_vars,
8880         gimple_call_clobbered_vars, gimple_referenced_vars,
8881         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
8882         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
8883         may_aliases, end_readonly_imm_use_p, has_zero_uses,
8884         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
8885         is_label_stmt, is_global_var, phi_ssa_name_p,
8886         factoring_name_p, is_call_clobbered, tree_common_ann,
8887         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
8888         unmodifiable_var_p, array_ref_contains_indirect_ref,
8889         ref_contains_array_ref, lookup_subvars_for_var,
8890         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
8891         gimple_mem_ref_stats): Likewise.
8892         * tree-flow.h (tree_common_ann, var_ann, function_ann,
8893         may_aliases, is_exec_stmt, is_label_stmt,
8894         ref_contains_array_ref, array_ref_contains_indirect_ref,
8895         var_can_have_subvars, overlap_subvar, is_call_clobbered,
8896         unmodifiable_var_p): Likewise.
8897         * tree-gimple.c (is_gimple_min_invariant): Likewise.
8898         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
8899         * tree.c (type_hash_list, attribute_hash_list, tree_size,
8900         cst_and_fits_in_hwi, real_value_from_int_cst,
8901         build_real_from_int_cst, integer_zerop, integer_onep,
8902         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
8903         tree_floor_log2, real_zerop, real_onep, real_twop,
8904         real_minus_onep, really_constant_p, purpose_member, chain_member,
8905         list_length, fields_length, int_size_in_bytes, bit_position,
8906         int_bit_position, byte_position, int_byte_position, expr_align,
8907         array_type_nelts, tree_node_structure,
8908         type_contains_placeholder_1, iterative_hash_pointer,
8909         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
8910         tree_map_base_eq, type_hash_list, type_hash_eq,
8911         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
8912         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
8913         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
8914         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
8915         int_fits_type_p, get_containing_scope, decl_function_context,
8916         decl_type_context, omp_clause_operand_check_failed,
8917         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
8918         * tree.h (omp_clause_operand_check_failed, tree_size,
8919         build_real_from_int_cst, array_type_nelts, purpose_member,
8920         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
8921         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
8922         is_attribute_p, check_qualified_type, expr_align,
8923         int_size_in_bytes, bit_position, int_bit_position, byte_position,
8924         int_byte_position, list_length, fields_length, initializer_zerop,
8925         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
8926         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
8927         tree_node_structure, handled_component_p, get_containing_scope,
8928         decl_function_context, decl_type_context, real_zerop,
8929         type_num_arguments, fit_double_type, really_constant_p,
8930         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
8931         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
8932         real_twop, real_minus_onep, int_cst_value): Likewise.
8933
8934 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8935
8936         * cfglayout.c (insn_scope, insn_line): Constify.
8937         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
8938         const_double_htab_hash, const_double_htab_eq,
8939         mem_attrs_htab_hash): Likewise.
8940         * loop-iv.c (biv_eq): Likewise.
8941         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
8942         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
8943         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
8944         Likewise. 
8945         * rtl-error.c (location_for_asm, diagnostic_for_asm,
8946         error_for_asm, warning_for_asm, _fatal_insn,
8947         _fatal_insn_not_found): Likewise. 
8948         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
8949         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
8950         rtl_check_failed_type2, rtl_check_failed_code1,
8951         rtl_check_failed_code2, rtl_check_failed_code_mode,
8952         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
8953         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
8954         rtl_check_failed_type2, rtl_check_failed_code1,
8955         rtl_check_failed_code2, rtl_check_failed_code_mode,
8956         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
8957         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
8958         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
8959         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
8960         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
8961         rtx_unstable_p, get_integer_term, get_related_value,
8962         offset_within_block_p, reg_mentioned_p, count_occurrences,
8963         reg_referenced_p, reg_used_between_p, no_labels_between_p,
8964         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
8965         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
8966         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
8967         find_constant_src, find_reg_fusage, find_regno_fusage,
8968         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
8969         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
8970         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
8971         computed_jump_p, auto_inc_p, in_expr_list_p,
8972         remove_node_from_expr_list, loc_mentioned_in_p,
8973         label_is_jump_target_p, reversed_comparison_code_parts,
8974         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
8975         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
8976         print_inline_rtx): Likewise.
8977         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
8978         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
8979         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
8980         get_integer_term, get_related_value, offset_within_block_p,
8981         count_occurrences, reg_mentioned_p, no_labels_between_p,
8982         reg_used_between_p, reg_referenced_p, single_set_2,
8983         multiple_sets, set_noop_p, refers_to_regno_p,
8984         reg_overlap_mentioned_p, dead_or_set_p,
8985         covers_regno_no_parallel_p, covers_regno_p,
8986         dead_or_set_regno_p, find_reg_note, find_regno_note,
8987         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
8988         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
8989         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
8990         side_effects_p, may_trap_p_1, may_trap_p,
8991         may_trap_after_code_motion_p, may_trap_or_fault_p,
8992         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
8993         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
8994         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
8995         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
8996         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
8997         Likewise. 
8998         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
8999         warning_for_asm): Likewise.
9000         * tree.h (print_rtl): Likewise.
9001         * varasm.c (get_pool_mode): Likewise.
9002
9003 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9004
9005         * c-lex.c (c_lex_with_flags, lex_string): Constify.
9006         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
9007         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
9008         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
9009         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
9010         * ddg.c (compare_sccs): Likewise.
9011         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
9012         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
9013         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
9014         decimal_do_fix_trunc, decimal_real_to_integer,
9015         decimal_real_to_integer2, decimal_real_maxval): Likewise.
9016         * dse.c (const_group_info_t): New.
9017         (invariant_group_base_eq, invariant_group_base_hash): Constify.
9018         * dwarf2out.c (const_dw_die_ref): New.
9019         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
9020         * tree-browser.c (TB_parent_eq): Likewise.
9021         * unwind-dw2-fde.c (__register_frame_info_bases,
9022         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
9023         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
9024         Likewise.
9025         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
9026         * unwind-dw2.c (uw_frame_state_for): Likewise.
9027         * value-prof.c (histogram_hash, histogram_eq): Likewise.
9028         * value-prof.h (const_histogram_value): New.
9029
9030 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
9031
9032         * config/mips/mips.c (machine_function): Add
9033         initialized_mips16_gp_pseudo_p.
9034         (mips16_gp_pseudo_reg): Do not emit the initialization of
9035         mips16_gp_pseudo_rtx when being called from the gimple cost-
9036         calculation routines; emit it on the first use outside those
9037         routines.
9038
9039 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9040
9041         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
9042         New.
9043         
9044         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9045         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
9046         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
9047         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
9048         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
9049         Preserve const-ness of parameters through use of __typeof(),
9050         also constify and tidy.
9051         
9052         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
9053         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
9054         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
9055         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
9056         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
9057         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
9058         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
9059         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
9060         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
9061
9062 2007-07-25  Julian Brown  <julian@codesourcery.com>
9063             Mark Shinwell  <shinwell@codesourcery.com>
9064
9065         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
9066         (alpha_mangle_type): This.
9067         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9068         (TARGET_MANGLE_TYPE): Define this instead.
9069         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
9070         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
9071         (arm_init_neon_builtins): Fix comment.
9072         (arm_mangle_map_entry): New.
9073         (arm_mangle_map): New.
9074         (arm_mangle_type): New.
9075         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
9076         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
9077         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
9078         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9079         (TARGET_MANGLE_TYPE): Define this instead.
9080         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
9081         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
9082         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
9083         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9084         (TARGET_MANGLE_TYPE): Define this instead.
9085         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
9086         to...
9087         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
9088         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9089         (TARGET_MANGLE_TYPE): Define this instead.
9090         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
9091         (s390_mangle_type): This.
9092         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9093         (TARGET_MANGLE_TYPE): Define this instead.
9094         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
9095         (sparc_mangle_type): This.
9096         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
9097         (TARGET_MANGLE_TYPE): Define this instead.
9098         * cp/mangle.c (write_type): Call mangle_type target hook on all
9099         types before mangling.  Use original type, not main variant, as
9100         argument.
9101         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
9102         (TARGET_MANGLE_TYPE): This.
9103         * target.h (gcc_target): Rename mangle_fundamental_type to
9104         mangle_type.
9105         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
9106         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
9107
9108 2007-07-25  Julian Brown  <julian@codesourcery.com>
9109             Paul Brook  <paul@codesourcery.com>
9110             Joseph Myers  <joseph@codesourcery.com>
9111             Mark Shinwell  <shinwell@codesourcery.com>
9112
9113         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
9114         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
9115         (with_fpu): Allow --with-fpu=neon.
9116         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
9117         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
9118         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
9119         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
9120         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
9121         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
9122         (neon_emit_pair_result_insn, neon_disambiguate_copy)
9123         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
9124         (output_move_neon): Add prototypes.
9125         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
9126         (all_fpus): Add FPUTYPE_NEON.
9127         (fp_model_for_fpu): Add NEON field.
9128         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
9129         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
9130         in registers.
9131         (arm_legitimate_address_p): Don't support fancy addressing for NEON
9132         structure moves.
9133         (thumb2_legitimate_address_p): Likewise.
9134         (neon_valid_immediate): Recognize and prepare constants suitable for
9135         NEON instructions.
9136         (neon_immediate_valid_for_move): New function. Recognize and prepare
9137         immediates for NEON move instructions.
9138         (neon_immediate_valid_for_logic): New function. Recognize and
9139         prepare immediates for NEON logic instructions.
9140         (neon_output_logic_immediate): New function. Create asm string
9141         suitable for outputting immediate logic instructions.
9142         (neon_pairwise_reduce): New function. Implement reduction using
9143         pairwise operations.
9144         (neon_expand_vector_init): New function. Expand a (possibly
9145         non-constant) vector initialization.
9146         (neon_vector_mem_operand): New function. Memory operands supported
9147         for quad-word loads/stores to/from ARM or NEON registers. Don't
9148         allow base+offset addressing for core regs.
9149         (neon_struct_mem_operand): New function. Valid mems for NEON
9150         structure moves.
9151         (coproc_secondary_reload_class): Enable NEON registers to be loaded
9152         from neon_vector_mem_operand addresses without a secondary register.
9153         (add_minipool_forward_ref): Handle >8-byte minipool entries.
9154         (add_minipool_backward_ref): Likewise.
9155         (dump_minipool): Likewise.
9156         (push_minipool_fix): Likewise.
9157         (output_move_quad): New function. Output quad-word moves, loads and
9158         stores using ARM registers.
9159         (output_move_vfp): Add support for vectors in VFP (NEON) D
9160         registers.
9161         (output_move_neon): Output a NEON load/store to/from a quadword
9162         register.
9163         (arm_print_operand): Implement new codes:
9164         - 'c' for unadorned integers (without a # sign).
9165         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
9166         mode.
9167         - 'e', 'f' for the low and high D parts of a NEON Q register.
9168         - 'q' outputs a NEON Q register.
9169         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
9170         - 'T' prints NEON opcode features from a coded bitmask.
9171         - 'F' is similar to T, but signed/unsigned codes both print as
9172         'i'.
9173         - 't' is similar to T, but 'u' is printed instead of 'p'.
9174         - 'O' prints 'r' if NEON instruction should perform rounding (as
9175         specified by bitmask), else prints nothing.
9176         - '#' is a punctuation character to stop operand numbers from
9177         running together with following digits in the assembler
9178         strings for instructions (when using mode attributes).
9179         (arm_assemble_integer): Handle extra NEON vector modes. Permute
9180         constant vectors in big-endian mode, where necessary.
9181         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
9182         Handle EI, OI, CI, XI modes.
9183         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
9184         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
9185         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
9186         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
9187         (neon_builtin_type_bits): Add enumeration, one bit for each vector
9188         type.
9189         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
9190         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
9191         to turn v8qi, etc. into bits defined above.
9192         (neon_itype): New enumeration. Classifications of NEON builtins.
9193         (neon_builtin_datum): Define struct. Contains information about
9194         a single builtin (with multiple modes).
9195         (CF): Define helper macro for...
9196         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
9197         modes.
9198         (neon_builtin_data): New array. Define information about builtins
9199         for use during initialization/expansion.
9200         (arm_init_neon_builtins): New function.
9201         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
9202         true.
9203         (neon_builtin_compare): New function.
9204         (locate_neon_builtin_icode): New function. Find an insn code for a
9205         builtin given a function code for that builtin. Also return type of
9206         builtin (NEON_BINOP, NEON_UNOP etc.).
9207         (builtin_arg): New enumeration. Types of arguments for builtins.
9208         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
9209         Takes a variable argument list of builtin_arg types, terminated by
9210         NEON_ARG_STOP.
9211         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
9212         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
9213         (neon_emit_pair_result_insn): New function. Support returning pairs
9214         of vectors via a pointer.
9215         (neon_disambiguate_copy): New function. Set up operands for a
9216         multi-word copy such that registers do not get clobbered.
9217         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
9218         ARM_BUILTIN_NEON_BASE.
9219         (arm_file_start): Set float-abi attribute for NEON.
9220         (arm_vector_mode_supported_p): Enable NEON vector modes.
9221         (arm_mangle_map_entry): New.
9222         (arm_mangle_map): New.
9223         (arm_mangle_vector_type): New.
9224         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
9225         when appropriate.
9226         (TARGET_NEON): New macro. Target supports NEON.
9227         (fputype): Add FPUTYPE_NEON.
9228         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
9229         for vectorization based on command-line arg.
9230         (NEON_REGNO_OK_FOR_NREGS): Define.
9231         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
9232         (VALID_NEON_STRUCT_MODE): Define.
9233         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
9234         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
9235         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
9236         (consttable_16): Add pattern for outputting 16-byte minipool
9237         entries.
9238         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
9239         vec-common.md).
9240         (vec-common.md, neon.md): Include md files.
9241         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
9242         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
9243         (memory_constraint "Ut", "Un", "Us"): Define.
9244         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
9245         (MMX_char): New mode attribute.
9246         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
9247         (*add<mode>3_iwmmxt): New insn pattern.
9248         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
9249         (*sub<mode>3_iwmmxt): New insn pattern.
9250         (mulv4hi3): Rename to...
9251         (*mulv4hi3_iwmmxt): This.
9252         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
9253         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
9254         (uminv4hi3, uminv2si3): Remove. Replace with...
9255         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
9256         (*umin<mode>3_iwmmxt): These.
9257         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
9258         (ashr<mode>3_iwmmxt): This new pattern.
9259         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
9260         (lshr<mode>3_iwmmxt): This new pattern.
9261         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
9262         (ashl<mode>3_iwmmxt): This new pattern.
9263         * config/arm/neon-docgen.ml: New file. Generate documentation for
9264         intrinsics.
9265         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
9266         * config/arm/arm_neon.h: New (autogenerated).
9267         * config/arm/neon-testgen.ml: New file. Generate NEON tests
9268         automatically.
9269         * config/arm/neon.md: New file. Define NEON instructions.
9270         * config/arm/neon.ml: New file. Abstract description of NEON
9271         instructions, used to generate arm_neon.h header, documentation and
9272         tests.
9273         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
9274         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
9275         support.
9276         * doc/extend.texi (ARM Built-in Functions): Rename and remove
9277         extraneous comma.
9278         (ARM NEON Intrinsics): New subsection.
9279         * doc/arm-neon-intrinsics.texi: New (autogenerated).
9280
9281 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
9282
9283         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
9284         prototype.
9285
9286 2007-07-24  Jan Hubicka  <jh@suse.cz>
9287
9288         * regclass.c (move_table): New type.
9289         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
9290         (init_move_cost): Break out from ...
9291         (init_reg_sets_1): ... here; simplify computation of
9292         have_regs-of_mode and contains_reg_of_mode.
9293         (record_reg_classes): Unswitch internal loops.
9294         (copy_cost): Trigger lazy initialization of move cost
9295         (record_address_regs): Likewise.
9296
9297 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
9298
9299         * config/darwin.c (darwin_override_options): Don't force on
9300         flag_var_tracking_uninit when no debug info is requested.
9301
9302 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
9303
9304         * cfgloop.c (init_loops_structure): New function.
9305         (flow_loops_find): Create root of the loop tree unconditionally.
9306
9307 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
9308
9309         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
9310
9311 2007-07-24  Jan Hubicka  <jh@suse.cz>
9312
9313         * caller-save.c: Include ggc.h, gt-caller-save.h
9314         (reg_save_code, reg_restore_code): Rename to ...
9315         (cached_reg_save_code, cached_reg_restore_code): ... those.
9316         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
9317         (reg_save_code, reg_restore_code): New functions.
9318         (init_caller_save): Do not intialize
9319         reg_save_code/reg_restore_code tables.
9320         * Makefile.in: (gt-caller-save.h): New.
9321
9322 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9323
9324         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
9325         with the mode of the original operand instead of
9326         integer_one_node.
9327
9328 2007-07-23  Jan Hubicka  <jH@suse.cz>
9329
9330         * i386.c (ix86_secondary_memory_needed): Break out to...
9331         (inline_secondary_memory_needed): ... here.
9332         (ix86_memory_move_cost): Break out to ...
9333         (inline_memory_move_cost): ... here; add support for IN value of 2 for
9334         maximum of input and output; fix handling of Q_REGS on 64bit.
9335         (ix86_secondary_memory_needed): Microoptimize.
9336
9337 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
9338
9339         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
9340         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
9341         stmts_from_loop, known_dependences_p, build_rdg): New.
9342         * tree-data-ref.h: Depends on graphds.h.
9343         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
9344         (build_rdg): Declared.
9345         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
9346
9347 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
9348
9349         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
9350         ccp_min_invariant.
9351
9352 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
9353             Jakub Jelinek  <jakub@redhat.com>
9354
9355         PR middle-end/PR28690
9356         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
9357         EQ compares.
9358         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
9359         and MEM_POINTER operands over REG and MEM operands.
9360         (swap_commutative_operands_p): Change return value to bool.
9361         * rtl.h: Update the corresponding prototype.
9362         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
9363         instead of gen_rtx_PLUS.
9364         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
9365         value to bool.  Change function arguments to rtx's and update code
9366         to match.
9367         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
9368         calls to match the new declaration.
9369         * simplify-rtx.c (simplify_associative_operation): Don't
9370         reorder simplify_binary_operation arguments.
9371
9372 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9373
9374         * config/mips/mips.c (override_options): Use mips_costs to derive
9375         the default branch cost.
9376         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
9377         than mips_costs.
9378         * config/mips/mips.opt (mbranch-cost=): New option.
9379         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
9380
9381 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9382
9383         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
9384         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
9385         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
9386         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
9387
9388 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
9389
9390         * config/mips/constraints.md (ks): New constraint.
9391         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
9392         (*add<mode>3_mips16): ...here.
9393
9394 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
9395
9396         * optabs.h (enum optab_index): Add new OTI_signbit.
9397         (signbit_optab): Define corresponding macro.
9398         (enum insn_code signbit_optab[]): Remove array.
9399         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
9400         (expand_copysign_absneg): If back end provides signbit insn, use it
9401         instead of bit operations on floating point argument.
9402         * builtins.c (enum insn_code signbit_optab[]): Remove array.
9403         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
9404         for availability of signbit insn.
9405
9406         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
9407         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
9408         SSE mode is not active.
9409         (isinf<mode>2): Disable for mfpmath=sse,387.
9410
9411 2007-07-22  Ben Elliston  <bje@au.ibm.com>
9412
9413         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
9414         `class' parameter.
9415         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
9416
9417 2007-07-20  Richard Guenther  <rguenther@suse.de>
9418
9419         * tree-cfg.c (verify_expr): COND_EXPRs can have any
9420         integral typed condition.
9421         * tree-ssa.c (useless_type_conversion_p): Do not preserve
9422         booleanness.  Only preserve conversions from a non-base
9423         type to a base type, not in general between types with
9424         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
9425         * tree.def (COND_EXPR): Document that the condition
9426         can be of any integral type.
9427
9428 2007-07-20  Nigel Stephens  <nigel@mips.com>
9429             Richard Sandiford  <richard@codesourcery.com>
9430
9431         * config/mips/mips.h (mips_dwarf_regno): Declare.
9432         (DBX_REGISTER_NUMBER): Remove redundant brackets.
9433         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
9434         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
9435         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
9436         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
9437         (REG_CLASS_NAMES): Update accordingly.
9438         * config/mips/mips.c (mips_dwarf_regno): New array.
9439         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
9440         (mips_subword): Remove special handling for accumulator registers.
9441         (override_options): Initiailize mips_dwarf_regno.  Remove use
9442         of ACC_HI_REG_P.
9443         (mips_swap_registers): New function.
9444         (mips_conditional_register_usage): Swap accumulator registers
9445         around if TARGET_LITTLE_ENDIAN.
9446         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
9447         * config/mips/constraints.md (h, l): Use the endianness to choose
9448         between MD0_REG and MD1_REG.
9449         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
9450         alternative-dependent template.
9451
9452 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
9453
9454         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
9455         no_new_pseudos.
9456
9457 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9458
9459         * function.c (thread_prologue_and_epilogue_insns): Fix exit
9460         predecessor fallthru flags.
9461
9462 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9463
9464         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
9465         of compare to the same type.
9466         * cfgloopmanip.c (add_loop): Update information about loop exits.
9467         (loop_version): Remove the innermost loop requirement.
9468         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
9469         to sizetype for pointers.
9470
9471 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9472
9473         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
9474         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
9475         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
9476
9477         * config/dfp-bit.c: Empty for TFmode conversions.
9478
9479 2007-07-18  Caroline Tice  <ctice@apple.com>
9480         
9481         * var-tracking.c (find_src_status): Check for  COND_EXEC insns
9482         and handle them correctly; check that src is not NULL before
9483         trying to use it.
9484         (find_src_set_src): Likewise.
9485         
9486 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
9487         
9488         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
9489         (struct alignment_context, init_alignment_context): New.
9490         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
9491         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
9492         (XCHAL_HAVE_S32C1I): Likewise.
9493         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
9494         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
9495         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
9496         (ATOMIC, HQI): New macros.
9497         (memory_barrier, *memory_barrier): New.
9498         (sync_lock_releasesi): New.
9499         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
9500         (sync_lock_test_and_set<mode>): New.
9501         (sync_<atomic><mode>): New.
9502         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
9503         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
9504         (xtensa_expand_atomic): New.
9505         
9506 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9507
9508         PR target/30652
9509
9510         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
9511         transformation for builtin ISNORMAL.
9512         (expand_builtin): Handle BUILT_IN_ISNORMAL.
9513         * builtins.def (BUILT_IN_ISNORMAL): New.
9514         * doc/extend.texi: Document isnormal.
9515
9516 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9517
9518         PR target/30652
9519
9520         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
9521         optabs infrastructure.  Provide generic implementation for
9522         FINITE/ISFINITE.
9523         (expand_builtin): Handle FINITE/ISFINITE.
9524         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
9525         (fold_builtin_1): Likewise.
9526
9527         * builtins.def (BUILT_IN_ISFINITE): New.
9528
9529         * doc/extend.texi: Document isfinite.
9530
9531 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9532
9533         PR target/30652
9534         PR middle-end/20558
9535
9536         * builtins.c (expand_builtin_interclass_mathfn): Provide a
9537         generic fallback for isinf.
9538         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
9539         calculation code ...
9540         * real.c (get_max_float): ... to here.
9541         * real.h (get_max_float): New.
9542
9543 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9544
9545         PR middle-end/32668
9546
9547         * builtin-attrs.def (ATTR_TYPEGENERIC,
9548         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
9549
9550         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
9551         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
9552         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
9553         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
9554
9555         * c-common.c (handle_type_generic_attribute): New.
9556         (c_common_attribute_table): Add "type generic".
9557
9558         * c-typeck.c (convert_arguments): Handle "type generic" functions.
9559
9560 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
9561
9562         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
9563         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
9564         properly.
9565
9566 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9567
9568         PR target/32808
9569         * config/cris/cris.c (cris_print_index): Don't use XEXP before
9570         checking that the operand is an expression.
9571
9572 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
9573             Danny Smith  <dannysmith@users.sourceforge.net>
9574
9575         PR/other 30335
9576         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
9577         file mapping object in local namespace if Windows version later
9578         than NT4
9579
9580 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
9581
9582         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
9583         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
9584         arm_cannot_force_const_mem.
9585         (arm_cannot_force_const_mem): New function.
9586         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
9587         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
9588         of arm_tls_referenced_p.
9589         * config/arm/arm.md (movsi): Split out-of-section constants when
9590         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
9591         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
9592
9593 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
9594
9595         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
9596
9597 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
9598
9599         * config/mips/mips.md (*extendqihi2): Convert the destination
9600         to SImode.
9601
9602 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9603
9604         * config/pa/fptr.c: Update license header.
9605         * config/pa/milli64.S: Likewise.
9606
9607 2007-07-17  Nick Clifton  <nickc@redhat.com>
9608
9609         * COPYING_v3: New file.  Contains version 3 of the GNU General
9610         Public License.
9611         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
9612         Lesser General Public License.
9613         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
9614         the GNU General Public License.
9615
9616 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
9617
9618         PR rtl-optimization/32773
9619         * cfglayout.c (force_one_exit_fallthru): New function.
9620         (cfg_layout_finalize): Use it.
9621
9622 2007-07-16  Richard Guenther  <rguenther@suse.de>
9623             Uros Bizjak  <ubizjak@gmail.com>
9624
9625         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
9626         before forcing it to gimple operand.
9627
9628 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9629             David Ung  <davidu@mips.com>
9630
9631         * config/mips/mips.h (TUNE_24K): Define.
9632         (TUNE_MACC_CHAINS): Add TUNE_24K.
9633         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
9634         imadd.
9635         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
9636         (r74k_int_madd): .. this new reservation.
9637         (define_bypass): Fixed bypasses for r74k_int_madd to use
9638         mips_linked_madd_p.
9639         * config/mips/24k.md (define_bypass): Define new
9640         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
9641
9642 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9643             Nigel Stephens  <nigel@mips.com>
9644
9645         * config/mips/mips.md: Include 20kc.md.
9646         * config/mips/20kc.md: New file.
9647         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
9648         (mips_adjust_cost): Tweak for 20Kc.
9649         (mips_issue_rate): Likewise.
9650         * config/mips/mips.h (TUNE_20KC): Define.
9651
9652 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
9653
9654         * config/rs6000/rs6000.c (struct processor_cost): Add
9655         cache_line_size, l1_cache_lines, and simultaneous_prefetches
9656         fields.
9657         (*_cost): Add cache information.
9658         (rs6000_override_options): Set cache parameters.
9659
9660 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9661
9662         PR bootstrap/3456
9663         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
9664         * doc/install.texi (mips-sgi-irix6): pthread support works now.
9665
9666 2007-07-16  Paul Brook  <paul@codesourcery.com>
9667
9668         PR target/32753
9669         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
9670         (cirrus_thumb2_movsi_insn): Ditto.
9671
9672 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
9673
9674         * config/rs6000/darwin-fallback.c (interpret_libc): Change
9675         CR2_REGNO to R_CR2.
9676
9677 2007-07-15  Andrew Haley  <aph@redhat.com>
9678
9679         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
9680         before looking in the context.
9681
9682 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9683
9684         PR middle-end/32398
9685         PR middle-end/32769
9686         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
9687         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
9688         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9689         (pa_output_function_prologue): Use rp_saved and
9690         current_function_is_leaf to generate .CALLINFO statement.
9691         (hppa_expand_prologue): Set rp_saved.
9692         (hppa_expand_epilogue): Use rp_saved.
9693         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
9694         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
9695
9696 2007-07-14  Dirk Mueller  <dmueller@suse.de>
9697
9698         * omega.c (coalesce): Fix memory leak on early exit.
9699         * matrix-reorg.c (check_allocation_function): Likewise.
9700         * tree-vect-transform.c (vect_get_new_vect_var): free result
9701         of concat().
9702         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9703         pass pointer to edge vector
9704         (partition_hot_cold_basic_blocks): Fix memory leak.
9705         * collect2.c (prefix_from_string): Free temporary storage.
9706         * reload1.c (fixup_abnormal_edges): Free sbitmap.
9707
9708 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
9709
9710         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
9711         (DO_GLOBAL_DTORS_BODY): Likewise.
9712
9713 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
9714             Nigel Stephens  <nigel@mips.com>
9715
9716         * config/mips/mips.c (mips_classify_symbol): Don't return
9717         SYMBOL_SMALL_DATA for constant pool addresses if
9718         TARGET_EMBEDDED_DATA is true.
9719
9720 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
9721
9722         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
9723         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
9724         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
9725         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
9726         __builtin_ia32_storehps, __builtin_ia32_storelps,
9727         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
9728         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
9729         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
9730         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
9731         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
9732         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
9733         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
9734         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
9735         using def_builtin_const.
9736
9737 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
9738
9739         PR tree-optimization/32705
9740         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
9741         (simplify_binary_expression): Use SSA_VAL consistently.
9742
9743 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
9744
9745         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
9746         (SPEFSCR_REGNO): Delete definition.
9747         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
9748         COUNT_REGISTER_REGNUM -> CTR_REGNO.
9749         * config/rs6000/rs6000.h: Do not define *_REGNO.
9750         LINK_REGISTER_REGNUM -> LR_REGNO.
9751         COUNT_REGISTER_REGNUM -> CTR_REGNO.
9752         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
9753         COUNT_REGISTER_REGNUM -> CTR_REGNO.
9754         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
9755         R_VRSAVE, R_VSCR. Use them.
9756         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
9757         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
9758         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
9759         * config/rs6000/aix.h: Define R_LR.  Use it.
9760         
9761 2007-07-13  Caroline Tice  <ctice@apple.com>
9762         
9763         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
9764         flag_var_tracking is explicitly turned off (i.e. when variable
9765         tracking is not feasible); otherwise, turn flag_var_tracking on when
9766         flag_var_tracking_uninit is on.
9767         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
9768         note definitions, to allow recording of initialization status in the
9769         notes.
9770         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
9771         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
9772         determine if two note locations are equal.
9773         (output_loc_list): Don't output list entries whose start & end labels
9774         are the same.
9775         (reg_loc_descriptor): Add parameter for initialization status; pass it
9776         to other loc descriptor functions.
9777         (one_reg_loc_descriptor): Add parameter for initialization status;
9778         check its value and add DW_OP_GNU_uninit to returned loc descr if
9779         appropriate.
9780         (multiple_reg_loc_descriptor): Add parameter for initialization
9781         status;
9782         pass init status argument to other loc descriptor functions; check
9783         value of intialization parameter and add DW_OP_GNU_uninit to returned
9784         loc descr if appropriate.
9785         (based_loc_descr): Add parameter for initialization status; add new
9786         variable for return value; check value of initialization parameter and
9787         add DW_OP_GNU_uninit to returned loc descr if appropriate.
9788         (concatn_mem_loc_descriptor): Add parameter for initialization status;
9789         pass init status argument to other loc descriptor functions; check
9790         value of intialization parameter and add DW_OP_GNU_uninit to returned
9791         loc descr if appropriate.
9792         (mem_loc_descriptor): Likewise.
9793         (concat_loc_descriptor): Likewise.
9794         (concatn_loc_descriptor): Likewise.
9795         (loc_descriptor): Add parameter for initialization status; pass it as
9796         argument to other loc descriptor function calls.
9797         (loc_descriptor_from_tree_1): Add appropriate initialization status
9798         to loc descriptor function calls.
9799         (add_location_or_const_value_attribute): Get initialization status
9800         from VAR_LOCATION note; add initialization status to loc descriptor
9801         function calls.
9802         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
9803         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
9804         status is uninitialized, add "[uninint]" to output.
9805         * common.opt (fvar-tracking-uninit): New option, similar to
9806         fvar-tracking, to turn on tracking of uninitialized variables; creates
9807         a new global flag, flag_var_tracking_uninit.
9808         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
9809         (enum var_init_status): New type, for var initialization status field.
9810         * var-tracking.c (struct location_chain_def): Two new fields, init,
9811         for initialization status, and set_src for the assignment value expr.
9812         (unshare_variable): New parameter for initialization status;
9813         initialize new init and set_src fields.
9814         (var_reg_set): New parameters for initialization status and value;
9815         pass them to set_variable_part.
9816         (var_mem_set): Likewise.
9817         (get_init_value): New function.
9818         (var_reg_delete_and_set): New initialization status & value
9819         parameters; add call to get_init_value if status is unknown; pass new
9820         parameters to clobber_variable_part and var_reg_set.
9821         (var_mem_delete_and_set): Likewise.
9822         (var_reg_delete): Pass null set_src value to clobber_variable_part.
9823         (var_mem_delete): Likewise.
9824         (variable_union): Pass status to unshare_variable; initialize new init
9825         and set_src fields. If flag_var_tracking_uninit is not set, force
9826         status to initialized.
9827         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
9828         used later to get the set_src value.
9829         (find_src_status): New function.
9830         (find_src_set_src): New function.
9831         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
9832         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
9833         MO_SET, get set_src value and pass it to var_reg_delete_and_set
9834         and var_mem_delete_and_set.
9835         (dump_variable): Print out "[uninit]" if appropriate.
9836         (set_variable_part): Add new initialization and set_src parameters;
9837         pass status to unshare_variable; set node->init and node- >set_src
9838         fields and modify slot in hash table appropriately; save the init and
9839         set_src values if appropriate and assign to the new node.
9840         (clobber_variable_part): New set_src parameter; if two nodes have
9841         same variable and same location but different set_src (assignment)
9842         values, clobber old node.
9843         (delete_variable_part): Pass init status to unshare_variable.
9844         (emit_note_insn_var_location): Add initialized var; assign var's init
9845         status to new 'initialized'; pass new init status field to calls to
9846         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
9847         status to initialized.
9848         (emit_notes_in_bb): Pass initialization status to calls to
9849         var_reg_set, var_mem_set, var_reg_delete_and_set and
9850         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
9851         var_reg_delete_and_set and var_mem_delete_and_set; call
9852         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
9853         make up for change in add_stores.
9854         (vt_add_function_parameters): Add status to calls to
9855         set_variable_part.
9856         * config/darwin.c (darwin_override_options): Turn on uninitialized
9857         tracking automatically, if var_tracking is on and the system is
9858         10.5 or higher.
9859         
9860 2007-07-13  Sa Liu  <saliu@de.ibm.com>
9861
9862         * config.gcc: Add options for arch and tune on SPU.
9863         * config/spu/predicates.md: Add constant operands 0 and 1.
9864         * config/spu/spu-builtins.def: Add builtins for double precision 
9865         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
9866         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
9867         spu_testsv.
9868         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
9869         a CELLEDP target.
9870         * config/spu/spu-protos.h: Add new function prototypes. 
9871         * config/spu/spu.c (spu_override_options): Check options -march and
9872         -mtune.
9873         (spu_comp_icode): Add comparison code for DFmode and vector mode.
9874         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
9875         mode comparison.
9876         (spu_const_from_int): New.  Create a vector constant from 4 ints.
9877         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
9878         (spu_emit_vector_compare): New.  Emit vector compare.
9879         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
9880         * config/spu/spu.h: Add options -march and -mtune.  Define processor
9881         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
9882         CANONICALIZE_COMPARISON.
9883         * config/spu/spu.md: Add new insns for double precision compare
9884         and double precision vector compare.  Add vcond and smax/smin patterns
9885         to enable DFmode vector conditional expression.
9886         * config/spu/spu.opt: Add options -march and -mtune.
9887         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
9888         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
9889         both CELL and CELLEDP targets: spu_testsv.
9890         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
9891         values.
9892
9893 2007-07-13  Richard Guenther  <rguenther@suse.de>
9894
9895         PR tree-optimization/32721
9896         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
9897         TREE_THIS_VOLATILE on the folded reference.
9898         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
9899         if the array reference has TREE_THIS_VOLATILE set.
9900
9901 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9902
9903         PR other/32188
9904         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
9905
9906 2007-07-13  Andreas Schwab  <schwab@suse.de>
9907
9908         * gengtype-lex.l: Allow declarations to be indented.
9909
9910 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
9911
9912         * ginclude/tgmath.h: New.
9913         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
9914         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
9915         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
9916         * configure: Regenerate.
9917
9918 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9919
9920         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
9921         correct index when setting register save state for xd
9922         registers.
9923
9924 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9925
9926         * config/sh/sh.c (mark_use): Remove.
9927
9928 2007-07-12  Paul Brook  <paul@codesourcery.com>
9929
9930         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
9931         reg does not overlap return value.
9932
9933 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
9934
9935         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
9936         (set_expression_vuses): Ditto.
9937         (init_pre): Initialize expression_vuses.
9938
9939 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9940
9941         * config/i386/sse.md (storentdf, storentsf): New.
9942
9943 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
9944
9945         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
9946         FUNCTION_DECL.
9947         * tree.c (build_decl_stat): Move code from here...
9948         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
9949         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
9950         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
9951         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
9952         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
9953         FUNCTION_BOUNDARY.
9954
9955 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
9956             Devang Patel  <dpatel@apple.com>
9957
9958         PR tree-optimization/25413
9959         * targhooks.c (default_builtin_vector_alignment_reachable): New.
9960         * targhooks.h (default_builtin_vector_alignment_reachable): New.
9961         * tree.h (contains_packed_reference): New.
9962         * expr.c (contains_packed_reference): New.
9963         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
9964         (vect_enhance_data_refs_alignment): Call
9965         vector_alignment_reachable_p.
9966         * target.h (vector_alignment_reachable): New builtin.
9967         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
9968         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
9969         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
9970
9971 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
9972
9973         * target.h (builtin_vectorization_cost): Add new target builtin.
9974         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
9975         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
9976         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
9977         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
9978         uninitialized variables.
9979         * tree-vect-transform.c (cost_for_stmt): New function.
9980         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
9981         using cost 1 for all scalar stmts. Be less conservative when
9982         estimating the number of prologue/epulogue iterations. Call
9983         targetm.vectorize.builtin_vectorization_cost. Return
9984         min_profitable_iters-1.
9985         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
9986         initialization cost instead of TARG_VEC_STMT_COST. Use
9987         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
9988         epilogue code. Fix epilogue cost computation.
9989         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
9990         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
9991         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
9992         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
9993         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
9994         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
9995
9996 2007-07-12  Richard Guenther  <rguenther@suse.de>
9997
9998         * gimplify.c (gimplify_conversion): Make sure that the result
9999         from maybe_fold_offset_to_reference is trivially convertible
10000         to the desired type before doing the simplification.
10001         (gimplify_expr): Likewise.
10002         * fold-const.c (fold_binary): Use the correct types for
10003         building the simplified expression.
10004
10005 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10006
10007         PR rtl-optimization/32729
10008         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
10009         that fallthru to exit.
10010
10011 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10012
10013         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
10014         (symDTPOFF2reg): Likewise.
10015
10016 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
10017
10018         PR tree-optimization/32663
10019         
10020         * tree.h (VALUE_HANDLE_VUSES): Remove.
10021         (struct tree_value_handle): Remove vuses.
10022
10023         * tree-vn.c (create_value_handle_for_expr): Don't set
10024         VALUE_HANDLE_VUSES. 
10025
10026         * tree-ssa-pre.c (expression_vuses): New.
10027         (alloc_expression_id): Set up expression_vuses.
10028         (get_expression_vuses): New.
10029         (set_expression_vuses): Ditto.
10030         (clear_expression_ids): Modify for expression_vuses.
10031         (phi_translate_1): Ditto.
10032         (phi_translate_set): Ditto.
10033         (value_dies_in_block_x): Ditto
10034         (valid_in_sets): Ditto.
10035         (add_to_sets): Ditto.
10036         (find_existing_value_expr): Ditto.
10037         (create_value_handle_for_expr): Ditto.
10038         (make_values_for_stmt): Ditto.
10039         (vuse_equiv): Remove.
10040
10041 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
10042
10043         * Makefile.in (mostlyclean): Remove object files.
10044
10045 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
10046
10047         * toplev.c (no_new_pseudos): Deleted.
10048         * rtl.h (no_new_pseudos): Deleted.
10049         * tree-pass.h (pass_no_new_pseudos): Deleted. 
10050         * passes.c (pass_no_new_pseudos): Deleted.
10051         * final.c (rest_of_clean_state): Removed no_new_pseudos.
10052         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
10053         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
10054         reload_completed.
10055         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
10056         * rtlhooks.c (gen_lowpart_general): Ditto.
10057         * optabs.c (prepare_operand): Ditto.
10058         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
10059         no_new_pseudos.
10060         * modulo-sched.c (rest_of_handle_sms): Ditto.
10061         * see.c (rest_of_handle_see): Ditto.
10062         * ifcvt.c (if_convert): Ditto.
10063         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
10064         reload_completed.
10065         * init-regs.c (gate_initialize_regs): Deleted set of
10066         no_new_pseudos.
10067         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
10068         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
10069         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
10070         
10071 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
10072
10073         PR target/32661
10074         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
10075         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
10076         (*vec_extractv2di_1_rex64): New insn pattern.
10077
10078 2007-07-11  David Daney  <ddaney@avtrex.com>
10079
10080         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
10081         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
10082         for SIGNAL_UNWIND_RETURN_COLUMN.
10083         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
10084         (DWARF_FRAME_REGNUM): Rewrite.
10085         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
10086
10087 2007-07-11  Nick Clifton  <nickc@redhat.com>
10088
10089         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
10090         delta and use gen_int_mode in place of GET_INT instead.
10091
10092 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
10093
10094         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
10095         and letter field.
10096
10097 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
10098
10099         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
10100         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
10101         types or not.
10102         * params.h (VERIFY_CANONICAL_TYPES): Remove.
10103         (USE_CANONICAL_TYPES): New.
10104         * doc/invoke.texi (verify-canonical-types): Remove.
10105         (use-canonical-types): Add.
10106
10107 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
10108
10109         * config/spu/spu.c (spu_optimization_options): Remove setting of
10110         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
10111         (spu_override_options): Move it here.
10112
10113 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
10114
10115         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
10116         * config/mips/mips.c (mips_cpu_info_table): Mention
10117         MIPS_ISA_LEVEL_SPEC in the comment.
10118
10119 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10120
10121         PR tree-optimization/32713
10122         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
10123
10124 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
10125
10126         PR middle-end/30482
10127         * c-opts.c (c_common_post_options): Do not change flag_complex_method
10128         conditional to flag_isoc99.
10129         (c_common_init_options): Do it here, unconditionally.
10130
10131 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
10132
10133         PR tree-optimization/32589
10134         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
10135         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
10136         * tree-ssa-propagate.c (valid_gimple_expression_p): New
10137         predicate, extracted from...
10138         (set_rhs): ...here.  Call it for the expression on entry.
10139         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
10140         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
10141         (simplify_binary_expression): Use valid_gimple_expression_p
10142         to validate the simplification.
10143         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
10144
10145 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
10146
10147         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
10148         DWARF2_DEBUG on 32 bit target too.
10149         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
10150
10151 2007-07-11  Nick Clifton  <nickc@redhat.com>
10152
10153         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
10154         version for 64-bit hosts.
10155
10156 2007-07-10  David Daney  <ddaney@avtrex.com>
10157
10158         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
10159         predicate.
10160         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
10161         call.
10162         * config/mips/mips.c (mips_expand_synci_loop): New function.
10163         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
10164         (UNSPEC_RDHWR): Same.
10165         (UNSPEC_SYNCI): Same.
10166         (UNSPEC_SYNC): Same.
10167         (clear_cache): New expand.
10168         (sync): New insn.
10169         (synci): Same.
10170         (rdhwr): Same.
10171         (clear_hazard): Same.
10172         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
10173         function.
10174         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
10175         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
10176
10177 2007-07-10  Ian Lance Taylor  <iant@google.com>
10178
10179         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
10180         no_new_pseudos.
10181
10182 2007-07-10  David Daney  <ddaney@avtrex.com>
10183
10184         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
10185         * builtins.c (expand_builtin___clear_cache): New function.
10186         (expand_builtin): Call expand_builtin___clear_cache for
10187         BUILT_IN_CLEAR_CACHE case.
10188         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
10189         * doc/md.texi (clear_cache): Document new instruction pattern.
10190         * testsuite/gcc.dg/builtins-64.c: New test.
10191
10192 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
10193
10194         * config/cris/cris.md ("movsi"): Fix typo in last change.
10195
10196 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
10197
10198         PR 32617
10199         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
10200         FUNCTION_DECLs.
10201         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
10202         * varasm.c (assemble_start_function): Honor DECL_ALIGN
10203         for FUNCTION_DECLs.  Don't use align_functions_log if
10204         DECL_USER_ALIGN.
10205         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
10206         even for FUNCTION_DECLs.
10207         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
10208         FUNCTION_DECLs.
10209         * tree.h (DECL_ALIGN): Update for new location of 'align'.
10210         (DECL_FUNCTION_CODE): Update for new location and name of
10211         'function_code'.
10212         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
10213         (struct tree_decl_common): Move 'align' and 'off_align' out
10214         of union, ensure they're still on a 32-bit boundary.  Remove
10215         other fields in union 'u1'.
10216         (struct tree_function_decl): Add field 'function_code' replacing
10217         'u1.f' in tree_decl_common.
10218         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
10219         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
10220         (Variable Attributes): Cross-reference 'aligned' attribute
10221         to Function Attributes.
10222         * flags.h (force_align_functions_log): Delete.
10223         * toplev.c (force_align_functions_log): Delete.
10224
10225 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
10226
10227         PR target/32708
10228         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
10229         (*vec_concatv2di_rex): New insn pattern.
10230
10231 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10232
10233         PR target/32538
10234         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
10235
10236 2007-07-10  Ian Lance Taylor  <iant@google.com>
10237
10238         Replace no_new_pseudos in backends.
10239         * rtl.h (can_create_pseudo_p): Define.
10240         * config/darwin.c (machopic_indirect_data_reference): Use
10241         can_create_pseudo_p () instead of no_new_pseudos.
10242         (machopic_indirect_data_reference): Likewise.
10243         (machopic_legitimize_pic_address): Likewise.
10244         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
10245         (alpha_emit_set_const_1): Likewise.
10246         (alpha_emit_set_const): Likewise.
10247         (alpha_emit_conditional_move): Likewise.
10248         (alpha_split_conditional_move): Likewise.
10249         * config/alpha/alpha.md (various splitters): Likewise.
10250         (movti): Likewise.
10251         * config/arm/arm.c (legitimize_pic_address): Likewise.
10252         (arm_load_pic_register): Likewise.
10253         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
10254         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
10255         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
10256         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
10257         * config/cris/cris.md (movsi): Likewise.
10258         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
10259         (symGOTOFF2reg_hilo): Likewise.
10260         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
10261         * config/h8300/h8300.md (insv, extzv): Likewise.
10262         * config/i386/i386.c (ix86_expand_move): Likewise.
10263         (ix86_expand_vector_move): Likewise.
10264         (ix86_prepare_fp_compare_args): Likewise.
10265         (ix86_expand_carry_flag_compare): Likewise.
10266         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
10267         (tls_dynamic_gnu2_combine_32): Likewise.
10268         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
10269         * config/ia64/ia64.c (ia64_expand_move): Likewise.
10270         (ia64_expand_movxf_movrf): Likewise.
10271         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
10272         (m32c_split_move): Likewise.
10273         (m32c_expand_insv): Likewise.
10274         * config/m68k/m68k.md (movsi): Likewise.
10275         * config/mips/mips.c (mips_force_temporary): Likewise.
10276         (mips_split_symbol): Likewise.
10277         (mips_move_integer): Likewise.
10278         (mips_legitimize_const_move): Likewise.
10279         * config/mn10300/mn10300.md (movsi): Likewise.
10280         * config/pa/pa.c (emit_move_sequence): Likewise.
10281         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10282         (rs6000_got_register): Likewise.
10283         (create_TOC_reference): Likewise.
10284         (rs6000_machopic_legitimize_pic_address): Likewise.
10285         * config/rs6000/rs6000.md (add<mode>3): Likewise.
10286         (various splitters): Likewise.
10287         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
10288         (movsi_got): Likewise.
10289         * config/s390/s390.c (emit_symbolic_move): Likewise.
10290         * config/s390/s390.md (movhi, movqi): Likewise.
10291         (load_multiple, store_multiple): Likewise.
10292         * config/score/score.c (score_force_temporary): Likewise.
10293         * config/sh/sh.c (prepare_move_operands): Likewise.
10294         (prepare_cbranch_operands): Likewise.
10295         (emit_fpu_switch): Likewise.
10296         (fpscr_set_from_mem): Likewise.
10297         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
10298         (adddi3, subsi3): Likewise.
10299         (various splitters): Likewise.
10300         (divsi_inv_fp_combine): Likewise.
10301         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
10302         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
10303         (sne): Likewise.
10304         * config/sh/predicates.md (xor_operand): Likewise.
10305         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
10306         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
10307         (movdi_pic_label_ref): Likewise.
10308         * config/spu/spu.c (spu_split_immediate): Likewise.
10309         * config/alpha/alpha.md (various splitters): Remove test
10310         !no_new_pseudos || reload_completed.
10311         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
10312         no_new_pseudos.
10313         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10314         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10315         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10316         * config/score/score.c (th_output_mi_thunk): Likewise.
10317         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10318         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10319
10320 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10321
10322         PR rtl-optimization/32664
10323         * mode-switching.c (create_pre_exit): Skip barrier insns.
10324
10325 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
10326
10327         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
10328         force_gimple_operand_bsi.
10329         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
10330         rewrite_use_compare): Ditto.
10331         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
10332         Ditto.
10333         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
10334         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
10335         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
10336         * tree-profile.c (prepare_instrumented_value,
10337         tree_gen_interval_profiler, tree_gen_pow2_profiler,
10338         tree_gen_one_value_profiler, tree_gen_ic_profiler,
10339         tree_gen_ic_func_profiler, tree_gen_average_profiler,
10340         tree_gen_ior_profiler): Ditto.
10341         * tree-ssa-reassoc.c (negate_value): Ditto.
10342         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
10343         Use force_gimple_operand_bsi.
10344         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
10345         * tree-if-conv.c (add_to_dst_predicate_list,
10346         find_phi_replacement_condition): Ditto.
10347         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
10348         Call mark_symbols_for_renaming for new statements.
10349         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
10350
10351 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
10352
10353         * cfghooks.c (remove_edge): New function.
10354         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
10355         loop exit rescans.
10356         * cfghooks.h (remove_edge): Declare.
10357         * cfg.c (remove_edge): Renamed to remove_edge_raw.
10358         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
10359
10360 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
10361
10362         * optabs.h: Added declaration for signbit_optab.  
10363         * optabs.c: (init_optabs): Added initialization for signbit_optab.
10364         * genoptinit.c (optabs): Added entry for signbit insns.  
10365         * builtins.c (expand_builtin_signbit): Added code to use a signbit
10366         insn, if available.  
10367         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
10368         * config/s390/s390.md (signbit<mode>2): New expander.  
10369
10370 2007-07-09  Richard Guenther  <rguenther@suse.de>
10371
10372         PR middle-end/32698
10373         * fold-const.c (fold_plusminus_mult_expr): Move constant
10374         arguments second to allow decomposing.
10375
10376 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
10377
10378         Revert:
10379         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
10380         PR debug/23551
10381         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10382         Disregard DECL_FROM_INLINE.
10383
10384 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
10385
10386         PR target/27855
10387         * doc/invoke.texi: Add ftree-reassoc flag.
10388         * common.opt (ftree-reassoc): New flag.
10389         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
10390         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
10391
10392 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
10393
10394         PR tree-optimization/32681
10395         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
10396         saved in second_edge->aux when first_bb is a loop header.
10397
10398 2007-07-09  Jan HUbicka  <jh@suse.cz>
10399
10400         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
10401
10402 2007-07-09  Richard Guenther  <rguenther@suse.de>
10403
10404         * c-decl.c (start_function): Do not promote return type.
10405
10406 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
10407
10408         * function.c (do_warn_unused_parameter): Do not warn if
10409         TREE_NO_WARNING is set.
10410
10411 2007-07-08  Andreas Schwab  <schwab@suse.de>
10412
10413         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
10414
10415 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
10416
10417         Revert this patch:
10418         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
10419
10420         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
10421         apply to assembly language, too.
10422         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
10423
10424 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
10425
10426         Revert (note the sccvn portions are *not* reverted)
10427         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
10428
10429         Fix PR tree-optimization/23488
10430
10431         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
10432         handles.
10433         * tree-flow-inline.h (get_value_handle): Ditto.
10434         * tree-ssa-pre.c (decl_vh_map): New.
10435         (decl_node_pool): New.
10436         (can_value_number_operation): Support DECL_P.
10437         (can_PRE_operation): Ditto.
10438         (create_expression_by_pieces): Ditto.
10439         (find_existing_value_expr): Modify to differnetiate between
10440         addressing and top level.
10441         (create_value_handle_for_expr): Handle DECL's.
10442         (poolify_tree): Ditto.
10443         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
10444         (make_values_for_stmt): Handle DECL's properly.
10445         (init_pre): Reorg to not init useless things during FRE.
10446         (fini_pre): Ditto.
10447         * tree-flow.h: Include pointer-set.h.
10448         (decl_vh_map): Declare.
10449         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
10450
10451 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
10452
10453         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
10454         the constraint description.
10455         * doc/md.texi: Update documentation of AVR constraints.
10456
10457 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
10458
10459         * auto-inc-dec.c, config/arm/arm.c,
10460         config/m32r/constraints.md, config/mips/mips.md,
10461         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
10462         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
10463         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
10464         typos.  Follow spelling conventions.
10465         * doc/invoke.texi, doc/rtl.texi: Fix typos.
10466
10467         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
10468         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
10469
10470         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
10471         realloc_vuse): Remove.
10472         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
10473         and realloc_vuse.
10474
10475 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
10476
10477         Fix PR tree-optimization/23488
10478
10479         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
10480         (try_to_simplify): Ditto.
10481         (visit_use): Ditto.
10482         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
10483         handles.
10484         * tree-flow-inline.h (get_value_handle): Ditto.
10485         * tree-ssa-pre.c (decl_vh_map): New.
10486         (decl_node_pool): New.
10487         (can_value_number_operation): Support DECL_P.
10488         (can_PRE_operation): Ditto.
10489         (create_expression_by_pieces): Ditto.
10490         (find_existing_value_expr): Modify to differnetiate between
10491         addressing and top level.
10492         (create_value_handle_for_expr): Handle DECL's.
10493         (poolify_tree): Ditto.
10494         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
10495         (make_values_for_stmt): Handle DECL's properly.
10496         (init_pre): Reorg to not init useless things during FRE.
10497         (fini_pre): Ditto.
10498         * tree-flow.h: Include pointer-set.h.
10499         (decl_vh_map): Declare.
10500         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
10501                 
10502 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
10503
10504         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
10505         apply to assembly language, too.
10506         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
10507
10508 2007-07-06  Ian Lance Taylor  <iant@google.com>
10509             Zack Weinberg  <zackw@panix.com>
10510
10511         PR middle-end/32441
10512         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
10513
10514 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
10515
10516         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
10517         (prefetch): Likewise if "pref" would be used.
10518
10519 2007-07-06  Josh Conner  <jconner@apple.com>
10520
10521         PR middle-end/32602
10522         PR middle-end/32603
10523         * calls.c (store_one_arg): Handle arguments which are partially
10524         on the stack when detecting argument overlap.
10525
10526 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
10527
10528         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
10529         chosen during find_reloads.
10530
10531 2007-07-06  Richard Guenther  <rguenther@suse.de>
10532
10533         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
10534         TYPE_ARG_TYPES for verification of argument types.  Use
10535         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
10536         parameters as variable arguments.
10537
10538 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
10539
10540         * libgcc2.h (word_type): Type definition removed.
10541         (cmp_return_type, shift_count_type): Type definitions added.
10542         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
10543         replaced with shift_count_type.
10544         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
10545         cmp_return_type.
10546         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
10547         changed from word_type to Wtype.
10548         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
10549         replaced with shift_count_type.
10550         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
10551         cmp_return_type.
10552         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
10553         and libgcc_shift_count attribute added.
10554         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
10555         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
10556         (TARGET_INITIALIZER): New target hooks added.
10557         * targhooks.c (default_libgcc_cmp_return_mode,
10558         default_libgcc_shift_count_mode): Default implementations for the new
10559         target hooks added.
10560         * targhooks.h (default_libgcc_cmp_return_mode,
10561         default_libgcc_shift_count_mode): Function prototypes added.
10562         * target.h (struct gcc_target): Fields for the new target hooks added.
10563         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
10564         as library call.
10565         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
10566         library call.
10567
10568         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
10569         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
10570
10571         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
10572         s390_libgcc_shift_count_mode): Functions added.
10573         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
10574         Target hooks defined.
10575
10576 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
10577
10578         * config/mips/mips.c (compute_frame_size): Restore the original
10579         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
10580         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
10581         Document why the difference is needed.
10582
10583 2007-07-06  Richard Guenther  <rguenther@suse.de>
10584
10585         * c-common.c (boolean_increment): Use correctly typed
10586         constant.
10587
10588 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
10589
10590         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
10591         the topmost argument register is not also included in the save mask.
10592         (mips16e_collect_argument_save_p): Take a pointer to the argument
10593         register, rather than a pointer to the number of arguments.
10594         (mips16e_collect_argument_saves): Only include argument saves
10595         that aren't in the register mask.
10596
10597 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
10598
10599         PR rtl-optimization/32450
10600         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
10601         to ensure that instructions are not moved into the prologue when
10602         profiling is on.  Remove unused prologue_end variable.
10603         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
10604         as a scheduling barrier.
10605
10606 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
10607
10608         PR debug/23551
10609         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10610         Disregard DECL_FROM_INLINE.
10611
10612 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
10613
10614         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
10615         IORing with a constant.
10616
10617 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
10618
10619         PR rtl-optimization/32475
10620         * df-scan.c (df_def_record_1): Add a use of the stack pointer
10621         for every definition of the stack pointer.
10622
10623 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
10624
10625         * arm.c (vfp3_const_double_index): Copy signed results of
10626         REAL_VALUE_TO_INT into unsigned vars.
10627
10628 2007-07-05  Richard Guenther  <rguenther@suse.de>
10629
10630         PR middle-end/32639
10631         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
10632         FUNCTION_TYPE.
10633         * tree-ssa.c (useless_type_conversion_p): Check canonical
10634         types early.
10635
10636 2007-07-05 Anatoly Sokolov <aesok@post.ru>
10637
10638         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
10639         zero_extendhisi2): Change to define_insn_and_split. 
10640         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
10641
10642 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
10643
10644         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
10645         pass_match_asm_constraints): New.
10646         * passes.c (init_optimization_passes): Add new pass.
10647         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
10648         * function.h (struct function): Add has_asm_statement bit.
10649         (current_function_has_asm_statement): New.
10650         * tree-pass.h (pass_match_asm_constraints): New.
10651
10652 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10653
10654         * config/mips/mips.c (mips_file_start): Avoid declaration
10655         after code.
10656
10657 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
10658
10659         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
10660
10661 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
10662
10663         * rtl.def (NOTE): Change print format string to print
10664         operand 5 as a note insn name.
10665
10666 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
10667             David Ung  <davidu@mips.com>
10668
10669         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
10670         * doc/invoke.texi: (MIPS Options): Document them.
10671
10672 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
10673             David Ung  <davidu@mips.com>
10674
10675         Add support for SmartMIPS ASE.
10676
10677         * optabs.c (expand_binop_directly): New, broken out from...
10678         (expand_binop): Here.  Make it try rotating in the other
10679         direction even when the second operand isn't constant.
10680         * config/mips/mips.md (*lwxs): New.
10681         * config/mips/mips.opt (msmartmips): New.
10682         * config/mips/mips.c (mips_lwxs_address_p): New.
10683         (mips_rtx_costs): Make it recognize scaled indexed addressing.
10684         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
10685         __mips_smartmips when compiling for TARGET_SMARTMIPS.
10686         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
10687         (ISA_HAS_LWXS): New.
10688         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
10689         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
10690         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
10691         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
10692         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
10693         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
10694         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
10695
10696 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
10697
10698         * tree-vectorizer.c (new_loop_vec_info): Initialize
10699         LOOP_VINFO_COST_MODEL_MIN_ITERS.
10700         * tree-vectorizer.h (_loop_vec_info): Added new filed
10701         min_profitable_iters.
10702         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
10703         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
10704         * tree-vect-analyze.c (vect_analyze_operations): Set
10705         LOOP_VINFO_COST_MODEL_MIN_ITERS.
10706         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
10707         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
10708         Fix calculation of peel_iters_prologue. Move consideration of epilogue
10709         and prologue cost to after they are computed.
10710         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
10711         TARG_VEC_STMT_COST.
10712         (vect_model_simple_cost): Takes additional argument dt. Consider cost
10713         of creating vectors from scalars according to dt.
10714         (vect_model_store_cost): Likewise.
10715         (vectorizable_call): Use dt array instead of scalar dt. Call
10716         vect_model_simple_cost with additional argument dt.
10717         (vectorizable_assignment): Likewise.
10718         (vectorizable_operation): Likewise.
10719         (vectorizable_type_demotion): Likewise.
10720         (vectorizable_type_promotion): Likewise.
10721         (vectorizable_store): Use dt array instead of scalar dt. Call
10722         vect_model_store_cost with additional argument dt.
10723         (vect_do_peeling_for_loop_bound): Don't call
10724         vect_estimate_min_profitable_iters. Instead, lookup
10725         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
10726         "may not be profitable".
10727
10728 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
10729
10730         PR testsuite/32014
10731         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
10732         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
10733         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
10734         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
10735
10736 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
10737
10738         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
10739         addressing modes cheaper.
10740
10741 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
10742
10743         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
10744         (dw_ranges_struct): Rename block_num to num.  Adjust.
10745         (dw_ranges_by_label_struct): New.
10746         (ranges_by_label, ranges_by_label_allocated,
10747         ranges_by_label_in_use): New variables.
10748         (add_ranges_num): Factored most of the code out of...
10749         (add_ranges): ... this one.  Rewrite in terms of the former.
10750         (add_ranges_by_labels): New.
10751         (output_ranges): Output by-label ranges.
10752         (dwarf2out_finish): Output range for multiple-section
10753         compile_unit.  Output standard DW_AT_low_pc in addition to
10754         unexpected DW_AT_entry_pc.
10755
10756 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
10757
10758         PR tree-optimization/32604
10759         PR tree-optimization/32606
10760
10761         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
10762         (compute_antic_safe): Removed.
10763         (ANTIC_SAFE_LOADS): Ditto.
10764         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
10765         (execute_pre): Don't call compute_antic_safe.
10766         (vuse_equiv): New function.
10767         (make_values_for_stmt): Use it
10768         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
10769         not always true.
10770
10771 2007-07-04 Anatoly Sokolov <aesok@post.ru>
10772
10773         PR target/31331
10774         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
10775         rather than a decl. 
10776         (avr_attribute_table): Make "naked" attribute apply to function types
10777         rather than to decls.
10778         (avr_handle_fntype_attribute): New function.
10779
10780 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
10781
10782         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
10783         after \.
10784
10785 2007-07-04  David Ung  <davidu@mips.com>
10786             Joseph Myers  <joseph@codesourcery.com>
10787
10788         * config/mips/mips.md (type): Add logical, signext and move.
10789         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
10790         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
10791         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
10792         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
10793         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
10794         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
10795         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
10796         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
10797         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
10798         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
10799         movv2sf_hardfloat_64bit): Use the new types.
10800         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
10801         *movdf_softfloat, *movdf_mips16): Use "multi".
10802         (extendqihi2): Replace with a define_expand.
10803         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
10804         Based on extend<SHORT:mode><GPR:mode>2 patterns.
10805         * config/mips/74k.md (r74k_int_logical): New reservation and
10806         bypasses.
10807         (r74k_int_arith): Remove "slt".
10808         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
10809         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
10810         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
10811         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
10812         reservations for "arith".
10813
10814 2007-07-04  Richard Guenther  <rguenther@suse.de>
10815
10816         * tree-ssa.c (useless_type_conversion_p): Add handling for
10817         scalar float and vector types.  Only call the types_compatible_p
10818         langhook for aggregate types as last resort.  Follow the
10819         rules.
10820
10821 2007-07-04  Richard Guenther  <rguenther@suse.de>
10822
10823         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
10824         the same as NOP_EXPR.
10825
10826 2007-07-04  Nick Clifton  <nickc@redhat.com>
10827
10828         * target.h (struct gcc_target): Add target_help field.
10829         * target-def.h (TARGET_HELP): New.
10830         (TARGET_INITIALIZER): Use TARGET_HELP.
10831         * opts.c (command_handle_option): Invoke target_help function, if
10832         defined, when the user has specified --target-help on the command
10833         line.
10834         * doc/invoke.texi: Mention that --target-help might print
10835         additional information.
10836         * doc/tm.texi: Document TARGET_HELP hook.
10837
10838         * arm.c (TARGET_HELP): Override default definition.
10839         (arm_target_help): New - display a wrapped list of cores and
10840         architectures supported.
10841
10842 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10843
10844         * config/v850/v850.c (expand_prologue): Make sure
10845         GEN_INT() argument is sign extended rather than zero extended.
10846         (expand_epilogue): Likewise.
10847         (output_move_double): Delete.
10848         * config/v850/v850-protos.h (output_move_double): Delete.
10849         * config/v850/v850.md (movdi): Delete.
10850         (*movdi_internal): Delete.
10851         (movdf): Delete.
10852         (*movdf_internal): Delete.
10853
10854 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
10855
10856         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
10857         unless compiling RTP PIC.
10858
10859 2007-07-04  Richard Guenther  <rguenther@suse.de>
10860
10861         PR tree-optimization/32482
10862         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
10863         original ssa name if we didn't find a shift expression.
10864         Fix shift constant for bit zero test.
10865
10866 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
10867
10868         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
10869
10870 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
10871
10872         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
10873         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
10874         * config/arm/vxworks.h (ASM_SPEC): Delete.
10875         (SUBTARGET_EXTRA_ASM_SPEC): Define.
10876
10877 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
10878
10879         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
10880         (DDR_REVERSED_P): New.
10881         * tree-data-ref.c (initialize_data_dependence_relation,
10882         build_classic_dist_vector): Set DDR_REVERSED_P.
10883
10884 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
10885
10886         PR middle-end/32457
10887         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
10888         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
10889         init_omega_for_ddr_1): Use non conservative number of iterations
10890         estimations.
10891         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
10892         (analyze_siv_subscript): Remove FIXME and reinitialization of 
10893         last_conflicts to chrec_dont_know.
10894         * testsuite/gfortran.dg/vect/pr32457.f90: New.
10895
10896 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
10897
10898         * tree.c (maybe_canonicalize_argtypes): Improve description.
10899
10900 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
10901
10902         * tree.c (maybe_canonicalize_argtypes): New.
10903         (build_function_type): Set canonical type.
10904         (build_method_type_directly): Ditto.
10905         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
10906         properly.
10907
10908 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10909
10910         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
10911         like PLUS_EXPR.
10912         (rewrite_use_nonlinear_expr): Likewise.
10913
10914 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
10915
10916         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
10917
10918 2007-07-04  Ben Elliston  <bje@au.ibm.com>
10919
10920         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
10921         of this file.
10922
10923         * c-objc-common.c (c_types_compatible_p): Fix indentation.
10924
10925         * doc/tm.texi (Run-time Target): Capitalise "CPU".
10926         (Exception Handling): Likewise.
10927
10928 2007-07-03  Jan Hubicka  <jh@suse.cz>
10929
10930         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
10931
10932 2007-07-03  Eric Christopher  <echristo@apple.com>
10933
10934         * doc/cppopts.texi: Add conflicting option note to -dM.
10935         * doc/invoke.texi: Add note about possible conflicts with
10936         -E for -dCHARS and note that -dM will not produce
10937         any results if there is no machine dependent reorg.
10938         
10939 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
10940
10941         * tree.h (DECL_ALIGN): Back out previous change.
10942
10943 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
10944
10945         * configure.ac: Test for .dtprelword support on MIPS.
10946         * configure, config.in: Regenerate.
10947         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
10948         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
10949
10950 2007-07-03  Julian Brown  <julian@codesourcery.com>
10951
10952         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
10953         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
10954         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
10955         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
10956         capability.
10957         (all_fpus): Add FPUTYPE_VFP3.
10958         (fp_model_for_fpu): Add VFPv3 field.
10959         (arm_rtx_costs_1): Give cost to VFPv3 constants.
10960         (vfp3_const_double_index): New function. Return integer index of
10961         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
10962         isn't suitable.
10963         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
10964         and argument represents a valid RTX for a VFPv3 constant.
10965         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
10966         two instructions.
10967         (vfp_emit_fstmd): Similar, for fstmd.
10968         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
10969         constants, represented as integer indices.
10970         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
10971         VFP_REGNO_OK_FOR_DOUBLE macros.
10972         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
10973         (arm_file_start): Set float-abi attribute for VFPv3, and output
10974         correct ".fpu" assembler directive.
10975         (arm_dbx_register_numbering): Add FIXME.
10976         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
10977         (fputype): Add FPUTYPE_VFP3.
10978         (FIXED_REGISTERS): Add 32 registers for D16-D31.
10979         (CALL_USED_REGISTERS): Likewise.
10980         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
10981         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
10982         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
10983         (D7_VFP_REGNUM): New.
10984         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
10985         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
10986         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
10987         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
10988         (REG_ALLOC_ORDER): Adjust for VFPv3.
10989         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
10990         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
10991         VFP_LO_REGS, VFP_HI_REGS.
10992         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
10993         (IS_VFP_CLASS): Define macro.
10994         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
10995         IS_VFP_CLASS.
10996         (REGISTER_MOVE_COST): Likewise.
10997         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
10998         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
10999         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
11000         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
11001         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
11002         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
11003         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
11004         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
11005         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
11006         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
11007         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
11008         where appropriate for single-word registers.
11009         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
11010         As above. Fix type attributes.
11011         * config/arm/constraints.md (register_contraint "t"): Define.
11012         (register_constraint "w"): Change to D0-D15, or D0-D31 for
11013         VFPv3/NEON.
11014         (register_constraint "x"): Define.
11015         (constraint "Dv"): Define.
11016
11017 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
11018
11019         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
11020
11021 2007-07-03  Tom Tromey  <tromey@redhat.com>
11022
11023         * c-parser.c (objc_pq_context): Removed.
11024         (objc_need_raw_identifier): Likewise.
11025         (c_parser) <objc_pq_context>: New field.
11026         <objc_need_raw_identifier>: Likewise.
11027         (OBJC_NEED_RAW_IDENTIFIER): Removed.
11028         (c_lex_one_token): Update.
11029         (c_parser_objc_protocol_definition): Update.
11030         (c_parser_objc_method_definition): Update.
11031         (c_parser_objc_methodproto): Update.
11032         (c_parser_declspecs): Update.
11033
11034 2007-07-03  David Ung  <davidu@mips.com>
11035
11036         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
11037
11038 2007-07-03  David Ung  <davidu@mips.com>
11039             Richard Sandiford  <richard@codesourcery.com>
11040
11041         * doc/invoke.texi: Document -march=74kf3_2.
11042         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
11043         (TUNE_74K): Check for it.
11044         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
11045         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
11046         * config/mips/mips.md (cpu): Add 74kf3_2.
11047         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
11048         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
11049         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
11050         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
11051         74kf3_2 to the CPU list.
11052         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
11053         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
11054         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
11055         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
11056         (r74kf3_2_fxfer_from_c1): New insn reservations.
11057
11058 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
11059             David Ung  <davidu@mips.com>
11060
11061         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
11062         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
11063         and 74k[fx].  Document aliases for the new options.
11064         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
11065         (PROCESSOR_24KF2_1): ...this.
11066         (PROCESSOR_24KX): Rename to...
11067         (PROCESSOR_24KF1_1): ...this.
11068         (PROCESSOR_74KF): Rename to...
11069         (PROCESSOR_74KF2_1): ...this.
11070         (PROCESSOR_74KX): Rename to...
11071         (PROCESSOR_74KF1_1): ...this.
11072         (TUNE_74K): Update PROCESSOR_* names.
11073         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
11074         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
11075         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
11076         (mips_rtx_cost_data): Update processor names in comments.
11077         (mips_issue_rate): Update PROCESSOR_* names.
11078         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
11079         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
11080         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
11081         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
11082         Update cpu attribute names.
11083         (r24k_fpu_iss): Rename this reservation to...
11084         (r24kf2_1_fpu_iss): ...this and update all uses.
11085         (r24kx_fpu_iss): Rename this reservation to...
11086         (r24kf1_1_fpu_iss): ...this and update all uses.
11087         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
11088         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
11089         Update cpu attribute names.
11090
11091 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11092
11093         * config/m32r/constraints.md: New file.
11094         * config/m32r/m32r.c: Include tm-constrs.h.
11095         (small_data_operand): Use satisfies_constraint_* instead of macro.
11096         (addr24_operand, gen_compare): Likewise.
11097         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
11098         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
11099         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
11100         EXTRA_CONSTRAINT): Likewise.
11101         * config/m32r/m32r.md: Include constraints.md.
11102         (*movsi_insn): Use satisfies_constraint_* instead of macro.
11103         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
11104         * config/m32r/predicates.md (conditional_move_operand): Likewise.
11105         (two_insn_const_operand, int8_operand, uint16_operand,
11106         reg_or_int16_operand, reg_or_uint16_operand,
11107         reg_or_cmp_int16_operand, cmp_int16_operand,
11108         seth_add3_operand): Likewise.
11109
11110 2007-07-03  Eric Christopher  <echristo@gmail.com>
11111
11112         * libgcc2.h: Conditionally declare __bswapsi2 and
11113         __bswapdi2.
11114         
11115 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
11116
11117         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
11118         defined.
11119
11120 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11121
11122         PR target/28307
11123         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
11124         (__gthrw_pragma): Provide default definition.
11125         (__gthrw2): Use it.
11126         * gthr-posix.c (__gthrw_pragma): Define.
11127
11128 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
11129
11130         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
11131         before declaring inequality.
11132
11133 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
11134
11135         * combine.c (recog_for_combine): Log the success or failure of
11136           matching new insn patterns against the machine description in
11137           detailed dumps.
11138
11139 2007-07-03  Revital Eres  <eres@il.ibm.com>
11140
11141         * ddg.c (print_sccs): New function.
11142         (check_sccs): New function.
11143         (create_ddg_all_sccs): Use it.
11144         * ddg.h (print_sccs): Declare.
11145         * modulo-sched.c (sms_order_nodes): Call print_sccs.
11146
11147 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
11148
11149         * targhooks.h (default_mode_for_suffix): New function declaration.
11150         * targhooks.c (default_mode_for_suffix): New default target hook.
11151         * target.h (struct c): New structure in the targetm struct.
11152         (mode_for_suffix): New target hook as part of struct c.
11153         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
11154         default_mode_for_suffix.
11155         (TARGET_C): New define.
11156         * c-lex.c: Include "target.h".
11157         (interpret_float): Use targetm.c.mode_for_suffix to determine
11158         the mode for a given non-standard suffix.
11159         Makefile.in (c-lex.o): Depend on $(TARGET_H).
11160
11161         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
11162         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
11163
11164         * doc/extend.texi (Floating Types): New node.  Document __float80 and
11165         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
11166
11167 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11168
11169         PR target/32506
11170         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
11171         predicate instead of target_operand.
11172         (divsi3_i1_media, divsi3_media_2): Likewise.
11173
11174 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11175
11176         * tree.h (alias_sets_might_conflict_p): Rename into
11177         alias_sets_must_conflict_p.
11178         * alias.c (alias_sets_might_conflict_p): Likewise.
11179         (alias_sets_conflict_p): Use it.
11180         (objects_must_conflict_p): Likewise.
11181         * c-common.c (strict_aliasing_warning): Adjust.
11182
11183 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11184
11185         * rtlhooks.c (gen_lowpart_if_possible): Check for
11186         invalid subreg before calling gen_lowpart_SUBREG.
11187
11188 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
11189
11190         * config/darwin9.h: Add copyright notice.
11191         (LINK_COMMAND_SPEC): Add comment.
11192         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
11193         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
11194         DARWIN_LIBSYSTEM_HAS_UNWIND.
11195
11196 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11197
11198         PR libgomp/32468
11199         * omp-low.c (check_combined_parallel): New function.
11200         (lower_omp_parallel): Call it via walk_stmts, set
11201         OMP_PARALLEL_COMBINED if appropriate.
11202         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
11203         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
11204         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
11205         don't consider it as combined parallel.
11206
11207 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
11208
11209         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
11210         (gcc_tooldir): Likewise.
11211         * configure: Regenerate.
11212         * Makefile.in (libsubdir_to_prefix): New variable, based on the
11213         old configure.ac gcc_tooldir setting.
11214         (prefix_to_exec_prefix): New variable.
11215         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
11216         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
11217
11218 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
11219
11220         Fix PR tree-optimization/32583
11221         Fix PR tree-optimization/32584
11222         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
11223         (phi_translate_set): Use phi_translate directly now.
11224         (make_values_for_stmt): Don't value number RHS if we already know
11225         it is constant.
11226
11227 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
11228             Jim Wilson <wilson@specifix.com>
11229
11230         PR target/31684
11231         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
11232         copy_insn.
11233
11234 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11235             Richard Sandiford  <richard@codesourcery.com>
11236             Nigel Stephens  <nigel@mips.com>
11237
11238         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
11239         (mips16e_output_save_restore): Declare.
11240         (mips16e_save_restore_pattern_p): Likewise.
11241         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
11242         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
11243         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
11244         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
11245         (BITSET_P): New global macro, extracted from...
11246         (mips_for_each_saved_reg): ...here.
11247         (mips16e_save_restore_info): New struct.
11248         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
11249         (mips16e_save_restore_regs): New variable.
11250         (mips_split_plus, mips16e_find_first_register): New functions.
11251         (mips16e_mask_registers): New function.
11252         (compute_frame_size): Expand the commentary before the function.
11253         Enforce the MIPS16e save and restore register range restrictions.
11254         Pad the general register save area at the low end.
11255         (mips16e_save_restore_reg, mips16e_build_save_restore)
11256         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
11257         (mips16e_output_save_restore, mips16e_collect_propagate_value)
11258         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
11259         New functions.
11260         (mips_expand_prologue, mips_expand_epilogue): Handle
11261         GENERATE_MIPS16E_SAVE_RESTORE.
11262         * config/mips/mips.md (*mips16e_save_restore): New pattern.
11263
11264 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
11265
11266         PR tree-optimization/31966
11267         PR tree-optimization/32533
11268         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
11269         "basic_block" description as its third argument.  Update function
11270         calls to get destination bb from "edge" argument.  Save "cond" into
11271         aux field of the edge.  Update prototype for changed arguments.
11272         (if_convertible_loop_p): Clear aux field of incoming edges if bb
11273         contains phi node.
11274         (find_phi_replacement_condition): Operate on incoming edges, not
11275         on predecessor blocks.  If there is a condition saved in the
11276         incoming edge aux field, AND it with incoming bb predicate.
11277         Return source bb of the first edge.
11278         (clean_predicate_lists): Clean aux field of outgoing node edges.
11279         (tree_if_conversion): Do not initialize cond variable. Move
11280         variable declaration into the loop.
11281         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
11282         initializations of new_stmt, arg0 and arg1 variables.
11283
11284 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11285
11286         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
11287         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
11288
11289 2007-07-02  Richard Guenther  <rguenther@suse.de>
11290
11291         * tree-ssa.c (useless_type_conversion_p): Document
11292         future intent as defining the middle-end type system.
11293         Re-structure to call langhook last, group by type class,
11294         mark questionable parts.
11295
11296 2007-07-02  Richard Guenther  <rguenther@suse.de>
11297
11298         * tree-flow.h (types_compatible_p): Declare.
11299         * tree-ssa.c (types_compatible_p): New function.
11300         * ipa-type-escape.c (discover_unique_type): Use
11301         types_compatible_p instead of lang_hooks.types_compatible_p.
11302         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
11303         * tree-vn.c (expressions_equal_p): Likewise.
11304         * tree.c (fields_compatible_p): Likewise.
11305         * tree-ssa-dom.c (avail_expr_eq): Likewise.
11306         (cprop_operand): Use useless_type_conversion_p instead of
11307         lang_hooks.types_compatible_p.
11308         * tree-inline.c (setup_one_parameter): Likewise.
11309         (declare_return_variable): Likewise.
11310         * tree-nrv.c (tree_nrv): Likewise.
11311         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11312         (maybe_fold_offset_to_component_ref): Likewise.
11313         (maybe_fold_offset_to_reference): Likewise.
11314         * tree-ssa-copy.c (may_propagate_copy): Likewise.
11315         (merge_alias_info): Likewise.
11316         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11317         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
11318         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
11319         * tree-tailcall.c (find_tail_calls): Likewise.
11320         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11321         * gimplify.c (canonicalize_addr_expr): Likewise.
11322         (fold_indirect_ref_rhs): Likewise.
11323         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
11324         (cpt_same_type): Likewise.
11325         (check_pointer_types_r): Swap parameters to cpt_same_type
11326         where appropriate.
11327         * fold-const.c (fold_convert): Revert fix for PR15988.
11328         * tree-inline.c (setup_one_parameter): Instead fix it here by
11329         using fold_build1 instead of fold_convert and checking for
11330         error_mark_node.  Convert only if the conversion is necessary.
11331
11332 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
11333
11334         * configure.ac: Check for .gnu_attribute on Power.
11335         * configure: Regenerate.
11336         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
11337         attribute for floating-point ABI.
11338
11339 2007-07-02  Ira Rosen  <irar@il.ibm.com>
11340
11341         PR tree-optimization/32230
11342         PR tree-optimization/32477
11343         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
11344         address is a constant.
11345
11346 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
11347
11348         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
11349         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
11350         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
11351         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
11352         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
11353         64-bit targets.  Add support for *-elfoabi*.
11354         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
11355         different settings if $(tm_defines) does not select the EABI.
11356         (MULTILIB_EXCLUSIONS): Define in those circumstances.
11357         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
11358         (MIPS_ARCH_OPTION_SPEC): Likewise.
11359         (MIPS_ISA_LEVEL_SPEC): Likewise.
11360         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
11361         * config/mips/elfoabi.h: New file.
11362
11363 2007-07-02  Richard Guenther  <rguenther@suse.de>
11364
11365         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
11366         (useless_type_conversion_p): ... this.
11367         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
11368         (useless_type_conversion_p): ... this.
11369         * builtins.c (fold_builtin_memory_op): Rename
11370         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
11371         * tree-cfg.c (verify_expr): Likewise.
11372         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
11373         * tree-ssa-ccp.c (ccp_fold): Likewise.
11374         * tree-ssa-copy.c (may_propagate_copy): Likewise.
11375         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
11376         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11377         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
11378         * tree-ssa-pre.c (eliminate): Likewise.
11379         * tree-ssa.c (delete_tree_ssa): Likewise.
11380         (tree_ssa_useless_type_conversion): Likewise.
11381         * tree.c (build2_stat): Likewise.
11382
11383 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
11384
11385         Fix PR tree-optimization/32571
11386         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
11387         simplifying them.
11388
11389 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
11390
11391         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
11392         and other expected operations explicitly, change default to
11393         gcc_unreachable. 
11394
11395 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
11396
11397         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
11398         PARALLEL.
11399         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
11400         (tls_load_dot_plus_eight): Move the label number into the unspec.
11401         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
11402
11403 2007-07-01  Andreas Schwab  <schwab@suse.de>
11404
11405         * dwarf2out.c (initial_return_save): Define only if used.
11406
11407 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
11408
11409         Unreverting Richard's Revert of:
11410
11411         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
11412
11413         * dce.c (deletable_insn_p_1): New function, split out from...
11414         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
11415         specially, not those inside PARALLELs.  Remove BODY argument
11416         and adjust recursive call accordingly.
11417         (prescan_insns_for_dce): Update call to delete_insn_p.
11418
11419 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
11420             Revital Eres  <eres@il.ibm.com>
11421
11422         * ddg.c (create_ddg_all_sccs): Fix missed
11423         initialization of scc_nodes.
11424
11425 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
11426
11427         PR middle-end/32559
11428         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
11429         X + ~X to 1 only for INTEGRAL_TYPE_P type.
11430
11431 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
11432
11433         * configure.ac: Check for .gnu_attribute on MIPS.
11434         * configure, config.in: Regenerate.
11435         * config/mips/mips.c (mips_file_start): If supported, output
11436         attribute for floating-point ABI.
11437
11438 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
11439
11440         PR target/32433
11441         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
11442         (ffs_cmove): New expander to expand using ctz pattern.
11443         (*ffs_cmove): Remove pattern.
11444         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
11445         (ffsdi2): Expand using ctz pattern.
11446         (*ffs_rex64): Remove pattern.
11447
11448 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11449
11450         PR rtl-optimization/32296
11451         * pa.md (return): Delete pattern.
11452         (return_internal): Remove "(const_int 1)" from pattern.
11453         (epilogue): Use return_internal pattern for trivial returns.
11454         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
11455         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
11456
11457 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
11458
11459         * tree-ssa-pre.c (is_exception_related): New function
11460         (can_value_number_operation): Use it.
11461
11462 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
11463         
11464         Fix PR tree-optimization/32540
11465         Fix PR tree-optimization/31651
11466
11467         * tree-ssa-sccvn.c: New file.
11468
11469         * tree-ssa-sccvn.h: Ditto.
11470         
11471         * tree-vn.c: Include tree-ssa-sccvn.h
11472         (val_expr_paid_d): Removed.
11473         (value_table): Ditto.
11474         (vn_compute): Ditto.
11475         (val_expr_pair_hash): Ditto.
11476         (val_expr_pair_expr_eq): Ditto.
11477         (copy_vuses_from_stmt): Ditto.
11478         (vn_delete): Ditto.
11479         (vn_init): Ditto.
11480         (shared_vuses_from_stmt): Ditto.
11481         (print_creation_to_file): Moved up.
11482         (sort_vuses): Ditto.
11483         (sort_vuses_heap): Ditto.
11484         (set_value_handle): Make non-static.
11485         (make_value_handle): Ditto.
11486         (vn_add): Rewritten to use sccvn lookups.
11487         (vn_add_with_vuses): Ditto.
11488         (vn_lookup): Ditto (and second argument removed).
11489         (vn_lookup_with_vuses): Ditto.
11490         (vn_lookup_or_add): Ditto (and second argument removed);
11491         (vn_lookup_or_add_with_vuses): Ditto.
11492         (vn_lookup_with_stmt): New.
11493         (vn_lookup_or_add_with_stmt): Ditto.
11494         (create_value_handle_for_expr): Ditto.
11495
11496         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
11497         (seen_during_translate): New function.
11498         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
11499         (phi_trans_add): Ditto.
11500         (constant_expr_p): FIELD_DECL is always constant.
11501         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
11502         Use constant_expr_p.
11503         Avoid infinite recursion on mutually valued expressions.
11504         Change callers of vn_lookup_or_add.
11505         (phi_translate): New function.
11506         (compute_antic_safe): Allow phi nodes.
11507         (create_component_ref_by_pieces): Update for FIELD_DECL change.
11508         (find_or_generate_expression): Rewrite slightly.
11509         (create_expression_by_pieces): Updated for vn_lookup_or_add
11510         change.
11511         Update VN_INFO for new names.
11512         (insert_into_preds_of_block): Update for new names.
11513         (add_to_exp_gen): New function.
11514         (add_to_sets): Use vn_lookup_or_add_with_stmt.
11515         (find_existing_value_expr): Rewrite to changed vn_lookup.
11516         (create_value_expr_from): Ditto, and use add_to_exp_gen.
11517         (try_look_through_load): Removed.
11518         (try_combine_conversion): Ditto.
11519         (get_sccvn_value): New function.
11520         (make_values_for_phi): Ditto.
11521         (make_values_for_stmt): Ditto.
11522         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
11523         SCCVN.
11524         (init_pre): Update for SCCVN changes.
11525         (fini_pre): Ditto.
11526         (execute_pre): Ditto.
11527
11528         * tree-flow.h (make_value_handle): Declare.
11529         (set_value_handle): Ditto.
11530         (sort_vuses_heap): Ditto.
11531         (vn_lookup_or_add_with_stmt): Ditto.
11532         (vn_lookup_with_stmt): Ditto.
11533         (vn_compute): Remove.
11534         (vn_init): Ditto.
11535         (vn_delete): Ditto.
11536         (vn_lookup): Update arguments.
11537
11538         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
11539         (tree-vn.o): Ditto.
11540         (tree-ssa-sccvn.o): New.
11541         (OBJS-common): Add tree-ssa-sccvn.o
11542         
11543 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11544
11545         PR c/4076
11546         * c-typeck.c (build_external_ref): Don't mark as used if called
11547         from itself.
11548         * calls.c (rtx_for_function_call): Likewise.
11549         
11550 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
11551
11552         Revert:
11553
11554         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
11555
11556         * dce.c (deletable_insn_p_1): New function, split out from...
11557         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
11558         specially, not those inside PARALLELs.  Remove BODY argument
11559         and adjust recursive call accordingly.
11560         (prescan_insns_for_dce): Update call to delete_insn_p.
11561
11562 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
11563
11564         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
11565         (try_combine): Move potential calls to undo_all() so they happen
11566         before we commit to using the combined insns.
11567
11568 2006-06-30  Jan Hubicka  <jh@suse.cz>
11569
11570         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
11571         code.
11572
11573 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
11574
11575         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
11576         (cgraph_remove_unreachable_nodes): Likewise.
11577         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
11578         * ipa-inline.c (update_caller_keys): Cast according to the coding
11579         conventions.
11580         (cgraph_decide_recursive_inlining): Likewise.
11581         (cgraph_decide_inlining_of_small_function): Likewise.
11582         (try_inline): Likewise.
11583         (cgraph_decide_inlining_incrementally): Likewise.
11584         * ipa-pure-const.c (get_function_state): Likewise.
11585         (scan_function): Likewise.
11586         (analyze_function): Likewise.
11587         (static_execute): Likewise.
11588         * ipa-reference.c (scan_for_static_refs): Likewise.
11589         (merge_callee_local_info): Likewise.
11590         (analyze_function): Use type safe memory macros.
11591         (static_execute): Likewise. Cast according to the coding conventions.
11592         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
11593         conventions.
11594         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
11595         names.
11596         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
11597         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
11598         variable names.
11599
11600 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11601
11602         PR middle-end/30024
11603         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
11604         for complex modes (both int and real).
11605
11606 2007-06-29  Jan Hubicka  <jh@suse.cz>
11607
11608         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
11609
11610 2007-06-29  Jan Hubicka  <jh@suse.cz>
11611
11612         PR middle-end/32372
11613         * cse.c (cse_insn): Avoid invalid sharing in between register note and
11614         the insn pattern.
11615
11616 2007-06-29  Anatoly Sokolov <aesok@post.ru>
11617
11618         PR target/32335
11619         * config/avr/avr.c: Include dataflow header file.
11620         (expand_prologue): Adjust for prologue insn change.
11621         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
11622         inside a insn.
11623
11624 2007-06-29  Richard Guenther  <rguenther@suse.de>
11625
11626         PR middle-end/32493
11627         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
11628         during type verification.
11629
11630 2007-06-29  Jan Hubicka  <jh@suse.cz>
11631
11632         * recog.c (validate_change_rtx_1): Unshare TO argument.
11633
11634 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
11635
11636         PR tree-optimization/24659
11637         * tree-vect-transform.c (vectorizable_call): Handle
11638         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
11639
11640         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
11641         * config/i386/i386.c (enum ix86_builtins)
11642         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
11643         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
11644         description.
11645         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
11646         const using def_builtin_const.
11647         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
11648         input operands in the same modes as the result.
11649         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
11650
11651 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
11652
11653         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
11654         (df_set_dead_notes_for_mw): Likewise.
11655
11656 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11657
11658         * c-common.c (pointer_int_sum): Do the negation in sizetype.
11659
11660 2007-06-28  DJ Delorie  <dj@redhat.com>
11661
11662         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
11663
11664 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
11665
11666         * doc/invoke.texi (C++ Dialect Options): Document
11667         fvisibility-ms-compat.
11668         * c.opt (fvisibility-ms-compat): New.
11669
11670 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11671
11672         PR tree-opt/32417
11673         * tree-affine.c (aff_combination_add_elt): Handle
11674         pointer addition specially.
11675
11676 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
11677
11678         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
11679         decl is non-external for AIX ABI.
11680
11681 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
11682
11683         * config/rs6000/predicates.md (current_file_function_operand):
11684         Ensure the symbol is non-external for AIX ABI.
11685
11686 2007-06-28  Nick Clifton  <nickc@redhat.com>
11687
11688         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
11689         (fdce, fdse, fpredictive-commoning): Likewise.
11690
11691 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11692
11693         PR other/31400
11694         * gcc.c (process_command): Recognize the new -static-libgfortran
11695         option.
11696
11697 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
11698
11699         PR target/32418
11700         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
11701         Use a call clobbered hard reg instead of a pseudo reg.
11702
11703 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11704
11705         * config/sh/sh.md (load_gbr): Use correct operand constraint.
11706
11707 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
11708
11709         PR target/32479
11710         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
11711         REG_LIBCALL and REG_RETVAL notes.
11712         (divsi3, mulsi3): Likewise.
11713         (mulhisi3): Likewise.  Use emit_libcall_block.
11714         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
11715
11716 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
11717
11718         PR rtl-optimization/32481
11719         * combine.c (adjust_for_new_dest): Rescan the changed insn.
11720
11721 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
11722
11723         * dce.c (deletable_insn_p_1): New function, split out from...
11724         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
11725         specially, not those inside PARALLELs.  Remove BODY argument
11726         and adjust recursive call accordingly.
11727         (prescan_insns_for_dce): Update call to delete_insn_p.
11728
11729 2007-06-27  Richard Guenther  <rguenther@suse.de>
11730
11731         PR middle-end/32492
11732         * tree.h (fold_convertible_p): Declare.
11733         * fold-const.c (fold_convertible_p): New function.
11734         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
11735         instead of lang_hooks.types_compatible_p.
11736
11737 2007-06-26  Jan Hubicka  <jh@suse.cz>
11738
11739         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
11740         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
11741         early use validate_unshare_change.
11742         (reload_combine): Likewise.
11743         * recog.c (change_t): New field unshare.
11744         (validate_change_1): Rename from validate_change; add argument unshare.
11745         (validate_change): Turn into wrapper of validate_change_1; update
11746         prototype for bools.
11747         (validate_unshare_change): New.
11748         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
11749         calls of df_insn_rescan.
11750         * recog.h (validate_change): Replace ints by bools.
11751         (validate_unshare_change): Declare.
11752
11753 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
11754
11755         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
11756         
11757 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
11758
11759         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
11760
11761 2007-06-25  Jan Hubicka  <jh@suse.cz>
11762
11763         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
11764         uninlinable call.
11765         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
11766         cgraph_decide_inlining_incrementally): Move uninlinability checks to
11767         places other call site specific checks are performed.
11768
11769 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11770
11771         PR tree-opt/32421
11772         * tree-vect-transform.c (vectorizable_operation): Convert
11773         POINTER_PLUS_EXPR over to PLUS_EXPR.
11774
11775 2007-06-25  Chao-ying Fu  <fu@mips.com>
11776
11777         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
11778         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
11779         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
11780         Document GET_MODE_IBIT, and GET_MODE_FBIT.
11781
11782         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
11783         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
11784         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
11785         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
11786         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
11787         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
11788         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
11789         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
11790         ALL_FIXED_POINT_MODE_P): New define.
11791         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
11792         MODE_UACCUM.
11793         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
11794
11795         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
11796         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
11797         MODE_VECTOR_UACCUM): New mode classes.
11798
11799         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
11800         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
11801         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
11802         USA, UDA, and UTA.
11803
11804         * genmodes.c (struct mode_data): Add ibit and fbit fields.
11805         (blank_mode): Initialize ibit and fbit.
11806         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
11807         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
11808         MODE_UACCUM.
11809         (new_adjust): Change required_class to required_class_from and
11810         required_class_to for testing within a range.
11811         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
11812         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
11813         MODE_VECTOR_UACCUM.
11814         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
11815         (make_fixed_point_mode): New.
11816         (_ADD_ADJUST): Change C to C1 and C2.
11817         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
11818         use a range for machine classes.
11819         (ADJUST_IBIT, ADJUST_FBIT): New.
11820         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
11821         CONST_MODE_FBIT.
11822         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
11823         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
11824         Emit adjustment for ibit and fbit.
11825         (emit_mode_ibit, emit_mode_fbit): New.
11826         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
11827
11828 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
11829
11830         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
11831         as the source of the set.
11832
11833 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
11834
11835         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
11836         FP_REGNO_P): Use IN_RANGE.
11837         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
11838         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
11839         (DATA_REG_P): Use DATA_REGNO_P.
11840         (FP_REG_P): Use FP_REGNO_P.
11841         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
11842         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
11843         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
11844
11845 2007-06-24  Jan Hubicka  <jh@suse.cz>
11846
11847         PR middle-end/30563
11848         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
11849
11850 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
11851
11852         PR middle-end/32461
11853         * fold-const.c (fold_binary): Strip nops of operand 0
11854         of BIT_NOT_EXPR before calling operand_equal_p.
11855         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
11856         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
11857
11858 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
11859
11860         * doc/extend.texi: Document that dllimport and dllexport imply
11861         default visibility.
11862         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
11863         imported or exported declaration, including type declarations.
11864         * c-common.c (handle_visibility_attribute): Check for conflicts
11865         with dllimport/dllexport.
11866         (c_determine_visibility): Handle dllimport/dllexport as an
11867         explicit visibility atttribute.
11868
11869 2007-06-23  Richard Guenther  <rguenther@suse.de>
11870
11871         PR tree-optimization/16876
11872         PR middle-end/29478
11873         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
11874         for CALL_EXPRs.
11875         * tree-inline.c (initialize_inlined_parameters): Do not call
11876         lang_hooks.tree_inlining.convert_parm_for_inlining.
11877         * cgraphbuild.c (initialize_inline_failed): Set inline failed
11878         reason for mismatched types.
11879         * gimplify.c (gimplify_call_expr): Verify the call expression
11880         arguments match the called function type signature.  Otherwise
11881         mark the call expression to be not considered for inlining
11882         using CALL_CANNOT_INLINE_P flag.
11883         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
11884         edges call expression.
11885         (cgraph_decide_inlining_of_small_function): Likewise.
11886         (cgraph_decide_inlining): Likewise.
11887         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11888         Remove define.
11889         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
11890         * c-typeck.c (c_convert_parm_for_inlining): Remove.
11891         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
11892         Remove declaration.
11893         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
11894         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
11895         Remove.
11896         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
11897         convert_parm_for_inlining member.
11898
11899 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
11900
11901         PR target/31152
11902         * arm.md (negscc): Match the correct operand for optimized LT0 test.
11903         Remove optimization for GT.
11904
11905 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
11906
11907         PR middle-end/32437
11908         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
11909         is a PARALLEL.
11910         (prescan_insns_for_dce): Add extra parameter.
11911         
11912 2007-06-23  Jan Hubicka  <jh@suse.cz>
11913
11914         PR middle-end/31541
11915         * gimplify.c (mark_addressable): New function.
11916         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
11917
11918 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
11919
11920         PR middle-end/32374
11921         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
11922
11923 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
11924
11925         PR target/32413
11926         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
11927         moves between MMX/SSE registers to at least 8 units to prevent
11928         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
11929
11930 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
11931
11932         * config/i386/i386.c (override_options): Correct x86_sahf
11933         setting condition.
11934
11935 2007-06-21  David Daney  <ddaney@avtrex.com>
11936
11937         PR target/32406
11938         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
11939         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
11940         (exception_receiver): Renamed to ...
11941         (nonlocal_goto_receiver): ... this.
11942
11943 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
11944
11945         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
11946         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
11947         partial register accesses.
11948
11949 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
11950
11951         * fold-const.c (debug_fold_checksum): Move it under
11952         ENABLE_FOLD_CHECKING.
11953
11954 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
11955
11956         PR middle-end/20623
11957         * tree.h (debug_fold_checksum): Declared.
11958         * fold-const.c (build_fold_addr_expr_with_type_1): New.
11959         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
11960         build_fold_addr_expr_with_type_1.
11961         (fold_addr_expr, debug_fold_checksum): New.
11962         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
11963         (fold_unary, fold_comparison, split_address_to_core_and_offset):
11964         Use fold_addr_expr.
11965         
11966 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
11967
11968         PR tree-optimization/19590
11969         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
11970         of scev is a constant.
11971
11972 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
11973
11974         * df-problems.c (df_note_bb_compute): Made computation of live
11975         info consistent with df_lr.
11976
11977 2007-06-21  Richard Guenther  <rguenther@suse.de>
11978
11979         PR tree-optimization/32453
11980         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
11981         for pointer anti-range.
11982
11983 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11984
11985         * config/i386/i386.c (processor_target_table): Increase maximum
11986         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
11987         default 64bit.
11988
11989         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
11990         byte alignment if > 8 byte alignment is preferred.
11991         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11992
11993 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
11994
11995         PR tree-optimization/31866
11996         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
11997         if ASM_EXPR's input is not a SSA_NAME.
11998
11999         PR middle-end/32362
12000         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
12001         but decl is a global var, instead return decl.
12002         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
12003         even for is_global_var decls, if they are private in some outer
12004         context.
12005
12006 2007-06-21  Richard Guenther  <rguenther@suse.de>
12007
12008         PR tree-optimization/32451
12009         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
12010
12011 2007-06-21  Christian Bruel  <christian.bruel@st.com>
12012
12013         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
12014         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
12015         (push_regs): Changed saving order or banked registers.
12016         (sh_expand_epilogue): Likewise.
12017         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
12018         (FIRST_BANKED_REG): Likewise.
12019         (LAST_BANKED_REG): Likewise.
12020         * config/sh/sh.md (banked) New attribute.
12021         (in_delay_slot): Check banked attribute.
12022         
12023 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
12024
12025         PR tree-optimization/32075
12026         * tree-data-ref.c (subscript_dependence_tester_1, 
12027         analyze_miv_subscript, analyze_overlapping_iterations,
12028         add_distance_for_zero_overlaps, build_classic_dist_vector,
12029         subscript_dependence_tester_1, analyze_overlapping_iterations,
12030         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
12031         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
12032         to evolution_function_is_affine_multivariate_p.
12033
12034 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12035
12036         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
12037
12038 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12039
12040         PR target/32335
12041         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
12042         for TARGET_A16.
12043         * config/m32c/prologue.md (epilogue_exitd_16): New.
12044         (epilogue_reit_16): New.
12045         (epilogue_exitd): Rename to epilogue_exitd_24.
12046         (epilogue_reit): Rename to epilogue_reit_24.
12047
12048 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
12049             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
12050
12051         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
12052         New counters.
12053         * haifa-sched.c (queue_to_ready): Don't requeue next insn
12054         if dbg_cnt (sched_insn) reaches the limit.
12055         (choose_ready): New parameter INSN_PTR and new return value.
12056         (schedule_block): Handle dbg_cnt (sched_insn). Handle
12057         the new return value from choose_ready.
12058         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
12059         (rest_of_handle_global_alloc): New global_alloc_at_func.
12060
12061 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
12062
12063         PR tree-optimization/25737
12064         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
12065         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
12066         * tree-flow.h (struct fieldoff): Add new field alias_set.
12067         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
12068         argument addressable_type.  Set alias_set of fieldoff.
12069         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
12070         (create_overlap_variables_for): Pass alias_set from fieldoff to
12071         create_sft.
12072         * alias.c (get_alias_set): Use alias_set from SFT if set.
12073
12074 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
12075
12076         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
12077         of a variable as an unsigned HOST_WIDE_INT integer.
12078
12079 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
12080
12081         PR rtl-optimization/32405
12082         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
12083
12084 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
12085
12086         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
12087
12088         PR middle-end/31959
12089         * builtins.c: Include diagnostic.h.
12090         (expand_builtin_expect): Make gcc_assert more permissive.
12091         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
12092
12093         PR inline-asm/32109
12094         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
12095         and !allows_mem.
12096
12097         PR middle-end/32285
12098         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
12099         if ACCUMULATE_OUTGOING_ARGS.
12100
12101 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12102
12103         * config/m68hc11/m68hc11.c: Include dataflow header file.
12104         (m68hc11_reorg): Port to dataflow.
12105
12106 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12107
12108         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
12109         (struct df_problem.free_blocks_on_set_blocks): New field.
12110         (struct dataflow.optional_p): New field.
12111         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
12112         (df_live_set_all_dirty): New function.
12113         * df-scan.c (df_scan_alloc): Initialize optional_p.
12114         (problem_SCAN): Initialize free_blocks_on_set_blocks.
12115         * df-core.c (df_set_blocks): Removed use of
12116         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
12117         df_problem.free_blocks_on_set_blocks to determine which blocks are
12118         recycled.
12119         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
12120         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
12121         uses dataflow.optional_p to determine if problem should be
12122         deleted.
12123         (rest_of_handle_df_initialize): Only start live problem if 
12124         -02 or above.
12125         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
12126         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
12127         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
12128         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
12129         problem_NOTE): Initialize free_blocks_on_set_blocks.
12130         (df_lr_bb_local_compute): Recompute luids if df_live problem is
12131         not active.
12132         (df_live_set_all_dirty, df_note_alloc): New function.
12133         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
12134         df_get_live_*.
12135         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
12136         * postreload.c (reload_combine): Ditto.
12137         * cse.c (cse_extended_basic_block): Ditto.
12138         * regmove.c (mark_flags_life_zones): Ditto.
12139         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
12140         erase_matching_seqs): Ditto.
12141         * bt-load.c (compute_defs_uses_and_gen): Ditto.
12142         * integrate (allocate_initial_values): Ditto.
12143         * combine.c (reg_dead_at_p): Ditto.
12144         * resource.c (mark_target_live_regs): Ditto.
12145         * sched-rgn.c (check_live_1, update_live_1): Ditto.
12146         * config/sh/sh.c (find_r0_life_regions): Ditto.
12147         * global.c (rest_of_handle_global_alloc): Only add back df_live
12148         for -O > 1.
12149         * local-alloc.c (rest_of_handle_local_alloc): Only remove
12150         df_live for -O > 1.
12151         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
12152         df_get_live_*.
12153         (if_convert): Make sure df_live is there at -O == 1.
12154         (pass_if_after_combine): Cleanup flags.
12155         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
12156         is there at -O == 1.
12157         
12158 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
12159
12160         * config/arm/arm.c (arm_get_frame_offsets): Set
12161         offsets->locals_base to avoid negative stack size.
12162         (thumb1_expand_prologue): Assert on negative stack size.
12163
12164 2007-06-19  Sebastian Pop  <sebpop@gmail.com>
12165
12166         PR tree-optimization/32367
12167         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
12168         of the chrec has no evolution in that loop.
12169         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
12170
12171 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
12172
12173         * config/xtensa/xtensa.c: Include "df.h".
12174         (xtensa_builtin_saveregs): Use adjust_address instead of
12175         change_address.
12176         (xtensa_va_start): Invoke make_tree with sizetype for
12177         expand_builtin_saveregs and then convert the result to a pointer.
12178         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
12179         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
12180         Subtract argument size from index value as integers and then use
12181         POINTER_PLUS_EXPR to add the result to the array address.
12182         
12183 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12184
12185         PR target/32335
12186         * config/m32c/m32c.c: Include dataflow header file.
12187         (m32c_emit_prologue): Adjust for prologue insn change.
12188         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
12189         once inside a PARALLEL. Assume frame size passed in operand 0
12190         includes space to save the fb register.
12191         (prologue_enter_24): Likewise.
12192         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
12193
12194 2007-06-19  David Daney  <ddaney@avtrex.com
12195
12196         PR target/32313
12197         * config/mips/mips.md (cprestore): Mark $gp as used.
12198
12199 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12200
12201         PR target/32369
12202         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
12203         (frv_ifcvt_modify_insn): Likewise.
12204
12205 2007-06-19  Richard Guenther  <rguenther@suse.de>
12206
12207         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
12208         only handle positive offsets that fit in a HOST_WIDE_INT.
12209
12210 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
12211
12212         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
12213         result of rsqrt insn for zero input argument to avoid NaN.
12214
12215 2007-06-19  Richard Guenther  <rguenther@suse.de>
12216
12217         PR middle-end/31950
12218         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
12219
12220 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
12221
12222         PR tree-optimization/32353
12223         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
12224
12225 2007-06-19  Nick Clifton  <nickc@redhat.com>
12226
12227         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
12228
12229 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
12230
12231         PR target/32389
12232         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
12233         * config/i386/i386.c (assign_386_stack_local): Assert that
12234         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
12235         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
12236         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
12237         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
12238
12239 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
12240
12241         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
12242
12243 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
12244
12245         PR rtl-optimization/32321
12246         * gcse.c (replace_store_insn): Update the note before
12247         calling emit_insn_after.
12248
12249 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
12250
12251         PR middle-end/32355
12252         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
12253         cse_main.
12254         * df-problems.c (df_note_bb_compute): Fix dumping info.
12255         
12256 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
12257
12258         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
12259         insn with emit_jump_insn.
12260
12261 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
12262
12263         PR tree-optimization/32383
12264         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
12265         * targhooks.h (default_builtin_reciprocal): Update prototype.
12266         * target.h (struct gcc_target): Update builtin_reciprocal.
12267         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
12268         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
12269         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
12270         when fndecl is in BUILT_IN_MD class.
12271         (execute_convert_to_rsqrt): Ditto.
12272
12273         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
12274         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
12275         Convert BUILT_IN_SQRTF code only  when md_fn is false.
12276
12277 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12278
12279         * bt-load.c (move_btr_def): Fix the order of arguments
12280         to validate_replace_rtx.
12281
12282 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
12283
12284         * config/m68k/m68k-devices.def: Add 54450..54455.
12285
12286 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
12287
12288         PR rtl-optimization/32366
12289         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
12290         FLOAT_EXTEND]: Prevent non-scalar modes from entering
12291         significand_size.
12292
12293 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12294
12295         PR middle-end/32349
12296         * modulo-sched (generate_reg_moves): Added rescan parameter and if
12297         this is true, rescan insn being modified.
12298         (sms_schedule): Added rescan parameter.
12299         (rest_of_handle_sms): Moved freeing of dominance info to before
12300         getting out of cfg_layout.
12301         
12302 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
12303
12304         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
12305         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
12306         appropriate.
12307
12308         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
12309         FL_CF_EMAC from the entry for isac.
12310
12311         * config/m68k/predicates.md (const_call_operand): Adjust comment.
12312         (const_sibcall_operand): New.
12313         (sibcall_operand): Use it.
12314         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
12315         (m68k_isas): ISAC does not imply FPU or EMAC.
12316         (override_options): Add ISA_C logic for symbolic jump & call.
12317
12318 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12319
12320         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
12321         return mode from the builtin itself.
12322         (sparc_fold_builtin): Fix cast of zero constant.
12323
12324 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
12325
12326         * targhooks.c (default_builtin_reciprocal): New default target hook.
12327         * targhooks.h (default_builtin_reciprocal): Add prototype.
12328         * hooks.c (hook_tree_tree_bool_null): Remove hook.
12329         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
12330         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
12331         default_builtin_reciprocal.
12332
12333 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
12334
12335         PR middle-end/31723
12336         * hooks.c (hook_tree_tree_bool_null): New hook.
12337         * hooks.h (hook_tree_tree_bool_null): Add prototype.
12338         * tree-pass.h (pass_convert_to_rsqrt): Declare.
12339         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
12340         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
12341         and convert it to reciprocal a*rfunc(b).
12342         (execute_convert_to_rsqrt): New function.
12343         (gate_convert_to_rsqrt): New function.
12344         (pass_convert_to_rsqrt): New pass definition.
12345         * target.h (struct gcc_target): Add builtin_reciprocal.
12346         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
12347         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
12348         TARGET_BUILTIN_RECIPROCAL.
12349         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
12350
12351         * config/i386/i386.h (TARGET_RECIP): New define.
12352         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
12353         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12354         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12355         and not optimizing for size.
12356         (*rcpsf2_sse): New insn pattern.
12357         (*rsqrtsf2_sse): Ditto.
12358         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
12359         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12360         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12361         and not optimizing for size.
12362         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
12363         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12364         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12365         and not optimizing for size.
12366         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
12367         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12368         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12369         and not optimizing for size.
12370         (*sse_rsqrtv4sf2): Do not export.
12371         (sqrtv4sf2): Ditto.
12372         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
12373         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
12374         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
12375         and not optimizing for size.
12376         (sqrtv4sf2): Ditto.
12377         * config/i386/i386.opt (mrecip): New option.
12378         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
12379         (ix86_emit_swsqrtsf): Ditto.
12380         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
12381         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
12382         builtin definition.
12383         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
12384         ix86_expand_unop1_builtin.
12385         (ix86_emit_swdivsf): New function.
12386         (ix86_emit_swsqrtsf): Ditto.
12387         (ix86_builtin_reciprocal): New function.
12388         (TARGET_BUILTIN_RECIPROCAL): Use it.
12389         (ix86_vectorize_builtin_conversion): Rename from
12390         ix86_builtin_conversion.
12391         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
12392         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
12393         "i386 and x86_64 Options" section.
12394         (Intel 386 and AMD x86_64 Options): Document -mrecip.
12395
12396 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
12397             Zdenek Dvorak <dvorakz@suse.cz>
12398             Richard Guenther  <rguenther@suse.de>
12399             Kaz Kojima  <kkojima@gcc.gnu.org>
12400
12401         * tree-vrp.c (compare_values_warnv): Convert val2 to
12402         the type of val1.
12403         (extract_range_from_assert): Create
12404         POINTER_PLUS_EXPR for pointer types.
12405         (extract_range_from_binary_expr): Handle
12406         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
12407         for pointer types.
12408         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
12409         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
12410         POINTER_PLUS_EXPR as PLUS_EXPR.
12411         (number_of_iterations_lt_to_ne):
12412         For pointer types, use sizetype when
12413         creating MINUS_EXPR/PLUS_EXPRs.
12414         (assert_loop_rolls_lt): For pointer types, use sizetype when
12415         creating MINUS_EXPR/PLUS_EXPRs.
12416         (number_of_iterations_le): Likewise.
12417         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
12418         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
12419         like PLUS_EXPR and MINUS_EXPR.
12420         * tree-pretty-print.c (dump_generic_node): Handle
12421         POINTER_PLUS_EXPR.
12422         (op_prio): Likewise.
12423         (op_symbol_1): Likewise.
12424         * optabs.c (optab_for_tree_code): Likewise.
12425         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
12426         specially.
12427         * tree-tailcall.c (process_assignment): Mention
12428         POINTER_PLUS_EXPR in a TODO comment.
12429         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
12430         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
12431         not used with a pointer and an integer type.
12432         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
12433         increment using chrec_convert_rhs instead of chrec_convert.
12434         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
12435         PLUS_EXPR except for the right hand side's type will be
12436         sizetype.
12437         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
12438         (fold_used_pointer_cast): Kill.
12439         (pointer_offset_p): Kill.
12440         (fold_used_pointer): Kill.
12441         (pointer_used_p): Kill.
12442         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
12443         call fold_used_pointer.
12444         (instantiate_parameters_1): Convert the increment
12445         using chrec_convert_rhs instead of chrec_convert.
12446         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
12447         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
12448         instead of PLUS_EXPR.
12449         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
12450         PLUS_EXPR for pointers.
12451         (std_gimplify_va_arg_expr): Likewise.
12452         (fold_builtin_memory_op): Likewise.
12453         (fold_builtin_strstr): Likewise.
12454         (fold_builtin_strchr): Likewise.
12455         (fold_builtin_strrchr): Likewise.
12456         (fold_builtin_strpbrk): Likewise.
12457         (expand_builtin_memory_chk): Likewise.
12458         (fold_builtin_memory_chk): Likewise.
12459         (std_expand_builtin_va_start): Use
12460         sizetype for the call to make_tree and then convert
12461         to the pointer type.
12462         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
12463         instead of PLUS_EXPR for adding to a pointer.
12464         (std_gimplify_va_arg_expr): Use fold_build2 for
12465         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
12466         the operands to sizetype first and then cast the BIT_AND_EXPR
12467         back to the pointer type.
12468         * fold-const.c (build_range_check): Handle pointer types
12469         specially.
12470         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
12471         of PLUS_EXPR's. Make sure the offset is converted to
12472         sizetype.
12473         (try_move_mult_to_index): Strip the NOPs from the offset.
12474         Remove code argument and replace all uses with PLUS_EXPR.
12475         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
12476         specially. Don't use a pointer type for MINUS_EXPR.
12477         (fold_unary): Handle for (T1)(X op Y),
12478         only p+ as that is the only as that can be handled for
12479         binary operators now.
12480         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
12481         POINTER_PLUS_EXPR.
12482         <case PLUS_EXPR>: Add folding of PTR+INT into
12483         PTR p+ INT.
12484         Don't call try_move_mult_to_index.
12485         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
12486         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
12487         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
12488         Don't call try_move_mult_to_index.
12489         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
12490         (tree_expr_nonzero_p): Likewise.
12491         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
12492         of PLUS_EXPR for the complex expression folding.
12493         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
12494         first chrec is a pointer type, then the second should
12495         be sizetype and not the first's type.
12496         For POINTER_PLUS_EXPR, use a different right hand side type.
12497         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
12498         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
12499         different right hand side type.
12500         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
12501         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
12502         instead of PLUS_EXPR.
12503         When either operand is zero, convert the other operand.
12504         (chrec_apply): Use chrec_convert_rhs
12505         on the argument x instead of chrec_convert.
12506         (reset_evolution_in_loop): For pointer types, the new_evol
12507         should be sizetype.
12508         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
12509         different right hand side type.
12510         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
12511         (chrec_convert_rhs): New function.
12512         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
12513         different right hand side type.
12514         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
12515         * tree-chrec.h (chrec_convert_rhs): New prototype.
12516         (build_polynomial_chrec): For pointer types, the right hand
12517         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
12518         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
12519         Remove subtraction case as it is always addition now.
12520         Make sure the offset is converted to sizetype.
12521         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
12522         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
12523         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
12524         PLUS_EXPR in pointer type.
12525         Handle POINTER_PLUS_EXPR.
12526         (tree_to_aff_combination): Likewise.
12527         (force_expr_to_var_cost): Likewise.
12528         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
12529         instead of PLUS_EXPR for pointers.
12530         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
12531         instead of PLUS_EXPR of pointer types.
12532         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
12533         as PLUS_EXPR.
12534         (check_va_list_escapes): Likewise.
12535         (check_all_va_list_escapes): Likewise.
12536         * dwarf2out.c (loc_descriptor_from_tree_1):
12537         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
12538         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
12539         (string_constant): Likewise.
12540         * tree-ssa-address.c (tree_mem_ref_addr): When adding
12541         the offset to the base, use POINTER_PLUS_EXPR.
12542         (add_to_parts): Convert the index to sizetype.
12543         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
12544         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
12545         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
12546         Offset only holds something for PLUS_EXPR.
12547         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
12548         a PLUS_EXPR.
12549         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
12550         and not PLUS_EXPR.
12551         (analyze_accesses_for_modify_stmt): Likewise.
12552         Remove comment about the type being integral type as it is
12553         wrong now.
12554         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
12555         PLUS_EXPR.
12556         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
12557         and not PLUS_EXPR.
12558         Correct the type which the artimentic is done in (is now
12559         sizetype).
12560         Reindent one loop.
12561         * tree-data-ref.c (split_constant_offset): Handle
12562         POINTER_PLUS_EXPR
12563         * tree-affine.c (tree_to_aff_combination): Likewise.
12564         * c-typeck.c (build_unary_op): For pointers create the increment
12565         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
12566         for pointers.
12567         * gimplify.c (gimplify_self_mod_expr): Create a
12568         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
12569         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
12570         * tree.def (POINTER_PLUS_EXPR): New tree code.
12571         * tree-predcom.c (ref_at_iteration): If we have a pointer
12572         type do the multiplication in sizetype.
12573         * tree-mudflap.c (mf_xform_derefs_1): Create a
12574         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
12575         * tree-ssa-forwprop.c 
12576         (forward_propagate_addr_into_variable_array_index):
12577         Don't expect there to be a cast for the index as that
12578         does not exist anymore.
12579         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
12580         instead of PLUS_EXPR.
12581         Don't check for the first operand of the POINTER_PLUS_EXPR
12582         was the index as it cannot be.
12583         Call forward_propagate_addr_into_variable_array_index with
12584         the SSA_NAME instead of the statement.
12585         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
12586         (compare_constant): Likewise.
12587         (copy_constant): Likewise.
12588         (compute_reloc_for_constant): Likewise.
12589         (output_addressed_constants): Likewise.
12590         (initializer_constant_valid_p): Likewise.
12591         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
12592         Convert the MIN/MAX of the inner type to the outer
12593         type before comparing them.
12594         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
12595         POINTER_PLUS_EXPR instead of PLUS_EXPR.
12596         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
12597         of PLUS_EXPR for pointers.
12598         * tree-inline.c (estimate_num_insns_1): Handle
12599         POINTER_PLUS_EXPR.
12600         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
12601         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
12602         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
12603         instead of PLUS_EXPR for the pointer increment statement.
12604         (vect_update_ivs_after_vectorizer): For pointer types, create
12605         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
12606         MULT_EXPR in sizetype.
12607         (vect_gen_niters_for_prolog_loop): Add a cast when creating
12608         byte_misalign.
12609         * tree-object-size.c (plus_expr_object_size): Handle
12610         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
12611         code which is trying to figure out which side is a pointer and 
12612         is the index.
12613         (check_for_plus_in_loops_1): Likewise.
12614         (check_for_plus_in_loops): Likewise.
12615         * c-common.c (pointer_int_sum): Create a
12616         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
12617         * tree-ssa-structalias.c (handle_ptr_arith): Handle
12618         only POINTER_PLUS_EXPR.  Removing all the extra
12619         code which is trying to figure out which side is a pointer and 
12620         is the index.
12621         * tree-cfg.c (verify_expr): Add extra checking for pointers and
12622         PLUS_EXPR and MINUS_EXPR.
12623         Also add checking to make sure the operands of POINTER_PLUS_EXPR
12624         are correct.
12625         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
12626         with make_tree, instead of a pointer type.
12627         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
12628         for pointers instead of PLUS_EXPR.
12629         (s390_gimplify_va_arg): Likewise.
12630         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
12631         instead of PLUS_EXPR when doing addition on pointer
12632         types.  Use sizetype for the second operand.
12633         (spu_gimplify_va_arg_expr): Likewise.
12634         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
12635         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
12636         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
12637         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
12638         for the pointer addition and also use size_int/sizetype
12639         for the offset.
12640         (ix86_gimplify_va_arg): Likewise.
12641         Perform BIT_AND_EXPR on sizetype arguments.
12642         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
12643         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
12644         for the pointer additions and also use size_int for the offsets.
12645         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
12646         additions and also use size_int for the offsets.  Perform
12647         BIT_AND_EXPR on sizetype arguments.
12648         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
12649         POINTER_PLUS_EXPR for pointers and create the
12650         BIT_AND_EXPR in sizetype.
12651         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
12652         instead of PLUS_EXPR for pointer addition.
12653         (rs6000_va_start): Likewise.
12654         Also use sizetype for the offset.
12655         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
12656         as PLUS_EXPR/MINUS_EXPR.
12657         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
12658         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
12659         Don't use BIT_AND_EXPR on a pointer type, convert the
12660         expression to sizetype first.
12661         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
12662         for pointers.
12663         (mips_gimplify_va_arg_expr): Likewise.
12664         Don't create BIT_AND_EXPR in a pointer type.
12665
12666 2007-06-15  Eric Christopher  <echristo@apple.com>
12667
12668         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
12669         (x86_64-*-darwin*): Ditto.
12670         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
12671         for above.
12672
12673 2007-06-15  Matthew Wilcox <matthew@wil.cx>
12674
12675         * doc/extend.texi: Document behavior of __attribute__((aligned))
12676         on typedefs.
12677
12678 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
12679
12680         * rtlanal.c (note_stores): Improve documentation.
12681
12682 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12683
12684         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
12685         LOCAL_LABEL_PREFIX): Delete.
12686         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
12687         (bfin_internal_label): Delete.
12688
12689 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
12690
12691         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
12692         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
12693         otherwise define to LIBGCC2_TF_CEXT.
12694         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
12695         (LIBGCC_TF_CEXT): Ditto.
12696         (TF_SIZE): Ditto.
12697
12698 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
12699
12700         PR rtl-optimization/32339
12701         * df-scan.c (df_uses_record): Don't modify flags but just add to
12702         it for df_ref_record.
12703
12704 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12705
12706         * tree-mudflap.c: Fix whitespace issues.
12707
12708 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
12709
12710         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
12711
12712 2007-06-14  Eric Christopher  <echristo@apple.com>
12713
12714         * config/i386/sse.md (movdi_to_sse): Rewrite body.
12715         (movv4sf): Use gcc_unreachable instead of abort.
12716
12717 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
12718
12719         PR target/32268
12720         * config/i386/sfp-machine.h (CMPtype): New define.
12721         (mach stubs): Use CMPtype instead of int as a return type.
12722
12723 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
12724
12725         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
12726         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
12727         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
12728         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
12729         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
12730         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
12731         config/soft-fp/soft-fp.h: Update from glibc CVS.
12732
12733 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
12734
12735         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
12736
12737 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
12738
12739         PR target/32341
12740         * config/v850/v850.c: Include dataflow header file.
12741         (substitute_ep_register): Fix typo.
12742
12743 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
12744
12745         * configure.ac: Fix earlier checkin.
12746         * configure: Regenerated.
12747
12748 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
12749
12750         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
12751         * aclocal.m4: Regenerate.
12752         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
12753         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
12754         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
12755         * configure: Regenerate.
12756         * Makefile.in (LOOSE_WARN): Subst loose_warn.
12757
12758         * Makefile.in (quickstrap): Build libgcc too.
12759
12760 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
12761
12762         * configure.ac: Add --enable-checking=df.  Explicitly mention that
12763         the variables are initialized as for "release".
12764         * df-core.c: Use it.
12765         * configure: Regenerate.
12766         * config.in: Regenerate.
12767
12768 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
12769
12770         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
12771         validate_replace_rtx instead of replace_rtx.
12772         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
12773
12774 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
12775
12776         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
12777         (DWARF2_UNWIND_INFO): Override default if configured with
12778         SJLJ EH disabled.
12779         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
12780         (ENDFILE_SPEC): Add crtend.o.
12781         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
12782         (ENDFILE_SPEC): Add crtend.o.
12783         (TARGET_USE_JCR_SECTION): Define.
12784         (MD_UNWIND_SUPPORT): Define for 32-bit target.
12785
12786         * config/i386/cygming-crtbegin.c: New file.
12787         * config/i386/cygming-crtend.c: New file.
12788
12789 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
12790
12791         * config/i386/w32-unwind.h: New file.
12792
12793 2007-06-13  Eric Christopher  <echristo@apple.com>
12794
12795         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
12796         the user set a value below STACK_BOUNDARY.
12797
12798 2007-06-13  Thiemo Seufer  <ths@networkno.de>
12799
12800         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
12801         imply -lpthread for -pthread.
12802
12803 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
12804
12805         * basic-block.h: Remove the prototype for
12806         free_basic_block_vars.
12807         * cfglayout.h: Remove the prototype for
12808         insn_locators_initialize.
12809         * tree.h: Remove the prototype for emit_line_note.
12810
12811         * tree-ssa-pre.c (mergephitemp): Remove.
12812         (init_pre): Don't use mergephitemp.
12813
12814 2007-06-13  Eric Christopher  <echristo@apple.com>
12815
12816         * config/i386/i386.c (override_options): If we've specified
12817         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
12818
12819 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
12820
12821         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
12822         is defined.
12823
12824 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
12825
12826         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
12827         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
12828         (eh_store_handler): New pattern.
12829         (eh_return): Emit it instead of a plain move.
12830
12831 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
12832
12833         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
12834         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
12835         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
12836         def_builtin_const.
12837
12838 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
12839
12840         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
12841         (find_next_insn_start, find_load): New functions.
12842         (bfin_reorg): Use them to deal with the fact that parallel insns are
12843         no longer represented as a SEQUENCE.
12844
12845 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12846
12847         * config/sparc/sparc.c (sparc_override_options): Initialize
12848         fpu mask correctly.
12849
12850 2007-06-13  Dave Korn  <dave.korn@artimi.com>
12851
12852         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
12853         df_get_live_out.
12854
12855 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
12856
12857         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
12858         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
12859         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
12860         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
12861         tree-vect-transform.c: Fix comment typos.  Follow spelling
12862         conventions.
12863
12864 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
12865
12866        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
12867        to the exit block use set.
12868        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
12869        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
12870        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
12871
12872 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
12873
12874         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
12875         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
12876         to indicate an error.
12877         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
12878         New functions.
12879         (dbg_cnt_process_opt): Print an error on a bad argument.
12880         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
12881         * common.opt (-fdbg-cnt-list): New.
12882         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
12883
12884 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12885
12886         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
12887         flag on ref-all pointers.
12888
12889 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12890
12891         PR middle-end/31579
12892         * expr.c (expand_expr_addr_expr_1): Call expand_expr
12893         for the offset with the modifier as EXPAND_INITIALIZER
12894         if the modifier is EXPAND_INITIALIZER.
12895         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
12896         a register if we had an overflow.
12897
12898 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12899
12900         * real.c (real_isfinite): New.
12901         (real_sqrt): Use it.
12902         * real.h (real_isfinite): New.
12903         * builtins.c: Use it.
12904
12905 2007-06-12  Ian Lance Taylor  <iant@google.com>
12906             Daniel Berlin  <dberlin@dberlin.org>
12907
12908         PR libstdc++/29286
12909         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
12910         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
12911         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
12912         (DECL_NO_TBAA_P): Define.
12913         (struct tree_decl_common): Add no_tbaa_flag field.
12914         * tree-ssa-structalias.c (struct variable_info): Add
12915         no_tbaa_pruning field.
12916         (new_var_info): Initialize no_tbaa_pruning field.
12917         (unify_nodes): Copy no_tbaa_pruning field.
12918         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
12919         (dump_solution_for_var): Print no_tbaa_pruning flag.
12920         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
12921         callers.
12922         (compute_tbaa_pruning): New static function.
12923         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
12924         Call compute_tbaa_pruning.
12925         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
12926         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
12927         * gimple-low.c (lower_stmt): Likewise.
12928         * tree-gimple.c (is_gimple_stmt): Likewise.
12929         * tree-ssa-operands.c (get_expr_operands): Likewise.
12930         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12931         * tree-inline.c (estimate_num_insns_1): Likewise.
12932         (copy_result_decl_to_var): Likewise.
12933         * expr.c (expand_expr_real_1): Likewise.
12934         * tree-pretty-print.c (dump_generic_node): Likewise.
12935         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
12936         * omp-low.c (omp_copy_decl_2): Likewise.
12937         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
12938         * doc/c-tree.texi (Expression trees): Document
12939         CHANGE_DYNAMIC_TYPE_EXPR.
12940
12941 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12942
12943         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
12944         with !HONOR_NANS and !HONOR_INFINITIES.
12945         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12946
12947 2007-06-12  Tristan Gingold  <gingold@adacore.com>
12948
12949         * gcov.c: Comments updated.
12950         (source_info): Add file_time field.
12951         (source_index): New variable.
12952         (mutiple_files): New variable.
12953         (generate_results): New function extracted from process_file.
12954         (process_file): Save and restore chain of functions, generate
12955         results and free structures only if not merging results.
12956         (release_structures): File names are now freed in create_file_names
12957         (create_file_names): Free previous file names.
12958         (find_source): File date is now read here and modifications in
12959         source files is checked here.
12960         (read_graph_file): Only reverse order of functions for the current
12961         object file.
12962         (make_gcov_file_name): Do not generate long names if input_name is
12963         NULL.
12964         (output_lines): If merging results do not display graph, data and
12965         runs informations.
12966         Checking source file modification is done in find_source.
12967
12968         * doc/gcov.texi: Append an s to sourcefile.
12969
12970 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
12971
12972         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
12973         (forced_nop): New pattern.
12974         * config/bfin/bfin.c: Include "df.h".
12975         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
12976         (bfin_discover_loop): Use df_get_live_in instead of
12977         global_live_at_start.
12978         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
12979         df_analyze when done.
12980         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
12981         the insns.  Use QImode for the final insn in a bundle.  Call
12982         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
12983         gen_nop.
12984         (reorder_var_tracking_notes): New function.
12985         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
12986         update_life_info.  Call df_analyze after scheduling and bundle
12987         generation.  Call reorder_var_tracking_notes if generating these
12988         notes.  Call df_finish_pass at the end.
12989
12990 2007-06-12  Dirk Mueller  <dmueller@suse.de>
12991
12992         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
12993         a comparison, not an assignment.
12994
12995 2007-06-12  Olivier Hainque  <hainque@adacore.com>
12996
12997         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
12998         Request walking the subtrees only, leaving the current is_lhs/val_only
12999         untouched.
13000         (convert_non_local_reference): Likewise.
13001
13002 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
13003
13004         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
13005
13006 2007-06-12  Richard Guenther  <rguenther@suse.de>
13007
13008         PR tree-optimization/15353
13009         PR tree-optimization/31657
13010         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
13011         * timevar.def: Add TV_TREE_IFCOMBINE.
13012         * tree-pass.h (pass_tree_ifcombine): Declare.
13013         * tree-ssa-ifcombine.c: New file.
13014         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
13015         * tree-flow.h (blocks_in_phiopt_order): Declare.
13016         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
13017         (tree-ssa-ifcombine.o): New dependencies.
13018
13019 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
13020
13021         PR rtl-optimization/32293
13022         * combine.c (simplify_if_then_else): Truncate return from
13023         nonzero_bits() to correct mode.
13024
13025 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
13026
13027         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
13028         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
13029
13030 2007-06-11  Diego Novillo  <dnovillo@google.com>
13031
13032         * Makefile.in (reload1.o-warn): Remove.
13033
13034 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
13035
13036         * combine.c (subst): Use reg_overlap_mentioned_p
13037         instead of comparing register numbers directly.
13038
13039 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13040
13041         * reload1.c (mark_home_live_1): Use the mode parameter.
13042
13043 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
13044
13045         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
13046         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
13047         word "deferred".
13048         * df-core.c: Ditto.
13049
13050 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
13051
13052         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
13053
13054 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13055
13056         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
13057         from integer registers.
13058         (FP mode splitters): Handle TFmode.
13059
13060 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
13061
13062         * tree-ssa-structalias.c (find_what_p_points_to): Return false
13063         for ref-all pointers that point-to anything.
13064
13065 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
13066
13067         * config/arm/arm.c (arm_output_dwarf_dtprel,
13068         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
13069
13070 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
13071
13072         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
13073         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
13074         to memory moves.
13075
13076 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
13077
13078         * tree.c (signed_or_unsigned_type_for): New.
13079         (unsigned_type_for): Use signed_or_unsigned_type_for.
13080         (signed_type_for): Use signed_or_unsigned_type_for.
13081         * tree.h (signed_or_unsigned_type_for): New.
13082         (get_signed_or_unsigned_type): Remove.
13083         * fold-const.c (fold_negate_expr): Use signed_type_for instead of
13084         lang_hooks.types.signed_type
13085         (size_diffop): Likewise.
13086         (all_ones_mask_p): Likewise.
13087         (build_range_check): Likewise.
13088         (fold_cond_expr_with_comparison): Likewise.
13089         (fold_cond_expr_with_comparison): Likewise.
13090         (unextend): Likewise.
13091         (extract_muldiv_1): Likewise.
13092         (fold_single_bit_test_into_sign_test): Likewise.
13093         (fold_binary): Likewise.
13094         (fold_ternary): Likewise.
13095         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
13096         instead of get_signed_or_unsigned_type.
13097         * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
13098         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
13099         * expr.c (signed_or_unsigned_type_for): Use
13100         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
13101         * langhooks.c (get_signed_or_unsigned_type): Remove.
13102         (lhd_signed_or_unsigned_type): Remove.
13103         * langhooks.h (lang_hooks_for_types): Remove signed_type and
13104         signed_or_unsigned_type.
13105         (lhd_signed_or_unsigned_type): Remove.
13106         * expmed.c (make_tree): Use signed_type_for instead of
13107         lang_hooks.types.signed_type.
13108         * c-common.c (same_scalar_type_ignoring_signedness): Use
13109         c_common_signed_type instead of lang_hooks.types.signed_type.
13110         (c_common_unsigned_type): New.
13111         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
13112         (shorten_compare): Use c_common_unsigned_type instead of
13113         c_common_signed_or_unsigned_type.
13114         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
13115         unsigned_type_for.
13116         * convert.c (convert_to_integer): Use signed_type_for instead of
13117         lang_hooks.types.signed_type.
13118         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
13119         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
13120         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
13121         * c-format.c (check_format_types): Use c_common_unsigned_type
13122         instead of unsigned_type_for.
13123         * c-decl.c (groakdeclarator): Likewise.
13124         * c-typeck.c (convert_for_assignment): Likewise.
13125         * c-common.h (c_common_unsigned_type): New.
13126
13127 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13128
13129         PR target/32280
13130         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
13131         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
13132
13133 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
13134
13135         PR middle-end/32279
13136         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
13137         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
13138
13139 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
13140             Sebastian Pop  <sebpop@gmail.com>
13141
13142         * lambda-code.c (remove_iv): New.
13143         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
13144
13145 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
13146
13147         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
13148         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
13149         * tree-ssa-loop-prefetch.c: Include optabs.h.
13150         (FENCE_FOLLOWING_MOVNT): New macro.
13151         (struct mem_ref): Add independent_p and storent_p fields.
13152         (record_ref): Initalize the new fields.
13153         (gather_memory_references_ref): Return true if the reference
13154         could be analysed.
13155         (gather_memory_references): Check whether all memory accesses
13156         in loop were recorded.
13157         (should_issue_prefetch_p): Return false for nontemporal stores.
13158         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
13159         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
13160         (determine_loop_nest_reuse): Detect independent memory references.
13161         (loop_prefetch_arrays): Call mark_nontemporal_stores.
13162         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
13163         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
13164         * config/i386/i386.h (x86_mfence): Declare.
13165         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
13166         * config/i386/i386.c (x86_mfence): New variable.
13167         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
13168
13169         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
13170         * optabs.c (init_optabs): Initialize storent_optab.
13171         * optabs.h (enum optab_index): Add OTI_storent.
13172         (storent_optab): Declare.
13173         * genopinit.c (optabs): Add initialization for storent_optab.
13174         * tree.h (MOVE_NONTEMPORAL): New macro.
13175         * expr.c (expand_assignment, store_expr, store_constructor_field,
13176         store_constructor, store_field, expand_expr_real_1): Propagate
13177         nontemporality of the expanded store.
13178         (emit_storent_insn): New function.
13179         * expr.h (expand_assignment, store_expr): Declaration changed.
13180         * function.c (assign_parm_setup_reg): Pass false as nontemporality
13181         to expand_assignment.
13182         * stmt.c (expand_asm_expr): Ditto.
13183         * calls.c (initialize_argument_information): Pass false as
13184         nontemporality to store_expr.
13185         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
13186         storentsi): New.
13187
13188 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
13189
13190         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
13191         parameter, use it.
13192         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
13193
13194 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
13195
13196         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
13197         and allow DECL_P here.
13198
13199 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
13200
13201         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
13202         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
13203         track of the size of the expression.
13204         * cfghooks.c (merge_blocks): Remove block from loops structure only
13205         after call of the merge_blocks hook.
13206
13207 2007-06-09  Tom Tromey  <tromey@redhat.com>
13208
13209         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
13210         (deprecated_state): Removed.
13211         (start_decl): Update.
13212         (enum deprecated_states): Moved earlier.
13213         (groktypename): Update.
13214         (push_parm_decl): Likewise.
13215         (grokfield): Likewise.
13216         (start_function): Likewise.
13217
13218 2007-06-09  Ian Lance Taylor  <iant@google.com>
13219
13220         PR tree-optimization/32169
13221         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
13222         CONVERT_EXPR, check whether min and max both converted to an
13223         overflow infinity representation.
13224
13225 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
13226
13227         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
13228         not inserted on the edge.
13229
13230 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
13231
13232         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
13233         instructions if they are supported.
13234         (__divsi3, __umodsi3, __modsi3): Likewise.
13235         (__ashldi3, __ashrdi3, __lshrdi3): New.
13236         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
13237
13238 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
13239             Tony Linthicum <tony.linthicum@amd.com>
13240
13241         * doc/invoke.texi: Add fvect-cost-model flag.
13242         * common.opt (fvect-cost-model): New flag.
13243         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
13244         cost fields in stmt_vec_info struct for STMT.
13245         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
13246         fields in stmt_vec_info struct and access functions for the same.
13247         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
13248         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
13249         load, store and vector to scalar operation.
13250         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
13251         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
13252         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
13253         (TARG_VEC_STORE_COST): Define cost of vector store.
13254         (vect_estimate_min_profitable_iters): Define new function.
13255         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
13256         check to evaluate if loop iterations are less than minimum profitable
13257         iterations determined by cost model or minimum vect loop bound defined
13258         by user, whichever is more conservative.
13259         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
13260         run-time check to evaluate if loop iterations are less than minimum
13261         profitable iterations determined by cost model or minimum vect loop
13262         bound defined by user, whichever is more conservative.
13263         (vect_estimate_min_profitable_iterations): New function to estimate
13264         mimimimum iterartions required for vector version of loop to be
13265         profitable over scalar version.
13266         (vect_model_reduction_cost): New function.
13267         (vect_model_induction_cost): New function.
13268         (vect_model_simple_cost): New function.
13269         (vect_cost_strided_group_size): New function.
13270         (vect_model_store_cost): New function.
13271         (vect_model_load_cost): New function.
13272         (vectorizable_reduction): Call vect_model_reduction_cost during
13273         analysis phase.
13274         (vectorizable_induction): Call vect_model_induction_cost during
13275         analysis phase.
13276         (vectorizable_load): Call vect_model_load_cost during analysis phase.
13277         (vectorizable_store): Call vect_model_store_cost during analysis phase.
13278         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
13279         vectorizable_promotion, vectorizable_demotion): Call
13280         vect_model_simple_cost during analysis phase.
13281
13282 2007-06-08  Simon Baldwin  <simonb@google.com>
13283
13284         * reg-stack.c (get_true_reg): Readability change.  Moved default case
13285         label into direct switch statement scope.
13286
13287 2007-06-08  Simon Baldwin  <simonb@google.com>
13288
13289         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
13290         in gcc_assert() with '==' comparison.
13291
13292 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13293
13294         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
13295         TARGET_ABM handling of x86_popcnt variable.
13296
13297 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13298
13299         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
13300         __builtin_copysignq and __builtin_infq built-in functions.
13301
13302 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13303
13304         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
13305         SSE4.2 section.  Correct built-in function names in SSE4A section.
13306
13307 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
13308
13309         PR tree-optimization/32243
13310         * tree-vect-transform.c (vectorizable_type_promotion): Move check
13311         for ncopies after ratio check between nunits_out and nunits_in.
13312         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
13313
13314 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
13315
13316         PR tree-optimization/32224
13317         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
13318         vectorization upon a non GIMPLE_MODIFY_STMT.
13319
13320 2007-06-08  Christian Bruel  <christian.bruel@st.com>
13321
13322         PR target/29953
13323         * config/sh/sh.md (doloop_end): New pattern and splitter.
13324         * loop-iv.c (simple_rhs_p): Check for hardware registers.
13325
13326 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
13327
13328         PR middle-end/32209
13329         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
13330         functions.
13331         (verify_dominators): Do not change dominance tree.
13332
13333 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13334
13335         * config/sh/constraints.md: New file.
13336         * config/sh/sh.c: Include tm-constrs.h.
13337         (reg_class_from_letter): Remove.
13338         (prepare_cbranch_operands): Use satisfies_constraint_*
13339         function instead of macro.
13340         (andcosts, broken_move, sh_secondary_reload): Likewise.
13341         * config/sh/predicates.md (trapping_target_operand): Likewise.
13342         (and_operand, arith_operand, arith_reg_or_0_operand,
13343         cmp_operand, logical_operand, target_operand,
13344         ua_address_operand, ua_offset, xor_operand): Likewise.
13345         * config/sh/sh.md: Include constraints.md.
13346         (*movsicc_t_false): Use satisfies_constraint_* function
13347         instead of macro.
13348         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
13349         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
13350         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
13351         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
13352         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
13353         (REG_CLASS_FROM_CONSTRAINT): Remove.
13354         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
13355         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
13356         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
13357         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
13358         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13359         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
13360         function instead of macro.
13361         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
13362         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
13363         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
13364         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
13365         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
13366         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
13367         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
13368         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
13369         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
13370         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
13371         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
13372         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
13373         EXTRA_CONSTRAINT_STR): Likewise.
13374         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
13375
13376 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
13377
13378         * config/i386/darwin.h (STACK_BOUNDARY): Define.
13379
13380 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
13381
13382         PR c++/30759
13383         * c-common.h (flag_cpp0x): Replaced by...
13384         (cxx_dialect): ... this new variable specifying the C++ dialect that
13385         is used.
13386         * c-common.c (flag_cpp0x): Removed.
13387         (cxx_dialect): Defined.
13388         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
13389         cxx_dialect.
13390         * c-opts.c (c_common_post_options): Likewise.
13391         (set_std_cxx98): Set cxx_dialect to cxx98.
13392         (set_std_cxx0x): Set cxx_dialect to cxx0x.
13393
13394 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
13395             Hui-May Chang <hm.chang@apple.com>
13396
13397         * doc/invoke.texi (Darwin Options): Update documentation for
13398         -mmacosx-version-min.
13399         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
13400         * config/darwin-driver.c: New file.
13401         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
13402         * config/t-darwin (darwin-driver.o): New rule.
13403
13404         * config/darwin-c.c (version_as_macro): Ignore low digit.
13405
13406 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
13407
13408         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
13409         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
13410         (CSGNMODE): New mode macro.
13411         (CSGNVMODE): New mode attribute.
13412         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
13413         expander using CSGNMODE mode macro.  Handle TFmode.
13414         (copysign<mode>3_const): Rename from copysignsf3_const and
13415         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
13416         Handle TFmode.
13417         (copysign<mode>3_var): Rename from copysignsf3_var and
13418         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
13419         Handle TFmode.
13420         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
13421         mode macro.  Handle TFmode.
13422         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
13423         (iortf3, *iortf3): Ditto.
13424         (xortf3, *xortf3): Ditto.
13425         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
13426         TFmode and TImode masks.
13427         (ix86_expand_copysign): Expand TFmode copysign insn.
13428         (IX86_BUILTIN_INFQ): New.
13429         (IX86_BUILTIN_FABSQ): Ditto.
13430         (IX86_BUILTIN_COPYSIGNQ): Ditto.
13431         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
13432         [__builtin_fabsq]: Ditto.
13433         [__builtin_copysignq]: Ditto.
13434         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
13435         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
13436         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
13437         ix86_expand_binop_builtin().
13438
13439 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
13440
13441         * config/xtensa/lib1funcs.asm: Clean up whitespace.
13442
13443 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
13444
13445         PR target/31850
13446         * rtl.h (push_to_sequence2): New.
13447         * emit-rtl.c (push_to_sequence2): New.
13448         * function.c (assign_parm_data_all): Add new fields.
13449         (assign_parm_setup_block): Call push_to_sequence2 instead of
13450         push_to_sequence.
13451         (assign_parm_setup_reg): Ditto.
13452         (assign_parm_setup_stack): Ditto.
13453         (assign_parms_unsplit_complex): Ditto.
13454         (assign_parms): Change field name.
13455
13456 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
13457
13458         PR tree-optimization/32220
13459         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
13460         phi node is reached before defining statement.
13461
13462 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13463
13464         PR tree-opt/32231
13465         * tree-vect-transform.c (vectorizable_call): Call update_stmt
13466         after changing the right hand side of the assignment.
13467
13468 2007-06-06  Eric Christopher  <echristo@apple.com>
13469
13470         * config.gcc (i?86-*-darwin*): Remove arch parameter.
13471         (x86_64-*-darwin*): Ditto.
13472         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
13473         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
13474
13475 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
13476
13477         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
13478         coding conventions.
13479         (add_key): Likewise.
13480         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
13481         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
13482         variable names.
13483         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
13484         macros.
13485         (add_cost_one_coalesce): Likewise.
13486         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
13487         variable names. Rename orig to orig_name for consistency.
13488         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
13489         coding conventions.
13490         (cprop_into_successor_phis): Avoid using C++ keywords as variable
13491         names.
13492         (record_equivalences_from_stmt): Likewise.
13493         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
13494         the coding conventions.
13495         (memory_ssa_name_same): Likewise.
13496         (dse_optimize_stmt): Likewise.
13497         (dse_record_phis): Likewise.
13498         (dse_finalize_block): Likewise.
13499         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
13500         keywords as variable names.
13501         (may_move_till): Cast according to the coding conventions.
13502         (force_move_till_expr): Avoid using C++ keywords as variable names.
13503         (force_move_till): Cast according to the coding conventions.
13504         (memref_hash): Likewise.
13505         (memref_eq): Likewise.
13506         (gather_mem_refs_stmt): Likewise.
13507         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
13508         using C++ keywords as variable names.
13509         (idx_find_step): Cast according to the coding conventions.
13510         (idx_record_use): Likewise.
13511         (find_depends): Likewise.
13512         (prepare_decl_rtl): Likewise.
13513         (mbc_entry_hash): Likewise.
13514         (mbc_entry_eq): Likewise.
13515         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
13516         (simplify_replace_tree): Avoid using C++ keywords as variable names.
13517         (idx_infer_loop_bounds): Cast according to the coding conventions.
13518         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13519         * tree-ssa-math-opts.c (occ_new ): Likwise.
13520         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
13521         macros.
13522         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
13523         variable names.
13524         (add_use_op): Likewise.
13525         (add_vop): Likewise.
13526         (add_vuse_op): Likewise.
13527         (add_vdef_op): Likewise.
13528         (get_expr_operands): Likewise.
13529         (push_stmt_changes): Use type safe memory macros.
13530         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
13531         keywords as variable names.
13532         (conditional_replacement): Likewise.
13533         (minmax_replacement): Likewise.
13534         (abs_replacement): Likewise.
13535         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
13536         coding conventions.
13537         (insert_fake_stores): Avoid using C++ keywords as variable names.
13538         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
13539         conventions.
13540         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
13541         (heapvar_insert): Use type safe memory macros.
13542         (new_var_info): Cast according to the coding conventions.
13543         (new_constraint): Likewise.
13544         (remove_preds_and_fake_succs): Use type safe memory macros.
13545         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
13546         conventions.
13547         (thread_single_edge): Likewise.
13548         (thread_through_loop_header): Likewise.
13549
13550 2007-06-06  Eric Christopher  <echristo@apple.com>
13551
13552         * config/i386/i386.c (override_options): Move handling
13553         of TARGET_SUBTARGET* earlier.
13554
13555 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
13556
13557         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
13558         use %n on printf.
13559
13560 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
13561
13562         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
13563         emited outside of basic block.
13564         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
13565         the created blocks.
13566         * rtl.h (delete_insn_chain): Declaration changed.
13567         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
13568         non-removed insns.
13569         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
13570         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
13571         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
13572         to delete_insn_chain.
13573         (rtl_verify_flow_info_1): Verify that the insns in header and footer
13574         do not have bb field set.
13575         (rtl_verify_flow_info): Verify that insns between basic blocks do not
13576         have bb field set.
13577         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
13578         * cfgcleanup.c (try_optimize_cfg): Ditto.
13579
13580 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
13581
13582         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
13583         (lambda_body_vector_new): Use type safe memory macros.
13584         (lambda_linear_expression_new): Likewise.
13585         (lambda_loopnest_new): Likewise.
13586         (lambda_lattice_new): Likewise.
13587         (replace_uses_equiv_to_x_with_y): Cast according to the coding
13588         conventions. Use type safe memory macros.
13589         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
13590         (lambda_body_vector_s): Likewise.
13591         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
13592         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
13593
13594 2007-06-06  Richard Guenther  <rguenther@suse.de>
13595
13596         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
13597         if we need to schedule cfg_cleanup.
13598         (tree_ssa_forward_propagate_single_use_vars): Do so.
13599
13600 2007-06-06  Ian Lance Taylor  <iant@google.com>
13601
13602         * fold-const.c (merge_ranges): If range_successor or
13603         range_predecessor fail, just return 0.
13604
13605 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
13606
13607         PR tree-optimization/32216
13608         * tree-vectorizer.c (supportable_widening_operation): Determine
13609         signedness of FIX_TRUNC_EXPR from output operand.
13610         (supportable_narrowing_operation): Ditto.
13611         * tree-vect-generic.c (expand_vector_operations_1): Determine
13612         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
13613         from input operand.
13614
13615 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
13616
13617         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
13618         (struct pta): ...from here. Change flags to unsigned to avoid
13619         excessive casting (as it is used as a bit mask).
13620         (override_options): Add casts according to the coding convenventions.
13621         (x86_64_elf_unique_section): Likewise.
13622         (examine_argument): Avoid using C++ keywords as variable names.
13623         (construct_container): Likewise.
13624         (legitimize_pic_address): Likewise.
13625         (get_dllimport_decl): Cast according to the coding conventions. Use
13626         type safe memory macros.
13627         (legitimize_address): Cast according to the coding conventions.
13628         (emit_i387_cw_initialization): Corrected the type of slot to enum
13629         ix86_stack_slot.
13630         (ix86_init_machine_status): Use type safe memory macros.
13631         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
13632         (bdesc_pcmpistr): Likewise.
13633         (bdesc_crc32): Likewise.
13634         (bdesc_sse_3arg): Likewise.
13635         (bdesc_2arg): Likewise.
13636         (bdesc_1arg): Likewise.
13637         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
13638         (ix86_expand_sse_pcmpistr): Likewise.
13639         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
13640         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
13641         int to match the langhook definition.
13642         (ix86_builtin_conversion): Change the type of code to unsigned init to
13643         match the langhook definition.
13644         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
13645         names.
13646         (ix86_preferred_output_reload_class): Likewise.
13647         (ix86_cannot_change_mode_class): Likewise.
13648         (ix86_memory_move_cost): Likewise.
13649         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
13650         avoid excessive casting later on.
13651         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
13652
13653 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
13654
13655         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
13656         as flags setting insn.
13657         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
13658
13659 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
13660
13661         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
13662         (UNSPEC_ROUND): New.
13663         ("sse4_1_round<mode>2"): New insn pattern.
13664         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
13665         SSE4.1 targets.
13666         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
13667         expander using SSEMODEF mode macro.  Expand using
13668         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
13669         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
13670         expander using SSEMODEF mode macro.  Expand using
13671         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
13672         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
13673         expander using SSEMODEF mode macro.  Expand using
13674         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
13675         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
13676         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
13677         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
13678         UNSPEC_ROUNDS.
13679
13680 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
13681             Sebastian Pop  <sebpop@gmail.com>
13682
13683         * lambda.h (build_linear_expr): New.
13684         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
13685         Use build_linear_expr, call fold and force_gimple_operand.
13686         (lambda_loopnest_to_gcc_loopnest): Check that there is
13687         something to insert.
13688         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
13689
13690 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
13691
13692         PR preprocessor/23479
13693         * doc/extend.texi: Document the 0b-prefixed binary integer
13694         constant extension.
13695
13696 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
13697
13698         PR tree-optimization/32215
13699         * tree-vectorizer.c (supportable_widening_operation): Return false
13700         for unsupported FIX_TRUNC_EXPR tree code.
13701         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
13702
13703 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
13704
13705         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
13706         register on SPE targets.  Change documentation to reflect
13707         reality.
13708         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13709         Change FIXED_SCRATCH to 14 and document why we're keeping r14
13710         out of the register allocation pool.
13711         (rs6000_reg_live_or_pic_offset_p): New function.
13712         (rs6000_emit_prologue): Move the actual saving of LR up to free
13713         r0 for holding r11.  Split saving of SPE 64-bit registers into
13714         its own case.  Ensure that offsets will always be in-range for
13715         'evstdd' by using r11 as a scratch register to point at the start
13716         of the SPE save area.  Save r11 if necessary, as it is the static
13717         chain register.
13718         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
13719         into its own case.  Ensure that offsets will always be in-range
13720         for 'evldd' by using r11 as a scratch register to point at the
13721         start of the SPE save area.  Also adjust r11 when restoring
13722         the stack pointer to compensate for pre-loading r11.
13723
13724 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
13725
13726         * cfg.c (init_flow): Use type safe memory macros.
13727         (alloc_block): Likewise.
13728         (unchecked_make_edge): Likewise.
13729         (dump_flow_info): Avoid using C++ keywords as variable names.
13730         (copy_original_table_clear): Cast according to the coding conventions.
13731         (copy_original_table_set): Likewise.
13732         * cfgexpand (label_rtx_for_bb): Likewise.
13733         (expand_gimple_basic_block): Likewise.
13734         * cfghooks.c (dump_bb): Likewise.
13735         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
13736         variable names.
13737         (lv_add_condition_to_bb): Likewise.
13738         * cfglayout (relink_block_chain): Cast according to the coding
13739         conventions.
13740         (fixup_reorder_chain): Likewise.
13741         (fixup_fallthru_exit_predecessor): Likewise.
13742         * cfgloop.c (glb_enum_p): Likewise.
13743         (get_exit_description): Likewise.
13744         (dump_recorded_exit): Likewise.
13745         * cfgloop.h (enum loop_estimation): Move out of struct scope...
13746         (struct loop): ... from here.
13747         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
13748         conventions.
13749         * cfgrtl.c (rtl_create_basic_block): Likewise.
13750         (rtl_split_block): Likewise.
13751         (rtl_dump_bb): Likewise.
13752         (cfg_layout_split_block): Likewise.
13753         (init_rtl_bb_info): Use typesafe memory macros.
13754
13755         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
13756         * graphds.h: Updated all usages of edge to graph_edge.
13757         * graphds.c: Likewise.
13758         * cfgloopanal.c: Likewise.
13759
13760 2007-06-05  Ian Lance Taylor  <iant@google.com>
13761
13762         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
13763         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
13764         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
13765         expression.
13766         (test_for_singularity): Likewise.
13767
13768 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
13769
13770         * config/i386/constraints.md ("Y2"): Replaced by ...
13771         ("Yt"): This.
13772         * config/i386/i386.md: Likewise.
13773         * config/i386/mmx.md: Likewise.
13774         * config/i386/sse.md: Likewise.
13775
13776 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
13777
13778         * config/i386/constraints.md ("z"): Replaced by ...
13779         ("Y0"): This.
13780         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
13781         (sse4_1_blendvps): Likewise.
13782         (sse4_1_pblendvb): Likewise.
13783         (sse4_2_pcmpestr): Likewise.
13784         (sse4_2_pcmpestrm): Likewise.
13785         (sse4_2_pcmpestr_cconly): Likewise.
13786         (sse4_2_pcmpistr): Likewise.
13787         (sse4_2_pcmpistrm): Likewise.
13788         (sse4_2_pcmpistr_cconly): Likewise.
13789
13790 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
13791
13792         * matrix-reorg.c (transform_access_sites): Fix computation.
13793         (transform_allocation_sites): Same.
13794
13795 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
13796
13797         * config/i386/i386.c (override_options): Use
13798         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
13799
13800 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
13801
13802         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
13803         (nonimm_not_xmm0_operand): Ditto.
13804         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
13805         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
13806         as operand[2] predicate.  Require "z" class XMM register for
13807         operand[3].  Adjust asm template.
13808         ("sse4_1_blendvpd"): Ditto.
13809         ("sse4_1_pblendvb"): Ditto.
13810         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
13811         force op2 into xmm0 register for variable blend instructions.
13812
13813 2007-06-04  Tom Tromey  <tromey@redhat.com>
13814
13815         * c-tree.h (start_enum): Update.
13816         (build_enumerator): Likewise.
13817         * c-decl.c (enum_next_value): Removed.
13818         (enum_overflow): Likewise.
13819         (start_enum): Add c_enum_contents argument.  Don't use globals.
13820         (build_enumerator): Likewise.
13821         * c-tree.h (struct c_enum_contents): New struct.
13822
13823 2007-06-04  Tom Tromey  <tromey@redhat.com>
13824
13825         * c-common.c (c_common_get_alias_set): Fix indentation.
13826
13827 2007-06-04  Ian Lance Taylor  <iant@google.com>
13828
13829         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
13830         to overflow, reduce overflow infinity to regular infinity.
13831         (vrp_var_may_overflow): New static function.
13832         (vrp_visit_phi_node): Check vrp_var_may_overflow.
13833
13834 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
13835
13836         * stor-layout.c (layout_type): Remove duplicate code.
13837
13838 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
13839
13840         PR c/32191
13841         * c-common.c (c_define_builtins): Call targetm.init_builtins ()
13842         before build_common_builtin_nodes ().
13843
13844 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
13845
13846         PR target/31733
13847         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
13848
13849 2007-06-04  Jan Hubicka  <jh@suse.cz>
13850
13851         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
13852         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
13853         instead of _stat version.
13854
13855 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
13856
13857         PR tree-optimization/32194
13858         * tree-predcom.c (determine_offset): Check that both references have
13859         the same type.
13860
13861 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
13862
13863         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
13864         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
13865         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
13866         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
13867         Add argument to iterate_fix_dominators call.
13868         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
13869         * gcse.c (hoist_code): Change domby to vector.
13870         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
13871         Add argument to iterate_fix_dominators call.
13872         * loop-doloop.c (doloop_modify): Changed recount_dominator to
13873         recompute_dominator.
13874         * lambda-code.c (perfect_nestify): Ditto.
13875         * cfgloopanal.c: Include graphds.h.
13876         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
13877         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
13878         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
13879         add_edge call.
13880         * graphds.c: New file.
13881         * graphds.h: New file.
13882         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
13883         (get_dominated_by, get_dominated_by_region): Change return type to
13884         vector.
13885         (verify_dominators): Recompute all dominators and compare the results.
13886         (recount_dominator): Renamed to ...
13887         (recompute_dominator): ... this.  Do not check that the block is
13888         dominated by entry.
13889         (iterate_fix_dominators): Reimplemented.
13890         (prune_bbs_to_update_dominators, root_of_dom_tree,
13891         determine_dominators_for_sons): New functions.
13892         * et-forest.c (et_root): New function.
13893         * et-forest.h (et_root): Declare.
13894         * Makefile.in (graphds.o): Add.
13895         (cfgloopanal.o): Add graphds.h dependency.
13896         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
13897         * basic-block.h (get_dominated_by, get_dominated_by_region,
13898         iterate_fix_dominators): Declaration changed.
13899         (recount_dominator): Renamed to ...
13900         (recompute_dominator): ... this.
13901         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
13902         (thread_through_all_blocks): Do not free dominance info.
13903
13904 2007-06-03  Andreas Schwab  <schwab@suse.de>
13905
13906         * config/m68k/m68k.c (override_options): Don't override
13907         REAL_MODE_FORMAT.
13908         * config/m68k/m68k-modes.def (SF, DF): Define to use
13909         motorola_single_format and motorola_double_format, resp.
13910         * real.c (motorola_single_format): Renamed from
13911         coldfire_single_format.
13912         (motorola_double_format): Renamed from coldfire_double_format.
13913         (encode_ieee_extended): Generate a proper canonical NaN image
13914         respecting canonical_nan_lsbs_set.
13915         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
13916         true.
13917         * real.h: Adjust declarations.
13918
13919 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13920
13921         PR target/32163
13922         * config/sh/sh.md (symGOT_load): Don't schedule insns when
13923         the symbol is generated with the stack protector.
13924
13925 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
13926
13927         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
13928         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
13929         "interrupt".
13930         * doc/extend.texi (interrupt): Mention m68k.
13931
13932 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
13933
13934         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
13935         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
13936         (ix86_expand_sse_pcmpestr): Do not check operands for
13937         "register_operand", when insn operand predicate is "register_operand".
13938         (ix86_expand_sse_pcmpistr): Ditto.
13939
13940 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
13941             Uros Bizjak  <ubizjak@gmail.com>
13942
13943         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
13944         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
13945         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
13946         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
13947         * config/i386/constraints.md ("z"): New register constraint
13948         for members of SSE_FIRST_REG class.
13949         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
13950         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
13951         SSE_FIRST_REG class.
13952         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
13953         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
13954         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
13955         (IX86_BUILTIN_PCMPESTRM128): Likewise.
13956         (IX86_BUILTIN_PCMPESTRA128): Likewise.
13957         (IX86_BUILTIN_PCMPESTRC128): Likewise.
13958         (IX86_BUILTIN_PCMPESTRO128): Likewise.
13959         (IX86_BUILTIN_PCMPESTRS128): Likewise.
13960         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
13961         (IX86_BUILTIN_PCMPISTRI128): Likewise.
13962         (IX86_BUILTIN_PCMPISTRM128): Likewise.
13963         (IX86_BUILTIN_PCMPISTRA128): Likewise.
13964         (IX86_BUILTIN_PCMPISTRC128): Likewise.
13965         (IX86_BUILTIN_PCMPISTRO128): Likewise.
13966         (IX86_BUILTIN_PCMPISTRS128): Likewise.
13967         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
13968         (struct builtin_description): Change "flag" field to unsigned.
13969         (bdesc_pcmpestr): New builtin description table.
13970         (bdesc_pcmpistr): Likewise.
13971         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
13972         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
13973         Initialize pcmp[ei]str[im] insns for SSE4.2.
13974         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
13975         (ix86_expand_sse_pcmpistr): Likewise.
13976         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
13977         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
13978         (UNSPEC_PCMPISTR): Likewise.
13979         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
13980         (sse4_2_pcmpestri):New isns pattern.
13981         (sse4_2_pcmpestrm): Likewise.
13982         (sse4_2_pcmpestr_cconly): Likewise.
13983         (sse4_2_pcmpistr): New insn patern and splitter.
13984         (sse4_2_pcmpistri):New isns pattern.
13985         (sse4_2_pcmpistrm): Likewise.
13986         (sse4_2_pcmpistr_cconly): Likewise.
13987         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
13988         in SSE4.2.
13989
13990 2007-06-01  David Daney  <ddaney@avtrex.com>
13991
13992         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
13993         LOADGP_ABSOLUTE and not binds_local_p.
13994
13995 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
13996
13997         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
13998
13999 2007-06-01  Ian Lance Taylor  <iant@google.com>
14000
14001         * tree-vrp.c (compare_name_with_value): Always set
14002         used_strict_overflow if we get a result from the variable itself.
14003
14004 2007-06-01  Ian Lance Taylor  <iant@google.com>
14005
14006         PR rtl-optimization/31455
14007         * lower-subreg.c (find_decomposable_subregs): Don't decompose
14008         subregs which have a cast between modes which are not tieable.
14009
14010 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
14011
14012         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
14013         breaks after return statements.
14014
14015 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14016
14017         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
14018         only after no_new_pseudos.
14019
14020 2007-05-31  Eric Christopher  <echristo@apple.com>
14021
14022         * expr.c (convert_move): Assert that we don't have a BLKmode
14023         operand.
14024         (store_expr): Handle BLKmode moves by calling emit_block_move.
14025
14026 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
14027
14028         * c-typeck.c (build_indirect_ref): Include type in error message.
14029         (build_binary_op): Pass types to binary_op_error.
14030         * c-common.c (binary_op_error): Take two type arguments, print out
14031         types with error.
14032         * c-common.h (binary_op_error): Update prototype.
14033
14034 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14035
14036         * config/i386/i386.c: Correct coments on -mno-sse4.
14037
14038 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14039
14040         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
14041         (x86_64-*-*): Likewise.
14042         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
14043         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
14044         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14045         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
14046         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14047         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14048         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14049         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14050         (OPTION_MASK_ISA_SSE4): Likewise.
14051         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
14052         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14053         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
14054         (override_options): Support SSE4.2.
14055         (ix86_build_const_vector): Support SImode and DImode.
14056         (ix86_build_signbit_mask): Likewise.
14057         (ix86_expand_int_vcond): Support V2DImode.
14058         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
14059         (IX86_BUILTIN_CRC32HI): Likewise.
14060         (IX86_BUILTIN_CRC32SI): Likewise.
14061         (IX86_BUILTIN_CRC32DI): Likewise.
14062         (IX86_BUILTIN_PCMPGTQ): Likewise.
14063         (bdesc_crc32): Likewise.
14064         (bdesc_sse_3arg): Likewise.
14065         (ix86_expand_crc32): Likewise.
14066         (ix86_init_mmx_sse_builtins): Support SSE4.2.
14067         (ix86_expand_builtin): Likewise.
14068         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
14069         __SSE4_2__ for -msse4.2.
14070         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
14071         (CRC32MODE): Likewise.
14072         (crc32modesuffix): Likewise.
14073         (crc32modeconstraint): Likewise.
14074         (sse4_2_crc32<mode>): Likewise.
14075         (sse4_2_crc32di): Likewise.
14076         * config/i386/i386.opt (msse4.2): New for SSE4.2.
14077         (msse4): Likewise.
14078         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
14079         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
14080         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
14081         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
14082         (vcondu<mode>): Likewise.
14083         * doc/extend.texi: Document SSE4.2 built-in functions.
14084         * doc/invoke.texi: Document -msse4.2/-msse4.
14085
14086 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
14087
14088         PR tree-optimization/32160
14089         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
14090         variable as gimple reg.
14091         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
14092
14093 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
14094
14095         * gcc.c (main): Don't consider linker options when issuing the
14096         warning about a linker input file not being used.
14097
14098 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14099
14100         * tree-vrp.c (compare_names): Initialize sop.
14101
14102 2007-05-30  Dirk Mueller  <dmueller@suse.de>
14103
14104         * cgraphunit.c (cgraph_analyze_function): Remove
14105         computation of inline parameters.
14106
14107 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
14108
14109         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
14110
14111 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
14112
14113         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
14114         Add vx-common.h.  Include vxworks.h between vx-common.h and
14115         arm/vxworks.h.
14116         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
14117         redefining.
14118         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
14119         (TARGET_ASM_DESTRUCTOR): Likewise.
14120         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
14121         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
14122         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
14123         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
14124         (VXWORKS_ENDIAN_SPEC): Define.
14125         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
14126         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
14127         VXWORKS_* equivalents.
14128         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
14129         (ASM_FILE_START): Delete.
14130         (TARGET_VERSION): Reformat.
14131         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
14132         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
14133         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
14134         (FPBIT, DPBIT): Define.
14135         (fp-bit.c, dp-bit.c): New rules.
14136         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
14137         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
14138         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
14139         * config/arm/arm.h: Include vxworks-dummy.h.
14140         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
14141         Mark with ATTRIBUTE_UNUSED.
14142         (arm_override_options): Do not allow VxWorks RTP PIC to be used
14143         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
14144         make it incompatible with -msingle-pic-base.
14145         (arm_function_ok_for_sibcall): Return false for calls that might
14146         go through a VxWorks PIC PLT entry.
14147         (require_pic_register): New function, split out from...
14148         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
14149         for VxWorks RTPs.
14150         (arm_load_pic_register): Handle the VxWorks RTP initialization
14151         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
14152         (arm_emit_call_insn): New function.
14153         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
14154         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
14155         (pic_offset_arm): New pattern.
14156         (call, call_value): Use arm_emit_call_insn.
14157         (call_internal, call_value_internal): New expanders.
14158         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
14159         VxWorks unless __PIC__.
14160
14161 2007-05-30  Eric Christopher  <echristo@gmail.com>
14162
14163         * genrecog.c: Include regs.h in generated file.
14164         * genemit.c: Ditto. Fix up formatting.
14165         * config/mn10300/constraints.md: New.
14166         * config/mn10300/mn10300.md: Include.
14167         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
14168         Fix up for removed macro.
14169         * config/mn10300/predicates.md (call_address_operand): Ditto.
14170         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
14171         (CONST_OK_FOR_I): Ditto.
14172         (CONST_OK_FOR_J): Ditto.
14173         (CONST_OK_FOR_K): Ditto.
14174         (CONST_OK_FOR_L): Ditto.
14175         (CONST_OK_FOR_M): Ditto.
14176         (CONST_OK_FOR_N): Ditto.
14177         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
14178         (OK_FOR_Q): Ditto.
14179         (OK_FOR_R): Ditto.
14180         (OK_FOR_T): Ditto.
14181         (EXTRA_CONSTRAINT): Ditto.
14182
14183 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
14184
14185         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
14186         Remove defines.
14187         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
14188         OPTION_MASK_ISA_64BIT.
14189         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
14190
14191 2007-05-30  Richard Guenther  <rguenther@suse.de>
14192
14193         PR middle-end/32152
14194         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
14195         types for comparison.
14196         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
14197         with original typed arguments.
14198         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
14199
14200 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
14201
14202         PR tree-optimization/31769
14203         * except.c (duplicate_eh_regions): Clear prev_try if
14204         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
14205
14206 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
14207
14208         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
14209         * tree-ssa-sink.c (statement_sink_location): Return basic block and
14210         bsi of the location where statements should be inserted.
14211         (sink_code_in_bb): Take bsi from statement_sink_location.
14212         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
14213         instead of bsi_start.
14214         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
14215         bsi_insert_after.
14216         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
14217         (bsi_move_before): Document inconsistency with bsi_move_after.
14218         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
14219
14220 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
14221
14222         * config/i386/i386.h (TARGET_ABM): New define.
14223         (TARGET_POPCNT): Ditto.
14224         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
14225         New temporary defines to redefine from OPTION_ISA_* defines.
14226         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
14227         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
14228         (ix86_isa_flags): New extern int declaration.
14229         (TARGET_SUBTARGET_DEFAULT): New define.
14230         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
14231         (TARGET_SUBTARGET32_DEFAULT): Ditto.
14232         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
14233         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
14234         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
14235         * config/i386/darwin.h: Change TARGET_64BIT define to
14236         OPTION_ISA_64BIT.
14237
14238         * config/i386/i386.opt (m3dnowa): Define as undocumented option
14239         using existing "ix86_isa_flags" varible.
14240         (m32, m64): Use existing "ix86_isa_flags" variable.
14241         (mmmx, m3dnow): Ditto.
14242         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
14243         (mabm): Define as non-negative option using "x86_abm" variable.
14244         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
14245
14246         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
14247         Rewrite feature test bitmap.
14248         (ix86_isa_flags): New initialized global int varible.
14249         (ix86_isa_flags_explicit): New static int variable.
14250         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
14251         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
14252         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
14253         target_flags_explicit.
14254         (override_options): Remove "target_enable" and "target_disable" fields
14255         from "struct ptt". Update processor_target_table accordingly. Remove
14256         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
14257         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
14258         "target_flags" and "ix86_isa_flags_explicit" instead of
14259         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
14260         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
14261         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
14262         to true when either of PTA_POPCNT or PTA_ABM is set in
14263         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
14264         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
14265         processor_alias_table flags entry.  Remove handling of
14266         "target_enable" and "target_disable" fields of processor_target_table.
14267         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
14268         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
14269         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
14270         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
14271         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
14272         "target_flags".
14273         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
14274
14275 2007-05-29  David Daney  <ddaney@avtrex.com>
14276
14277         PR gcc/31975
14278         * config/mips/mips.c (mips_output_mi_thunk): Emit
14279         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
14280
14281 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
14282         * config/i386/i386.c (ix86_function_regparm): Added checking of
14283         ix86_force_align_arg_pointer to determine the number of
14284         register parameters.
14285
14286 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
14287
14288         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
14289         (SET_DR_MISALIGNMENT): New.
14290         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
14291         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
14292         Use SET_DR_MISALIGNMENT.
14293         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
14294         pointer.
14295         * tree-data-ref.c (create_data_ref, compute_all_dependences,
14296         find_loop_nest): Export.
14297         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
14298         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
14299         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
14300         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
14301         New macros.
14302         (struct mem_ref): Add field reuse_distance.
14303         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
14304         Initialize reuse_distance field.
14305         (issue_prefetch_ref): Select temporality of prefetch according to
14306         reuse_distance.
14307         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
14308         self_reuse_distance, determine_loop_nest_reuse): New functions.
14309         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
14310         (tree_ssa_prefetch_arrays): Dump L2 cache size.
14311         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
14312         dependency.
14313
14314 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
14315
14316         * tree-ssa-alias.c: Add aliasing overview.
14317
14318 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
14319             Danny Smith  <dannysmith@users.sourceforge.net>
14320
14321         PR target/29498
14322         * config/i386/t-crtfm: Compile crtfastmath.o with
14323         -minline-all-stringops.
14324         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
14325         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
14326
14327 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14328
14329         * doc/md.texi: Document constraints on HP PA-RISC.
14330
14331         * pa/constraints.md: New file.
14332         * pa.md: Include constraints.md.
14333         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
14334         (integer_store_memory_operand, ldil_cint_p): New functions.
14335         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
14336         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
14337         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
14338         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
14339         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
14340
14341 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
14342
14343         PR c/31339
14344         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
14345         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
14346         case POSTDECREMENT_EXPR>): Return the error_mark_node
14347         if either the real or imaginary parts would an
14348         error_mark_node.
14349
14350 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
14351
14352         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
14353         name when we remove it from a call.
14354
14355 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
14356
14357         * targhooks.c (default_narrow_bitfield): Remove.
14358         * targhooks.h: Remove the prototype for
14359         default_narrow_bitfield.
14360
14361         * langhooks-def.h: Remove the prototype for
14362         hook_get_alias_set_0.
14363         * langhooks.c (hook_get_alias_set_0): Remove.
14364
14365         * global.c (EXECUTE_IF_CONFLICT): Remove.
14366
14367 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14368
14369         PR tree-opt/32100
14370         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
14371         return true when truth_value_p is true and the type
14372         is of signed:1.
14373
14374 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
14375
14376         * doc/install.texi (Prerequisites): We no longer require Autoconf
14377         2.13 for the top-level.
14378
14379 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
14380
14381         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
14382         memory access via x86_expand_vector_move_misalign() only for
14383         TImode values on 32-bit targets.
14384
14385 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
14386
14387         * matrix-reorg.c: New file. Implement matrix flattening and
14388         transposing optimization.
14389         * tree-pass.h: Add matrix reorg pass.
14390         * common.opt: Add fipa-mreorg flag.
14391         * Makefile.in: Add matrix-reorg.c.
14392         * passes.c: Add matrix reorg pass.
14393         * varpool.c (add_new_static_var): New function.
14394         * cgraph.h (add_new_static_var): Declare.
14395
14396 2007-05-27  Eric Christopher  <echristo@apple.com>
14397
14398         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
14399         sp_offset depending on stack size. Save r12 depending
14400         on registers we're saving later.
14401         (rs6000_emit_epilogue): Update sp_offset depending only
14402         on stack size.
14403
14404 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
14405
14406         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
14407         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14408         * ifcvt.c (if_convert): Ditto.
14409         * tree-ssa-threadupdate.c (thread_block): Ditto.
14410         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
14411         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
14412         verify_loop_closed_ssa): Check number_of_loops instead of
14413         current_loops.
14414         * predict.c (tree_estimate_probability): Ditto.
14415         * tree-if-conv.c (main_tree_if_conversion): Ditto.
14416         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
14417         * modulo-sched.c (sms_schedule): Ditto.
14418         * tree-scalar-evolution.c (scev_const_prop): Ditto.
14419         (scev_finalize): Do not do anything if scev analysis was not
14420         initialized.
14421         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
14422         current_loops == NULL.
14423         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
14424         * loop-init.c (loop_optimizer_init): Do not free current_loops when
14425         there are no loops.
14426         (loop_optimizer_finalize): Assert that loops were analyzed.
14427         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
14428         rtl_doloop): Check number_of_loops instead of current_loops.
14429         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
14430         current_loops == NULL.
14431         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
14432         gate_tree_vectorize tree_linear_transform, check_data_deps,
14433         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
14434         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
14435         Check number_of_loops instead of current_loops.
14436         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
14437         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
14438         free loops if available.
14439         (execute_pre): Do not pass do_fre to fini_pre.
14440
14441 2007-05-27  Tobias Burnus  <burnus@net-b.de>
14442
14443         PR middle-end/32083
14444         * real.c (mpfr_from_real): Fix sign of -Inf.
14445
14446 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14447
14448         * tree-vect-transform.c (vectorizable_conversion): Initialize
14449         tree_code variables to ERROR_MARK.
14450         (vectorizable_type_demotion): Likewise.
14451         (vectorizable_type_promotion): Likewise.
14452
14453 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
14454
14455         PR target/32065
14456         * config/i386/i386.md (movti): Handle push operands via
14457         ix86_expand_push().
14458
14459 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
14460
14461         * basic-block.h: Remove the prototype for merge_seq_blocks.
14462         * cfgcleanup.c (merge_seq_blocks): Remove.
14463
14464         * tree-flow.h: Remove the prototype for is_aliased_with.
14465         * tree-ssa-alias.c (is_aliased_with): Remove.
14466
14467 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14468
14469         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
14470
14471         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
14472
14473         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
14474         ix86_expand_sse4_unpack if SSE4.1 is enabled.
14475         (vec_unpacks_hi_v16qi): Likewise.
14476         (vec_unpacku_lo_v16qi): Likewise.
14477         (vec_unpacks_lo_v16qi): Likewise.
14478         (vec_unpacku_hi_v8hi): Likewise.
14479         (vec_unpacks_hi_v8hi): Likewise.
14480         (vec_unpacku_lo_v8hi): Likewise.
14481         (vec_unpacks_lo_v8hi): Likewise.
14482         (vec_unpacku_hi_v4si): Likewise.
14483         (vec_unpacks_hi_v4si): Likewise.
14484         (vec_unpacku_lo_v4si): Likewise.
14485         (vec_unpacks_lo_v4si): Likewise.
14486
14487 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
14488
14489         * c-typeck.c, config/arm/arm.c, config/darwin.c,
14490         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
14491         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
14492         follow spelling conventions in various
14493         warning/error/diagnostic messages.
14494
14495         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
14496         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
14497         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
14498         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
14499         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
14500         * doc/tm.texi: Follow spelling conventions.
14501
14502 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14503
14504         PR tree-opt/32090
14505         * tree-ssa-forwprop.c
14506         (forward_propagate_addr_into_variable_array_index): Remove
14507         the lhs argument.  Use the type of def_rhs instead of lhs.
14508         (forward_propagate_addr_expr_1): Update use of
14509         forward_propagate_addr_into_variable_array_index.
14510
14511 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
14512             Nigel Stephens  <nigel@mips.com>
14513
14514         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
14515         function attributes, "far" being an alias for "long_call".
14516         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
14517         (mips_near_type_p, mips_far_type_p): New.
14518         (mips_comp_type_attributes): New function to check that attributes
14519         attached to a function type are compatible.
14520         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
14521         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
14522         to the target function of the thunk.
14523         (mips_encode_section_info): Check for "near" and "far" function
14524         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
14525
14526         * config/mips/predicates.md (const_call_insn_operand): Test only
14527         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
14528
14529         * doc/extend.texi (Function Attributes): Document MIPS "near" and
14530         "far" attributes.
14531
14532         * testsuite/gcc.target/mips/near-far-1.c: New test case.
14533         * testsuite/gcc.target/mips/near-far-2.c: New test case.
14534         * testsuite/gcc.target/mips/near-far-3.c: New test case.
14535         * testsuite/gcc.target/mips/near-far-4.c: New test case.
14536
14537 2007-05-25  Eric Christopher  <echristo@apple.com>
14538
14539         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
14540         to x86-darwin configurations.
14541         * config/i386/t-darwin: Add softfp support.
14542         * config/i386/t-darwin64: Ditto.
14543         * config/i386/sfp-machine.h: If mach then don't use
14544         aliasing, emit a stub to call.
14545
14546 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
14547
14548         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
14549         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
14550         tree-predcom.c, tree-ssa-alias-warnings.c,
14551         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
14552         comment typos.  Follow spelling conventions.
14553         * doc/cpp.texi, doc/invoke.texi: Fix typos.
14554
14555 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
14556
14557         PR target/32065
14558         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
14559         constants into memory.  Expand unaligned memory references for
14560         SSE modes via x86_expand_vector_move_misalign() function.
14561
14562 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
14563
14564         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
14565         "memory" attribute for "sseishft" type insn without operands[2].
14566
14567 2007-05-25  Dirk Mueller  <dmueller@suse.de>
14568             Marcus Meissner <meissner@suse.de>
14569
14570         * doc/extend.texi (alloc_size): New attribute.
14571         * c-common.c (handle_alloc_size_attribute): New.
14572         * tree-object-size.c (alloc_object_size): Use alloc_size
14573         attribute, if available.
14574
14575 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14576
14577         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
14578         with MASK_SSE2.
14579         (__builtin_ia32_vec_ext_v2di): Likewise.
14580         (__builtin_ia32_vec_ext_v4si): Likewise.
14581         (__builtin_ia32_vec_ext_v8hi): Likewise.
14582         (__builtin_ia32_vec_ext_v16qi): Likewise.
14583         (__builtin_ia32_vec_set_v8hi): Likewise.
14584
14585 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14586
14587         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
14588
14589 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
14590
14591         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
14592         (arm_is_longcall_p): Rename to...
14593         (arm_is_long_call_p): ...this.  Take a single tree argument and
14594         return a bool.
14595         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
14596         (CUMULATIVE_ARGS): Remove call_cookie.
14597         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
14598         (ENCODED_LONG_CALL_ATTR_P): Delete.
14599         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
14600         LONG_CALL_FLAG_CHAR cases.
14601         (ARM_DECLARE_FUNCTION_SIZE): Delete.
14602         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
14603         ARM_DECLARE_FUNCTION_SIZE.
14604         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
14605         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
14606         (arm_encode_call_attribute, current_file_function_operand): Delete.
14607         (arm_function_in_section_p): New function.
14608         (arm_is_longcall_p): Rename to...
14609         (arm_is_long_call_p): ...this.  Take the target function as a single
14610         argument and return a bool.  Do not rely on call cookies.  Check
14611         whether the target symbol is in the same section as the current
14612         function, not just the same compilation unit.
14613         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
14614         (arm_encode_section_info): Don't encode a call type.
14615         * config/arm/arm.md (call, call_value): Update calls to
14616         arm_is_long(_)call_p.  Simplify logic.
14617         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
14618         Update calls to arm_is_long(_)call_p.
14619
14620 2007-05-25  Richard Guenther  <rguenther@suse.de>
14621
14622         PR tree-optimization/31982
14623         * tree-ssa-forwprop.c
14624         (forward_propagate_addr_into_variable_array_index): Handle arrays
14625         with element size one.
14626
14627 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14628
14629         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
14630         (umulsi3_highpart): Likewise.
14631
14632 2007-05-24  Ian Lance Taylor  <iant@google.com>
14633
14634         PR rtl-optimization/32069
14635         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
14636         is NULL.
14637
14638 2007-05-24  Ollie Wild  <aaw@google.com>
14639
14640         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
14641         description.
14642
14643 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14644
14645         * postreload-gcse.c (reg_changed_after_insn_p): New function.
14646         (oprs_unchanged_p): Use it to check all registers in a REG.
14647         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
14648         (reg_set_between_after_reload_p): Delete.
14649         (reg_used_between_after_reload_p): Likewise.
14650         (reg_set_or_used_since_bb_start): Likewise.
14651         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
14652         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
14653         Use reg_set_between_p instead of reg_set_between_after_reload_p.
14654         * rtlanal.c (reg_set_p): Check whether REG overlaps
14655         regs_invalidated_by_call, rather than just checking the
14656         membership of REGNO (REG).
14657
14658 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
14659
14660         * doc/passes.texi: Document predictive commoning.
14661         * doc/invoke.texi (-fpredictive-commoning): Document.
14662         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
14663         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
14664         adding indices to the generated name.
14665         (schedule_sm): Pass 0 to get_lsm_tmp_name.
14666         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
14667         * tree-pretty-print.c (op_symbol_1): Renamed to ...
14668         (op_symbol_code): ... and exported.
14669         (dump_omp_clause, op_symbol): Use op_symbol_code
14670         instead of op_symbol_1.
14671         * tree-pass.h (pass_predcom): Declare.
14672         * timevar.def (TV_PREDCOM): New timevar.
14673         * tree-ssa-loop.c (run_tree_predictive_commoning,
14674         gate_tree_predictive_commoning, pass_predcom): New.
14675         * tree-data-ref.c (find_data_references_in_loop): Find the
14676         references in dominance order.
14677         (canonicalize_base_object_address): Ensure that the result has
14678         pointer type.
14679         (dr_analyze_innermost): Export.
14680         (create_data_ref): Code to fail for references with invariant
14681         address moved ...
14682         (find_data_references_in_stmt): ... here.
14683         * tree-data-ref.h (dr_analyze_innermost): Declare.
14684         * tree-affine.c: Include tree-gimple.h and hashtab.h.
14685         (aff_combination_find_elt, name_expansion_hash,
14686         name_expansion_eq, tree_to_aff_combination_expand,
14687         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
14688         New functions.
14689         * tree-affine.h (aff_combination_constant_multiple_p,
14690         tree_to_aff_combination_expand): Declare.
14691         * tree-predcom.c: New file.
14692         * common.opt (fpredictive-commoning): New option.
14693         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
14694         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
14695         * Makefile.in (tree-predcom.o): Add.
14696         (tree-affine.o): Add TREE_GIMPLE_H dependency.
14697         * passes.c (init_optimization_passes): Add dceloop after
14698         copy propagation in loop optimizer.  Add predictive commoning
14699         to loop optimizer passes.
14700
14701 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14702
14703         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
14704         default hook.
14705
14706 2007-05-24  Jan Hubicka  <jh@suse.cz>
14707
14708         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
14709         statistics.
14710         (genheader): Include statistics.h.
14711
14712         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
14713         notes are gone.
14714         * print-rtl.c (flag_dump_unnumbered): Update comments.
14715         (print_rtl): Fix my previous change.
14716         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
14717         specific data.
14718
14719 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
14720
14721         PR middle-end/32018
14722         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
14723         set_loop_copy.
14724         (thread_through_all_blocks): Call initialize_original_copy_tables
14725         and free_original_copy_tables.
14726         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
14727         Use set_loop_copy.
14728         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
14729         * cfghooks.c (duplicate_block): Use get_loop_copy.
14730         * cfg.c: Include cfgloop.h.
14731         (loop_copy): New hash table.
14732         (initialize_original_copy_tables): Initialize loop_copy table.
14733         (free_original_copy_tables): Free loop_copy table.
14734         (copy_original_table_clear, copy_original_table_set,
14735         set_loop_copy, get_loop_copy): New functions.
14736         (set_bb_original, set_bb_copy): Use copy_original_table_set.
14737         * cfgloop.h (struct loop): Remove copy field.
14738         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
14739         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
14740
14741 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14742
14743         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
14744         -msse/-msse2/-msse3.
14745
14746 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14747
14748         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
14749         __builtin_ia32_vec_set_v2di with MASK_64BIT.
14750
14751 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
14752
14753         PR target/27067
14754         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
14755         * targhooks.h (default_mangle_decl_assembler_name): Declare
14756         default hook.
14757         * targhooks.c (default_mangle_decl_assembler_name): Define
14758         default hook.
14759         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
14760         default hook.
14761         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
14762         * langhooks.c (lhd_set_decl_assembler_name): Call
14763         targetm.mangle_decl_assembler_name for names with global scope.
14764
14765         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
14766         default.
14767         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
14768         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
14769         Declare.
14770         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14771         New. Factored out of i386_pe_encode_section_info.
14772         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
14773         Move check for prior decoration of stdcall
14774         symbols to i386_pe_encode_section_info.
14775         (i386_pe_encode_section_info): Adjust call to
14776         gen_stdcall_or_fastcall_suffix.  Use
14777         i386_pe_maybe_mangle_decl_assembler_name, if needed.
14778         (i386_pe_mangle_decl_assembler_name): New. Wrap
14779         i386_pe_maybe_mangle_decl_assembler_name.
14780
14781 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
14782
14783         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
14784         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
14785         * langhooks.c (get_signed_or_unsigned_type): Don't check for
14786         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
14787         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
14788         TYPE_UNSIGNED.
14789
14790 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
14791             Nigel Stephens  <nigel@mips.com>
14792             Richard Sandiford  <richard@codesourcery.com>
14793
14794         Fix up MIPS16 hard float and add support for complex.
14795
14796         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
14797         (TARGET_SOFT_FLOAT_ABI): New.
14798         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
14799         __mips_soft_float to reflect the ABI in use, not whether the
14800         FPU is directly accessible (e.g., in MIPS16 mode).
14801         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
14802         (UNITS_PER_FPVALUE): Likewise.
14803
14804         * config/mips/mips.c (mips_expand_call): Remove redundant
14805         TARGET_MIPS16 check.
14806         (mips_arg_regno): New.
14807         (function_arg_advance): When setting bits in cum->fp_code for
14808         MIPS16, don't subtract 1 from cum->arg_number, since it is now
14809         zero-based.
14810         (function_arg): Use mips_arg_regno.
14811         (mips_return_mode_in_fpr_p): New.
14812         (mips16_call_stub_mode_suffix): New.
14813         (mips16_cfun_returns_in_fpr_p): New.
14814         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
14815         (mips_output_function_prologue): Test mips16_hard_float, not
14816         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
14817         (mips_expand_epilogue): Call MIPS16 helper routines to copy
14818         return value into a floating-point register.
14819         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
14820         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
14821         (mips16_fp_args): Handle MIPS32r2 ISA which supports
14822         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
14823         word of double arguments from or to the high bits of 64-bit
14824         floating point registers.
14825         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
14826         (mips16_fpret_double): New helper function.
14827         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
14828         support for complex modes.  Fill in DECL_RESULT for stubdecl.
14829         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
14830
14831         * config/mips/mips16.S
14832         (RET, ARG1, ARG2): New.
14833         (MERGE_GPRf, MERGE_GPRt): New.
14834         (DELAYt, DELAYf): New.
14835         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
14836         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
14837         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
14838         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
14839         (SFOP): Renamed to...
14840         (OPSF3): This, and macro-ified.  Updated all uses.
14841         (SFOP2): Renamed to...
14842         (OPSF2): This, and macro-ified.  Updated all uses.
14843         (SFCMP): Renamed to...
14844         (CMPSF): This, and macro-ified.  Updated all uses.
14845         (SFREVCMP): Renamed to...
14846         (REVCMPSF): This, and macro-ified.  Updated all uses.
14847         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
14848         (LDDBL1, LDDBL2, RETDBL): Deleted.
14849         (DFOP): Renamed to...
14850         (OPDF3): This, and macro-ified.  Updated all uses.
14851         (DFOP2): Renamed to...
14852         (OPDF2): This, and macro-ified.  Updated all uses.
14853         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
14854         (DFCMP): Renamed to...
14855         (CMPDF): This, and macro-ified.  Updated all uses.
14856         (DFREVCMP): Renamed to...
14857         (REVCMPDF): This, and macro-ified.  Updated all uses.
14858         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
14859         (RET_FUNCTION): New.
14860         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
14861         (__mips16_ret_sc, __mips16_ret_dc): New.
14862         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
14863         STUB_ARGS_6, STUB_ARGS_10): New.
14864         (CALL_STUB_NO_RET): New.
14865         (__mips16_call_stub_1): Macro-ified.
14866         (__mips16_call_stub_5): Macro-ified.
14867         (__mips16_call_stub_2): Macro-ified.
14868         (__mips16_call_stub_6): Macro-ified.
14869         (__mips16_call_stub_9): Macro-ified.
14870         (__mips16_call_stub_10): Macro-ified.
14871         (CALL_STUB_RET): New.
14872         (__mips16_call_stub_sf_0): Macro-ified.
14873         (__mips16_call_stub_sf_1): Macro-ified.
14874         (__mips16_call_stub_sf_5): Macro-ified.
14875         (__mips16_call_stub_sf_2): Macro-ified.
14876         (__mips16_call_stub_sf_6): Macro-ified.
14877         (__mips16_call_stub_sf_9): Macro-ified.
14878         (__mips16_call_stub_sf_10): Macro-ified.
14879         (__mips16_call_stub_df_0): Macro-ified.
14880         (__mips16_call_stub_df_1): Macro-ified.
14881         (__mips16_call_stub_df_5): Macro-ified.
14882         (__mips16_call_stub_df_2): Macro-ified.
14883         (__mips16_call_stub_df_6): Macro-ified.
14884         (__mips16_call_stub_df_9): Macro-ified.
14885         (__mips16_call_stub_df_10): Macro-ified.
14886         (__mips16_call_stub_sc_0): New.
14887         (__mips16_call_stub_sc_1): New.
14888         (__mips16_call_stub_sc_5): New.
14889         (__mips16_call_stub_sc_2): New.
14890         (__mips16_call_stub_sc_6): New.
14891         (__mips16_call_stub_sc_9): New.
14892         (__mips16_call_stub_sc_10): New.
14893         (__mips16_call_stub_dc_0): New.
14894         (__mips16_call_stub_dc_1): New.
14895         (__mips16_call_stub_dc_5): New.
14896         (__mips16_call_stub_dc_2): New.
14897         (__mips16_call_stub_dc_6): New.
14898         (__mips16_call_stub_dc_9): New.
14899         (__mips16_call_stub_dc_10): New.
14900
14901         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
14902         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
14903         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
14904
14905 2007-05-23  Ian Lance Taylor  <iant@google.com>
14906
14907         * doc/invoke.texi (Invoking GCC): Document that the order of the
14908         -l option matters.
14909
14910 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
14911
14912         PR target/30987
14913         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
14914         * config/score/predicate.md (const_pow2, const_npow2): Remove.
14915         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
14916         undef.
14917
14918         PR target/30474
14919         * config/score/score.c (score_print_operand): Make sure that only
14920         lower bits are used.
14921
14922 2007-05-22  Ian Lance Taylor  <iant@google.com>
14923
14924         * tree-vrp.c (avoid_overflow_infinity): New static function,
14925         broken out of set_value_range_to_value.
14926         (set_value_range_to_value): Call avoid_overflow_infinity.
14927         (extract_range_from_assert): Likewise.
14928
14929 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14930
14931         PR middle-end/31095
14932          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
14933         change the type before looking for a COMPOUND_EXPR.
14934
14935 2007-05-22  Ian Lance Taylor  <iant@google.com>
14936
14937         * lower-subreg.c (decompose_multiword_subregs): If we change an
14938         insn, call remove_retval_note on it.
14939
14940 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
14941
14942         * regs.h (end_hard_regno): New function.
14943         (END_HARD_REGNO, END_REGNO): New macros.
14944         (add_to_hard_reg_set): New function.
14945         (remove_from_hard_reg_set): Likewise.
14946         (in_hard_reg_set_p): Likewise.
14947         (overlaps_hard_reg_set_p): Likewise.
14948         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
14949         (note_btr_set): Use END_HARD_REGNO.
14950         * caller-save.c (setup_save_areas): Use end_hard_regno.
14951         (mark_set_regs): Use END_HARD_REGNO.
14952         (add_stored_regs): Use end_hard_regno.
14953         (mark_referenced_regs): Use add_to_hard_reg_set.
14954         * combine.c (update_table_tick): Use END_REGNO.
14955         (record_value_for_reg): Likewise.
14956         (record_dead_and_set_regs): Likewise.
14957         (get_last_value_validate): Likewise.
14958         (use_crosses_set_p): Likewise.
14959         (reg_dead_at_p_1): Likewise.
14960         (reg_dead_at_p): Likewise.
14961         (mark_used_regs_combine): Use add_to_hard_reg_set.
14962         (move_deaths): Use END_HARD_REGNO.
14963         (reg_bitfield_target_p): Use end_hard_regno.
14964         (distribute_notes): Use END_HARD_REGNO.
14965         * cse.c (mention_regs): Use END_REGNO.
14966         (insert): Use add_to_hard_reg_set.
14967         (invalidate): Use END_HARD_REGNO.
14968         (invalidate_for_call): Likewise.
14969         (exp_equiv_p): Use END_REGNO.
14970         (cse_insn): Likewise.
14971         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
14972         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
14973         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
14974         * function.c (keep_stack_depressed): Use end_hard_regno.
14975         * global.c (global_alloc): Use end_hard_regno.
14976         (global_conflicts): Use add_to_hard_reg_set instead of
14977         mark_reg_live_nc.
14978         (find_reg): Likewise.
14979         (mark_reg_store): Likewise.
14980         (mark_reg_conflicts): Likewise.
14981         (mark_reg_death): Use remove_from_hard_reg_set.
14982         (mark_reg_live_nc): Delete.
14983         (set_preference): Use end_hard_regno.
14984         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
14985         remove_from_hard_reg_set.
14986         (post_mark_life): Use add_to_hard_reg_set.
14987         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
14988         (reg_becomes_live): Use add_to_hard_reg_set.
14989         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
14990         (peep2_find_free_register): Use add_to_hard_reg_set.
14991         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
14992         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
14993         * regrename.c (note_sets): Use add_to_hard_reg_set.
14994         (clear_dead_regs): Use remove_from_hard_reg_set.
14995         (regrename_optimize): Use add_to_hard_reg_set.
14996         (find_oldest_value_reg): Use in_hard_reg_set_p.
14997         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
14998         (hard_reg_set_here_p): Use end_hard_regno.
14999         (decompose): Likewise.
15000         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
15001         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
15002         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
15003         (mark_home_live): Use end_hard_regno.
15004         (spill_hard_reg): Likewise.
15005         (clear_reload_reg_in_use): Likewise.
15006         * reorg.c (delete_prior_computation): Use END_REGNO.
15007         * resource.c (update_live_status): Use END_HARD_REGNO.
15008         (mark_referenced_resources): Use add_to_hard_reg_set.
15009         (mark_set_resources): Likewise.
15010         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
15011         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
15012         (reg_overlap_mentioned_p): Likewise.
15013         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
15014         (covers_regno_no_parallel_p): Use END_REGNO.
15015         (find_regno_note): Likewise.
15016         (find_reg_fusage): Use END_HARD_REGNO.
15017         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
15018         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
15019
15020 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
15021
15022         * mode-switching.c (reg_dies): Change type of second argument to
15023         "HARD_REG_SET *".
15024         (optimize_mode_switching): Update accordingly.
15025
15026 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
15027
15028         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
15029         in favor of...
15030         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
15031         (hard_reg_set_empty_p): ...these new functions.
15032         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
15033         GO_IF_HARD_REG_SUBSET.
15034         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
15035         instead of GO_IF_HARD_REG_EQUAL.
15036         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
15037         instead of GO_IF_HARD_REG_EQUAL.
15038         * global.c (find_reg): Use hard_reg_set_empty_p instead of
15039         GO_IF_HARD_REG_SUBSET.
15040         (modify_reg_pav): Use hard_reg_set_empty_p instead of
15041         GO_IF_HARD_REG_EQUAL.
15042         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
15043         of GO_IF_HARD_REG_SUBSET.
15044         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
15045         instead of GO_IF_HARD_REG_EQUAL.
15046         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
15047         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
15048         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
15049         of GO_IF_HARD_REG_SUBSET,
15050         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
15051         GO_IF_HARD_REG_SUBSET.
15052         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
15053         instead of GO_IF_HARD_REG_EQUAL.
15054         * config/sh/sh.c (push_regs, calc_live_regs): Use
15055         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
15056         (hard_regs_intersect_p): Delete.
15057
15058 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
15059
15060         * doc/sourcebuild.texi (Test Directives) Add dg-message.
15061
15062 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15063             Richard Henderson  <rth@redhat.com>
15064
15065         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
15066         extra_headers.
15067         (x86_64-*-*): Likewise.
15068
15069         * i386/i386-modes.def (V2QI): New.
15070
15071         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
15072         SSE4A.
15073         (override_options): Support SSE4.1.
15074         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
15075         (IX86_BUILTIN_BLENDPS): Likewise.
15076         (IX86_BUILTIN_BLENDVPD): Likewise.
15077         (IX86_BUILTIN_BLENDVPS): Likewise.
15078         (IX86_BUILTIN_PBLENDVB128): Likewise.
15079         (IX86_BUILTIN_PBLENDW128): Likewise.
15080         (IX86_BUILTIN_DPPD): Likewise.
15081         (IX86_BUILTIN_DPPS): Likewise.
15082         (IX86_BUILTIN_INSERTPS128): Likewise.
15083         (IX86_BUILTIN_MOVNTDQA): Likewise.
15084         (IX86_BUILTIN_MPSADBW128): Likewise.
15085         (IX86_BUILTIN_PACKUSDW128): Likewise.
15086         (IX86_BUILTIN_PCMPEQQ): Likewise.
15087         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
15088         (IX86_BUILTIN_PMAXSB128): Likewise.
15089         (IX86_BUILTIN_PMAXSD128): Likewise.
15090         (IX86_BUILTIN_PMAXUD128): Likewise.
15091         (IX86_BUILTIN_PMAXUW128): Likewise.
15092         (IX86_BUILTIN_PMINSB128): Likewise.
15093         (IX86_BUILTIN_PMINSD128): Likewise.
15094         (IX86_BUILTIN_PMINUD128): Likewise.
15095         (IX86_BUILTIN_PMINUW128): Likewise.
15096         (IX86_BUILTIN_PMOVSXBW128): Likewise.
15097         (IX86_BUILTIN_PMOVSXBD128): Likewise.
15098         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
15099         (IX86_BUILTIN_PMOVSXWD128): Likewise.
15100         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
15101         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
15102         (IX86_BUILTIN_PMOVZXBW128): Likewise.
15103         (IX86_BUILTIN_PMOVZXBD128): Likewise.
15104         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
15105         (IX86_BUILTIN_PMOVZXWD128): Likewise.
15106         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
15107         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
15108         (IX86_BUILTIN_PMULDQ128): Likewise.
15109         (IX86_BUILTIN_PMULLD128): Likewise.
15110         (IX86_BUILTIN_ROUNDPD): Likewise.
15111         (IX86_BUILTIN_ROUNDPS): Likewise.
15112         (IX86_BUILTIN_ROUNDSD): Likewise.
15113         (IX86_BUILTIN_ROUNDSS): Likewise.
15114         (IX86_BUILTIN_PTESTZ): Likewise.
15115         (IX86_BUILTIN_PTESTC): Likewise.
15116         (IX86_BUILTIN_PTESTNZC): Likewise.
15117         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
15118         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
15119         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
15120         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
15121         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
15122         (bdesc_ptest): New.
15123         (bdesc_sse_3arg): Likewise.
15124         (bdesc_2arg): Likewise.
15125         (bdesc_1arg): Likewise.
15126         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
15127         with 3 args.
15128         (ix86_expand_sse_4_operands_builtin): New.
15129         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
15130         smaller than 8 bits as the 2nd arg.
15131         (ix86_expand_sse_ptest): New.
15132         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
15133         (ix86_expand_vector_set): Support SSE4.1.
15134         (ix86_expand_vector_extract): Likewise.
15135
15136         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
15137         __SSE4_1__ for -msse4.1.
15138
15139         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
15140         (UNSPEC_INSERTPS): Likewise.
15141         (UNSPEC_DP): Likewise.
15142         (UNSPEC_MOVNTDQA): Likewise.
15143         (UNSPEC_MPSADBW): Likewise.
15144         (UNSPEC_PHMINPOSUW): Likewise.
15145         (UNSPEC_PTEST): Likewise.
15146         (UNSPEC_ROUNDP): Likewise.
15147         (UNSPEC_ROUNDS): Likewise.
15148
15149         * config/i386/i386.opt (msse4.1): New for SSE4.1.
15150
15151         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
15152         (const_pow2_1_to_32768_operand): Likewise.
15153
15154         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
15155         file.
15156
15157         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
15158         SSE4.1.
15159         (sse4_1_insertps): Likewise.
15160         (*sse4_1_extractps): Likewise.
15161         (sse4_1_ptest): Likewise.
15162         (sse4_1_mulv2siv2di3): Likewise.
15163         (*sse4_1_mulv4si3): Likewise.
15164         (*sse4_1_smax<mode>3): Likewise.
15165         (*sse4_1_umax<mode>3): Likewise.
15166         (*sse4_1_smin<mode>3): Likewise.
15167         (*sse4_1_umin<mode>3): Likewise.
15168         (sse4_1_eqv2di3): Likewise.
15169         (*sse4_1_pinsrb): Likewise.
15170         (*sse4_1_pinsrd): Likewise.
15171         (*sse4_1_pinsrq): Likewise.
15172         (*sse4_1_pextrb): Likewise.
15173         (*sse4_1_pextrb_memory): Likewise.
15174         (*sse4_1_pextrw_memory): Likewise.
15175         (*sse4_1_pextrq): Likewise.
15176         (sse4_1_blendpd): Likewise.
15177         (sse4_1_blendps): Likewise.
15178         (sse4_1_blendvpd): Likewise.
15179         (sse4_1_blendvps): Likewise.
15180         (sse4_1_dppd): Likewise.
15181         (sse4_1_dpps): Likewise.
15182         (sse4_1_movntdqa): Likewise.
15183         (sse4_1_mpsadbw): Likewise.
15184         (sse4_1_packusdw): Likewise.
15185         (sse4_1_pblendvb): Likewise.
15186         (sse4_1_pblendw): Likewise.
15187         (sse4_1_phminposuw): Likewise.
15188         (sse4_1_extendv8qiv8hi2): Likewise.
15189         (*sse4_1_extendv8qiv8hi2): Likewise.
15190         (sse4_1_extendv4qiv4si2): Likewise.
15191         (*sse4_1_extendv4qiv4si2): Likewise.
15192         (sse4_1_extendv2qiv2di2): Likewise.
15193         (*sse4_1_extendv2qiv2di2): Likewise.
15194         (sse4_1_extendv4hiv4si2): Likewise.
15195         (*sse4_1_extendv4hiv4si2): Likewise.
15196         (sse4_1_extendv2hiv2di2): Likewise.
15197         (*sse4_1_extendv2hiv2di2): Likewise.
15198         (sse4_1_extendv2siv2di2): Likewise.
15199         (*sse4_1_extendv2siv2di2): Likewise.
15200         (sse4_1_zero_extendv8qiv8hi2): Likewise.
15201         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
15202         (sse4_1_zero_extendv4qiv4si2): Likewise.
15203         (*sse4_1_zero_extendv4qiv4si2): Likewise.
15204         (sse4_1_zero_extendv2qiv2di2): Likewise.
15205         (*sse4_1_zero_extendv2qiv2di2): Likewise.
15206         (sse4_1_zero_extendv4hiv4si2): Likewise.
15207         (*sse4_1_zero_extendv4hiv4si2): Likewise.
15208         (sse4_1_zero_extendv2hiv2di2): Likewise.
15209         (*sse4_1_zero_extendv2hiv2di2): Likewise.
15210         (sse4_1_zero_extendv2siv2di2): Likewise.
15211         (*sse4_1_zero_extendv2siv2di2): Likewise.
15212         (sse4_1_roundpd): Likewise.
15213         (sse4_1_roundps): Likewise.
15214         (sse4_1_roundsd): Likewise.
15215         (sse4_1_roundss): Likewise.
15216         (mulv4si3): Don't expand for SSE4.1.
15217         (smax<mode>3): Likewise.
15218         (umaxv4si3): Likewise.
15219         (uminv16qi3): Likewise.
15220         (umin<mode>3): Likewise.
15221         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
15222
15223         * doc/extend.texi: Document SSE4.1 built-in functions.
15224
15225         * doc/invoke.texi: Document -msse4.1.
15226
15227 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
15228
15229         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
15230         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
15231         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
15232         (ASM_SPEC): Add asm_pcrel_spec.
15233         (EXTRA_SPECS): Add asm_pcrel_spec.
15234
15235 2007-05-21  David Daney  <ddaney@avtrex.com>
15236
15237         * doc/install.texi (Building a cross compiler): Add requirements
15238         for Java cross compiler.
15239
15240 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15241
15242         PR middle-end/31995
15243         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
15244         Add loopno argument.  Use evolution_function_is_invariant_rec_p
15245         instead of evolution_function_is_constant_p.
15246         Update calls to evolution_function_is_affine_multivariate_p.
15247         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
15248         Add loopno argument.
15249         * tree-scalar-evolution.c (gather_chrec_stats): Call
15250         evolution_function_is_affine_multivariate_p with a loop
15251         number of 0.
15252         * tree-data-ref.c (analyze_miv_subscript): Likewise.
15253         (analyze_overlapping_iterations): Likewise.
15254         (access_functions_are_affine_or_constant_p): Likewise.
15255         (build_classic_dist_vector_1): If the access functions
15256         are equal, don't do anything.
15257
15258 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
15259             Paolo Carlini  <pcarlini@suse.de>
15260             Uros Bizjak  <ubizjak@gmail.com>
15261
15262         * c-cppbuiltin.c (c_cpp_builtins): Define
15263         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
15264         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
15265         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
15266         * doc/cpp.texi ([Standard Predefined Macros]): Document.
15267
15268 2007-05-21  Mike Stump  <mrs@apple.com>
15269
15270         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
15271         handling as well.
15272         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15273
15274 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
15275
15276         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
15277         implementation if __OPTIMIZE__ is not defined.
15278         (_mm_alignr_pi8): Ditto.
15279         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
15280         (_mm_inserti_si64): Ditto.
15281         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
15282         (_mm_slli_epi16): Ditto.
15283         (_mm_slli_epi32): Ditto.
15284         (_mm_slli_epi64): Ditto.
15285         (_mm_srai_epi16): Ditto.
15286         (_mm_srai_epi32): Ditto.
15287         (_mm_srli_si128): Ditto.
15288         (_mm_slli_si128): Ditto.
15289         (_mm_srli_epi16): Ditto.
15290         (_mm_srli_epi32): Ditto.
15291         (_mm_srli_epi64): Ditto.
15292         (_mm_extract_epi16): Ditto.
15293         (_mm_insert_epi16): Ditto.
15294         (_mm_shufflehi_epi16): Ditto.
15295         (_mm_shufflelo_epi16): Ditto.
15296         (_mm_shuffle_epi32): Ditto.
15297         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
15298         (_m_pextrw): Ditto.
15299         (_mm_insert_pi16): Ditto.
15300         (_m_pinsrw): Ditto.
15301         (_mm_shuffle_pi16): Ditto.
15302         (_m_pshufw): Ditto.
15303         (_mm_shufle_ps): Ditto.
15304         (_mm_prefetch): Ditto.
15305
15306 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
15307
15308         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
15309         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
15310         * real.c (encode_i370_single, decode_i370_single,
15311         encode_i370_double, decode_i370_double): Functions removed.
15312         (i370_single_format, i370_double_format): Initializations removed.
15313         (real_maxval, round_for_format, exact_real_truncate, significand_size):
15314         Consider the log2_b field to always be one.
15315         (ieee_single_format, mips_single_format, coldfire_single_format,
15316         ieee_double_format, mips_double_format, coldfire_double_format,
15317         ieee_extended_motorola_format, ieee_extended_intel_96_format,
15318         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
15319         ibm_extended_format, mips_extended_format, ieee_quad_format,
15320         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
15321         decimal_single_format, decimal_double_format, decimal_quad_format,
15322         c4x_single_format, c4x_extended_format, real_internal_format): Remove
15323         initialization of log2_b.
15324         * real.h (i370_single_format, i370_double_format): Declarations
15325         removed.
15326         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
15327         field to always be one.
15328
15329 2007-05-21  Andreas Schwab  <schwab@suse.de>
15330
15331         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
15332         NOTE_INSN_BASIC_BLOCK_P.
15333         (process_for_unwind_directive): Likewise.
15334
15335 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
15336
15337         * builtins.c (expand_builtin_setjmp_setup): Update comment.
15338         * function.h (struct function): Move va_list_gpr_size,
15339         va_list_fpr_size, function_frequency to front of bitfields.  Add
15340         calls_unwind_init.
15341         (current_function_calls_unwind_init): New.
15342         * except.c (expand_builtin_unwind_init): Set
15343         current_function_calls_unwind_init not
15344         current_function_has_nonlocal_label.
15345         * reload1.c (has_nonexceptional_receiver): New.
15346         (reload): Use it and current_function_calls_unwind_init to
15347         determine whether call-saved regs must be saved.
15348
15349 2007-05-20  Jan Hubicka  <jh@suse.cz>
15350
15351         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
15352         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15353         * ddg.c (create_ddg): LIkewise.
15354         * final.c (final): Remove hunk moving line number notes around since
15355         they are no longer present at this stage.
15356         (final_scan_insn): Use NOTE_KIND instead of
15357         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15358         (output_asm_label): Likewise.
15359         * reorg.c (dbr_schedule): Likewise.
15360         * haifa-sched.c (unlink_other_notes): Likewise.
15361         * mode-switching.c (optimize_mode_switching): Likewise.
15362         * graph.c (start_bb): Likewise.
15363         * rtl.def (NOTE): Update description.
15364         * jump.c (squeeze_notes): Delete.
15365         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
15366         NOTE_INSN_BASIC_BLOCK_P when possible.
15367         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
15368         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
15369         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
15370         (dwarf2out_var_location): Likewise.
15371         * cfgbuild.c (make_edges): Likewise.
15372         (find_basic_blocks_1): Likewise.
15373         * function.c (reorder_blocks_1): Likewise.
15374         (epilogue_done): Likewise.
15375         (reposition_prologue_and_epilogue_notes): Likewise.
15376         * print-rtl.c (print_rtx): Likewise; drop code for printing
15377         line number notes.
15378         (print_rtl): Likewise.
15379         (print_rtl_single): Likewise.
15380         * gcse.c (insert_insn_start_bb): Likewise.
15381         * alias.c (init_alias_analysis): Likewise.
15382         * calls.c (fixup_tail_calls): Likewise.
15383         * except.c (sjlj_emit_function_enter): Likewise.
15384         * emit-rtl.c (add_insn_after): Likeiwse.
15385         (emit_label_before): Likewise.
15386         (emit_label_after): Likewise.
15387         (emit_note_before, emit_note_after, emit_note): Update
15388         parameter to be enum insn_note; do not deal with source
15389         files.
15390         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
15391         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
15392         when possible.
15393         (merge_blocks_move_successor_nojumps): Simplify now when
15394         we don't have BLOCK notes.
15395         (try_optimize_cfg): Likewise.
15396         * cfglayout.c (skip_insns_after_block): Likewise.
15397         (record_effective_endpoints): Likewise.
15398         (duplicate_insn_chain): Likewise.
15399         * varasm.c (output_constant_pool_1): Likewise.
15400         * sched-deps.c (sched_analyze): Likewise.
15401         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
15402         Exterminate.
15403         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
15404         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
15405         (SET_INSN_DELETED): Simplify.
15406         (NOTE_LINE_NUMBER): Exterminate.
15407         (NOTE_LINE_KIND): New.
15408         (NOTE_INSN_BASIC_BLOCK_P): Update.
15409         (enum insn_note): Simplify.
15410         (GET_NOTE_INSN_NAME) Simplify.
15411         (emit_note_before, emit_note_after, emit_note): Update prototype.
15412         (squeeze_notes): Remove.
15413         * sched-int.h (NOTE_NOT_BB_P): Update.
15414         * resource.c (mark_target_live_regs): Update.
15415         * sched-rgn.c (debug_dependencies): Update.
15416         * sched-vis.c (print_insn): Update.
15417         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
15418         * config/i386/i386.c (ix86_output_function_epilogue): Update.
15419         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
15420         (TARGET_ADJUST_UNROLL_MAX): Likewise.
15421         (split_branches): Update.
15422         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
15423         4.0.0.
15424         (sh_adjust_unroll_max): Exterminate.
15425         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
15426         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
15427         (m68hc11_reorg): Likewise.
15428         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
15429         (emit_predicate_relation_info): Update.
15430         (process_for_unwind_directive): Update.
15431         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
15432         (output_call): Update.
15433         * config/pa/pa.c (output_lbranch): Update.
15434         (output_millicode_call): Update.
15435         (output_call): Update.
15436         (pa_combine_instructions): Update.
15437         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
15438         * config/bfin/bfin.c (gen_one_bundle): Update.
15439         * cfgrtl.c (can_delete_note_p): Update.
15440         (delete_insn): Update.
15441         (rtl_merge_blocks): Update.
15442         (commit_one_edge_insertion): Update.
15443         (rtl_verify_flow_info): Update.
15444         * stmt.c (expand_case): Do not call squeeze_notes.
15445
15446 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15447
15448         PR middle-end/7651
15449         PR c++/11856
15450         PR c/12963
15451         PR c/23587
15452         PR other/29694
15453         * c.opt (Wtype-limits): New.
15454         * doc/invoke.texi (Wtype-limits): Document it.
15455         (Wextra): Enabled by -Wextra.
15456         * c-opts.c (c_common_post_options): Enabled by -Wextra.
15457         * c-common.c (shorten_compare): Warn with Wtype-limits.
15458
15459 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
15460
15461         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
15462         inlined function, not as a macro.
15463         (_mm_alignr_pi8): Ditto.
15464         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
15465         (_mm_inserti_si64): Ditto.
15466         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
15467         (_mm_extract_epi16): Ditto.
15468         (_mm_insert_epi16): Ditto.
15469         (_mm_shufflehi_epi16): Ditto.
15470         (_mm_shufflelo_epi16): Ditto.
15471         (_mm_shuffle_epi32): Ditto.
15472         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
15473         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
15474         all functions.
15475         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
15476         float constant.
15477         (_m_to_float): Use C89 compatible assignment.
15478
15479 2007-05-20  Martin Michlmayr  <tbm@cyrius.com>
15480
15481         PR target/32007
15482         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
15483
15484 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15485
15486         PR middle-end/7651
15487         * doc/invoke.texi (Wreturn-type): Complete description.
15488         (Wextra): Delete item about return-type warning.
15489         * c-decl.c: Delete redundant Wextra warning.
15490
15491 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
15492
15493         PR target/31585
15494         * config/i386/pmmintrin.h: Do not include xmmintrin.h
15495         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
15496         inlined function, not as a macro.
15497         (_mm_prefetch): Ditto.
15498         (_m_pextrw): Ditto.
15499         (_mm_insert_pi16): Ditto.
15500         (_m_pinsrw): Ditto.
15501         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
15502         (_m_pshufw): Ditto. Add const to __N argument.
15503         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
15504         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
15505         (_mm_slli_epi32): Ditto.
15506         (_mm_srli_si128): Implement as always inlined function, not as a
15507         macro.  Add __inline to function declaration.
15508         (_mm_slli_si128): Ditto.
15509
15510 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
15511
15512         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
15513         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
15514         New constants.
15515         (struct fenv): New structure.
15516         (FP_HANDLE_EXCEPTIONS): New define.
15517         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
15518         (_FP_DECL_EXP): New define.
15519         (FP_INIT_ROUNDMODE): New define.
15520         (FP_ROUNDMODE): New define.
15521
15522 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15523
15524         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
15525         (Wconversion): Update description.
15526         (Wconversion-sign): New.
15527         * c.opt (Wconversion-sign): New.
15528         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
15529         means disabled for C++. Otherwise, take the status of Wconversion.
15530         * c-common.c (conversion_warning): Warn with either Wconversion or
15531         Wconversion-sign.
15532         (warnings_for_convert_and_check): Conditions are already checked by
15533         conversion_warning.
15534         (convert_and_check): Don't check warnings if the conversion failed.
15535
15536 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
15537            Anatoly Sokolov <aesok@dol.ru>
15538
15539         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
15540         avr_epilogue_uses) : Add declaration.
15541         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
15542         * config/avr/constraints.md (R): New constraint.
15543         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
15544         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
15545         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
15546         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
15547         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
15548         call_prologue_saves, epilogue_restores, return_from_epilogue,
15549         return_from_main_epilogue, return_from_interrupt_epilogue,
15550         return_from_naked_epilogue, prologue, epilogue): New patterns.
15551         (jump): Handle symbol reference.
15552         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
15553         avr_output_function_prologue, avr_output_function_epilogue): Remove
15554         functions.
15555         (avr_init_machine_status, expand_prologue, expand_epilogue,
15556         avr_asm_function_end_prologue, avr_epilogue_uses,
15557         avr_asm_function_begin_epilogue): New functions.
15558         (prologue_size, epilogue_size, jump_tables_size): Remove global
15559         variables.
15560         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
15561         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
15562         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
15563         (avr_override_options): Initialise init_machine_status.
15564         (output_movhi): Handle all stack pointer loads.
15565         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
15566         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
15567         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
15568         (EPILOGUE_USES) Redefine.
15569         (machine_function) Declare.
15570
15571 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
15572
15573         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
15574         Use a single return statement.
15575
15576 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15577
15578         PR middle-end/30250
15579         * builtins.c (do_mpfr_lgamma_r): New.
15580         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
15581         * tree.h (CASE_FLT_FN_REENT): New.
15582
15583 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
15584
15585         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
15586         (output_die): Use 'unsigned long' with %x.
15587         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
15588         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
15589         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
15590
15591         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
15592
15593 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15594
15595         PR target/31989
15596         PR target/31681
15597         PR target/31666
15598         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
15599         true if function has no argument.
15600
15601 2007-05-18  DJ Delorie  <dj@redhat.com>
15602
15603         * config/mips/mips.c (mips_offset_within_alignment_p): New.
15604         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
15605
15606 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
15607
15608         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
15609         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
15610         count_trailing_zeros.
15611         (__i386__): Implement count_leading_zeros using __builtin_clz().
15612         Implement count_trailing_zeros usign __builtin_ctz().
15613
15614 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
15615
15616         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
15617
15618 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
15619
15620         PR middle-end/31344
15621         * expr.c (emit_move_change_mode): Change mode of push operands here.
15622
15623 2007-05-17  Ian Lance Taylor  <iant@google.com>
15624
15625         PR tree-optimization/31953
15626         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
15627         Change all callers.
15628         (set_value_range_to_null): Call set_value_range_to_value.
15629         (extract_range_from_comparison): Likewise.
15630
15631 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15632
15633         * toplev.c (print_version): Output GMP/MPFR version info.
15634
15635         * builtins.c (CASE_MATHFN_REENT): New macro.
15636         (mathfn_built_in): Use it.
15637         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
15638         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
15639         BUILT_IN_LGAMMAL_R): New.
15640         * doc/extend.texi: Document new builtins.
15641
15642         PR middle-end/31796
15643         * builtins.c (do_mpfr_remquo): New.
15644         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
15645         (fold_builtin_3): Handle BUILT_IN_REMQUO.
15646
15647         PR middle-end/30251
15648         * builtins.c (fold_builtin_1): Handle y0, y1.
15649         (fold_builtin_2): Handle yn.
15650
15651         PR middle-end/30251
15652         * builtins.c (do_mpfr_bessel_n): New.
15653         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
15654         (fold_builtin_2): Handle BUILT_IN_JN.
15655
15656 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
15657
15658         PR target/31965
15659         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
15660         TYPE_PRECISION (intmax_type_node).
15661
15662 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
15663
15664         PR target/31850
15665         * reload.c (subst_reloads): Remove checking.
15666
15667 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
15668
15669         PR rtl-optimization/31691
15670         * combine.c (simplify_set): Build a new src pattern instead of
15671         substituting its operands in the COMPARE case.
15672
15673 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
15674
15675         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
15676         (execute_vrp): Preserve loops through jump threading.
15677         * tree-ssa-threadupdate.c (thread_single_edge,
15678         dbds_continue_enumeration_p, determine_bb_domination_status,
15679         thread_through_loop_header): New functions.
15680         (create_edge_and_update_destination_phis,
15681         create_edge_and_update_destination_phis): Set loops for the new blocks.
15682         (prune_undesirable_thread_requests): Removed.
15683         (redirect_edges): Do not pretend that redirect_edge_and_branch can
15684         create new blocks.
15685         (thread_block): Do not call prune_undesirable_thread_requests.
15686         Update loops.
15687         (mark_threaded_blocks): Select edges to thread here.
15688         (thread_through_all_blocks): Take may_peel_loop_headers argument.
15689         Thread edges through loop headers independently.
15690         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
15691         * tree-pass.h (TODO_mark_first_instance): New.
15692         (first_pass_instance): Declare.
15693         * cfghooks.c (duplicate_block): Put the block to the original loop
15694         if copy is not specified.
15695         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
15696         jump threading.  Pass may_peel_loop_headers to
15697         thread_through_all_blocks according to first_pass_instance.
15698         * cfgloop.h (create_preheader): Declare.
15699         * tree-flow.h (thread_through_all_blocks): Declaration changed.
15700         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
15701         * passes.c (first_pass_instance): New variable.
15702         (next_pass_1): Set TODO_mark_first_instance.
15703         (execute_todo): Set first_pass_instance.
15704
15705 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
15706
15707         PR tree-optimization/24659
15708         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
15709         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
15710         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
15711         OTI_vec_pack_ufix_trunc.
15712         (vec_unpacks_float_hi_optab): Define new macro.
15713         (vec_unpacks_float_lo_optab): Ditto.
15714         (vec_unpacku_float_hi_optab): Ditto.
15715         (vec_unpacku_float_lo_optab): Ditto.
15716         (vec_pack_sfix_trunc_optab): Ditto.
15717         (vec_pack_ufix_trunc_optab): Ditto.
15718         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
15719         and vec_pack_[s|u]fix_trunc_optab using
15720         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
15721         * tree-vectorizer.c (supportable_widening_operation): Handle
15722         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
15723         (supportable_narrowing_operation): New function.
15724         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
15725         * tree-vect-transform.c (vectorizable_conversion): Handle
15726         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
15727         (vect_gen_widened_results_half): Move before vectorizable_conversion.
15728         (vectorizable_type_demotion): Call supportable_narrowing_operation()
15729         to check for target support.
15730         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
15731         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
15732         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
15733         for VEC_PACK_FIX_TRUNC_EXPR.
15734         (expand_binop): Special case mode of the result for
15735         vec_pack_[u|s]fix_trunc_optab.
15736         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
15737         vec_pack_[u|s]fix_trunc_optab.
15738
15739         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
15740         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
15741         * tree-pretty-print.c (dump_generic_node): Handle
15742         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
15743         VEC_PACK_FIX_TRUNC_EXPR.
15744         (op_prio): Ditto.
15745         * expr.c (expand_expr_real_1): Ditto.
15746         * tree-inline.c (estimate_num_insns_1): Ditto.
15747         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15748
15749         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
15750         (vec_unpacks_float_lo_v8hi): Ditto.
15751         (vec_unpacku_float_hi_v8hi): Ditto.
15752         (vec_unpacku_float_lo_v8hi): Ditto.
15753         (vec_unpacks_float_hi_v4si): Ditto.
15754         (vec_unpacks_float_lo_v4si): Ditto.
15755         (vec_pack_sfix_trunc_v2df): Ditto.
15756
15757         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
15758         Document.
15759         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
15760         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
15761         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
15762         [vec_pack_ufix_trunc]: Ditto.
15763         [vec_unpacks_float_hi]: Ditto.
15764         [vec_unpacks_float_lo]: Ditto.
15765         [vec_unpacku_float_hi]: Ditto.
15766         [vec_unpacku_float_lo]: Ditto.
15767
15768 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
15769
15770         * soft-fp/README: Update for new files.
15771         * soft-fp/floattisf.c: New file.
15772         * soft-fp/floattidf.c: New file.
15773         * soft-fp/floattitf.c: New file.
15774         * soft-fp/floatuntisf.c: New file.
15775         * soft-fp/floatuntidf.c: New file.
15776         * soft-fp/floatuntitf.c: New file.
15777         * soft-fp/fixsfti.c: New file.
15778         * soft-fp/fixdfti.c: New file.
15779         * soft-fp/fixtfti.c: New file.
15780         * soft-fp/fixunssfti.c: New file.
15781         * soft-fp/fixunsdfti.c: New file.
15782         * soft-fp/fixunstfti.c: New file.
15783         * soft-fp/extendxftf.c: New file.
15784         * soft-fp/trunctfxf.c: New file.
15785
15786         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
15787         (__trunctfxf2): Ditto.
15788
15789         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
15790         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
15791         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
15792         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
15793         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
15794         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
15795
15796         * config/i386/t-fprules-softfp64: New file.
15797         * config/i386/sfp-machine.h: New file.
15798         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
15799         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
15800         and soft-fp/t-softfp to tmake_file.
15801         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15802         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
15803
15804         * config/i386/t-linux64 (softfp_wrap_start): New.
15805         (softfp_wrap_end): New.
15806         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
15807         supported for TARGET_64BIT.
15808
15809 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
15810
15811         * c-common.c (c_common_signed_or_unsigned_type): Emulate
15812         c_common_unsigned_type behavior.
15813
15814 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
15815
15816         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
15817         calls as pure.
15818
15819 2007-05-16  Eric Christopher  <echristo@apple.com>
15820
15821         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
15822         saving after stack push. Set sp_offset whenever we push.
15823         (rs6000_emit_epilogue): Move altivec register restore before
15824         stack push.
15825
15826 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
15827
15828         * configure.ac: Allow sysroots to be relocated under $prefix as
15829         well as $exec_prefix.
15830         * configure: Regenerate.
15831
15832 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
15833
15834         Revert:
15835
15836         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
15837
15838         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
15839         (gcc_tooldir): Likewise.
15840         * configure: Regenerate.
15841         * Makefile.in (libsubdir_to_prefix): New variable, based on the
15842         old configure.ac gcc_tooldir setting.
15843         (prefix_to_exec_prefix): New variable.
15844         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
15845         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
15846
15847 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
15848
15849         * c-typeck.c (build_binary_op): Return early for error.
15850
15851 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
15852
15853         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
15854         struct nb_iter_bound.
15855         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
15856         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
15857         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
15858         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
15859         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
15860         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
15861         (del_scev_info): Use ggc_free.
15862         (scev_initialize): Allocate scalar_evolution_info in gc memory.
15863         * loop-init.c: Include ggc.h.
15864         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
15865         (loop_optimizer_finalize): Use ggc_free.
15866         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
15867         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
15868         pass_iv_optimize): Add TODO_ggc_collect.
15869         * function.h (struct function): Remove skip marker from
15870         x_current_loops.
15871         * cfgloop.c: Include ggc.h.
15872         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
15873         memory.
15874         (establish_preds): Vector superloops is gc allocated.
15875         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
15876         loop->exits list.
15877         (flow_loops_find): Vector larray is gc allocated.
15878         (loop_exit_free): Use ggc_free.
15879         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
15880         that head of exits list is now not a part of struct loop.
15881         (record_loop_exits): Allocate exits table in gc memory.
15882         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
15883         that head of exits list is now not a part of struct loop.
15884         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
15885         struct loop_exit): Add GTY marker.
15886         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
15887         Add skip marker to aux field.  Make head of exits list a separate
15888         object.
15889         (struct loops): Add GTY marker.  Make larray vector gc allocated.
15890         Add param marker to exits table.
15891         (get_loops): Type changed.
15892         * Makefile.in (tree-scalar-evolution.o): Add
15893         gt-tree-scalar-evolution.h dependency.
15894         (cfgloop.o, loop-init.o): Add ggc.h dependency.
15895         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
15896         * basic-block.h (struct basic_block_def): Remove skip marker from
15897         loop_father field.
15898
15899 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
15900
15901         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
15902         of 0 in the call to expand_expr().
15903         (expand_builtin_mathfn_3): Ditto.
15904         (expand_builtin_interclass_mathfn): Ditto.
15905         (expand_builtin_cexpi): Ditto.
15906         (expand_builtin_int_roundingfn): Ditto.
15907         (expand_builtin_int_roundingfn_2): Ditto.
15908         (expand_builtin_pow): Ditto.
15909         (expand_builtin_powi): Ditto.
15910         (expand_builtin_bswap): Ditto.
15911         (expand_builtin_unop): Ditto.
15912         (expand_builtin_fabs): Ditto.
15913         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
15914         the call to expand_expr().
15915         (expand_builtin_sync_operation): Ditto.
15916         (expand_builtin_compare_and_swap): Ditto.
15917         (expand_builtin_lock_test_and_set): Ditto.
15918         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
15919         instead of 0 in the call to expand_expr().
15920         (expand_builtin_extract_return_addr): Ditto.
15921         (expand_builtin_eh_return): Ditto.
15922         (expand_eh_return): Ditto.
15923         * explow.c (expr_size): Ditto.
15924         * expr.c (optimize_bitfield_assignment_op): Ditto.
15925         (expand_assignement): Ditto.
15926         (store_expr): Ditto.
15927         (store_field): Ditto.
15928         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
15929         the call to expand_expr().
15930         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
15931         in the call to expand_expr().
15932         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
15933         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
15934         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
15935         of expand_expr().
15936         * optabs.c (expand_vec_shift_expr): Ditto.
15937         (expand_vec_cond_expr): Ditto.
15938         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
15939         call to expand_expr().
15940         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
15941         in the call to expand_expr().
15942
15943 2007-05-14  Dave Korn  <dave.korn@artimi.com>
15944
15945         * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
15946
15947 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
15948
15949         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
15950         instead of c_common_unsigned_type.
15951         (c_common_unsigned_type): Remove.
15952         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
15953         c_common_unsigned_type.
15954         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
15955         c_common_unsigned_type.
15956         * c-common.h (c_common_unsigned_type): Remove.
15957         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
15958         c_common_unsigned_type.
15959         * c-format.c (check_format_types): Use unsigned_type_for instead of
15960         c_common_unsigned_type.
15961         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
15962         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
15963         of c_common_unsigned_type.
15964         * convert.c (convert_to_integer): Use unsigned_type_for instead of
15965         lang_hooks.types.unsigned_type.
15966         * expmed.c (make_tree): Use unsigned_type_for instead of
15967         lang_hooks.types.unsigned_type.
15968         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
15969         lang_hooks.types.unsigned_type.
15970         (build_range_check): Likewise.
15971         (fold_unary): Likewise.
15972         (fold_binary): Likewise.
15973         (fold_ternary): Likewise.
15974         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
15975         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
15976         * tree.c (get_unsigned_type): New.
15977         (unsigned_type_for): Use get_unsigned_type instead of
15978         lang_hooks.types.unsigned_type.
15979
15980 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
15981
15982         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
15983         to m68k_get_function_kind.  Update its prototype.
15984         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
15985         interrupt_thread.
15986         (m68k_interrupt_function_p): Return enum m68k_function_type
15987         instead of bool.  Rename to m68k_get_function_kind.
15988         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
15989         target is not fido.
15990         (m68k_compute_frame_layout): Don't mark any register for save
15991         if an interrupt_thread attribute is specified.
15992         (m68k_hard_regno_rename_ok): Update a use of
15993         m68k_interrupt_function_p.
15994         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
15995         m68k_interrupt_function_p.
15996         (m68k_function_type): New.
15997         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
15998         for a function with an interrupt_thread attribute.
15999         * doc/extend.texi: Document the interrupt_thread attribute.
16000
16001 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
16002
16003         Fix PR tree-optimization/31911
16004         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
16005         if they didn't change the expression.
16006
16007 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
16008
16009         * tree-scalar-evolution.c (resolve_mixers): Exported.
16010         * tree-scalar-evolution.h (resolve_mixers): Declare.
16011         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
16012         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
16013         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
16014         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
16015         init_array_ref, init_pointer_ref, analyze_indirect_ref,
16016         strip_conversion, analyze_offset_expr, address_analysis,
16017         object_analysis, analyze_offset): Removed.
16018         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
16019         split_constant_offset, canonicalize_base_object_address,
16020         object_address_invariant_in_loop_p, disjoint_objects_p,
16021         dr_may_alias_p, dr_address_invariant_p): New functions.
16022         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
16023         and dr_analyze_alias.
16024         (initialize_data_dependence_relation): Use dr_may_alias_p
16025         and object_address_invariant_in_loop_p.
16026         (compute_self_dependence): Handle the case when
16027         DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
16028         (find_data_references_in_stmt): Restrict the analysis of data
16029         references to the given loop nest.
16030         (find_data_references_in_loop): Made static.  Pass loop nest to
16031         find_data_references_in_stmt.
16032         (compute_data_dependences_for_loop): Use DR_VOPS.
16033         (free_data_ref): Free DR_VOPS.
16034         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
16035         (struct innermost_loop_behavior): ... new.
16036         (struct base_object_info): Replaced by ...
16037         (struct indices): ... new.
16038         (struct dr_alias): New.
16039         (enum data_ref_type): Removed.
16040         (struct data_reference): Consist of struct innermost_loop_behavior,
16041         struct indices and struct dr_alias.
16042         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
16043         (DR_MEMTAG): Renamed to ...
16044         (DR_SYMBOL_TAG): ... this.
16045         (find_data_references_in_loop): Declaration removed.
16046         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
16047         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
16048         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
16049         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
16050
16051 2007-05-13  Revital Eres  <eres@il.ibm.com>
16052
16053         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
16054         which walks virtual def-use chains to find redundant stores.
16055         (dse_optimize_stmt): Call it.
16056
16057 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
16058
16059         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
16060         * passes.c (init_optimization_passes): Move pass_jump_bypass
16061         after loop2.
16062
16063         * basic-block.h (bb_has_eh_pred): Fix style issue.
16064
16065 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
16066
16067         PR rtl-optimization/31848
16068         * loop-invariant.c (move_invariant_reg): If we move an insn
16069         with a REG_EQUAL note, and that insn is not always executed,
16070         remove the REG_EQUAL note.
16071
16072 2007-05-12  Richard Guenther  <rguenther@suse.de>
16073
16074         PR tree-optimization/31797
16075         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
16076         propagate into a stmt that has volatile ops.
16077
16078 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
16079
16080         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
16081         (gcc_tooldir): Likewise.
16082         * configure: Regenerate.
16083         * Makefile.in (libsubdir_to_prefix): New variable, based on the
16084         old configure.ac gcc_tooldir setting.
16085         (prefix_to_exec_prefix): New variable.
16086         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
16087         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
16088
16089 2007-05-11  Silvius Rus  <rus@google.com>
16090
16091         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
16092         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
16093         * c-common.h (strict_aliasing_warning): Change return type.
16094         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
16095         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
16096         (build_c_cast): Condition call to strict_aliasing_warning.
16097         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
16098         * flags.h (set_Wstrict_aliasing): Declare.
16099         * opts.c (set_Wstrict_alising): Define, add call to.
16100         * tree-flow.h (strict_aliasing_warning_backend): Declare.
16101         * tree-ssa-alias-warnings.c: New file.
16102         * tree-ssa-alias.c (compute_may_aliases): Add call to
16103         strict_aliasing_warning_backend.
16104
16105 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
16106
16107         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
16108         Use loop_depth and loop_outer accessor functions.
16109         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
16110         determine_invariantness_stmt, move_computations_stmt): Ditto.
16111         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
16112         add_loop, loopify, unloop, fix_loop_structure): Ditto.
16113         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
16114         * tree-scalar-evolution.c (interpret_loop_phi,
16115         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
16116         instantiate_parameters_1, scev_const_prop): Ditto.
16117         * cfghooks.c (make_forwarder_block): Ditto.
16118         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
16119         * modulo-sched.c (loop_canon_p): Ditto.
16120         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
16121         slpeel_can_duplicate_loop_p): Ditto.
16122         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
16123         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
16124         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
16125         cancel_loop, verify_loop_structure): Ditto.
16126         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
16127         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
16128         superloops vector instead of "pred" array.
16129         (establish_preds): Take father loop as an argument.  Initialize the
16130         superloops vector.
16131         (flow_loop_tree_node_add): Pass father loop to establish_preds.
16132         Do not initialize loop->outer.
16133         (flow_loop_tree_node_remove): Truncate the superloops vector.
16134         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
16135         "pred" merged to "superloops" vector.
16136         (loop_depth, loop_outer): New.
16137         (fel_init): Use loop_outer.
16138
16139 2007-05-11  Jan Hubicka  <jh@suse.cz>
16140
16141         * cgraphunit.c: Include gt-cgraphunit.h
16142         (static_ctors, static_dtors): New static vars.
16143         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
16144         based on implementation in c-common.c
16145         (cgraph_finalize_function): Call record_cdtor_fn.
16146         (cgraph_optimize): Call cgraph_build_cdtor_fns.
16147         * decl.c (finish_function): Do not call c_record_cdtor_fn.
16148         (c_write_global_declarations): Do not call c_build_cdtor_fns.
16149         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
16150         build_cdtor, c_build_cdtor_fns): Remove.
16151         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
16152         c_build_cdtor_fns): Remove prototype.
16153
16154 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
16155
16156         PR other/31852
16157         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
16158         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
16159         * builtins.c (fold_builtin_memchr): New.
16160         (expand_builtin_memchr): Call the latter.
16161         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
16162         * doc/extend.texi ([Other built-in functions provided by GCC]):
16163         Document memchr.
16164
16165 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
16166
16167         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
16168         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
16169         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
16170         PFPO_OP1_TYPE_SHIFT): Constants added.
16171         (DFP_ALL): Mode macro defined.
16172         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
16173         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
16174         Insn definitions added.
16175         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
16176         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
16177         Expanders added.
16178
16179 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
16180
16181         PR tree-optimization/31885
16182         * tree-chrec.c (chrec_contains_undetermined): Do not consider
16183         NULL_TREE to be undetermined.
16184         (automatically_generated_chrec_p): Return false for NULL.
16185
16186 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
16187
16188         * config/bfin/bfin.h (MOVE_RATIO): Define.
16189
16190 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
16191
16192         * config.gcc (sparc-wrs-vxworks): New target.
16193         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
16194         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
16195         * config/sparc/sparc.h: Include vxworks-dummy.h.
16196         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
16197         include LABEL_REFs too.
16198         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
16199         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
16200         VxWorks.
16201         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
16202         on VxWorks.
16203         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
16204         (sparc_emit_call_insn): New function.
16205         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
16206         functions when generating VxWorks PIC.
16207         * config/sparc/sparc.md (vxworks_load_got): New pattern.
16208         (call, call_value): Use sparc_emit_call_insn instead of
16209         emit_call_insn.
16210
16211 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
16212
16213         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
16214
16215 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
16216
16217         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
16218         for floating-point values if HOST_BITS_PER_LONG > 32.  Use
16219         split_double instead of operand_subword.
16220
16221 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
16222
16223         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
16224         * config/bfin/bfin.c (bfin_local_alignment): New function.
16225         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
16226
16227 2007-05-08  Chao-ying Fu  <fu@mips.com>
16228
16229         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
16230         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
16231         (smsub_widen_optab, umsub_widen_optab): Define.
16232         * optabs.c (init_optabs): Initialize smsub_widen_optab and
16233         umsub_widen_optab.
16234         * genopinit.c (optabs): Fill in smsub_widen_optab and
16235         umsub_widen_optab.
16236         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
16237         and umsub_widen_optab to implement multiply-subtract sequences.
16238         * config/mips/mips.md (*msac<u>_di): Rename to...
16239         (<u>msubsidi4): ...this.  Extend condition to include
16240         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
16241         of operand 0 to "ka" and use the three-operand form of msub<u>
16242         for TARGET_DSPR2.
16243         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
16244         to define_expands.
16245
16246 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16247
16248         PR rtl-optimization/28011
16249         * reload.c (push_reload): Set dont_share if IN appears in OUT
16250         also when IN is a PLUS rtx.
16251         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
16252         are same PLUS rtx.
16253
16254 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
16255
16256         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
16257         call unshare_all_decls.
16258         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
16259         (unshare_all_decls): Remove.
16260
16261 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
16262
16263         PR 31847
16264         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
16265         dumps.
16266
16267 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
16268             Nigel Stephens  <nigel@mips.com>
16269
16270         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
16271         Update comments and all uses.
16272         (MIN_FPRS_PER_FMT): Define.
16273         * config/mips/mips.c (function_arg): Fix to correctly handle
16274         the -mips32r2 -mfp64 -mabi=32 case.
16275         (override_options): Enable use of odd-numbered registers for
16276         SFmode values on MIPS32.
16277         (mips_save_reg_p): Save whole floating-point register pair if
16278         either half is used.
16279         (compute_frame_size): Fix comment.
16280
16281 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
16282
16283         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
16284         argument of type bool.
16285         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
16286         argument. Safely select temporary P register according to it.
16287         (do_link): Change call site of add_to_reg accordingly.
16288         (do_unlink): Add epilogue_p as a fourth argument and pass it
16289         to add_to_reg.
16290         (expand_interrupt_handler_epilogue): Change call of do_unlink
16291         accordingly.
16292         (bfin_expand_prologue): Add a third argument sibcall_p.
16293         * config/bfin/bfin.md (epilogue): Change call of
16294         bfin_expand_epilogue accordingly.
16295         (sibcall_epilogue): Likewise.
16296         (eh_return_internal): Likewise.
16297
16298         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
16299         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
16300         * config/bfin/bfin.c (bfin_handle_option): Handle
16301         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
16302         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
16303         Support bf534, bf536 and bf561.
16304         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
16305
16306 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
16307
16308         PR target/31854
16309         * config/i386/i386.c (ix86_function_regparm): Process local
16310         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
16311
16312 2007-05-07  Mike Stump  <mrs@apple.com>
16313
16314         * doc/invoke.texi (Warning Options): Document that -Wempty-body
16315         also checks for and while statements in C++.
16316
16317 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
16318
16319         * gcc.c (at_file_supplied): New variable.
16320         (main): Set it if we expanded argv.
16321         (do_spec_1): Pass an @-file to the linker if we were called with
16322         an @-file argument and HAVE_GNU_LD.
16323         * collect2.c (at_file_supplied): New variable.
16324         (response_file): New variable.
16325         (collect_exit): Unlink response_file if necessary.
16326         (handler): Likewise.
16327         (do_wait): Likewise.
16328         (main): Set at_file_supplied if we expanded argv.
16329         (collect_execute): Pass an @-file to subprocesses if we were called
16330         with an @-file argument.
16331         * configure.ac: Add define for HAVE_GNU_LD.
16332         * configure: Regenerate.
16333         * config.in: Regenerate.
16334
16335 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
16336
16337         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
16338         operand to HI mode.
16339         (mulsi3): New.
16340         (divsi3): New.
16341         (udivsi3): New.
16342
16343 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
16344
16345         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
16346         (TARGET_ENCODE_SECTION_INFO): Re-define.
16347         (m32c_encode_section_info): New
16348         (function_vector_handler): New
16349         (current_function_special_page_vector): New
16350         (m32c_special_page_vector_p): New.
16351         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
16352         Prototype.
16353         * config/m32c/jump.md: Added instruction JSRS for functions
16354         with attribute "function_vector".
16355         * doc/extend.texi (function_vector): Added description
16356         for M16C, M32C targets.
16357
16358 2007-05-07  DJ Delorie  <dj@redhat.com>
16359
16360         PR 31794
16361         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
16362         ashrpsi3, lshrpsi3): Update shift count constraint.
16363
16364 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
16365             Nathan Froyd  <froydnj@codesourcery.com>
16366
16367         PR 22133
16368         * c-incpath.c (add_path): Strip trailing path separators.
16369
16370 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16371
16372         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
16373         Free dominance info before purging EH edges.
16374         (eliminate_degenerate_phis): Likewise.
16375         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
16376
16377 2007-05-07  Jan Hubicka  <jh@suse.cz>
16378
16379         * gimplify.c (gimplify_expr): Do not crash when folding
16380         (void *)(int)&a + 4.
16381
16382 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16383
16384         PR driver/31694
16385         * c-opts.c (lang_fortran): Make it non static.
16386         * c-common.h (lang_fortran): New prototype.
16387         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
16388         -lang-fortran option was passed by the driver.
16389
16390 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
16391
16392         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
16393         of ASSERT_CHECKING.  Tweak message.
16394
16395 2007-05-06  Revital Eres  <eres@il.ibm.com>
16396
16397         PR 30957
16398         * loop-unroll.c (insert_var_expansion_initialization):
16399         Initialize the expansions with -zero instead of +zero.
16400
16401 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
16402
16403         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
16404         into pic and non-pic versions. Mark r19 as used for
16405         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
16406         for tgd_load, tld_load and tie_load .
16407         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
16408         version of tgd_load, tld_load and tie_load depending on the
16409         value of flag_pic.
16410
16411 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
16412             Jakub Jelinek  <jakub@redhat.com>
16413
16414         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
16415         (__do_global_dtors_aux): Use more paranoid loop to run
16416         destructors if HIDDEN_DTOR_LIST_END.
16417         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
16418
16419 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
16420
16421         * varasm.c (align_variable): Don't increase alignment for
16422         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
16423         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
16424
16425 2007-05-04  Josh Conner  <jconner@apple.com>
16426
16427         * basic-block.h (cdi_direction): Assign values to all enumeration
16428         constants.
16429         (dom_computed): Remove.
16430         (dom_info_state): New.
16431         (set_dom_info_availability): New.
16432         * tree-ssa-loop-im.c (determine_invariantness): Initialize
16433         walk_data.dom_direction.
16434         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
16435         instead of dom_computed[].
16436         (split_edge): Likewise.
16437         (create_basic_block): Likewise.
16438         (merge_blocks): Likewise.
16439         * ifcvt.c (find_if_header): Likewise.
16440         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
16441         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
16442         * tree-ssa.c (verify_ssa): Likewise.
16443         * tree-cfg.c (tree_verify_flow_info): Likewise.
16444         (remove_edge_and_dominated_blocks): Likewise.
16445         * dominance.c (dom_computed): Make static.
16446         (calc_dfs_tree_nonrec): Change third param to a bool.
16447         (calc_dfs_tree): Change second param to a bool.
16448         (calc_idioms): Change second param to a bool.  Use
16449         dom_convert_dir_to_idx.
16450         (init_dom_info): Validate dir before using.
16451         (dom_convert_dir_to_idx): New.
16452         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
16453         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
16454         (free_dominance_info): Use dom_convert_dir_to_idx.
16455         (get_immediate_dominator): Likewise.
16456         (set_immediate_dominator): Likewise.
16457         (get_dominated_by): Likewise.
16458         (redirect_immediate_dominators): Likewise.
16459         (nearest_common_denominator): Likewise.
16460         (dominated_by_p): Likewise.
16461         (bb_dom_dfs_in): Likewise.
16462         (bb_dom_dfs_out): Likewise.
16463         (recount_dominator): Likewise.
16464         (iterate_fix_dominators): Likewise.
16465         (add_to_dominance_info): Likewise.
16466         (delete_from_dominance_info): Likewise.
16467         (first_dom_son): Likewise.
16468         (next_dom_son): Likewise.
16469         (dom_info_available_p): Likewise.
16470         (dom_info_state): New.
16471         (set_dom_info_availability): New.
16472
16473 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
16474
16475         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
16476         Expander removed.
16477         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
16478
16479 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
16480
16481         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
16482         (subdi3, subdi_carry): Delete.
16483
16484 2007-05-04  Jan Hubicka  <jh@suse.cz>
16485             Richard Guenther  <rguenther@suse.de>
16486
16487         * opts.c (decode_options): Do not fiddle with inlining
16488         parameters in case of optimizing for size.
16489         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
16490         for size do nothing.
16491         (cgraph_decide_inlining_of_small_function): When optimizing for
16492         size never inline functions increasing caller size.
16493         (cgraph_early_inlining): Inline for size when optimizing for size.
16494
16495 2007-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
16496
16497         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
16498         logical operations piecewise.
16499         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
16500         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
16501         subdi_sesidi_di): Delete.
16502         (add_with_carry): Produce carry in CC instead of a DREG to shorten
16503         the generated sequence.  Allow three-reg add in constraints.  Rewrite
16504         the rtl expression for carry to avoid zero_extend of a constant.
16505         (sub_with_carry): New pattern.
16506         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
16507         different sequence not involving jumps.
16508         (notbi): Now a named pattern.
16509
16510 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
16511
16512         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
16513         Add the note about a significant loss of accuracy of some
16514         mathematical routines when these options are used.
16515
16516 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
16517
16518         * haifa-sched.c (rtx_vec_t): New typedef.
16519         (contributes_to_priority_p): Extract piece of priority () into new
16520         static function.
16521         (priority): Use the function.  Add assertion.
16522         (rank_for_schedule, set_priorities): Add assertion to check that
16523         insn's priority is initialized.
16524         (clear_priorities, calc_priorities): Change signature.  Make it update
16525         all relevant insns.  Update all callers ('add_to_speculative_block ()'
16526         and 'create_block_check_twin ()').
16527         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
16528         Add new field 'priority_status'.
16529         (INSN_PRIORITY_STATUS): New macro.
16530         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
16531
16532 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
16533
16534         * sched-ebb.c (debug_ebb_dependencies): New static function.
16535         (init_ready_list): Use it.
16536
16537         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
16538         with changed signature and 'debug_rgn_dependencies ()'.
16539         (debug_rgn_dependencies): New static function.
16540         (init_ready_list): Use it.
16541
16542         * sched-int.h (debug_dependencies): Declare.
16543
16544 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
16545
16546         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
16547
16548 2007-05-04  Dirk Mueller  <dmueller@suse.de>
16549
16550         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
16551
16552 2007-05-03  Jan Hubicka  <jh@suse.cz>
16553
16554         * fold-const.c (fold_unary): Convert (T1)(X op Y) into
16555         ((T1)X op (T1)Y), for pointer type in more cases than before.
16556
16557         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
16558
16559         * tree-object-size.c (plus_expr_object_size): When operand size is
16560         unknown, return unknown.
16561
16562 2007-05-03  Dirk Mueller  <dmueller@suse.de>
16563
16564         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
16565
16566         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
16567         options.
16568
16569         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
16570
16571 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
16572
16573         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
16574
16575 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
16576
16577         * config/soft-fp/double.h, config/soft-fp/extended.h,
16578         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
16579         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
16580         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
16581         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
16582         glibc CVS.
16583
16584 2007-05-03  Ian Lance Taylor  <iant@google.com>
16585
16586         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
16587         MASK_PPC_GFXOPT for 8540 or 8548.
16588
16589 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
16590
16591         * tree-vect-transform.c (vect_update_inits_of_drs): Use
16592         vect_print_dump_info() to output debug information.
16593
16594 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
16595
16596         PR target/31768
16597         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
16598         operands of size 2 when operand is not MEM_P.
16599
16600 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
16601
16602         PR tree-optimization/30565
16603         * lambda-code.c (perfect_nestify): Fix updating of dominators.
16604
16605 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
16606
16607         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
16608         (umulsi3_highpart): Use them.
16609         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
16610         for final accumulator to D regisster tranfser.
16611
16612 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
16613
16614         PR tree-optimization/31699
16615         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
16616         wrong code.
16617         (vect_enhance_data_refs_alignment): Compute peel amount using
16618         TYPE_VECTOR_SUBPARTS instead of vf.
16619         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
16620
16621 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
16622
16623         PR bootstrap/31776
16624         * system.h: Remove inclusion of double-int.h
16625         * tree.h: Include double-int.h
16626         * gengtype.c: Likewise
16627         * cfgloop.h: Likewise
16628         * Makefile.in: Adjust dependencies on double-int.h
16629
16630 2007-05-02  Eric Christopher  <echristo@apple.com>
16631
16632         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
16633         -shared to -Zdynamiclib.
16634
16635 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
16636
16637         PR c++/31663
16638         * c-common.c (strip_pointer_or_array_types): New function.
16639         * c-common.h (strip_pointer_or_array_types): New function declaration.
16640
16641 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
16642
16643         PR tree-optimization/31771
16644         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
16645
16646 2007-05-02  Paul Brook  <paul@codesourcery.com>
16647
16648         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
16649
16650 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16651
16652         PR middle-end/29715
16653         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
16654         transformation.
16655
16656 2007-05-02  Nick Clifton  <nickc@redhat.com>
16657
16658         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
16659
16660 2007-05-02  Richard Guenther  <rguenther@suse.de>
16661
16662         PR tree-optimization/31146
16663         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
16664         argument, single_use_p.  If we have a single use that is
16665         a conversion to the definition rhs type, propagate that rhs.
16666         (forward_propagate_addr_expr): Pass single_use_p argument
16667         to forward_propagate_addr_expr_1.
16668
16669 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16670
16671         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
16672         variable.
16673
16674 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16675
16676         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
16677         'AMD Family 10 core'.
16678
16679 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16680
16681         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
16682         and athlon64-sse3 as improved versions of k8, opteron and athlon64
16683         with SSE3 instruction set support.
16684         * doc/invoke.texi: Likewise.
16685
16686 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16687
16688         * config/i386/i386.c (override_options): Tuning 32-byte loop
16689         alignment for amdfam10 architecture. Increasing the max loop
16690         alignment to 24 bytes.
16691
16692 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
16693
16694         * config/m68k/constraints.md: New.
16695         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
16696         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
16697         EXTRA_CONSTRAINT): Remove.
16698         * config/m68k/m68k.md: Include constraints.md.
16699         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
16700
16701 2007-05-01  Ian Lance Taylor  <iant@google.com>
16702
16703         PR tree-optimization/31739
16704         * tree-vrp.c (vrp_val_is_max): New static function.
16705         (vrp_val_is_min): New static function.
16706         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
16707         copying the node.
16708         (set_value_range): Use vrp_val_is_{max,min}.
16709         (extract_range_from_assert): Likewise.
16710         (extract_range_from_binary_expr): Likewise.
16711         (extract_range_from_unary_expr): Likewise.
16712         (dump_value_range, vrp_meet): Likewise.
16713         (vrp_visit_phi_node): Likewise.
16714         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
16715
16716 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
16717
16718         * config/i386/gmon-sol2.c (size_t): New type.
16719         (intptr_t): Likewise.
16720         (s_textsize): Declare as size_t.
16721         (sbrk): Declare.
16722         (monstartup): Use size_t for sizes.
16723         (_mcount): Save and restore registers.
16724         (internal_mcount): Pass 0 as the first argument to monstartup
16725         in 64-bit mode.
16726         (moncontrol): Convert pointer to appropriately sized integer
16727         before passing to profil.
16728
16729 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
16730
16731         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
16732         __NO_FPRS__, not just if _SOFT_DOUBLE.
16733         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
16734         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
16735         also for E500 double.
16736         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
16737         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
16738         && !TARGET_FPRS).
16739
16740 2007-05-01  Richard Guenther  <rguenther@suse.de>
16741
16742         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
16743         is NULL.
16744
16745 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
16746
16747         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
16748
16749 2007-05-01  Jan Hubicka  <jh@suse.cz>
16750
16751         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
16752         invariant.
16753
16754 2007-05-01  Jan Hubicka  <jh@suse.cz>
16755
16756         * tree.h (maybe_fold_offset_to_component_ref): Remove.
16757         (maybe_fold_offset_to_reference): Declare.
16758         * fold-const.c (fold_unary): Do not fold
16759         (type *)&A into &A->field_of_type_and_offset_0
16760         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
16761         size is unknown, give up.
16762         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
16763         offsets.
16764         (maybe_fold_offset_to_reference): New.
16765         (maybe_fold_stmt_indirect): Use it.
16766         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
16767         * gimplify.c (gimplify_conversion): Canonicalize conversions to
16768         field references.
16769         (gimplify_expr): Likewise for plus_expr.
16770
16771 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
16772
16773         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
16774         bsi_after_labels.  Always insert statements before bsi.
16775         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
16776         * predict.c (apply_return_prediction): Check for empty blocks.
16777         * cfgexpand.c (lab_rtx_for_bb): New variable.
16778         (label_rtx_for_bb): Do not create new tree labels.
16779         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
16780         (tree_expand_cfg): Initialize lab_rtx_for_bb.
16781         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
16782         creating edges.
16783         (label_for_bb): Add field used.
16784         (update_eh_label, main_block_label): Mark the label used.
16785         (cleanup_dead_labels): Remove unused labels.
16786
16787 2007-05-01  Richard Guenther  <rguenther@suse.de>
16788
16789         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
16790         if it is not about to be set.
16791         (get_value_range): Do not pre-allocate equiv bitmap.
16792         (update_value_range): No need to clear equiv field.
16793         (add_equivalence): Change prototype to get bitmap pointer.
16794         Allocate bitmap here if it is not already.
16795         (extract_range_from_assert): Do not allocate bitmap here.
16796         Update callers to add_equivalence.
16797         (extract_range_from_ssa_name): Likewise.
16798         (get_vr_for_comparison): New static helper.
16799         (compare_name_with_value): Handle NULL equiv bitmap by
16800         peeling the first iteration of the comparison loop.
16801         Use get_vr_for_comparison.
16802         (compare_names): Handle NULL equiv bitmaps by using fake
16803         ones.  Use get_vr_for_comparison.
16804
16805 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
16806
16807         * double-int.c (mpz_set_double_int): Moved from
16808         tree-ssa-loop-niter.c.
16809         (mpz_get_double_int): Likewise; also, add option to wrap
16810         out-of-range integers.
16811         * double-int.h: New prototypes for above.
16812         * tree.c (get_static_type_bounds): Moved from
16813         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
16814         TYPE_MAX_VALUE if they exist..
16815         * tree.h: New prototype for above.
16816         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
16817         get_type_bounds calls.
16818         (mpz_set_double_int): Move to double-int.c.
16819         (get_type_bounds): Move to tree.c, rename to
16820         get_static_type_bounds.
16821         (mpz_to_double_int): Move to double-int.c, rename to
16822         mpz_get_double_int.
16823
16824 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
16825
16826         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
16827         DIV0 exception can fall through to a normal return.
16828
16829 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
16830
16831         PR middle-end/22156
16832         Temporarily revert:
16833         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
16834         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
16835         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
16836         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
16837         initialize align to silence bogus warning.
16838         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
16839         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
16840         all_no_warning.
16841         (struct sra_walk_fns): Remove use_all parameter from use.
16842         (sra_hash_tree): Handle BIT_FIELD_REFs.
16843         (sra_elt_hash): Don't hash bitfld blocks.
16844         (sra_elt_eq): Skip them in parent compares as well.  Handle
16845         BIT_FIELD_REFs.
16846         (sra_walk_expr): Don't maintain or pass down use_all_p.
16847         (scan_use): Remove use_all parameter.
16848         (scalarize_use): Likewise.  Re-expand assignment to
16849         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
16850         output, and re-scalarize after output.  Don't mark anything
16851         for no warning.
16852         (scalarize_ldst): Adjust.
16853         (scalarize_walk_gimple_modify_statement): Likewise.
16854         (build_element_name_1): Handle BIT_FIELD_REFs.
16855         (instantiate_element): Don't warn for any element whose parent
16856         is used as a whole.
16857         (instantiate_missing_elements_1): Return the sra_elt.
16858         (canon_type_for_field): New.
16859         (try_instantiate_multiple_fields): New.
16860         (instantiate_missing_elemnts): Use them.
16861         (mark_no_warning): Removed.
16862         (generate_one_element_ref): Handle BIT_FIELD_REFs.
16863         (REPLDUP, sra_build_elt_assignment): New.
16864         (generate_copy_inout): Use them.
16865         (generate_element_copy): Likewise.  Handle bitfld differences.
16866         (generate_element_zero): Don't recurse for blocks.  Use
16867         sra_build_elt_assignment.
16868         (generate_one_element_int): Take elt instead of var.  Use
16869         sra_build_elt_assignment.
16870         (generate_element_init_1): Adjust.
16871         (scalarize_use, scalarize_copy): Use REPLDUP.
16872         (scalarize_ldst): Move assert before dereference.
16873         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
16874
16875 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16876
16877         PR C++/31721
16878         * tree.c (reconstruct_complex_type): Reconstruct a reference
16879         correctly.
16880         Also use the same mode for the pointer as the old pointer type.
16881
16882 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
16883
16884         * doc/trouble.texi (Interoperation): Remove note about Ultrix
16885         Fortran compiler.
16886
16887 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
16888
16889         PR rtl-optimization/31676
16890         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
16891         (df_refs_record): Call it.
16892
16893 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
16894
16895         * rtl.def (SS_ABS): New code.
16896         * config/bfin/bfin.c (print_operand): New modifier 'v'.
16897         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
16898         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
16899         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
16900         (bfin_init_builtins): Define them.
16901         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
16902         (bfin_expand_builtin): ... and handle the others here.
16903         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
16904         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
16905         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
16906         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
16907         operand is only HImode.
16908
16909 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
16910
16911         * regclass.c (scan_one_insn): Remove splitting of
16912         two address insns.
16913
16914 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
16915             Nigel Stephens  <nigel@mips.com>
16916
16917         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
16918
16919 2007-04-28  Jan Hubicka  <jh@suse.cz>
16920
16921         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
16922         insn_locators_alloc instead of insn_locators_initialize;
16923         call reset_block_changes.
16924         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16925         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
16926         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
16927         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16928         * config/score/score.c (th_output_mi_thunk): Likewise.
16929         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16930         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
16931         tolerate uninitialized locator info.
16932
16933         Re-apply:
16934         * function.c (init_function_start): Don't init line number info.
16935         (expand_function_end): Update.
16936         (reset_block_changes, record_block_change, finalize_block_changes,
16937         check_block_change, free_block_changes): Kill.
16938         * function.h (reset_block_changes, record_block_change,
16939         finalize_block_changes, check_block_change, free_block_changes):
16940         Remove prototypes.
16941         (struct function): Remove ib_boundaries_block.
16942         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
16943         Use curr_insn_locator to initialize locator.
16944         (emit_line_note): Remove.
16945         * cfgexpand.c (expand_gimple_cond_expr): Update.
16946         (construct_exit_block): Likewise.
16947         (tree_expand_cfg): Initialize/finalize locators.
16948         * expr.c (expand_expr_real): Update.
16949         * cfglayout.c (line_locators_locs, line_locators_lines,
16950         file_locators_locs, file_locators_files): Remove.
16951         (set_block_levels): Move to cfgexpand.c.
16952         (insn_locators_initialize): Remove.
16953         (pass_insn_locators_initialize): Remove.
16954         (locations_locators_locs, locations_locators_vals): New static vars.
16955         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
16956         Likewise.
16957         (insn_locators_alloc, insn_locators_finalize,
16958         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
16959         New functions.
16960         (locator_location): New.
16961         (locator_line, locator_file): Rewrite.
16962         * rtl.h (emit_line_note): Kill.
16963         (insn_locators_alloc, insn_locators_finalize,
16964         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
16965         Declare.
16966         * tree-inline.c (initialize_cfun): Do not initialize
16967         ib_boundaries_block.
16968         * passes.c (pass_insn_locators_initialize): Remove.
16969
16970 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
16971
16972         * tree-cfg.c (move_block_to_fn): Release bb from dominance
16973         info.  Update last_basic_block correctly.
16974
16975 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
16976
16977         PR target/31701
16978         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
16979         register itself to hold the offset constant.  Tell flow the use
16980         of r4 and r5 when they are used.
16981
16982 2007-04-27  Richard Guenther  <rguenther@suse.de>
16983
16984         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
16985         if we simplified anything.
16986         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
16987         warnings until we did a simplification and the stmt was not
16988         marked as TREE_NO_WARNING.
16989
16990 2007-04-27  Mike Stump  <mrs@apple.com>
16991
16992         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
16993
16994 2007-04-27  Ian Lance Taylor  <iant@google.com>
16995
16996         PR middle-end/31710
16997         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
16998         TYPE_MAX_VALUE exist, convert them to the new type.
16999
17000 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17001
17002         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
17003         if it claims to be available.
17004         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
17005         edge is redirected.
17006         (perform_tree_ssa_dce): Always free postdominators.
17007
17008 2007-04-27  Richard Henderson  <rth@redhat.com>
17009
17010         * config/alpha/predicates.md (aligned_memory_operand): Mark
17011         as define_special_predicate.
17012         (unaligned_memory_operand, normal_memory_operand): Likewise.
17013         (reg_or_unaligned_mem_operand): Remove.
17014         (any_memory_operand): Match the documentation and check for
17015         non-renumbered pseudos during reload.
17016         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
17017         alpha_secondary_reload_class, update to new interface, make static.
17018         Handle CQImode like HImode.  Remove FP subreg check.
17019         (alpha_expand_mov): Use replace_equiv_address.
17020         (alpha_expand_mov_nobwx): Use any_memory_operand.
17021         (TARGET_SECONDARY_RELOAD): New.
17022         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
17023         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
17024         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
17025         * config/alpha/alpha.md: ... here.
17026         (RELOAD12, reloadmode): New.
17027         (movcqi): New.
17028         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
17029         Don't handle the aligned case here.
17030         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
17031         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
17032         reload_inhi_help.  Don't expect a scratch register.
17033         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
17034         reload_outhi_help.
17035         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
17036
17037 2007-04-27  Richard Guenther  <rguenther@suse.de>
17038
17039         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
17040
17041 2007-04-27  Richard Guenther  <rguenther@suse.de>
17042
17043         PR tree-optimization/30965
17044         PR tree-optimization/30978
17045         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
17046         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
17047         (find_equivalent_equality_comparison): Likewise.
17048         (simplify_cond): Likewise.
17049         (get_prop_source_stmt): New helper.
17050         (get_prop_dest_stmt): Likewise.
17051         (can_propagate_from): Likewise.
17052         (remove_prop_source_from_use): Likewise.
17053         (combine_cond_expr_cond): Likewise.
17054         (forward_propagate_comparison): New function.
17055         (forward_propagate_into_cond): Rewrite to use fold for
17056         tree combining.
17057         (tree_ssa_forward_propagate_single_use_vars): Call
17058         forward_propagate_comparison to propagate comparisons.
17059
17060 2007-04-27  Richard Guenther  <rguenther@suse.de>
17061
17062         PR tree-optimization/31715
17063         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
17064         sure to do computation on the offset in an appropriate
17065         signed type.
17066
17067 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
17068
17069         * reload.h (elimination_target_reg_p): Declare.
17070         * reload.c (find_reloads): Don't apply the reg_rtx move
17071         optimization if the SET_DEST satisfies elimination_target_reg_p.
17072         * reload1.c (elimination_target_reg_p): New function.
17073         (gen_reload): In the move/add2 fallback, make sure that op0
17074         does not overlap the destination register.
17075
17076 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17077
17078         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
17079         transform only GIMPLE_MODIFY_STMTs.
17080         * tree-complex.c (expand_complex_operations_1): Ditto.
17081         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
17082         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
17083         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
17084         branches.
17085         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
17086         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
17087         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
17088         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
17089         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
17090         slpeel_add_loop_guard): Ditto.
17091         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
17092         * lambda-code.c (perfect_nestify): Ditto.
17093         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
17094         before the first statement.
17095         * tree-optimize.c (execute_free_datastructures): Fix comments.
17096         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
17097         * tree-flow.h (disband_implicit_edges): Declaration removed.
17098         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
17099         branches.
17100         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
17101         COND_EXPRs without gotos.
17102         (disband_implicit_edges, has_label_p): Removed.
17103         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
17104         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
17105         branches.
17106         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
17107         side effects.
17108         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
17109         also for COND_EXPRs.
17110         * cfgexpand.c (label_rtx_for_bb): New function.
17111         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
17112         Use label_rtx_for_bb to find the labels.
17113         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
17114         last block.  Detect fallthru edges.
17115
17116 2007-04-26  Ian Lance Taylor  <iant@google.com>
17117
17118         PR target/28675
17119         * reload.c (find_reloads_subreg_address): If the address was valid
17120         in the original mode but not in the new mode, reload the whole
17121         address.
17122
17123 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
17124
17125         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
17126         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
17127         (cleanup_control_expr_graph): Do not invalidate dominance info.
17128         Record altered blocks.
17129         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
17130         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
17131         cleanup_tree_cfg_bb): New functions.
17132         (remove_forwarder_block): Do not maintain the worklist of blocks.
17133         Record altered blocks.
17134         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
17135         not over whole cfg.
17136         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
17137         delete_unreachable_blocks if dominators are not available.
17138         * tree-inline.c (optimize_inline_calls): Free dominance information
17139         earlier.
17140         * tree-flow.h (remove_edge_and_dominated_blocks,
17141         cfgcleanup_altered_bbs): Altered.
17142         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
17143         blocks.
17144         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
17145         functions.
17146         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
17147         do not invalidate dominators.
17148
17149 2007-04-26  Anatoly Sokolov <aesok@post.ru>
17150
17151         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
17152         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
17153         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
17154         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
17155
17156 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
17157
17158         * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
17159
17160 2007-04-26  Richard Guenther  <rguenther@suse.de>
17161
17162         PR tree-optimization/31703
17163         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
17164         the right type for the target of the bittest.
17165
17166 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17167
17168         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
17169         ix86_sol10_return_in_memory.
17170
17171 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17172
17173         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
17174         variables.
17175
17176 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
17177
17178         PR c++/31598
17179         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
17180
17181         PR tree-optimization/30558
17182         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
17183         clear this_state.prev_try.
17184
17185 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17186             Mark Mitchell  <mark@codesourcery.com>
17187
17188         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
17189         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
17190         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
17191
17192 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
17193
17194         PR driver/31107
17195         * doc/invoke.texi (%:print-asm-header): Document.
17196         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
17197         and -ftarget-help.
17198         (static_spec_functions): Add print-asm-header.
17199         (main): Print a banner before the --target-help linker options.
17200         (print_asm_header_spec_function): New function.
17201
17202 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17203
17204         PR target/31403
17205         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
17206         (movsf_ie): Likewise.
17207
17208 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
17209
17210         * doc/extend.texi ([Type Traits]): Adjust per N2255.
17211
17212 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
17213
17214         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
17215         exception for divide-by-zero.
17216         (__umodsi3, __modsi3): Likewise.
17217
17218 2007-04-25  Dirk Mueller  <dmueller@suse.de>
17219
17220         * c-typeck.c (build_compound_expr): Annotate warning()
17221         call with OPT_Wunused_value.
17222         * tree-ssa.c (warn_uninit): Annotate warning with
17223         OPT_Wunintialized.
17224         * c-common.c (handle_sentinel_attribute): Annotate warning
17225         call with OPT_Wattributes.
17226
17227 2007-04-25  Thiemo Seufer  <ths@mips.com>
17228
17229         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
17230         (mips16): Fix typo.
17231         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
17232         on to the assembler.  Improve handling of -mno-mips16.  Add handling
17233         of -mno-mips3d, -mno-dsp, -mno-dspr2.
17234         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
17235         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
17236         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
17237
17238 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
17239
17240         PR target/31680
17241         * config/i386/winnt.c (i386_pe_file_end): Strip only
17242         USER_LABEL_PREFIX when writing export name.
17243
17244 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
17245
17246         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
17247         sh/elf.h, vx-common.h and vxworks.h.
17248         * config/sh/sh.h: Include config/vxworks-dummy.h.
17249         (SUBTARGET_OVERRIDE_OPTIONS): Define.
17250         (OVERRIDE_OPTIONS): Use it.
17251         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
17252         (vxworks_picreg): New pattern.
17253         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
17254         VXWORKS_OS_CPP_BUILTINS.
17255         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
17256         to their VXWORKS_* equivalents.
17257         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
17258         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
17259         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
17260         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
17261         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
17262         -mrtp/-fPIC multilibs.
17263         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
17264         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
17265         (MULTILIB_OSDIRNAMES): Delete.
17266
17267 2007-04-25  Anatoly Sokolov <aesok@post.ru>
17268
17269         PR target/18989
17270         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
17271
17272 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
17273
17274         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
17275         rounding mode to be specified by the caller.
17276         (real_to_mpfr) Likewise.
17277         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
17278         include new arguments.
17279         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
17280
17281 2007-04-24  Ian Lance Taylor  <iant@google.com>
17282
17283         PR tree-optimization/31605
17284         * tree-vrp.c (set_value_range): Check that min and max are not
17285         both overflow infinities.
17286         (set_value_range_to_value): New static function.
17287         (extract_range_from_binary_expr): Call set_value_range_to_value.
17288         (extract_range_from_cond_expr): Likewise.
17289         (extract_range_from_expr): Likewise.
17290         (extract_range_from_unary_expr): Likewise.  Don't create a range
17291         which overflows on both sides.
17292         (vrp_meet): Check for a useless range.
17293         (vrp_visit_phi_node): If we see a constant which looks like an
17294         overflow infinity, turn off the TREE_OVERFLOW flag.
17295
17296 2007-04-24  Ian Lance Taylor  <iant@google.com>
17297
17298         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
17299
17300 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
17301
17302         PR diagnostic/25923
17303         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
17304         diagnostic message is being built.
17305         * tree-pretty-print.c (dump_generic_node): Only write the
17306         formatted text into BUFFER's stream if we are not building a
17307         diagnostic message.
17308         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
17309         dump_generic_node.
17310         * Makefile.in (toplev.o): Depend on tree-pass.h.
17311
17312 2007-04-24  Ian Lance Taylor  <iant@google.com>
17313
17314         PR tree-optimization/31602
17315         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
17316         conditionals in the copied loop header.
17317         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
17318         warnings if TREE_NO_WARNING is set.
17319         * doc/invoke.texi (Warning Options): Clarify that
17320         -Wstrict-overflow does not warn about loops.
17321
17322 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
17323
17324         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
17325         expand on the comment about _Decimal128 arguments and check the
17326         integer result of the modulus operation; for 64-bit ELF ABI, ensure
17327         that _Decimal128 argument uses even/odd register pair.
17328         (function_arg): Ditto.
17329
17330 2007-04-24  Hui-May Chang <hm.chang@apple.com>
17331
17332         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
17333         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
17334
17335 2007-04-24  Richard Guenther  <rguenther@suse.de>
17336             Olga Golovanevsky  <olga@il.ibm.com>
17337
17338         * fold-const.c (multiple_of_p): Check for bottom
17339         to be zero.
17340
17341 2007-04-24  Richard Henderson  <rth@redhat.com>
17342
17343         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
17344         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
17345         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
17346         looking for non-zero bits shifted out.  Avoid a recursive call
17347         when constructing the scalar.
17348         (__floatundisf): Likewise.
17349
17350 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17351
17352         * dwarf2out.c (field_byte_offset): Move the existing logic
17353         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
17354         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
17355
17356 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17357
17358         PR target/31641
17359         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
17360         length argument of 0 for memset.
17361         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
17362         unsigned shift instead of the signed variant.
17363
17364 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17365
17366         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
17367         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
17368         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
17369         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
17370         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
17371         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
17372         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
17373         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
17374         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
17375         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
17376         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
17377         "mul<mode>3", "div<mode>3"): Insn definitions added.
17378         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
17379         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
17380         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
17381         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
17382         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
17383         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
17384         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
17385         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
17386         TARGET_FLOAT_FORMAT): Macro definitions removed.
17387         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
17388         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
17389         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
17390         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
17391         (s390_gen_rtx_const_DI): Function removed.
17392         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
17393
17394 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
17395
17396         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
17397         over an external ffs function.
17398
17399 2007-04-24  Chao-ying Fu  <fu@mips.com>
17400             Richard Sandiford  <richard@nildram.co.uk>
17401
17402         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
17403         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
17404         (smadd_widen_optab, umadd_widen_optab): Define.
17405         * optabs.c (init_optabs): Initialize smadd_widen_optab and
17406         umadd_widen_optab.
17407         * genopinit.c (optabs): Fill in smadd_widen_optab and
17408         umadd_widen_optab.
17409         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
17410         and umadd_widen_optab to implement multiply-add sequences.
17411         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
17412         (<u>maddsidi4): ...this.  Extend condition to include
17413         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
17414         of operand 0 to "ka" and use the three-operand form of madd<u>
17415         for TARGET_DSPR2.
17416         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
17417         to define_expands.
17418         * config/mips/constraints.md (ka): New register constraint.
17419
17420 2007-04-24  Jan Hubicka  <j@suse.cz>
17421
17422         Revert:
17423
17424         2007-04-23  Jan Hubicka  <jh@suse.cz>
17425         * function.c (init_function_start): Don't init line number info.
17426         (expand_function_end): Update.
17427         (reset_block_changes, record_block_change, finalize_block_changes,
17428         check_block_change, free_block_changes): Kill.
17429         * function.h (reset_block_changes, record_block_change,
17430         finalize_block_changes, check_block_change, free_block_changes):
17431         Remove prototypes.
17432         (struct function): Remove ib_boundaries_block.
17433         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
17434         Use curr_insn_locator to initialize locator.
17435         (emit_line_note): Remove.
17436         * cfgexpand.c (expand_gimple_cond_expr): Update.
17437         (construct_exit_block): Likewise.
17438         (tree_expand_cfg): Initialize/finalize locators.
17439         * expr.c (expand_expr_real): Update.
17440         * cfglayout.c (line_locators_locs, line_locators_lines,
17441         file_locators_locs, file_locators_files): Remove.
17442         (set_block_levels): Move to cfgexpand.c.
17443         (insn_locators_initialize): Remove.
17444         (pass_insn_locators_initialize): Remove.
17445         (locations_locators_locs, locations_locators_vals): New static vars.
17446         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
17447         Likewise.
17448         (insn_locators_alloc, insn_locators_finalize,
17449         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17450         New functions.
17451         (locator_location): New.
17452         (locator_line, locator_file): Rewrite.
17453         * rtl.h (emit_line_note): Kill.
17454         (insn_locators_alloc, insn_locators_finalize,
17455         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17456         Declare.
17457         * tree-inline.c (initialize_cfun): Do not initialize
17458         ib_boundaries_block.
17459         * passes.c (pass_insn_locators_initialize): Remove.
17460
17461 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
17462
17463         * doc/invoke.texi: Removed leading '-' from option index entries.
17464
17465 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
17466
17467         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
17468         Use phi_nodes_ptr.
17469         (create_phi_node): Use set_phi_nodes.
17470         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
17471         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
17472         (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
17473         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
17474         (bsi_start, bsi_last): Use bb_stmt_list.
17475         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
17476         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
17477         Traverse the statements using tsi iterator.
17478         * basic-block.h (struct basic_block_def): Fields stmt_list
17479         and phi_nodes moved to ...
17480         (struct tree_bb_info): ... new structure.
17481         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
17482         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
17483         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
17484         (tree_verify_flow_info): Verify that il.tree is not set for
17485         entry and exit block.
17486         (tree_split_block): Use set_bb_stmt_list.
17487
17488 2007-04-23  Mike Stump  <mrs@apple.com>
17489
17490         * config/i386/i386.c (ix86_tune_features
17491         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
17492         nocona and core2.
17493
17494 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
17495
17496         * config/i386/i386.md (prefix_extra): New attribute.
17497         (length): Add prefix_extra.
17498
17499         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
17500         (sse2_movntv2di): Likewise.
17501         (sse2_cvtps2dq): Likewise.
17502         (sse2_cvtpd2pi): Likewise.
17503         (sse2_cvttpd2pi): Likewise.
17504         (*sse2_cvtpd2ps): Likewise.
17505         (*add<mode>3): Likewise.
17506         (sse2_ssadd<mode>3): Likewise.
17507         (sse2_usadd<mode>3): Likewise.
17508         (*sub<mode>3): Likewise.
17509         (sse2_sssub<mode>3): Likewise.
17510         (sse2_ussub<mode>3): Likewise.
17511         (*mulv8hi3): Likewise.
17512         (*smulv8hi3_highpart): Likewise.
17513         (*umulv8hi3_highpart): Likewise.
17514         (sse2_umulv2siv2di3): Likewise.
17515         (sse2_pmaddwd): Likewise.
17516         (ashr<mode>3): Likewise.
17517         (lshr<mode>3): Likewise.
17518         (ashl<mode>3): Likewise.
17519         (sse2_ashlti3): Likewise.
17520         (sse2_lshrti3): Likewise.
17521         (*umaxv16qi3): Likewise.
17522         (*smaxv8hi3): Likewise.
17523         (*uminv16qi3): Likewise.
17524         (*sminv8hi3): Likewise.
17525         (sse2_eq<mode>3): Likewise.
17526         (sse2_gt<mode>3): Likewise.
17527         (*and<mode>3): Likewise.
17528         (sse2_nand<mode>3): Likewise.
17529         (*ior<mode>3): Likewise.
17530         (*xor<mode>3): Likewise.
17531         (sse2_packsswb): Likewise.
17532         (sse2_packssdw): Likewise.
17533         (sse2_packuswb): Likewise.
17534         (sse2_punpckhbw): Likewise.
17535         (sse2_punpcklbw): Likewise.
17536         (sse2_punpckhwd): Likewise.
17537         (sse2_punpcklwd): Likewise.
17538         (sse2_punpckhdq): Likewise.
17539         (sse2_punpckldq): Likewise.
17540         (sse2_punpckhqdq): Likewise.
17541         (sse2_punpcklqdq): Likewise.
17542         (*sse2_pinsrw): Likewise.
17543         (*sse2_pextrw): Likewise.
17544         (sse2_pshufd_1): Likewise.
17545         (sse2_uavgv16qi3): Likewise.
17546         (sse2_uavgv8hi3): Likewise.
17547         (sse2_psadbw): Likewise.
17548         (sse2_pmovmskb): Likewise.
17549         (*sse2_maskmovdqu): Likewise.
17550         (*sse2_maskmovdqu_rex64): Likewise.
17551         (sse4a_extrqi): Likewise.
17552         (sse4a_extrq): Likewise.
17553         (sse3_lddqu): Set prefix_rep.
17554         (sse3_addsubv4sf3): Likewise.
17555         (sse3_haddv4sf3): Likewise.
17556         (sse3_hsubv4sf3): Likewise.
17557         (sse_cvtss2si): Likewise.
17558         (sse_cvtss2si_2): Likewise.
17559         (sse_cvtss2siq): Likewise.
17560         (sse_cvtss2siq_2): Likewise.
17561         (sse_cvttss2si): Likewise.
17562         (sse_cvttss2siq): Likewise.
17563         (sse2_cvttps2dq): Likewise.
17564         (sse3_movshdup): Likewise.
17565         (sse3_movsldup): Likewise.
17566         (sse2_cvtsd2si): Likewise.
17567         (sse2_cvtsd2si_2): Likewise.
17568         (sse2_cvtsd2siq): Likewise.
17569         (sse2_cvtsd2siq_2): Likewise.
17570         (sse2_cvttsd2si): Likewise.
17571         (sse2_cvttsd2siq): Likewise.
17572         (*sse2_cvtpd2dq): Likewise.
17573         (*sse2_cvttpd2dq): Likewise.
17574         (sse2_pshuflw_1): Likewise.
17575         (sse2_pshufhw_1): Likewise.
17576         (sse4a_insertqi): Likewise.
17577         (sse4a_insertq): Likewise.
17578         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
17579         (ssse3_phadddv4si3): Likewise.
17580         (ssse3_phaddswv8hi3): Likewise.
17581         (ssse3_phsubwv8hi3): Likewise.
17582         (ssse3_phsubdv4si3): Likewise.
17583         (ssse3_phsubswv8hi3): Likewise.
17584         (ssse3_pmaddubswv8hi3): Likewise.
17585         (ssse3_pmulhrswv8hi3): Likewise.
17586         (ssse3_pshufbv16qi3): Likewise.
17587         (ssse3_psign<mode>3): Likewise.
17588         (ssse3_palignrti): Likewise.
17589         (abs<mode>2): Likewise.
17590         (ssse3_phaddwv4hi3): Set prefix_extra.
17591         (ssse3_phadddv2si3): Likewise.
17592         (ssse3_phaddswv4hi3): Likewise.
17593         (ssse3_phsubwv4hi3): Likewise.
17594         (ssse3_phsubdv2si3): Likewise.
17595         (ssse3_phsubswv4hi3): Likewise.
17596         (ssse3_pmaddubswv4hi3): Likewise.
17597         (ssse3_pmulhrswv4hi3): Likewise.
17598         (ssse3_pshufbv8qi3): Likewise.
17599         (ssse3_psign<mode>3): Likewise.
17600         (ssse3_palignrdi): Likewise.
17601         (abs<mode>2): Likewise.
17602         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
17603         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
17604         (sse2_pmovmskb): Set mode to SI instead of V2DF.
17605
17606 2007-04-23  Nick Clifton  <nickc@redhat.com>
17607
17608         * params.def: Fix formatting of emacs local variables.
17609
17610 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
17611
17612         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
17613         move if inter-unit move isn't allowed.
17614         Don't split moving the first element of V2DI to DI to inter-unit
17615         move if inter-unit move isn't allowed.
17616
17617 2007-04-23  Richard Guenther  <rguenther@suse.de>
17618
17619         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
17620         and CDI_POST_DOMINATORS separately.
17621
17622 2007-04-23  Nick Clifton  <nickc@redhat.com>
17623
17624         * c.opt (Wformat-contains-nul): Add warning attribute.
17625
17626 2007-04-23  Jan Hubicka  <jh@suse.cz>
17627
17628         * function.c (init_function_start): Don't init line number info.
17629         (expand_function_end): Update.
17630         (reset_block_changes, record_block_change, finalize_block_changes,
17631         check_block_change, free_block_changes): Kill.
17632         * function.h (reset_block_changes, record_block_change,
17633         finalize_block_changes, check_block_change, free_block_changes):
17634         Remove prototypes.
17635         (struct function): Remove ib_boundaries_block.
17636         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
17637         Use curr_insn_locator to initialize locator.
17638         (emit_line_note): Remove.
17639         * cfgexpand.c (expand_gimple_cond_expr): Update.
17640         (construct_exit_block): Likewise.
17641         (tree_expand_cfg): Initialize/finalize locators.
17642         * expr.c (expand_expr_real): Update.
17643         * cfglayout.c (line_locators_locs, line_locators_lines,
17644         file_locators_locs, file_locators_files): Remove.
17645         (set_block_levels): Move to cfgexpand.c.
17646         (insn_locators_initialize): Remove.
17647         (pass_insn_locators_initialize): Remove.
17648         (locations_locators_locs, locations_locators_vals): New static vars.
17649         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
17650         Likewise.
17651         (insn_locators_alloc, insn_locators_finalize,
17652         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17653         New functions.
17654         (locator_location): New.
17655         (locator_line, locator_file): Rewrite.
17656         * rtl.h (emit_line_note): Kill.
17657         (insn_locators_alloc, insn_locators_finalize,
17658         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
17659         Declare.
17660         * tree-inline.c (initialize_cfun): Do not initialize
17661         ib_boundaries_block.
17662         * passes.c (pass_insn_locators_initialize): Remove.
17663
17664 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17665
17666         PR middle-end/31448
17667         * expr.c (reduce_to_bit_field_precision): Handle
17668         CONST_INT rtx's.
17669
17670 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
17671
17672         PR tree-optimization/24659
17673         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
17674         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
17675         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
17676         * genopinit.c (optabs): Rename vec_pack_mod_optab
17677         to vec_pack_trunc_optab.
17678         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
17679         early for scalar floating point operands for NOP_EXPR.
17680         (vectorizable_type_promotion): Ditto.
17681         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
17682         vec_pack_trunc_optab.
17683         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
17684
17685         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
17686         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
17687         Rename from VEC_PACK_MOD_EXPR.
17688         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
17689         * expr.c (expand_expr_real_1): Ditto.
17690         * tree-inline.c (estimate_num_insns_1): Ditto.
17691         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
17692
17693         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
17694         (vec_unpacks_lo_v4sf): Ditto.
17695         (vec_pack_trunc_v2df): Ditto.
17696         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
17697         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
17698         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
17699
17700         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
17701         vec_pack_mod_v8hi.
17702         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
17703
17704         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
17705         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
17706         packing of floating point operands.
17707         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
17708         represent unpacking of floating point operands.
17709         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
17710         [vec_unpacks_hi]: Ditto.
17711         [vec_unpacks_lo]: Ditto.
17712
17713 2007-04-22  Jan Hubicka  <jh@suse.cz>
17714
17715         * final.c (rest_of_handle_final): Call
17716         targetm.asm_out.constructor/targetm.asm_out.destructor
17717         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
17718         proper priority via decl_*_priority_insert.
17719         * c-common.c (c_expand_body): Likewise.
17720
17721 2007-04-22  Richard Guenther  <rguenther@suse.de>
17722
17723         PR tree-optimization/29789
17724         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
17725         (rewrite_reciprocal): New helper split out from
17726         determine_invariantness_stmt.
17727         (rewrite_bittest): Likewise.
17728         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
17729         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
17730         is not.
17731
17732 2007-04-22  Revital Eres  <eres@il.ibm.com>
17733
17734         * loop-unroll.c (var_to_expand): New field to support also
17735         insns of the form x = something + x.
17736         (analyze_insn_to_expand_var): Use it.
17737         (expand_var_during_unrolling): Likewise.
17738
17739 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
17740
17741         * predict.c: Include pointer-set.h.
17742         (bb_predictions): New variable.
17743         (tree_predicted_by_p, tree_predict_edge,
17744         remove_predictions_associated_with_edge): Use bb_predictions map
17745         instead of bb->predictions.
17746         (clear_bb_predictions, assert_is_empty): New functions.
17747         (combine_predictions_for_bb): Use bb_predictions map.  Call
17748         clear_bb_predictions.
17749         (tree_estimate_probability): Create and free bb_predictions map.
17750         * Makefile.in (predict.o): Add pointer-set.h dependency.
17751         * basic-block.h (struct basic_block_def): Remove predictions
17752         field.
17753         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
17754
17755 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
17756
17757         PR target/31480
17758         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
17759         is null.
17760
17761 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17762
17763         * timevar.c (timevar_print): Change reference of --disable-checking to
17764         --enable-checking=release.  Also warn if assert checking is disabled.
17765
17766 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17767
17768         PR C/30265
17769         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
17770         decl as addressable if the compound literal was marked as
17771         addressable.
17772         Mark the decl as a gimple register if it is a complex or
17773         vector decl and does not live in memory.
17774
17775 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17776
17777         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
17778         (GENERIC_NEXT): New function macro.
17779         (PHI_CHAIN): Use phi_node's new chain variable.
17780         (tree_phi_node): Change tree_common to tree_base
17781         and add the chain field.
17782         * tree-phinodes.c (make_phi_node): Don't set
17783         TREE_TYPE on the new node.
17784         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
17785         instead of checking GIMPLE_TUPLE_P in chain_next.
17786         * tree-vect-transform.c
17787         (get_initial_def_for_induction): Look at
17788         PHI_RESULT_TREE for the type of the phi node.
17789         (update_vuses_to_preheader): Use PHI_CHAIN
17790         instead of TREE_CHAIN on the phi node.
17791         * tree-ssa-structalias.c (compute_points_to_sets):
17792         Likewise.
17793         (ipa_pta_execute): Likewise.
17794
17795 2007-04-21  Richard Guenther  <rguenther@suse.de>
17796
17797         PR middle-end/31136
17798         * fold-const.c (fold_unary): Call fold_convert_const on the
17799         original tree.
17800
17801 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
17802
17803         * gcse.c (store_killed_in_insn): Handle PARALLELs.
17804         (store_killed_in_pat): New.
17805
17806 2007-04-20  Richard Henderson  <rth@redhat.com>
17807
17808         PR target/31628
17809         * config/i386/i386.c (type_has_variadic_args_p): Look for any
17810         TREE_LIST with a void_type_node value, not void_list_node exactly.
17811
17812 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
17813
17814         * doc/standards.texi: Re-arrange into language-specific
17815         subsections. Add a C++ section, documenting which standards we
17816         support.
17817
17818 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
17819
17820         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
17821         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
17822
17823 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
17824
17825         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
17826         ecrti.o and crtbegin.o.
17827         (LIB_DEFAULT_SPEC): Include -lc.
17828         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
17829
17830 2007-04-20  Richard Henderson  <rth@redhat.com>
17831
17832         PR target/28623
17833         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
17834         argument; update all callers.
17835         (get_unaligned_offset): New.
17836         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
17837         get_unaligned_address, just pass on the address directly.
17838         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
17839         the subreg in the helper patterns.
17840         (unaligned_extendqidi_le): Use get_unaligned_offset.
17841         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
17842         (unaligned_extendhidi_be): Likewise.
17843         (unaligned_extendhidi): Tidy.
17844         * config/alpha/alpha-protos.h: Update.
17845
17846 2007-04-20  Richard Henderson  <rth@redhat.com>
17847
17848         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
17849         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
17850         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
17851         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
17852         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
17853         (CPP_SPEC): Don't include %(cpp_subtarget).
17854         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
17855         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
17856         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
17857
17858 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
17859
17860         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
17861         for __builtin_ia32_cmpordss.
17862
17863         PR tree-optimization/31632
17864         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
17865         and arg1 for optimizations of comparison against min/max values.
17866         Fold arg0 to arg1's type for optimizations of comparison against
17867         min+1 and max-1 values.
17868
17869 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
17870
17871         * reload.c (combine_reloads): When trying to use a dying register,
17872         check whether it's uninitialized and don't use if so.
17873
17874 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
17875
17876         * fold-const.c: Remove prototypes for native_encode_expr and
17877         native_interpret_expr.
17878         (native_encode_expr): Make non-static.
17879         (native_interpret_expr): Likewise.
17880         * tree.h: Add prototypes for the above.
17881
17882 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
17883
17884         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
17885         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
17886         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
17887         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
17888         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
17889         Add length attributes.
17890
17891 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
17892
17893         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
17894         not that it is 1.
17895
17896         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
17897         __STDC_WANT_DEC_FP__.
17898
17899 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
17900
17901         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
17902         for long double compatibility.
17903         * configure: Regenerate.
17904
17905 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
17906
17907         PR rtl-optimization/29841
17908         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
17909         trap instructions.
17910         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
17911         that may cause control flow transfer from being moved.
17912
17913 2007-04-18  Jan Hubicka  <jh@suse.cz>
17914
17915         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
17916         types.
17917
17918 2007-04-18  Eric Christopher  <echristo@apple.com>
17919
17920         * config/rs6000/darwin.md (load_macho_picbase): Use link register
17921         only. Update operands.
17922         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
17923         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
17924         link register to pic register.
17925
17926 2007-04-18  Dirk Mueller  <dmueller@suse.de>
17927
17928         PR diagnostic/31227
17929         * tree-vrp.c (search_for_addr_array): New.
17930         (check_array_bounds): Suppress warning about
17931         address taken of array refs if its not de-referenced.
17932
17933 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
17934
17935         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
17936         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
17937
17938         * tree-vectorizer.h (NITERS_KNOWN_P): New.
17939         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
17940         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
17941
17942         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
17943         dump print.
17944         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
17945         print message.
17946         (vect_analyze_scalar_cycles): Fix indentation.
17947         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
17948         (vect_mark_relevant): Include phis in relevance analysis.
17949
17950         * tree-vect-transform.c (vect_transform_loop): Add an assert.
17951
17952 2007-04-18  Anatoly Sokolov <aesok@post.ru>
17953
17954         * config/avr/avr.c (ptrreg_to_str): Replace error() with
17955         output_operand_lossage().
17956
17957 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
17958
17959         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
17960         the unused code for reduction without adjust-in-epilog to simplify the
17961         function.
17962
17963 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
17964
17965         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
17966         (S390_TDC_NEGATIVE_ZERO): New constant.
17967         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
17968         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
17969         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
17970         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
17971         (S390_TDC_POSITIVE_INFINITY): New constant.
17972         (S390_TDC_NEGATIVE_INFINITY): New constant.
17973         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
17974         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
17975         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
17976         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
17977         (S390_TDC_INFINITY): New constant.
17978         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
17979         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
17980         optimization for UNSPEC_CCZ_TO_INT.
17981         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
17982         ("*ccz_to_int"): New insn.
17983         ("isinf<mode>2"): New insn.
17984         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
17985         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
17986         (UNSPEC_CCZ_TO_INT): New constant.
17987
17988 2007-04-18  Richard Guenther  <rguenther@suse.de>
17989
17990         PR tree-optimization/19431
17991         PR tree-optimization/21463
17992         * tree-pass.h (pass_phiprop): Declare.
17993         * passes.c (init_optimization_passes): New phiprop pass.
17994         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
17995         (phivn_valid_p): New helper function.
17996         (phiprop_insert_phi): Likewise.
17997         (propagate_with_phi): Likewise.
17998         (tree_ssa_phiprop): New propagator propagating loads
17999         through phi nodes if profitable.
18000
18001 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
18002
18003         * tree-vect-analyze.c (process_use): New function.
18004         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
18005         Check phis in all bbs.
18006         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
18007         assert.
18008
18009 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
18010
18011         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
18012         we use REG_EQUAL.
18013
18014 2007-04-17  Anatoly Sokolov <aesok@post.ru>
18015
18016         PR target/30483
18017         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
18018         error().
18019
18020 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18021
18022         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
18023         on "0".
18024         (sse_vmmulv4sf3): Likewise.
18025         (sse2_vmaddv2df3): Likewise.
18026         (sse2_vmmulv2df3): Likewise.
18027
18028 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
18029
18030         PR rtl-optimization/31360
18031         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
18032         (target_reg_cost): New.
18033         (init_set_costs): Initialize target_reg_cost.  Add comments
18034         regarding the rationale of the costs.
18035         (global_cost_for_size): Renamed to...
18036         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
18037         of register pressure.
18038         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
18039         estimate_reg_pressure_cost.  Add number of ivs.
18040         (determine_set_costs): Dump target_reg_cost.
18041         * loop-invariant.c (gain_for_invariant): Use
18042         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
18043         (best_gain_for_invariant, find_invariants_to_move): Remove
18044         n_inv_uses.
18045         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
18046         (target_reg_cost): Declare.
18047         (global_cost_for_size): Declaration removed.
18048         (estimate_reg_pressure_cost): Declare.
18049
18050 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
18051
18052         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
18053         regnos into even/odd register pairs.
18054         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
18055         TDmode similar to the other floating point modes.
18056         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
18057         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
18058         define_expand's.
18059         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
18060         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
18061         (movdd_hardfloat64): Use TARGET_MFPGPR.
18062
18063 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18064
18065         * reload1.c (delete_output_reload): Don't count output in n_inherited.
18066
18067         Revert
18068         2005-01-05  Richard Henderson  <rth@redhat.com>
18069         PR rtl-opt/10692
18070         * reload1.c (do_input_reload): Restrict the optimization deleteing
18071         a previous output reload to RELOAD_FOR_INPUT.
18072
18073 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
18074
18075         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
18076         induc_vec_info_type.
18077         (vectorizable_induction): New function declaration.
18078         * tree-vect-transform.c (get_initial_def_for_induction): No need to
18079         check if already vectorized.  Find first place in BB where new stmts
18080         can be inserted.  Takes only one argument.
18081         (vectorizable_induction): New function.
18082         (vect_transform_stmt): Add case for induc_vec_info_type to call
18083         vectorizable_induction.
18084         (vect_transform_loop): Consider phis for vectorization.
18085         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
18086         condition.
18087         (analyze_operations): Call vectorizable_induction when analyzing phis.
18088         Fix comment.
18089         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
18090         (vect_mark_relevant): Include phis in relevance analysis.
18091         (vect_mark_stmts_to_be_vectorize): Likewise.
18092         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
18093
18094 2007-04-16  Lawrence Crowl  <crowl@google.com>
18095
18096         * doc/invoke.texi (Debugging Options): Add documentation for the
18097         -femit-struct-debug options -femit-struct-debug-baseonly,
18098         -femit-struct-debug-reduced, and
18099         -femit-struct-debug-detailed[=...].
18100
18101         * c-opts.c (c_common_handle_option): Add
18102         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
18103         and OPT_femit_struct_debug_detailed_.
18104         * c.opt: Add specifications for
18105         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
18106         and -femit-struct-debug-detailed[=...].
18107         * opts.c (set_struct_debug_option): Parse the
18108         -femit-struct-debug-... options.
18109         * opts.c (matches_main_base, main_input_basename,
18110         main_input_baselength, base_of_path, matches_main_base): Add
18111         variables and functions to compare header base name to compilation
18112         unit base name.
18113         * opts.c (should_emit_struct_debug): Add to determine to emit a
18114         structure based on the option.
18115         (dump_struct_debug) Also disabled function to debug this
18116         function.
18117         * opts.c (handle_options): Save the base name of the
18118         compilation unit.
18119
18120         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
18121         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
18122         This hook indicates if a type is generic.  Set it by default
18123         to "never generic".
18124         * langhooks.h (struct lang_hooks_for_types): Add a new hook
18125         to determine if a struct type is generic or not.
18126         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
18127         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
18128         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
18129         with live C++ hook.
18130
18131         * flags.h (enum debug_info_usage): Add an enumeration to describe
18132         a program's use of a structure type.
18133         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
18134         to indicate the program's usage of the type.  Filter structs based
18135         on the -femit-struct-debug-... specification.
18136         (gen_type_die): Split into two routines, gen_type_die and
18137         gen_type_die_with_usage.  gen_type_die is now a wrapper
18138         that assumes direct usage.
18139         (gen_type_die_with_usage): Replace calls to gen_type_die
18140         with gen_type_die_with_usage adding the program usage of
18141         the referenced type.
18142         (dwarf2out_imported_module_or_decl): Suppress struct debug
18143         information using should_emit_struct_debug when appropriate.
18144
18145 2007-04-16  Ian Lance Taylor  <iant@google.com>
18146
18147         PR tree-optimization/31522
18148         * tree-vrp.c (vr_phi_edge_counts): New static variable.
18149         (vrp_initialize): Allocate vr_phi_edge_counts.
18150         (vrp_visit_phi_node): Don't push to infinity if we saw a new
18151         executable edge.  Drop test for all constants.
18152         (vrp_finalize): Free vrp_phi_edge_counts.
18153
18154         * doc/cpp.texi (Common Predefined Macros): Clarify description of
18155         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
18156
18157         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
18158         predecessors at head rather than tail.
18159
18160 2007-04-16  Matthias Klose  <doko@debian.org>
18161
18162         * config/alpha/linux.h (CPP_SPEC): Define.
18163         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
18164
18165 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
18166
18167         * function.h: Remove sequence_stack extern declaration.
18168
18169 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
18170
18171         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
18172         TARGET_FIDOA.
18173         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
18174         defined.
18175
18176 2007-04-16  Anatoly Sokolov <aesok@post.ru>
18177
18178         * config/avr/avr.c (avr_arch_types): Rearranging  array.
18179         (enum avr_arch): Add.
18180         (avr_mcu_types): Use avr_arch enumeration constants instead of
18181         numbers.
18182         * config/avr/avr.h (LINK_SPEC): Simplify.
18183
18184 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
18185
18186         * config/m68k/m68k.c (m68k_libcall_value,
18187         m68k_function_value): Use macros for register names more.
18188
18189         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
18190         instead.
18191         (M68K_REGNAME): Use A6_REG.
18192         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
18193
18194 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
18195
18196         PR middle-end/28071
18197         * sched-int.h (struct deps): Split field 'pending_lists_length' into
18198         'pending_read_list_length' and 'pending_write_list_length'.  Update
18199         comment.
18200         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
18201         to handle two length counters instead of one.  Update all uses.
18202         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
18203         two length counters instead of one.
18204         * sched-rgn.c (propagate_deps): Update to handle two length counters
18205         instead of one.
18206
18207 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
18208
18209         PR target/31582
18210         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
18211         copy of source, pass it to ix86_expand_vector_set and return
18212         it as target.
18213
18214 2007-04-16  David Ung  <davidu@mips.com>
18215             Joseph Myers  <joseph@codesourcery.com>
18216
18217         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
18218         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
18219         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
18220         Add 74K processor information.
18221         * config/mips/mips.md: Include 74k.md.
18222         (cpu): Add 74kc,74kf,74kx.
18223         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
18224         * config/mips/74k.md: New.
18225         * doc/invoke.texi (MIPS Options): Document 74K support.
18226
18227 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
18228
18229         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
18230         vectorizable_* functions.
18231         * tree-vect-transform.c (vectorizable_call): Add check for
18232         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
18233         (vectorizable_store): likewise.
18234         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
18235         Add comments.
18236         (vectorizable_operation, vectorizable_type_demotion): Likewise.
18237         (vectorizable_type_promotion, vectorizable_load): Likewise.
18238         (vectorizable_live_operation, vectorizable_condition): Likewise.
18239         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
18240         STMT_VINFO_LIVE_P.
18241         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
18242
18243 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18244
18245         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
18246         register numbers more.
18247         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
18248         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
18249         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
18250         FUNCTION_VALUE_REGNO_P): Likewise.
18251         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
18252         STATIC_CHAIN_REGNUM): Likewise.
18253         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
18254         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
18255         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
18256         * config/m68k/m68k.md (FP_REG): New.
18257
18258 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18259
18260         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
18261         alignment on fido.
18262
18263 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
18264
18265         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
18266         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
18267         comment typos.
18268
18269 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
18270
18271         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
18272         cold loops.
18273
18274 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18275
18276         PR c/31520
18277         * c-decl.c (finish_decl): Grab the type of the decl after the call
18278         to store_init_value.
18279
18280 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
18281
18282         * common.opt (fforward-propagate): Fix "Optimization" annotation.
18283
18284 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
18285
18286         PR c++/25874
18287         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
18288         dominators, post dominators and cleanup cfg before returning.
18289
18290 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
18291
18292         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
18293         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
18294
18295 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
18296
18297         * config.gcc: Recognize fido.
18298         * config/m68k/m68k-devices.def (fidoa): New.
18299         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
18300         __mfido__.
18301         (FL_FIDOA, TARGET_FIDOA): New.
18302         * config/m68k/m68k.opt (mfidoa): New.
18303
18304 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18305
18306         PR middle-end/31322
18307         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
18308         when a personality function is used.
18309
18310 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
18311
18312         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
18313
18314 2007-04-13  Mike Stump  <mrs@apple.com>
18315
18316         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
18317         we can...
18318         * config/darwin.opt (fapple-kext): Make C++ only.
18319         * config/darwin.c (darwin_override_options): Remove code to ensure
18320         -fapple-kext is given for C++ only.
18321
18322 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
18323
18324         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
18325         * config/mips/mips.c (override_options): Call
18326         SUBTARGET_OVERRIDE_OPTIONS, if defined.
18327
18328 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18329
18330         * config/i386/i386.opt (msvr3-shlib): Removed.
18331
18332         * doc/invoke.texi: Remove -msvr3-shlib.
18333
18334 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
18335
18336         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
18337         with "popcnt" instruction.
18338
18339 2007-04-13  Richard Guenther  <rguenther@suse.de>
18340
18341         PR tree-optimization/21258
18342         * tree-vrp.c (compare_case_labels): New helper.
18343         (find_switch_asserts): New function.
18344         (find_assert_locations): Call it for SWITCH_EXPRs.
18345
18346 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
18347
18348         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
18349         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
18350         check is now implied in X87_FLOAT_MODE_P.
18351         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
18352         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
18353         (fix_trunc<mode>_i386_fisttp): Ditto.
18354         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
18355         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
18356         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
18357         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
18358         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
18359         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
18360         (unnamed_splitters): Ditto.
18361         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
18362         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
18363         FIRST_SSE_REG for local functions when SSE math is enabled or
18364         for functions with sseregparm attribute.
18365         (standard_80387_constant_p): Return -1 if mode is not
18366         X87_FLOAT_MODE_P.
18367         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
18368         (ix86_expand_compare): Ditto.
18369         (ix86_expand_carry_flag_compare): Ditto.
18370         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
18371         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
18372         DECIMAL_FLOAT_MODE_P.
18373         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
18374         of SCALAR_FLOAT_MODE_P.
18375         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
18376         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
18377         checks before FLOAT_MODE_P.
18378         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
18379         before FLOAT_MODE_P.
18380         [DIV]: Ditto.
18381         [NEG]: Ditto.
18382         [ABS]: Ditto.
18383         [SQRT]: Ditto.
18384         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
18385
18386 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
18387             Charles Wilson  <libtool@cwilson.fastmail.fm>
18388
18389         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
18390         (libgcc.mvars): Don't depend on them.
18391         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
18392         * exec-tool.in: New.
18393
18394 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
18395
18396         * doc/invoke.text (--help): Document --help=common.
18397
18398 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
18399
18400         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
18401
18402 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18403
18404         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
18405         * genemit.c (main): Emit #include "integrate.h".
18406         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
18407         (LOADGP_RTP): New mips_loadgp_style.
18408         * config/mips/mips.h: Include config/vxworks-dummy.h.
18409         (TARGET_RTP_PIC): New macro.
18410         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
18411         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
18412         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
18413         for TARGET_RTP_PIC.
18414         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
18415         -mvxworks-pic when using -mrtp and a PIC option.
18416         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
18417         for RTP PIC.
18418         (mips_symbolic_constant_p, mips_symbolic_address_p)
18419         (mips_symbol_insns): Handle SYMBOL_HALF.
18420         (override_options): Warn about -G and -mrtp being used together.
18421         Initialize mips_lo_relocs[SYMBOL_HALF].
18422         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
18423         (mips_emit_loadgp): Handle LOADGP_RTP.
18424         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
18425         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
18426         (tablejump): Handle function-relative case table entries if
18427         TARGET_RTP_PIC.
18428         * config/mips/predicates.md (symbol_ref_operand): New predicate.
18429
18430 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18431
18432         * config/mips/mips.md (load_call<mode>): Allow any general register.
18433         destination.
18434         (sibcall_value_internal, sibcall_value_multiple_internal)
18435         (call_value_internal, call_value_split, call_value_multiple_internal)
18436         (call_value_multiple_split): Remove constraints from operand 0.
18437
18438 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18439
18440         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
18441         rather than loadgp_noshared.
18442         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
18443         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
18444         gen_loadgp.
18445         * config/mips/mips.md (loadgp): Rename to...
18446         (loadgp_newabi): ...this.
18447         (loadgp_noshared): Rename to...
18448         (loadgp_absolute): ...this.
18449
18450 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18451
18452         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
18453         false for locally-binding symbols.
18454         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
18455
18456 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18457
18458         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
18459         (SYMBOL_GOT_PAGE_OFST): ...this.
18460         (SYMBOL_GOT_GLOBAL): Rename to...
18461         (SYMBOL_GOT_DISP): ...this.
18462         (SYMBOL_GOTOFF_GLOBAL): Rename to...
18463         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
18464         * config/mips/mips.c (mips_global_symbol_p): New function.
18465         (mips_symbol_binds_local_p): Likewise.
18466         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
18467         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use
18468         mips_global_symbol_p and mips_symbol_binds_local_p.
18469         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
18470         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
18471         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
18472         SYMBOL_GOTOFF_DISP.
18473         (mips_ok_for_lazy_binding_p): New function.
18474         (mips_load_call_address, mips_expand_call): Use it.
18475         (mips_dangerous_for_la25_p): Likewise.
18476         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
18477         (*got_disp<mode>): Use got_disp_operand instead of
18478         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
18479         SYMBOL_GOTOFF_GLOBAL.
18480         (*got_page<mode>): Use got_page_ofst_operand instead of
18481         local_got_operand.
18482         * config/mips/predicates.md (const_call_insn_operand): Use
18483         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
18484         (global_got_operand): Rename to...
18485         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
18486         SYMBOL_GOT_GLOBAL.
18487         (local_got_operand): Rename to...
18488         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
18489         of SYMBOL_GOT_LOCAL.
18490
18491 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18492
18493         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
18494         TARGET_CALL_CLOBBERED_GP.
18495         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
18496         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
18497         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
18498         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
18499         of TARGET_ABICALLS && !TARGET_NEWABI.
18500         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
18501         * config/mips/mips.c (mips_load_call_address): Check
18502         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
18503         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
18504         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
18505         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
18506         TARGET_ABICALLS && TARGET_NEWABI.
18507         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
18508         TARGET_ABICALLS.
18509         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
18510         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
18511         TARGET_ABICALLS && TARGET_NEWABI.
18512         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
18513         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
18514         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
18515         whether indirect calls must use $25.
18516         (mips_extra_live_on_entry): Check TARGET_GOT instead of
18517         TARGET_ABICALLS.
18518         * config/mips/mips.md (jal_macro): Check flag_pic and
18519         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
18520         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
18521         instead of TARGET_ABICALLS.
18522         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
18523         TARGET_ABICALLS && TARGET_OLDABI.
18524         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
18525         (sibcall): In the comment above the define_insn, mention
18526         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
18527         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
18528         instead of TARGET_ABICALLS.
18529
18530 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
18531
18532         * doc/md.texi (Blackfin family constraints): Document PA and PB.
18533         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
18534         (MACFLAGS_MATCH_P): New macro.
18535         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
18536         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
18537         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
18538         the other MACFLAG constants.
18539         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
18540         (flag_machi): Tighten constraints.  Renumber some of the operands.
18541         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
18542         output template.
18543         (flag_machi_parts_acconly): New pattern.
18544         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
18545         used.
18546         (flag_macinit1hi): Tighten constraints.
18547         (flag_mul_macv2hi_parts_acconly): New pattern.
18548
18549         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
18550         Use a more efficient implementation.
18551         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
18552         inline sequences when not optimizing for size.
18553
18554         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
18555         movhi_high2low): Delete, merge functionality into...
18556         (packv2hi): ... this pattern.
18557
18558         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
18559         * config/bfin/bfin.opt (msim): New option.
18560         (mcpu=): New option.
18561         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
18562         (bfin_cpu_t): Typedef of enum bfin_cpu.
18563         (bfin_cpu_type): New declaration.
18564         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
18565         -msim and -mcpu= options.
18566         (LIB_SPEC): Likewise.
18567         * config/bfin/bfin.c (bfin_cpu_type): Define.
18568         (bfin_handle_option): Handle -mcpu= option.
18569         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
18570         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
18571         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
18572
18573 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18574
18575         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
18576         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
18577         (powerpc-wrs-vxworksae): Use ${tm_file}.
18578         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
18579         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
18580         * config/i386/vx-common.h: New file.
18581
18582 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
18583
18584         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
18585         of crt0.o%s.
18586
18587 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
18588
18589         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
18590         ldxtr.
18591
18592 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
18593
18594         PR c++/31078
18595         PR c++/31103
18596         * c-common.c (c_build_qualified_type): Set canonical type
18597         appropriately.
18598
18599 2007-04-12  Richard Guenther  <rguenther@suse.de>
18600
18601         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
18602         lower bound and element size if lower bound is not zero
18603         or either of the ARRAY_REF operands is set.
18604
18605 2007-04-12  Richard Guenther  <rguenther@suse.de>
18606
18607         PR tree-optimization/24689
18608         PR tree-optimization/31307
18609         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
18610         indices by value.
18611         * gimplify.c (canonicalize_addr_expr): To be consistent with
18612         gimplify_compound_lval only set operands two and three of
18613         ARRAY_REFs if they are not gimple_min_invariant.  This makes
18614         it never at this place.
18615         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
18616
18617 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18618
18619         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
18620         null before emitting a .nsubspa directive.
18621
18622 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
18623
18624         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
18625         need_to_partition_p if there are no memory statements in the
18626         function.
18627
18628 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
18629
18630         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
18631         (gcd_of_steps_may_divide_p): New function.
18632         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
18633
18634 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18635
18636         * reload.c (find_reloads_toplev, find_reloads_address,
18637         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
18638         not a pointer equality test, to decide if we need to call
18639         push_reg_equiv_alt_mem.
18640
18641 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
18642
18643         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
18644         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
18645         New.
18646         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
18647
18648 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
18649
18650         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
18651         vector to be positive.
18652
18653 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
18654
18655         PR 30735
18656         PR 31090
18657         * doc/invoke.texi: Document --params max-aliased-vops and
18658         avg-aliased-vops.
18659         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
18660         debug_memory_partitions): Move to tree-flow.h
18661         * params.h (AVG_ALIASED_VOPS): Define.
18662         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
18663         users.
18664         (mp_info_t): Likewise.
18665         (get_mem_sym_stats_for): New.
18666         (set_memory_partition): Move from tree-flow-inline.h.
18667         (mark_non_addressable): Only clear the set of symbols for the
18668         partition if it exists.
18669         (dump_memory_partitions): Move from tree-ssa-operands.c
18670         (debug_memory_partitions): Likewise.
18671         (need_to_partition_p): New.
18672         (dump_mem_ref_stats): New.
18673         (debug_mem_ref_stats): New.
18674         (dump_mem_sym_stats): New.
18675         (debug_mem_sym_stats): New.
18676         (update_mem_sym_stats_from_stmt): New.
18677         (compare_mp_info_entries): New.
18678         (mp_info_cmp): Call it.
18679         (sort_mp_info): Change argument to a list of mem_sym_stats_t
18680         objects.
18681         (get_mpt_for): Move from tree-ssa-operands.c.
18682         (find_partition_for): New.
18683         (create_partition_for): Remove.
18684         (estimate_vop_reduction): New.
18685         (update_reference_counts): New.
18686         (build_mp_info): New.
18687         (compute_memory_partitions): Refactor.
18688         Document new heuristic.
18689         Call build_mp_info, update_reference_counts,
18690         find_partition_for and estimate_vop_reduction.
18691         (compute_may_aliases): Populate virtual operands before
18692         calling debugging dumps.
18693         (delete_mem_sym_stats): New.
18694         (delete_mem_ref_stats): New.
18695         (init_mem_ref_stats): New.
18696         (init_alias_info): Call it.
18697         (maybe_create_global_var): Remove alias_info argument.
18698         Get number of call sites and number of pure/const call sites
18699         from gimple_mem_ref_stats().
18700         (dump_alias_info): Call dump_memory_partitions first.
18701         (dump_points_to_info_for): Show how many times a pointer has
18702         been dereferenced.
18703         * opts.c (decode_options): For -O2 set --param
18704         max-aliased-vops to 500.
18705         For -O3 set --param max-aliased-vops to 1000 and --param
18706         avg-aliased-vops to 3.
18707         * fortran/options.c (gfc_init_options): Remove assignment to
18708         MAX_ALIASED_VOPS.
18709         * tree-flow-inline.h (gimple_mem_ref_stats): New.
18710         * tree-dfa.c (dump_variable): Dump memory reference
18711         statistics.
18712         Dump NO_ALIAS* settings.
18713         (referenced_var_lookup): Tidy.
18714         (mem_sym_stats): New.
18715         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
18716         and ORIG are different SSA names for a memory partition.
18717         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
18718         * tree-flow.h (struct mem_sym_stats_d): Define.
18719         (mem_sym_stats_t): Define.
18720         (struct mem_ref_stats_d): Define.
18721         (struct gimple_df): Add field mem_ref_stats.
18722         (enum noalias_state): Define.
18723         (struct var_ann_d): Add bitfield noalias_state.
18724         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
18725         debug_mem_ref_stats, debug_memory_partitions,
18726         debug_mem_sym_stats): Declare.
18727         * tree-ssa-structalias.c (update_alias_info): Update call
18728         sites, pure/const call sites and asm sites in structure
18729         returned by gimple_mem_ref_stats.
18730         Remove local variable IS_POTENTIAL_DEREF.
18731         Increase NUM_DEREFS if the memory expression is a potential
18732         dereference.
18733         Call update_mem_sym_stats_from_stmt.
18734         If the memory references memory, call
18735         update_mem_sym_stats_from_stmt for all the direct memory
18736         symbol references found.
18737         (intra_create_variable_infos): Set noalias_state field for
18738         pointer arguments according to the value of
18739         flag_argument_noalias.
18740         * tree-ssa-structalias.h (struct alias_info): Remove fields
18741         num_calls_found and num_pure_const_calls_found.
18742         (update_mem_sym_stats_from_stmt): Declare.
18743         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
18744         Set default value to 100.
18745         (PARAM_AVG_ALIASED_VOPS): Define.
18746
18747 2007-04-11  Richard Guenther  <rguenther@suse.de>
18748
18749         PR middle-end/31530
18750         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
18751         a * -b + c as c - a * b if we honor sign dependent rounding.
18752
18753 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18754
18755         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
18756         bfin_expand_strmov.
18757         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
18758         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
18759         variables.
18760         (initialize_trampoline): Don't use old-style function definition.
18761         (bfin_secondary_reload): Mark IN_P argument as unused.
18762
18763 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
18764
18765         PR tree-optimization/31343
18766         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
18767         (build_polynomial_chrec): Return a scalar when the evolution is zero.
18768         * testsuite/gcc.dg/vect/pr31343.c: New.
18769
18770 2007-04-10  Eric Christopher  <echristo@apple.com>
18771
18772         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
18773         * config/i386/i386.md (*cmpfp0): Use.
18774         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
18775         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
18776         (fix_trunc<mode>_i386_fisttp): Ditto.
18777         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
18778         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
18779         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
18780         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
18781         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
18782         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
18783         (unnamed_splitters): Ditto.
18784         * config/i386/i386.c (output_fix_trunc): Assert that
18785         we're not being passed a TFmode operand.
18786
18787 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
18788
18789         PR tree-optimization/31526
18790         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
18791         n_basic_blocks to find newly added blocks.
18792
18793 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
18794
18795         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
18796         alternative.
18797         (fix_trunc<mode>si_sse): Ditto.
18798         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
18799         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
18800         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
18801         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
18802         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
18803         expander using SSEMODEF mode macro.
18804         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
18805         expander using SSEMODEF mode macro.
18806         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
18807         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
18808         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
18809         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
18810         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
18811         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
18812         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
18813         Macroize insn using X87MODEF mode macro.
18814
18815 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
18816
18817         * config/i386/sse.md (sse2_pinsrw): Removed.
18818         (sse2_pextrw): Renamed to ...
18819         (*sse2_pextrw): This.
18820
18821 2007-04-09  Jan Hubicka  <jh@suse.cz>
18822
18823         PR target/27869
18824         * config/i386/sse.md
18825         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
18826         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
18827         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
18828         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
18829
18830 2007-04-09  Jan Hubicka  <jh@suse.cz>
18831
18832         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
18833         multiple fields of union.
18834
18835 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
18836
18837         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
18838         (create_preheaders): Check that loops are available.
18839         (fix_loop_structure): Clean up, improve comments.
18840         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
18841         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
18842         state flags.
18843         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
18844         * predict.c (tree_estimate_probability): Do not call
18845         calculate_dominance_info.  Call create_preheaders.
18846         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
18847         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
18848         flags.
18849         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
18850         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
18851         * tree-cfg.c (tree_split_edge): Make an assert more precise.
18852         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
18853         arguments.
18854
18855 2007-04-08  Jan Hubicka  <jh@suse.cz>
18856
18857         * tree.h (maybe_fold_offset_to_component_ref): Declare.
18858         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
18859         * fold-const.c (fold_unary): Use it.
18860
18861 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18862
18863         * varasm.c (assemble_variable): Remove call to
18864         lang_hooks.decls.prepare_assemble_variable.
18865         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
18866         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
18867         * langhooks.h (lang_hooks_for_decls): Remove
18868         prepare_assemble_variable.
18869
18870 2007-04-08  Mike Stump  <mrs@apple.com>
18871
18872         * config/i386/i386.c: Use inc/dec on Core2.
18873
18874 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
18875
18876         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
18877         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
18878         lhd_tree_inlining_end_inlining): Remove.
18879         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
18880         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
18881         end_inlining hooks.
18882         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
18883         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
18884         lhd_tree_inlining_end_inlining): Remove prototypes.
18885         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
18886         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
18887         LANG_HOOKS_TREE_INLINING_START_INLINING,
18888         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
18889
18890         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
18891         not set it.
18892
18893 2007-04-08  Anatoly Sokolov <aesok@post.ru>
18894
18895         PR target/29932
18896         * config/avr/predicates.md (io_address_operand): Delete predicate.
18897         (low_io_address_operand): Don't use 'mode' argument.
18898         (higth_io_address_operand): Rename ...
18899         (high_io_address_operand): ... to this. Don't use 'mode' argument.
18900         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
18901         for above change.
18902
18903 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
18904
18905         Revert change removing staticp.
18906
18907 2007-04-07  Anatoly Sokolov <aesok@post.ru>
18908
18909         PR target/30289
18910         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
18911         earlyclobber.
18912
18913 2007-04-07  Bruce Korb  <bkorb@gnu.org>
18914
18915         * c.opt: Add -Wformat-contains-nul.
18916         * c-format.c (set_Wformat): Set warn_format_contains_nul to the
18917           -Wformat setting.
18918         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
18919         the NUL byte warning.
18920
18921 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
18922
18923         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
18924
18925 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
18926
18927         * tree.c (staticp): No longer use staticp langhook.
18928         * langhooks.c (lhd_staticp): Removed.
18929         * langhooks.h (struct lang_hooks): Remove staticp.
18930         * c-common.c (c_staticp): Remove.
18931         * c-common.h (c_staticp): Ditto.
18932         * langhooks-defs.h (lhd_staticp): Ditto.
18933         (LHD_HOOKS_STATICP): Ditto
18934         * tree.h (gcc_assert_lowered): New macro.
18935
18936 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
18937
18938         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
18939         argument "reliable".
18940         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
18941         Add argument "reliable".  Propagate it through calls.
18942         (infer_loop_bounds_from_undefined): Derive number of iterations
18943         estimates from references in blocks that do not dominate loop latch.
18944         (gcov_type_to_double_int): New function.
18945         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
18946         and expected_loop_iterations_unbounded.
18947         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
18948         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
18949         * tree-data-ref.c (estimated_loop_iterations): Export.
18950         (get_references_in_stmt): Fix -- do not return addresses of local
18951         objects.
18952         * cfgloop.h (expected_loop_iterations_unbounded,
18953         estimated_loop_iterations): Declare.
18954
18955 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
18956
18957         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
18958
18959 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
18960
18961         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
18962         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
18963         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
18964         Use output_387_reg_move().
18965         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
18966         expander using X87MODEF12 mode macro.
18967         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
18968         choosing register preferences.  Use output_387_reg_move().
18969         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
18970         instead of "x".  Use output_387_reg_move().
18971         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
18972         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
18973         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
18974         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
18975         Use output_387_reg_move().
18976         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
18977         mode macro.
18978         (*truncxf?f_i387 splitter): Ditto.
18979
18980 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
18981
18982         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
18983         LANG_HOOKS_SAFE_FROM_P.
18984         * expr.c (safe_from_p): Remove langhook call.
18985         * langhooks.h (lang_hooks): Remove safe_from_p.
18986         (lhd_safe_from_p): Remove prototype.
18987         * langhooks.c (lhd_safe_from_p): Remove.
18988
18989 2007-04-06  Jan Hubicka  <jh@suse.cz>
18990
18991         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
18992         functions.
18993
18994 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
18995
18996         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
18997         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
18998         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
18999         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
19000         alternative.
19001         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
19002         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
19003
19004 2007-04-05  Richard Henderson  <rth@redhat.com>
19005
19006         * config/alpha/alpha.c (print_operand) [+]: Remove.
19007         (alpha_end_function): Print nop if call at end of function.
19008         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
19009         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
19010         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
19011         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
19012         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
19013         the call pattern. Update peepholes to match.
19014
19015 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
19016
19017         * doc/extend.texi (Other Builtins): Add decimal float variants
19018         of signbit.
19019         * builtins.def: Ditto.
19020         * builtins.c (expand_builtin): Ditto.
19021
19022 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
19023             H.J. Lu  <hongjiu.lu@intel.com>
19024
19025         PR target/31478
19026         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
19027         of V8HImode when calling ix86_binary_operator_ok.
19028         (sse2_pmaddwd): Call ix86_binary_operator_ok.
19029         (sdot_prodv8hi): Operands 1 and 2 must be register.
19030
19031 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
19032
19033         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
19034         initialize align to silence bogus warning.
19035
19036 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
19037
19038         PR middle-end/22156
19039         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
19040         all_no_warning.
19041         (struct sra_walk_fns): Remove use_all parameter from use.
19042         (sra_hash_tree): Handle BIT_FIELD_REFs.
19043         (sra_elt_hash): Don't hash bitfld blocks.
19044         (sra_elt_eq): Skip them in parent compares as well.  Handle
19045         BIT_FIELD_REFs.
19046         (sra_walk_expr): Don't maintain or pass down use_all_p.
19047         (scan_use): Remove use_all parameter.
19048         (scalarize_use): Likewise.  Re-expand assignment to
19049         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
19050         output, and re-scalarize after output.  Don't mark anything
19051         for no warning.
19052         (scalarize_ldst): Adjust.
19053         (scalarize_walk_gimple_modify_statement): Likewise.
19054         (build_element_name_1): Handle BIT_FIELD_REFs.
19055         (instantiate_element): Don't warn for any element whose parent
19056         is used as a whole.
19057         (instantiate_missing_elements_1): Return the sra_elt.
19058         (canon_type_for_field): New.
19059         (try_instantiate_multiple_fields): New.
19060         (instantiate_missing_elemnts): Use them.
19061         (mark_no_warning): Removed.
19062         (generate_one_element_ref): Handle BIT_FIELD_REFs.
19063         (REPLDUP, sra_build_elt_assignment): New.
19064         (generate_copy_inout): Use them.
19065         (generate_element_copy): Likewise.  Handle bitfld differences.
19066         (generate_element_zero): Don't recurse for blocks.  Use
19067         sra_build_elt_assignment.
19068         (generate_one_element_int): Take elt instead of var.  Use
19069         sra_build_elt_assignment.
19070         (generate_element_init_1): Adjust.
19071         (scalarize_use, scalarize_copy): Use REPLDUP.
19072         (scalarize_ldst): Move assert before dereference.
19073         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
19074
19075 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19076
19077         * regmove.c: Fix unused variable warnings due to previous commit.
19078
19079 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19080
19081         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
19082         (regmove_bb_head): Remove.
19083         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
19084         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
19085         problems with fixup_match_1.
19086         Don't initialize/free regmove_bb_head.
19087
19088         (reg_is_remote_constant_p): If an insn is in the same basic block
19089         but not before INSN, consider it remote, too.
19090
19091 2007-04-05  Anatoly Sokolov <aesok@post.ru>
19092
19093         PR target/25448
19094         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
19095         DECL_ASSEMBLER_NAME, not the DECL_NAME.
19096
19097 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
19098
19099         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
19100         (CONDITIONAL_REGISTER_USAGE): Likewise.
19101
19102 2007-04-04  Richard Henderson  <rth@redhat.com>
19103
19104         * config/alpha/lib1funcs.asm: Remove unused file.
19105
19106 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19107
19108         PR other/31356
19109         * opts.c (print_specific_help): Fix --help=<language>
19110         header line.
19111         (common_handle_option): Support --help=common.
19112
19113 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19114
19115         PR other/31353
19116         * gcc.c (main): Do not run the linker if
19117         print_subprocess_help indicates that it shouldn't be
19118         run.
19119
19120 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
19121
19122         PR doc/31355
19123         * doc/invoke.texi (--help=): Document <languages> value, fix
19124         formatting in tables of values.
19125
19126 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
19127
19128         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
19129         dllimport attribute of virtual methods.
19130
19131 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
19132
19133         * config/score/crti.asm: Change _bss_start to __bss_start.
19134         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
19135         (OUTGOING_REG_PARM_STACK_SPACE) update.
19136         * config/score/score.opt: add options to make backend support
19137         score5, score5u, score7 and score7d.
19138         * config/score/score.md: Likewise.
19139         * config/score/misc.md: Likewise.
19140         * config/score/mac.md: Likewise.
19141         * doc/invoke.texi: Likewise.
19142         * doc/md.texi: update constraints define.
19143
19144 2007-04-03  Richard Henderson  <rth@redhat.com>
19145
19146         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
19147         an appropriate type, use the mode instead.
19148
19149 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
19150
19151         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
19152         Set the default --with-arch setting to mips2.
19153         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
19154         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
19155         (MULTILIB_OSDIRNAMES): Delete.
19156         (MULTILIB_DIRNAMES): Define.
19157         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
19158         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
19159         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
19160         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
19161         VXWORKS_OS_CPP_BUILTINS.
19162         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
19163         (MIPS_DEBUGGING_INFO): Undefine.
19164         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
19165
19166 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
19167
19168         PR middle-end/30704
19169         * fold-const.c (native_encode_real): Encode real.c provided longs
19170         as a series of 32-bit native integers.
19171         (native_interpret_real): Interpret buffer as a series of 32-bit
19172         native integers.
19173
19174 2007-04-03  Richard Guenther  <rguenther@suse.de>
19175
19176         * genpreds.c (write_insn_constraint_len): Write function
19177         optimized for CONSTRAINT_LEN implementation.
19178         (write_tm_preds_h): Output insn_constraint_len inline and
19179         use it for CONSTRAINT_LEN.
19180         (write_insn_preds_c): Don't output insn_constraint_len.
19181         * doc/md.texi (define_register_constraint): Document multi-letter
19182         constraints shall have the same length if they start with the same
19183         letter.
19184
19185 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
19186
19187         PR target/31175
19188         * config/i386/i386.md (isinf<mode>2): Expand only when
19189         TARGET_C99_FUNCTIONS is set.
19190
19191 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
19192
19193         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
19194         (x86_64-*-linux*): Ditto.
19195         * config/i386/i386.opt (mpc): New option.
19196         * config/i386/i386.c (overrride_options): Handle
19197         ix87_precision_string.
19198         * config/i386/crtprec.c: New file.
19199         * config/i386/t-crtpc: Ditto.
19200         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
19201         and -mpc80 options.
19202         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
19203         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
19204         crtprec32.o, crtprec64.o and crtprec80.o.
19205
19206         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
19207         and -mpc80 options.
19208         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
19209
19210 2007-04-02  Eric Christopher  <echristo@apple.com>
19211
19212         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
19213         limitations on darwin.
19214
19215 2007-04-02  Anatoly Sokolov <aesok@post.ru>
19216
19217         PR target/31137
19218         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
19219
19220 2007-04-02  Dave Korn  <dave.korn@artimi.com>
19221
19222         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
19223
19224 2007-04-02  Dave Korn  <dave.korn@artimi.com>
19225
19226         * libgcc2.h (exception_descriptor): Don't forward-declare.
19227         (__get_eh_table_language, __get_eh_table_version): Delete
19228         prototypes of long-dead functions.
19229
19230 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
19231
19232         * ebitmap.h: New file
19233         * ebitmap.c: New file
19234         * Makefile.in (ebitmap.o): New target.
19235
19236 2007-04-01  Jan Hubicka  <jh@suse.cz>
19237
19238         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
19239         before very first instruction.
19240
19241 2007-04-01  Jan Hubicka  <jh@suse.cz>
19242
19243         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
19244         waring on 64bit hosts.
19245         * bitmap.h: Fix typo in bitmap_head_def.
19246
19247 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
19248
19249         PR rtl-optimization/31391
19250         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
19251         into a DELETED_LABEL note, and the label is in an empty basic
19252         block, update BB_END as well as BB_HEAD.
19253
19254 2007-04-01  Richard Henderson  <rth@redhat.com>
19255
19256         PR tree-optimization/31169
19257         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
19258         to varying if the range is outside [0,  prec-1].
19259
19260 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
19261
19262         PR target/31388
19263         * config/mips/mips.md (load_const_gp): New insn.
19264         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
19265         the MIPS16 GP pseudo register if no_new_pseudos.
19266         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
19267
19268 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19269
19270         PR target/31364
19271         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
19272         secureplt.
19273         (call_value): Likewise.
19274
19275 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
19276             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19277
19278         PR 14737
19279         * doc/invoke.texi: (optimization options): Reword description
19280         of -ffast-math. Document its primary purpose.
19281
19282 2007-03-31  Richard Guenther  <rguenther@suse.de>
19283
19284         * omp-low.c (splay-tree.h): Include.
19285         (lookup_decl): Replace splay-tree usage by pointer-map.
19286         (maybe_lookup_decl): Likewise.
19287         (new_omp_context): Likewise.
19288         (delete_omp_context): Likewise.
19289         * gimplify.c (splay-tree.h): Include.
19290         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
19291         pointer-map.
19292         (remap_ssa_name): Likewise.
19293         (remap_decl): Likewise.
19294         (remap_type_1): Likewise.
19295         (remap_type): Likewise.
19296         (copy_body_r): Likewise.
19297         (expand_call_inline): Likewise.
19298         (clone_body): Likewise.
19299         (copy_tree_r): Likewise.
19300         (remap_save_expr): Likewise.
19301         (unsave_r): Likewise.
19302         (unsave_expr_now): Likewise.
19303         (tree_function_versioning): Likewise.
19304         (build_duplicate_type): Likewise.
19305         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
19306         (struct copy_body_data): Replace splay-tree by pointer-map.
19307         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
19308         not $(SPLAY_TREE_H).
19309         (gimplify.o): Depend on $(SPLAY_TREE_H).
19310         (omp-low.p): Likewise.
19311
19312 2007-03-31  Anatoly Sokolov <aesok@post.ru>
19313
19314         * config/avr/predicates.md (even_register_operand,
19315         odd_register_operand): New predicates.
19316         * config/avr/avr.md (movw peephole2): New.
19317         (movw_r peephole2): New.
19318
19319 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
19320
19321         * tree.h (get_signed_or_unsigned_type): New.
19322         * fold-const.c (operand_equal_for_comparison_p): Use
19323         get_signed_or_unsigned_type instead of
19324         lang_hooks.types.signed_or_unsigned_type.
19325         * expr.c (store_expr): Ditto.
19326         * langhooks.c (get_signed_or_unsigned_type): New.
19327         (lhd_signed_or_unsigned_type): New.
19328         * langhooks.h (lhd_signed_or_unsigned_type): New.
19329         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
19330
19331 2007-03-30  Richard Henderson  <rth@redhat.com>
19332
19333         * tree-ssa-loop-ivopts.c: Include target.h.
19334         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
19335         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
19336         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
19337         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
19338
19339 2007-03-30  Richard Henderson  <rth@redhat.com>
19340             Kai Tietz  <kai.tietz@onevision.com>
19341
19342         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
19343         default for 64-bit.
19344         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
19345         (TARGET_64BIT_MS_ABI): New.
19346         (DBX_REGISTER_NUMBER): Handle 64-bit.
19347         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
19348         (LONG_TYPE_SIZE): Force to 32.
19349         (REG_PARM_STACK_SPACE): New.
19350         (OUTGOING_REG_PARM_STACK_SPACE): New.
19351         (REGPARM_MAX, SSE_REGPARM_MAX): New.
19352         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
19353         (STACK_BOUNDARY): Use 128 for 64-bit.
19354         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
19355         Add 64-bit implementation.
19356         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
19357         argument unused.
19358         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
19359         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
19360         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
19361         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
19362         (ix86_handle_cconv_attribute): Don't warn when ignoring if
19363         TARGET_64BIT_MS_ABI.
19364         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
19365         (ix86_pass_by_reference): Likewise.
19366         (ix86_function_value_regno_p): Likewise.
19367         (ix86_build_builtin_va_list): Likewise.
19368         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
19369         (function_arg_advance_ms_64): New.
19370         (function_arg_advance): Call it.
19371         (function_arg_ms_64): New.
19372         (function_arg): Call it.
19373         (function_value_ms_64): New.
19374         (ix86_function_value_1): Call it.
19375         (return_in_memory_ms_64): New.
19376         (ix86_return_in_memory): Call it.
19377         (setup_incoming_varargs_ms_64): New.
19378         (ix86_setup_incoming_varargs): Call it.
19379         (ix86_expand_prologue): Handle 64-bit stack probing.
19380         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
19381         (output_pic_addr_const): Likewise.
19382         (x86_this_parameter): Likewise.
19383         (x86_output_mi_thunk): Likewise.
19384         (x86_function_profiler): Likewise.
19385         (TARGET_STRICT_ARGUMENT_NAMING): New.
19386         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
19387         (TARGET_64BIT_MS_ABI): New.
19388         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
19389         * config/i386/i386.md (allocate_stack_worker): Remove.
19390         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
19391         describe the clobber of eax without a match_scratch.
19392         (allocate_stack_worker_postreload): Remove.
19393         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
19394         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
19395         (allocate_stack_worker_rex64_postreload): Remove.
19396         (allocate_stack): Handle 64-bit.
19397         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
19398         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
19399         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
19400         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
19401         (STANDARD_STARTFILE_PREFIX_1): Likewise.
19402         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
19403         * config.build (x86_64-*-mingw*): New host.
19404         * config.host (x86_64-*-mingw*): New host.
19405         * config.gcc (x86_64-*-mingw*): New target.
19406         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
19407
19408 2007-03-30  Richard Henderson  <rth@redhat.com>
19409             Kai Tietz  <kai.tietz@onevision.com>
19410
19411         * c-pragma.c (struct def_pragma_macro_value): New.
19412         (struct def_pragma_macro): New.
19413         (pushed_macro_table): New.
19414         (dpm_hash, dpm_eq): New.
19415         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
19416         (init_pragma): Install them.
19417         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
19418
19419 2007-03-30  Anatoly Sokolov <aesok@post.ru>
19420
19421         * config/avr/avr.c (avr_override_options): Clear
19422         'flag_delete_null_pointer_checks'.
19423
19424 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
19425
19426         PR c++/26099
19427         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
19428         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
19429         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
19430         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
19431         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
19432         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
19433         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
19434         C++ extensions.
19435         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
19436
19437 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
19438
19439         * regmove.c: Move all of pass_stack_adjustments from here...
19440         * combine-stack-adj.c: ...to this new file.
19441         * Makefile.in: Add rules for combine-stack-adj.o.
19442
19443 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
19444
19445         PR tree-optimization/31383
19446         * tree-data-ref.c (affine_function_equal_p): Do not require the
19447         vectors to have the same length.
19448
19449 2007-03-30  Jan Hubicka  <jh@suse.cz>
19450
19451         PR middle-end/30700
19452         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
19453         availablility; add more sanity checking; ask varpool only about
19454         VAR_DECL.
19455
19456 2007-03-29  Richard Henderson  <rth@redhat.com>
19457
19458         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
19459         to decide, but __SIZEOF_LONG_LONG__.
19460
19461 2007-03-29  Richard Henderson  <rth@redhat.com>
19462
19463         * emutls.c (struct __emutls_array): New.
19464         (emutls_destroy): Use it instead of casting element 0 from void*.
19465         (__emutls_get_address): Likewise.
19466
19467 2007-03-29  Richard Henderson  <rth@redhat.com>
19468
19469         * varasm.c (initializer_constant_valid_p): Don't deny
19470         DECL_DLLIMPORT_P on functions.
19471
19472         * config/i386/cygming.h: Remove function declarations.
19473         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
19474         (ASM_OUTPUT_LABELREF): Remove.
19475         (COMMON_ASM_OP): Remove.
19476         (ASM_OUTPUT_COMMON): Remove.
19477         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19478         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
19479         (ASM_DECLARE_FUNCTION_NAME): Likewise.
19480         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
19481         Rename from TARGET_ENCODE_SECTION_INFO.
19482         * config/i386/netware.h: Likewise.
19483         * config/i386/i386-protos.h: Update.
19484         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
19485         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
19486         (legitimate_constant_p): Reject dllimports.
19487         (dllimport_map, get_dllimport_decl): New.
19488         (legitimize_dllimport_symbol): New.
19489         (legitimize_address, ix86_expand_move): Use it.
19490         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
19491         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
19492         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
19493         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
19494         * config/i386/predicates.md (constant_call_address_operand): Only
19495         accept symbols; reject dllimport_p symbols.
19496         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
19497         i386_pe_maybe_record_exported_symbol.
19498         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
19499         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
19500         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
19501         trust the setting of DECL_DLLIMPORT_P.
19502         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
19503         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
19504         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
19505         tidy the argument scanning loop.
19506         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
19507         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
19508         (i386_pe_strip_name_encoding): Remove.
19509         (i386_pe_binds_local_p): New.
19510         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
19511         (i386_pe_output_labelref): Remove.
19512         (i386_pe_asm_output_aligned_decl_common): New.
19513         (i386_pe_maybe_record_exported_symbol): Rename from
19514         i386_pe_record_exported_symbol; check for dllexported symbols.
19515
19516 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
19517
19518         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
19519         add comment explaining why vsnprintf cannot be used.
19520
19521 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
19522
19523         PR tree-optimization/30666
19524         * tree.c (build_complex_type): When creating type names for DWARF2
19525         debug info, create TYPE_DECLs for TYPE_NAME instead of
19526         IDENTIFIER_NODEs.
19527         (build_common_tree_nodes_2): Use build_complex_type when building
19528         predefined complex types, to preserve canonical types.
19529
19530 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
19531
19532         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
19533         (noce_get_alt_condition): Look at it to determine whether to
19534         reverse the condition or not.
19535         (noce_get_condition): Substitute the truth for lies.
19536         (noce_find_if_block): Set the then_else_reversed field.
19537
19538 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
19539
19540         * config/fr30/fr30.md (movdi): Do not accept immediates as the
19541         destination of this insn.
19542         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
19543         than calling gen_rtx_SET directly.  Use r0 to hold the value of
19544         'address + 4' rather than a stack based temporary which can be
19545         mis-optimized away.
19546
19547 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
19548
19549         * config/s390/s390.c (s390_secondary_input_reload_class,
19550         s390_secondary_output_reload_class): Functions removed.
19551         (s390_secondary_reload): New function.
19552         (TARGET_SECONDARY_RELOAD): Target macro defined.
19553         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
19554         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
19555         * config/s390/s390.md ("reload_outti", "reload_outdi",
19556         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
19557         "reload_out<mode>"): Expanders removed.
19558         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
19559         "reload<mode>_nonoffmem_out"): Expanders added.
19560
19561 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
19562
19563         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
19564         action if SRC->DEST replacement failed anyway.
19565
19566 2007-03-28  Mike Stump  <mrs@apple.com>
19567
19568         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
19569         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
19570         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
19571
19572 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
19573
19574         * config.gcc: Accept barcelona as a variant of amdfam10.
19575         * config/i386/i386.c (override_options): Likewise.
19576         * doc/invoke.texi: Likewise.
19577
19578 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
19579
19580         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
19581         offsets for BIT_FIELD_REF and COMPONENT_REF.
19582
19583 2007-03-28  Richard Guenther  <rguenther@suse.de>
19584
19585         * tree.c (is_global_var): Move ...
19586         * tree-flow-inline.h (is_global_var): ... here.
19587         * tree.h (is_global_var): Remove declaration.
19588
19589 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
19590
19591         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
19592         option.
19593         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
19594         * config/i386/i386.c (ix86_tune_features): Initialize new
19595         tuning option.
19596         * config/i386/predicates.md (promotable_binary_operator): Use
19597         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
19598
19599 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
19600
19601         PR target/31380
19602         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
19603
19604 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
19605
19606         * config/fr30/fr30.md (movsi_internal): Change destination
19607         constraint from m to V and add m to the end.
19608
19609 2007-03-28  Christian Bruel  <christian.bruel@st.com>
19610
19611         * config/sh/sh.md (movsi_i): Fix type attribute.
19612
19613 2007-03-28  Christian Bruel  <christian.bruel@st.com>
19614
19615         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
19616         (movsf_ie): Likewise.
19617
19618 2007-03-28  Christian Bruel  <christian.bruel@st.com>
19619
19620         * config.gcc: Add sh4-300 to multilib.
19621         * config/sh/t-mlib-sh4-300: New file.
19622
19623 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
19624
19625         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
19626         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
19627         fix_trunc<mode>di2.
19628         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
19629         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
19630         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
19631         "fixuns_trunctddi2"): Whitespace fix.
19632
19633 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
19634
19635         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
19636         the definition of struct sh_args.
19637         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
19638         CALL_COOKIE_INT_REG_GET): Likewise.
19639
19640 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
19641
19642         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
19643         transformations are applied successfully.
19644
19645 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
19646
19647         * tree.c (tree_contains_struct): Permit 512 tree codes.
19648         * tree.h (tree_contains_struct): Ditto.
19649         (MAX_TREE_CODES): Ditto.
19650         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
19651         SPARE member to store remaining padding bits.
19652
19653 2007-03-27  Anatoly Sokolov <aesok@post.ru>
19654
19655         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
19656         architecture.
19657
19658 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
19659
19660         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
19661         * configure: Regenerate.
19662
19663         * configure: Regenerate using the correct version of autoconf.
19664
19665 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
19666
19667         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
19668         pointer regs.
19669         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
19670         regs to "__SP_L__" and "__SP_H__".
19671
19672 2007-03-27  Richard Guenther  <rguenther@suse.de>
19673
19674         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
19675         computations with it with a HOST_WIDE_INT variable.
19676
19677 2007-03-26  Mike Stump  <mrs@apple.com>
19678
19679         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
19680         objective-c-header, objective-c++-header and objc++-cpp-output
19681         support.
19682         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
19683
19684 2007-03-26  Richard Henderson  <rth@redhat.com>
19685
19686         PR target/31361
19687         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
19688         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
19689         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
19690         IX86_BUILTIN_PSRLQ128): New.
19691         (ix86_init_mmx_sse_builtins): Add them.
19692         (ix86_expand_builtin): Expand them.
19693         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
19694         operand 2 be TImode.
19695         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
19696         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
19697         _mm_srli_epi64): Mark __B const.
19698         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
19699         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
19700         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
19701         new two-vector shift builtins.
19702
19703 2007-03-26  Ian Lance Taylor  <iant@google.com>
19704
19705         PR tree-optimization/31345
19706         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
19707         [+INF, +INF(OVF)] into VARYING.
19708
19709 2007-03-26  Zack Weinberg  <zackw@panix.com>
19710
19711         * gengtype-parse.c: New file.
19712         * gengtype-yacc.y: Delete.
19713         * gengtype-lex.l: Don't include gengtype-yacc.h.
19714         Define YY_DECL and yyterminate appropriately for recursive
19715         descent parser.  yylval is now a string out-parameter to yylex.
19716         (HWS, EOID): New shorthand.
19717         (IWORD): Add a couple more types.
19718         (yylex): Add a setup stanza.  Remove the complex rules for
19719         detecting GTY'ed types and typedefs; replace with simple
19720         keyword detectors.  Adjust everything for the changed
19721         definition of yylval.  Ignore all pp-directives, not just #define.
19722         (yyerror): Delete.
19723         (parse_file): Rename yybegin; do not call yyparse.
19724         (yyend): New.
19725         * gengtype.c (xasprintf): Export again.
19726         (this_file): New.  Use everywhere __FILE__ was being used.
19727         (get_lang_bitmap): Special case types defined in gengtype.c.
19728         (do_typedef, new_structure): Suppress definition of certain types.
19729         (new_structure): Improve diagnostics of duplicate definitions.
19730         Make sure location_s is associated with input.h.
19731         (nreverse_pairs, define_location_structures): New functions.
19732         (main): Improve tagging of kludge types.  Remove old kludges
19733         for input.h types; use define_location_structures.
19734         * gengtype.h: Update prototypes.  Define token codes here.
19735         * Makefile.in: Remove all references to gengtype-yacc.
19736         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
19737         and gengtype.
19738         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
19739         add GTY((skip)) to the field that's only conditionally there.
19740         * doc/install.texi: Document that Bison is no longer required
19741         unless building treelang.
19742
19743         * gengtype.c: Don't include gtyp-gen.h.
19744         (srcdir): Declare here.
19745         (base_files, lang_dir_names): Allocate dynamically.
19746         (gt_files, num_gt_files, num_lang_dirs): New globals.
19747         (measure_input_list, read_input_line, read_input_list)
19748         (set_lang_bitmap): New functions.
19749         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
19750         simplify, relying on read_input_list to set up the bitmaps.
19751         (main): Arguments are no longer unused.  Check for correct number
19752         of command line arguments, set srcdir and srcdir_len, then call
19753         read_input_list, before doing anything else.  No need to worry
19754         about duplicates in main loop.
19755         * configure.ac: Simplify the calculation of all_gtfiles.
19756         Put language tags in there.  Don't set or substitute
19757         all_gtfiles_files_langs or all_gtfiles_files_frags.
19758         * Makefile.in: Revamp the way gengtype is invoked, now that it
19759         takes a file on its command line with a much simpler format.
19760         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
19761         (GTFILES): Remove duplicates and C source files.
19762         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
19763         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
19764         * configure: Regenerate.
19765
19766         * gengtype.h: Remove all type definitions to gengtype.c; leave
19767         only definitions of options_p, type_p, and pair_p as opaque
19768         pointers.  Update prototypes.
19769         * gengtype.c: Many type definitions moved here from gengtype.h.
19770         Consolidate type definitions at the top of the file.
19771         (xvasprintf): Delete.
19772         (xasprintf): Make static.
19773         (create_nested_pointer_option): Add 'next' parameter.
19774         (create_field_all, create_field_at): New functions.
19775         (create_field): Now a thin wrapper around create_field_all.
19776         (create_optional_field): Rename create_optional_field_ and add
19777         line argument.  Original name is now a macro which supplies
19778         __LINE__.
19779         (oprintf): Use vsnprintf directly.
19780         (close_output_files): Use fatal rather than perror/exit.
19781         (note_def_vec, note_def_vec_alloc): Use create_field_at.
19782         (main): Set progname.  Don't use exit.
19783         * gengtype-yacc.y (struct_fields): Use create_field_at.
19784         (option, optionseqopt): Delete.
19785         (optionseq): Consolidate productions from option here so we
19786         can use the first argument to create_option.
19787
19788         * gengtype-lex.l: Distinguish unions from structures in the
19789         token type.  Don't call find_structure; return the tag as a string.
19790         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
19791         ENT_UNION.  Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
19792         string.  Reorganize typedef_struct production accordingly.
19793         Use create_nested_ptr_option.
19794         * gengtype.c (create_nested_ptr_option): New function.
19795         * gengtype.h: Declare it.
19796
19797         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
19798         (string_type): Don't declare.
19799         (do_scalar_typedef): Declare.
19800         (create_scalar_type): Update prototype.
19801         * gengtype.c (string_type): Make static.
19802         (scalar_nonchar, scalar_char): New.
19803         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
19804         (resolve_typedef): Use scalar_nonchar for error recovery.
19805         (create_scalar_type): Remove name_len field.  Return scalar_char
19806         or scalar_nonchar as appropriate.
19807         (adjust_field_type): Look at scalar_is_char boolean to decide whether
19808         to use string_type.
19809         (throughout): Use scalar_nonchar instead of calling
19810         create_scalar_type, whenever possible.
19811         (main): Initialize scalar_char and scalar_nonchar before calling
19812         gen_rtx_next.
19813         * gengtype-lex.l: Adjust for removal of second argument to
19814         create_scalar_type.  Use yylval.s instead of yylval.t when
19815         returning SCALAR.
19816         * gengtype-yacc.y: Type of SCALAR is string.  Call
19817         create_scalar_type from type:SCALAR rule.  Adjust for removal of
19818         second argument to create_scalar_type.
19819
19820         * vec.h: Remove all #if IN_GENGTYPE blocks.
19821         Add comment saying that changes may require adjustments to gengtype.
19822         * gengtype.c: Don't include coretypes.h or tm.h.
19823         Add comment to inclusion of errors.h.
19824         (note_def_vec, note_def_vec_alloc): New functions.
19825         * gengtype.h: Declare new functions.
19826         * gengtype-lex.l: Don't include coretypes.h.
19827         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
19828         Delete.
19829         (update_lineno): Remove unnecessary prototype.
19830         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
19831         (VEC rule): Just return VEC_TOKEN.
19832         * gengtype-yacc.y (VEC_TOKEN): New token type.
19833         (type): Add a production for VEC(a,b).
19834         * Makefile.in: Update dependencies.
19835
19836         * gengtype-lex.l: Remove rules for parsing pointer-to-function
19837         typedefs that use the old PARAMS macro.
19838
19839         * gengtype-lex.l: Remove all rules and states relating to yacc
19840         input files.
19841         * gengtype-yacc.y: Similarly.
19842         * gengtype.c (note_yacc_type): Delete function.
19843         * gengtype.h: Update prototypes.
19844
19845 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
19846
19847         * tree-pretty-print.c (dump_generic_node): Report precision of
19848         unnamed integer types.
19849
19850 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
19851
19852         * ifcvt.c (noce_try_store_flag_constants): Don't check
19853         no_new_pseudos here.
19854         (noce_try_store_flag_constants): Don't check no_new_pseudos.
19855         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
19856         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
19857         noce_try_sign_mask): Likewise.
19858         (if_convert): Check no_new_pseudos here.
19859
19860         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
19861         Remove prototypes.
19862         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
19863         (noce_get_condition): Handle new then_else_reversed argument.
19864         (noce_init_if_info): Remove, fold into noce_find_if_block.
19865         (noce_process_if_block): Take a struct noce_if_info as the
19866         argument.  Don't set up one based on ce_if_info.  Update pointer
19867         references accordingly.
19868         (cond_move_process_if_block): Likewise.
19869         (process_if_block): Removed.
19870         (find_if_block): Removed.  Move functionality two new functions,
19871         noce_find_if_block and cond_exec_find_if_block.
19872         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
19873         blocks and the symmetric IF-ELSE-JOIN case.
19874         (cond_exec_find_if_block): Also new function mostly based on old
19875         find_if_block and process_if_block.
19876         (find_if_header): Replace find_if_block call with separately
19877         guarded calls to noce_find_if_block and cond_exec_find_if_block.
19878         (find_cond_trap): Update noce_get_condition call.
19879         (dead_or_predicable): Likewise.
19880
19881 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
19882
19883         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
19884         Remove.
19885         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
19886         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
19887         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
19888         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
19889         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
19890         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
19891         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
19892         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
19893         __builtin_ia32_psrad128 builtins.
19894
19895 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
19896
19897         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
19898         * config/i386/constraints.md
19899         (define_constraint "I"): Use IN_RANGE macro.
19900         (define_constraint "J"): Ditto.
19901         (define_constraint "K"): Ditto.
19902         (define_constraint "M"): Ditto.
19903         (define_constraint "N"): Ditto.
19904         (define_constraint "O"): Ditto.
19905         * config/i386/predicates.md
19906         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
19907         (define_predicate "const_0_to_3_operand"): Ditto.
19908         (define_predicate "const_0_to_7_operand"): Ditto.
19909         (define_predicate "const_0_to_15_operand"): Ditto.
19910         (define_predicate "const_0_to_63_operand"): Ditto.
19911         (define_predicate "const_0_to_255_operand"): Ditto.
19912         (define_predicate "const_1_to_31_operand"): Ditto.
19913         (define_predicate "const_2_to_3_operand"): Ditto.
19914         (define_predicate "const_4_to_7_operand"): Ditto.
19915
19916 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
19917
19918         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
19919         in SImode for save_world.
19920         * config/rs6000/altivec.md (save_world, restore_world): Convert to
19921         LR hard reg.
19922
19923 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
19924
19925         PR tree-optimization/30784
19926         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
19927         BIT_FIELD_REF.
19928
19929 2007-03-25  Revital Eres  <eres@il.ibm.com>
19930
19931         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
19932           Fold movement_possibility function into it.
19933
19934 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
19935
19936         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
19937         (load_macho_picbase_{si,di}): Convert to LR hard reg.
19938         (call_indirect_nonlocal_darwin64): Same.
19939         (call_nonlocal_darwin64): Same.
19940         (call_value_indirect_nonlocal_darwin64): Same.
19941         (call_value_nonlocal_darwin64): Same.
19942         (sibcall_nonlocal_darwin64): Same.
19943         (sibcall_value_nonlocal_darwin64): Same.
19944         (sibcall_symbolic_64): Same.
19945         (sibcall_value_symbolic_64): Same.
19946         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
19947         LR pseudo.
19948         (rs6000_emit_load_toc_table): Same.
19949         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
19950         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
19951         (mull_call): Same.
19952         (divss_call): Same.
19953         (divus_call): Same.
19954         (quoss_call): Same.
19955         (quous_call): Same.
19956         (load_toc_v4_pic_si): Same
19957         (load_toc_v4_PIC_1): Same.
19958         (load_toc_v4_PIC_1b): Same.
19959         (call_indirect_aix{32,64}): Same.
19960         (call_value_indirect_aix{32,64}): Same.
19961         (call): Same.
19962         (call_value): Same.
19963         (call_local{32,64}): Same.
19964         (call_value_local{32,64}): Same.
19965         (call_indirect_nonlocal_aix{32,64}): Same.
19966         (call_nonlocal_aix{32,64}): Same.
19967         (call_value_indirect_nonlocal_aix{32,64}): Same.
19968         (call_value_nonlocal_aix{32,64}): Same.
19969         (call_indirect_nonlocal_sysv<mode>): Same.
19970         (call_nonlocal_sysv<mode>): Same.
19971         (call_value_indirect_nonlocal_sysv<mode>): Same.
19972         (call_value_nonlocal_sysv<mode>): Same.
19973         (sibcall): Same.
19974         (sibcall_local{32,64}): Same.
19975         (sibcall_value_local{32,64}): Same.
19976         (sibcall_nonlocal_aix{32,64}): Same.
19977         (sibcall_value_nonlocal_aix{32,64}): Same.
19978         (sibcall_nonlocal_sysv<mode>): Same.
19979         (sibcall_value): Same.
19980         (sibcall_value_nonlocal_sysv<mode>): Same.
19981
19982 2007-03-24  Paul Brook  <paul@codesourcery.com>
19983
19984         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
19985         * config/arm/linux-eabi.h: Remove legacy syscall hack.
19986
19987 2007-03-24  Richard Henderson  <rth@redhat.com>
19988
19989         * config/ia64/constraints.md: New file.
19990         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
19991         satisfies_constraint_?.
19992         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
19993         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
19994         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
19995         ia64_output_mi_thunk): Likewise.
19996         (ia64_const_ok_for_letter_p): Remove.
19997         (ia64_const_double_ok_for_letter_p): Remove.
19998         (ia64_extra_constraint): Remove.
19999         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
20000         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
20001         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
20002         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
20003         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
20004         EXTRA_MEMORY_CONSTRAINT): Remove.
20005         * config/ia64/ia64.md: Include constriants.md.  Replace
20006         CONST_OK_FOR_? with satisfies_constraint_?.
20007
20008 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
20009             H.J. Lu  <hongjiu.lu@intel.com>
20010
20011         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
20012         DPD or BID name.
20013         (name macros): Use DPD_BID_NAME to convert names properly.
20014
20015         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
20016         decimal floating point format.
20017         (init_floating_libfuncs): Change decimal functions so that they
20018         have a "bid_" prefix if the decimal system uses the BID format,
20019         and "dpd_" prefix if the decimal system uses the DPD format.
20020         (init_interclass_conv_libfuncs): Ditto.
20021         (init_intraclass_conv_libfuncs): Ditto.
20022
20023         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
20024         using the BID format.
20025
20026         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
20027         whether we are using the BID decimal format.
20028         * configure: Regenerate.
20029
20030         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
20031         the compiler has decimal floating point enabled.  Define
20032         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
20033         instead of DPD.
20034
20035         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
20036         using the BID format.
20037
20038         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
20039         whether we are using the BID decimal format.
20040         * configure: Regenerate.
20041
20042         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
20043         the compiler has decimal floating point enabled.  Define
20044         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
20045         instead of DPD.
20046
20047         * doc/install.texi (--enable-decimal-float): Document BID and DPD
20048         options, and that it is enabled for i386/x86_64 systems.
20049
20050         * Makefile.in (enable_decimal_float): New.
20051         (DECNUMFMT): New.
20052         (DECNUMINC): Add  -I$(DECNUMFMT).
20053         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
20054         to $(DECNUMFMT) from $(DECNUM).
20055
20056         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
20057         Substitute enable_decimal_float.
20058         * configure: Regenerated.
20059
20060         PR other/30529
20061         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
20062         unsigned long.
20063
20064         * configure.ac: Enable decimal float for x86_64-*-linux*.
20065         * configure: Regenerated.
20066
20067         PR other/30530
20068         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
20069         decimal128ClearSign to flip and clear the sign bit in decimal128.
20070         (decimal_real_maxval): Set decimal128SetSign to set the sign
20071         bit in decimal128.
20072
20073 2007-03-23  Ian Lance Taylor  <iant@google.com>
20074
20075         * fold-const.c (fold_binary): Correct warning for X - c >= X.
20076
20077 2007-03-23  Ian Lance Taylor  <iant@google.com>
20078
20079         * tree-dump.c (dump_files): Correct comment.
20080
20081 2007-03-23  Ian Lance Taylor  <iant@google.com>
20082
20083         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
20084
20085 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
20086
20087         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
20088         in cfglayout mode.  Don't go into and out of cfglayout mode.
20089         Link the blocks in the order of the constructed traces.
20090         (rest_of_handle_tracer): Adjust call to tracer.
20091         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
20092         Don't go into cfglayout mode.
20093         (rtl_loop_done): Don't go out of cfglayout mode.
20094         * cfglayout.c (relink_block_chain): New function, split out from...
20095         (fixup_reorder_chain): ...here.  Remove redundant checking.
20096         (cfg_layout_finalize): Don't clear the header, footer, and aux
20097         fields here, move the code to do so to relink_block_chain.  Likewise
20098         for free_original_copy_tables.
20099         * rtl.h (tracer): Update prototype.
20100         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
20101         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
20102         mode.  Use relink_block_chain to serialize the CFG according to the
20103         new basic block order.  Move targetm.cannot_modify_jumps_p check from
20104         here...
20105         (gate_handle_reorder_blocks): ...to here.
20106         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
20107         from here...
20108         (gate_duplicate_computed_gotos): ...to here.
20109         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
20110         something always changes when going into and out of cfglayout mode.
20111         Perform an expensive cfg cleanup while going into cfglayout mode.
20112         Always update liveness information on HAVE_conditional_execution
20113         targets.  Reserialize the basic blocks and go out of cfglayout mode.
20114         * reg-stack.c: Include cfglayout.h.
20115         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
20116         the call to reorder_basic_blocks.
20117         * basic-block.h (reorder_basic_blocks): Update prototype.
20118         (relink_block_chain): New prototype.
20119         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
20120
20121 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
20122
20123         * config/mips/mips.md (type, hazard, *movdi_32bit,
20124         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
20125         *movhi_internal, *movqi_internal, *movsf_hardfloat,
20126         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
20127         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
20128         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
20129         applicable.
20130         (movcc): Change first xfer to multi.
20131         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
20132         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
20133         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
20134         config/mips/generic.md: Change reservations using "xfer" to use
20135         "mfc,mtc".
20136         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
20137         using match_operand.
20138         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
20139         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
20140         examining mode.
20141         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
20142
20143 2007-03-22  Richard Henderson  <rth@redhat.com>
20144
20145         * config/i386/i386.c: Remove unnecessary function declarations.
20146         Move targetm definition, and all related macros, to the end of
20147         the file.  Resort some functions to put definitions before uses.
20148         (ix86_attribute_table): Make static.  Move to end of file.
20149         (ix86_gimplify_va_arg): Make static.
20150
20151 2007-03-22  Richard Henderson  <rth@redhat.com>
20152
20153         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
20154         don't increase local_regparm with force_align_arg_pointer check.
20155         (ix86_function_sseregparm): Assert 32-bit.
20156         (type_has_variadic_args_p): New.
20157         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
20158         type_has_variadic_args_p.
20159         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
20160         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
20161         use memset instead.  Do maybe_vaarg check first; skip attribute
20162         tests if true; skip attribute tests for 64-bit.
20163         (construct_container): Remove TARGET_DEBUG_ARG.
20164         (function_arg_advance_32, function_arg_advance_64): Split out ...
20165         (function_arg_advance): ... from here.
20166         (function_arg_32, function_arg_64): Split out ...
20167         (function_arg): ... from here.
20168         (ix86_pass_by_reference): Tidy.
20169         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
20170         (function_value_32): New, from parts of ix86_function_value
20171         and ix86_value_regno.
20172         (function_value_64): New, from parts of ix86_function_value
20173         and ix86_libcall_value.
20174         (ix86_function_value_1): New.
20175         (ix86_function_value, ix86_libcall_value): Use it.
20176         (return_in_memory_32, return_in_memory_64): Split out ...
20177         (ix86_return_in_memory): ... from here.
20178         (ix86_struct_value_rtx): Skip for 64-bit.
20179         (ix86_libcall_value, ix86_value_regno): Remove.
20180         (setup_incoming_varargs_64): Split out ...
20181         (ix86_setup_incoming_varargs): ... from here.
20182         (ix86_va_start): Remove TARGET_DEBUG_ARG.
20183         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
20184         * config/i386/i386-protos.h (ix86_function_value): Remove.
20185         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
20186
20187 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20188
20189         PR other/23572
20190         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
20191         infinities not supported, otherwise emit warning if -Woverflow. On
20192         underflow, emit warning if -Woverflow.
20193         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
20194         and 0 otherwise.
20195         * real.h (real_from_string): Update declaration
20196
20197 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
20198             Richard Henderson  <rth@redhat.com>
20199
20200         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
20201         * calls.c (compute_argument_block_size, expand_call,
20202         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
20203         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20204         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
20205         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
20206         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
20207         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
20208         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
20209         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
20210         Set to 1.
20211
20212 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
20213
20214         * c-incpath.c (add_sysroot_to_chain): New.
20215         (merge_include_chains): Add sysroot argument.  Call
20216         add_sysroot_to_chain if sysrooted.
20217         (register_include_chains): Update call to merge_include_chains.
20218         * doc/cppopts.texi: Document use of '=' in include directory
20219         arguments.
20220
20221 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
20222
20223         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
20224         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
20225         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
20226         insn pattern using X87MODEF12 mode macro.
20227
20228 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
20229
20230         * regmove.c (regmove_optimize): Use reg_mentioned_p
20231         instead of reg_overlap_mentioned_p for DST.
20232
20233 2007-03-21  Mike Stump  <mrs@apple.com>
20234
20235         * c.opt: Fixup for Objective-C/C++.
20236
20237 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
20238
20239         * explow.c (convert_memory_address): Fold memory reference when
20240         POINTERS_EXTEND_UNSIGNED < 0
20241
20242 2007-03-21  Richard Henderson  <rth@redhat.com>
20243
20244         PR target/31245
20245         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
20246         * config/i386/mmintrin.h (__m64): Likewise.
20247         * config/i386/xmmintrin.h (__m128): Likewise.
20248
20249 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20250
20251         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
20252         (VXWORKS_OS_CPP_BUILTINS): Define.
20253         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
20254         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
20255
20256 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20257
20258         * rtl.h (constant_pool_reference_p): Delete.
20259         (find_constant_src): Declare.
20260         * rtlanal.c (find_constant_src): New function.
20261         * simplify-rtx.c (constant_pool_reference_p): Delete.
20262         * config/i386/i386.md: Use find_constant_src instead of
20263         constant_pool_reference_p/avoid_constant_pool_reference pairs.
20264
20265 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
20266
20267         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
20268         * c-cppbuiltin.c (c_cpp_builtins): Define them.
20269
20270 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
20271
20272         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
20273         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
20274         (arm_elf_asm_constructor): Use it.
20275         (arm_elf_asm_destructor): New function.
20276
20277 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
20278
20279         * jump.c (mark_jump_label): Treat SEQUENCE specially.
20280
20281 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
20282
20283         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
20284
20285 2007-03-19  Andrew Haley  <aph@redhat.com>
20286
20287         PR tree-optimization/31264
20288         * tree-vrp.c (register_edge_assert_for_1): Don't look though
20289         VIEW_CONVERT_EXPRs.
20290
20291 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
20292
20293         PR rtl-optimization/30907
20294         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
20295         (fwprop_init): Always call loop_optimizer_initialize.
20296         (fwprop_done): Always call loop_optimizer_finalize.
20297         (fwprop): We always have loop info now.
20298         (gate_fwprop_addr): Remove.
20299         (pass_fwprop_addr): Use gate_fwprop as gate.
20300
20301         PR rtl-optimization/30841
20302         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
20303         df_chain_alloc): Call df_reorganize_refs unconditionally.
20304         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
20305         refs_organized to refs_organized_size.
20306         (df_ref_create_structure): Use refs_organized_size instead of
20307         bitmap_size if refs had been organized, and keep refs_organized_size
20308         up-to-date.
20309         * df.h (struct df_ref_info): Change refs_organized to
20310         refs_organized_size.
20311         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
20312         bitmap_size.
20313
20314 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
20315
20316         * except.c (output_function_exception_table): Do not reference the
20317         EH personality routine for functions that do not require an
20318         exception table.
20319
20320 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
20321
20322         PR c/30762
20323         * c-typeck.c (convert_for_assignment): Call comptypes for
20324         RECORD_TYPE or UNION_TYPE.
20325
20326         PR inline-asm/30505
20327         * reload1.c (reload): Do invalid ASM checking after
20328         cleanup_subreg_operands.
20329
20330 2007-03-19  Jeff Law  <law@redhat.com>
20331
20332         * tree-cfg.c (find_taken_edge): Tighten conditions for
20333         optimizing computed gotos.
20334
20335 2007-03-19  Michael Matz  <matz@suse.de>
20336
20337         * builtins.c (expand_builtin_sync_operation,
20338         expand_builtin_compare_and_swap,
20339         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
20340         correctly.
20341
20342         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
20343         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
20344         for operand 3.
20345
20346 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20347
20348         * doc/tm.texi: Add brackets around the return type of
20349         TARGET_SECONDARY_RELOAD.
20350
20351 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20352         Richard Guenther  <rguenther@suse.de>
20353
20354         PR tree-optimization/31254
20355         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
20356         Use handled_component_p () where appropriate.  Continue
20357         propagating into the rhs if we propagated into an INDIRECT_REF
20358         on the lhs.
20359
20360 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20361
20362         * config/s390/s390.md (op_type attribute): RRR instruction type added.
20363         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
20364         (xde, xdee): Mode attributes adjusted to support DFP modes.
20365         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
20366         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
20367         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
20368         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
20369         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
20370         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
20371         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
20372         numbers.
20373         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
20374         "movsf"): Insn definitions removed.
20375         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
20376         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
20377         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
20378         definitions added.
20379         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
20380         "reload_in<mode>", "reload_out<mode>"): Expander added.
20381         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
20382         Expander removed.
20383
20384 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20385
20386         * config/s390/s390.md: Only non-functional changes.  Renamed
20387         FPR mode macro to BFP all over the file.
20388
20389 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20390
20391         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
20392         (op_type attribute): RRF instruction type added.
20393         (fT0): New mode attribute.
20394         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
20395         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
20396         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
20397         instruction no secondary memory is needed when moving DFmode values
20398         between GPRs and FPRs.
20399
20400 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20401
20402         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
20403         inverted and documentation adjusted.
20404         ("mhard-dfp", "msoft-dfp"): New options.
20405         * config/s390/s390.c (s390_handle_arch_option): New architecture
20406         switch: z9-ec.
20407         (override_options): Sanity checks for the new options added.
20408         * config.gcc: New architecture switch: z9-ec.
20409         * config/s390/s390.h (processor_flags): PF_DFP added.
20410         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
20411         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
20412         when the bit is NOT set so remove it from the defaults.
20413
20414 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
20415
20416         * genemit.c (main): Print include statement for dfp.h.
20417         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
20418         is not available.
20419
20420 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
20421
20422         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
20423
20424 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20425
20426         PR target/31022
20427         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
20428         instead of PATTERN.
20429
20430 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20431
20432         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
20433         attr_length_call, output_call, output_indirect_call): Cleanup
20434         formatting of targetm calls.
20435
20436 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
20437
20438         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
20439
20440 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20441
20442         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
20443         reservation, bypass and anti-bypass descriptions for these
20444         instructions.  Update move patterns.
20445         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
20446         TYPE_FPSTORE.
20447
20448 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
20449
20450         * tree-vect-transform.c (get_initial_def_for_induction): Replace
20451         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
20452         (get_initial_def_for_reduction): Likewise.
20453
20454 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
20455
20456         Fix PR tree-optimization/29922
20457         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
20458         (get_representative): Removed.
20459         (value_dies_in_block_x): Update for rvuse removal.
20460         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
20461         (compute_antic_aux): Handle when PHI nodes appear in
20462         non-single-successors.
20463         (dump_bitmap_of_names): Removed.
20464         (compute_antic_safe): Renamed and removed rvuse calculation.
20465         Calculate only antic safe.
20466         (insert_into_preds_of_block): Remove assert.
20467         (execute_pre): Update for renamed functions.
20468         (defer_or_phi_translate_block): New function.
20469
20470 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
20471
20472         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
20473         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
20474         typos.
20475         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
20476         Follow spelling conventions.
20477
20478         * tree-data-ref.h: Remove the prototype for analyze_array.
20479
20480 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
20481
20482         PR tree-optimization/31041
20483         * tree-vect-transform.c (get_initial_def_for_induction): Call
20484         force_gimple_operand.
20485
20486 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
20487
20488         * ipa-type-escape.c (look_for_casts) : Revert code to use
20489         handled_component_p due to ada test a-numaux.adb.
20490
20491 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
20492
20493         * final.c (final_scan_insn): Alter the condition of a
20494         conditional trap if we have nonstandard CC.
20495
20496 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
20497
20498         * configure.ac: Remove excess quoting from asm line 0 test.
20499         * configure: Rebuilt.
20500
20501 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20502
20503         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
20504         * c-common.c (convert_and_check): Move warning logic to...
20505         (warnings_for_convert_and_check): ...here. Define.
20506         * c-common.h (warnings_for_convert_and_check): Declare.
20507
20508 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20509
20510         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
20511         (output_call): Likewise.
20512
20513 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
20514
20515         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
20516
20517 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
20518
20519         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
20520
20521 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
20522
20523         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
20524         opteron, athlon-64 and athlon-fx processor_alias_table entries.
20525
20526 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
20527
20528         PR tree-optimization/31183
20529         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
20530         Use double_int instead of unsigned int for representing access_strides.
20531         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
20532
20533 2007-03-16  Richard Guenther  <rguenther@suse.de>
20534
20535         PR tree-optimization/31146
20536         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
20537         to allow recursion of forward_propagate_addr_expr.
20538         (forward_propagate_addr_into_variable_array_index): Likewise.
20539         (forward_propagate_addr_expr): Likewise.
20540         (tree_ssa_forward_propagate_single_use_vars): Likewise.
20541         (forward_propagate_addr_expr_1): Recurse on simple copies
20542         instead of propagating into them.  Do so for useless conversions
20543         as well.
20544         (forward_propagate_addr_expr): Clean up unused statements after
20545         recursion.
20546
20547 2007-03-16  Richard Guenther  <rguenther@suse.de>
20548
20549         * builtins.c (expand_builtin_cexpi): Use the right argument
20550         for the expansion via cexp.
20551
20552 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
20553
20554         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
20555         * configure: Rebuilt.
20556
20557 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
20558
20559         PR debug/29906
20560         * dwarf2out.c (force_type_die): Adjust comment.
20561         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
20562
20563 2007-03-15  DJ Delorie  <dj@redhat.com>
20564
20565         * config/frv/predicates.md (minmax_operator): Don't check operands
20566         here.
20567
20568 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
20569
20570         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
20571         Update constant estimates of number of iterations.
20572         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
20573         argument renamed to "realistic".
20574         (compute_estimated_nb_iterations): Removed.
20575         (record_niter_bound): New function.
20576         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
20577         call record_nonwrapping_iv with upper = false.
20578         (infer_loop_bounds_from_signedness): Pass upper argument to
20579         record_nonwrapping_iv.
20580         (estimate_numbers_of_iterations_loop): Do not call
20581         compute_estimated_nb_iterations.  Record estimate based on profile
20582         information.  Initialize the constant estimates of number of
20583         iterations.
20584         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
20585         estimates.
20586         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
20587         number of iterations is too small.
20588         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
20589         (EST_NOT_AVAILABLE): Removed.
20590         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
20591         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
20592         fields.
20593
20594 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
20595
20596         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
20597         Handle NE_EXPR guards.
20598
20599 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20600
20601         PR c++/24924
20602         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
20603         Set also -pedantic-errors by default for the  preprocessor unless
20604         -fpermissive is given.
20605
20606 2007-03-15  Richard Guenther  <rguenther@suse.de>
20607
20608         PR middle-end/29719
20609         PR middle-end/31161
20610         * builtins.c (expand_builtin_cexpi): As a fallback if we
20611         don't have builtins for sincos or cexp create a function
20612         declaration for cexp and expand to a call to that.
20613         (expand_builtin_int_roundingfn): Always fall
20614         back to floor/ceil and its variants even if they may be
20615         not available.
20616
20617 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
20618
20619         PR middle-end/31159
20620         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
20621         jump tables, move the call to delete_dead_jumptables from here...
20622         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
20623         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
20624         don't allow merging of blocks that try_redirect_by_replacing_jump
20625         also does not handle when not optimizing.
20626
20627 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
20628             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20629
20630         * config/i386/i386.md (x86_sahf_1): Correctly handle
20631         HAVE_AS_IX86_SAHF.
20632
20633 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
20634
20635         PR target/31167
20636         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
20637         x86_64_general_operand as operand[2] predicate.  Remove "iF"
20638         from operand constraints and use "e" constraint instead.
20639         (*subti3_1, *subti3_1 splitter): Ditto.
20640         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
20641         operand[1] predicate.
20642
20643 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
20644
20645         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
20646         arrays, multiply the access strides by the size of the sub-array.
20647         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
20648
20649 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
20650
20651         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
20652         the configured assembler supports the sahf mnemonic.
20653         * configure: Regenerate.
20654         * config.in: Regenerate.
20655
20656         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
20657         emit "sahf" or ".byte\t0x9e" as asm template.
20658
20659 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
20660
20661         PR 31018
20662         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
20663         option to replace hard coded TARGET_xxx in md file.
20664         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
20665         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
20666         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
20667         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
20668         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
20669         (X86_TUNE_NOT_VECTORMODE): Ditto.
20670         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
20671         (TUNE_AVOID_VECTOR_DECODE): Ditto.
20672         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
20673         (TUNE_SLOW_IMUL_IMM8): Ditto.
20674         (TUNE_MOVE_M1_VIA_OR): Ditto.
20675         (TUNE_NOT_UNPAIRABLE): Ditto.
20676         (TUNE_NOT_VECTORMODE): Ditto.
20677
20678         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
20679         options.
20680
20681         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
20682         tuning options instead of hard coded TARGET_xxx.
20683         (fix ssemode peephole2's): Ditto.
20684         (imul peephole2's): Ditto.
20685         (movsi_or): Ditto.
20686         (movdi_or_rex64): Ditto.
20687         (move peephole2): Ditto.
20688         (not peephole2's): Ditto.
20689
20690 2007-03-14  Dirk Mueller  <dmueller@suse.de>
20691
20692         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
20693         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
20694         * c-parser.c (c_parser_if_body): Always add an empty statement in case
20695         of empty body.
20696         * c-parser.c (c_parser_do_statement): Warn about empty body in
20697         do/while statement.
20698         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
20699         * doc/invoke.texi (-Wempty-body): Update documentation.
20700
20701 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20702
20703         PR c/21438
20704         * c-common.h (warn_for_div_by_zero): Declare.
20705         * c-common.c (warn_for_div_by_zero): Define.
20706         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
20707         warning.
20708
20709 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
20710
20711         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
20712         to PREFIX and STANDARD_PREFIX.
20713
20714 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
20715             Phil Edwards  <phil@codesourcery.com>
20716
20717         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
20718         (__gthread_once_t): Remove busy field for RTPs.
20719         (__GTHREAD_ONCE_INIT): Update accordingly.
20720
20721 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
20722
20723         * doc/invoke.texi: Document VxWorks options.
20724
20725 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
20726
20727         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
20728
20729 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
20730
20731         PR tree-optimization/30590
20732         * tree-nrv.c (tree_nrv): Check for the partial update of the
20733         return value.
20734
20735 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
20736
20737         * flags.h (flag_random_seed): Remove declaration, in favor of...
20738         * toplev.h (get_random_seed, set_random_seed): ... these.
20739         * tree.c (get_file_function_name): Use the former.
20740         * opts.c (common_handle_option): Use the latter.
20741         * toplev.c
20742
20743 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
20744
20745         PR middle-end/31127
20746         * cse.c (cse_find_path): Do not bail out if a basic block that
20747         we already visited now becomes part of a path that starts at a
20748         different basic block.  Just disallow this, to make sure we
20749         visit each basic block at most once.
20750
20751 2007-03-13  Jan Hubicka  <jh@suse.cz>
20752
20753         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
20754         attributes, when profile esitmate is present, calls with very low
20755         frequency are cold.
20756
20757 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
20758
20759         PR tree-optimization/30730
20760         PR tree-optimization/26900
20761         * tree-ssa-loop-niter.c: Include gmp.h.
20762         (bounds): New type.
20763         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
20764         split_to_var_and_offset, determine_value_range,
20765         bound_difference_of_offsetted_base, refine_bounds_using_guard,
20766         bound_difference, bounds_add, bounds_negate,
20767         number_of_iterations_ne_max, dump_affine_iv): New functions.
20768         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
20769         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
20770         difference of initial and final value of control iv to validate
20771         results.
20772         (number_of_iterations_cond): Add loop parameter.  Determine bounds
20773         on the difference of the extremes of the control iv.  Add dumps.
20774         (expand_simple_operations): Handle phi nodes.
20775         (simplify_using_initial_conditions): Do not record used conditions.
20776         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
20777         Do not set additional_info.
20778         (implies_nonnegative_p, implies_ge_p): Removed.
20779         (derive_constant_upper_bound): Do not use parameter `additional'.
20780         (record_estimate): Parameter `additional' removed.  Parameter
20781         `i_bound' added.  Do not call derive_constant_upper_bound.
20782         (record_nonwrapping_iv): Use derive_constant_upper_bound to
20783         bound the number of iterations estimate.
20784         (estimate_numbers_of_iterations_loop): Pass the estimate from
20785         the number of iterations analysis to record_estimate.
20786         * tree.h (multiple_of_p): Declare.
20787         * tree-scalar-evolution.c (expression_expensive_p): Removed.
20788         (scev_const_prop): Do not check expression_expensive_p.
20789         * fold-const.c (multiple_of_p): Exported.
20790         * double-int.c (double_int_mask): Exported.
20791         * double-int.h (double_int_mask): Declare.
20792         * tree-flow.h (struct tree_niter_desc): Removed additional_info
20793         field.  Added max field.
20794
20795 2007-03-13  David Taylor  <taylor@candd.org>
20796
20797         PR driver/12448:
20798         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
20799         default -MQ.
20800
20801 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20802
20803         PR target/31123
20804         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
20805         two unamed patterns.
20806
20807 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
20808
20809         * config/i386/i386.opt (mcx16, msahf): New options.
20810         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
20811         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
20812
20813         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
20814         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
20815         Output -mcx16 and -msahf options when corresponding bit is set.
20816
20817         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
20818         and -msahf options.
20819
20820 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
20821
20822         * configure.ac: Test for assembler tolerance to # 0 "".
20823         * configure, config.in: Rebuilt.
20824         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
20825
20826 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
20827
20828         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
20829
20830         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
20831         (handle_syscall): Handle direct system calls.
20832         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
20833
20834 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
20835
20836         * doc/invoke.texi: Fix cpp.info cross-reference.
20837         * doc/passes.texi: Fix gcc.info cross-reference.
20838
20839 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
20840
20841         PR tree-optimization/30835
20842         * lambda-code.c (can_convert_to_perfect_nest): Check whether
20843         bb_for_stmt is not NULL before accessing it.
20844
20845 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
20846
20847         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
20848         some multilibs.
20849
20850 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
20851
20852         PR 30635
20853         * doc/install.texi: Document --enable-stage1-languages
20854
20855 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
20856
20857         * tree-pass.h (pass_into_cfg_layout_mode,
20858         pass_outof_cfg_layout_mode): Declare.
20859         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
20860         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
20861         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
20862         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
20863
20864 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
20865
20866         * c-decl.c (warn_variable_length_array): New function.
20867         Refactored from grokdeclarator to handle warn_vla
20868         and handle unnamed array case.
20869         (grokdeclarator): Refactored VLA warning case.
20870         * c.opt (Wvla): New flag.
20871         * doc/invoke.texi (Wvla): New warning.
20872
20873 2007-03-12  Richard Henderson  <rth@redhat.com>
20874
20875         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
20876         (TARGET_SECTION_TYPE_FLAGS): New.
20877
20878 2007-03-12  Richard Henderson  <rth@redhat.com>
20879
20880         * config/darwin.c (machopic_reloc_rw_mask): New.
20881         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
20882         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
20883
20884 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
20885
20886         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
20887         * cppdefault.h (cpp_PREFIX): Document.
20888         (cpp_PREFIX_len): Likewise.
20889         (cpp_EXEC_PREFIX): New variable.
20890         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
20891         * c-incpath.c (add_standard_paths): Correct logic for relocating
20892         paths within prefix.
20893
20894 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
20895
20896         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
20897         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
20898         mode macro.
20899         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
20900         fix_truncdfdi_sse using SSEMODEF mode macro.
20901         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
20902         fix_truncdfsi_sse using SSEMODEF mode macro.
20903         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
20904         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
20905
20906 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
20907
20908         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
20909         elfos.h to tm_file.
20910
20911 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
20912
20913         * tree.h : Add multiple_of_p declaration.
20914         * fold-const.c (multiple_of_p): Make multiple_of_p public.
20915         * ipa-type-escape.c (results_of_malloc): Redundant.
20916         (visited_stmts): New. Visited stmt for walk_use_def_chains.
20917         (cast_type): Extended with new members.
20918         (check_cast): Returns cast_type.
20919         (cast): New structure for data of walk_use_def_chains.
20920         (is_malloc_result, is_cast_from_non_pointer_1,
20921         is_cast_from_non_pointer,
20922         is_array_access_through_pointer_and_index): New functions.
20923         (look_for_casts): Returns cast types.
20924         (check_call): Returns void.
20925         (okay_pointer_operation): Use support of pointer plus index,
20926         pointer plus constant and allow all multiplications.
20927
20928 2007-03-11  Richard Guenther  <rguenther@suse.de>
20929
20930         PR tree-optimization/31115
20931         * tree-vrp.c (extract_range_from_binary_expr): Make sure
20932         the shift count is positive and non-anti-range for RSHIFT_EXPR.
20933         A shift count of zero is not special as with *_DIV_EXPR.
20934         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
20935         direction.
20936
20937 2007-03-11  Ian Lance Taylor  <iant@google.com>
20938
20939         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
20940         the *_DIV_EXPR codes correctly with overflow infinities.
20941
20942 2007-03-11  Ira Rosen  <irar@il.ibm.com>
20943
20944         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
20945         indicate success/failure of the analysis. Add negation to subtrahend
20946         in case of subtraction. Fail if both operands contain constants.
20947         (create_data_ref): Fail if analyze_offset fails.
20948
20949 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
20950
20951         * config/i386/i386.md (frndintxf2): Rename to ...
20952         (rintxf2): ... this. Remove expander having same name.
20953         (rintsf2, rintdf2): Implement using SSEMODEF macro.
20954         (roundsf2, rounddf2): Ditto.
20955         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
20956         (lround<mode>di2, lround<mode>si2): Ditto.
20957
20958 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
20959
20960         * lower-subreg.c: Include except.h.
20961         (decompose_multiword_subregs): Verify that the only control flow
20962         insns we can split are loads to multi-words pseudos.
20963         Handle breaking such blocks after splitting, instead of calling
20964         find_many_sub_basic_blocks.
20965
20966         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
20967         on the new basic block.  Add a lengthy comment explaining why we
20968         thought this was necessary.
20969         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
20970
20971 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
20972
20973         PR c++/30924
20974         * tree.c (walk_type_fields): Recurse into the element type of
20975         ARRAY_TYPEs if there is a pointer set.
20976
20977 2007-03-10  Dirk Mueller  <dmueller@suse.de>
20978
20979         * c-common.c (warn_logical_operator): Fix condition.
20980
20981 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
20982
20983         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
20984         quotation mark.
20985         * config/darwin.c (machopic_select_section): Remove superfluous
20986         argument in call to categorize_decl_for_section.  Remove unused
20987         variable shlib.
20988
20989 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
20990
20991         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
20992         defined.
20993         * configure: Regenerate.
20994
20995 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
20996
20997         PR target/31101
20998         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
20999         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
21000         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
21001         Add LABEL_NUSES to emitted label.
21002         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
21003         branch probability value to emitted jump insn.
21004         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
21005         Do not check life information and do not re-arrange input operands
21006         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
21007
21008 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21009
21010         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
21011         the change of decode_asm_operands.
21012
21013 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21014
21015         * mode-switching.c (create_pre_exit): Skip blockage insn.
21016
21017 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
21018
21019         * tree-pass.h (TODO_update_smt_usage): Remove.
21020         Update all users.
21021         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
21022         argument SOME.
21023         Update all users.
21024
21025 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21026
21027         * pa.c (attr_length_call): Revise condition for long
21028         pc-relative branch.
21029         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
21030         local calls on the SOM target.  Don't use "LONG_PIC_PCREL" call
21031         sequence on SOM target.
21032
21033 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
21034
21035         * gcc.c: Document %{, in big comment at top.
21036         (input_suffix_matches): Remove special handling for .s and
21037         .S.
21038         (input_spec_matches): New.
21039         (handle_braces): Handle %{,.
21040         (validate_switches): ',' indicates a value which is not a switch.
21041         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
21042         to detect assembler input.
21043         * config/i386/sol2.h (CPP_SPEC): Likewise.
21044         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
21045         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21046         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
21047         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
21048         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
21049         -m64 causes deployment target to default to 10.5.
21050         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
21051
21052 2007-03-09  Richard Henderson  <rth@redhat.com>
21053
21054         PR target/26090
21055         * target.h (targetm.asm.out.reloc_rw_mask): New.
21056         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
21057         (TARGET_ASM_OUT): Use it.
21058         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
21059         * varasm.c (categorize_decl_for_section): Remove shlib argument;
21060         use the new reloc_rw_mask target hook instead.
21061         (default_section_type_flags_1): Merge into...
21062         (default_section_type_flags): ... here.
21063         (decl_readonly_section_1): Merge into...
21064         (decl_readonly_section): ... here.
21065         (default_elf_select_section_1): Merge into...
21066         (default_elf_select_section): ... here.
21067         (default_unique_section_1): Merge into...
21068         (default_unique_section): ... here.
21069         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
21070         (default_select_rtx_section): Use it.
21071         (default_elf_select_rtx_section): Likewise.
21072         * output.h: Update to match.
21073         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
21074         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
21075         (TARGET_ASM_RELOC_RW_MASK): New.
21076         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
21077         to categorize_decl_for_section.
21078         (x86_64_elf_unique_section): Likewise.
21079         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
21080         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
21081         (TARGET_ASM_RELOC_RW_MASK): New.
21082         * config/ia64/ia64.c (ia64_rwreloc_select_section,
21083         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
21084         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
21085         (TARGET_RWRELOC): Remove.
21086         (ia64_section_type_flags): Adjust call to default_section_type_flags.
21087         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
21088         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
21089         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
21090         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
21091         (rs6000_xcoff_select_section): Use decl_readonly_section.
21092         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
21093         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
21094         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
21095         (TARGET_SECTION_TYPE_FLAGS): Remove.
21096         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
21097
21098 2007-03-09  Roger Sayle  <roger@eyesopen.com>
21099
21100         * fold-const.c (fold_comparison): Remove compile-time evaluation of
21101         complex constant equality/inequality comparisons for here.
21102         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
21103         known at compile-time or can be simplified to a scalar comparison.
21104         (fold_relational_const): Move compile-time evaluation of complex
21105         constant equality/inequality comparisons to here.
21106
21107 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21108
21109         PR rtl-optimization/30643
21110         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
21111         dest_addr_elt.
21112         (fold_rtx): Recurse, like before 2006-11-03.
21113
21114 2007-03-09  DJ Delorie  <dj@redhat.com>
21115
21116         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
21117         m32c-pragma.o.
21118
21119 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
21120
21121         PR tree-optimization/30375
21122         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
21123         LHS of statements is not the same.
21124         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
21125
21126 2007-03-09  Chao-ying Fu  <fu@mips.com>
21127
21128         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
21129         REV 2.
21130         * doc/invoke.texi (-mdspr2): Document new option.
21131         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
21132         New unspec for DSP REV 2.
21133         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
21134         these instructions are extended in DSP REV 2.
21135         (mips-dspr2.md): Include.
21136         * config/mips/mips.opt (mdspr2): New option.
21137         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
21138         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
21139         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
21140         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
21141         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
21142         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
21143         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
21144         and 2 builtins.
21145         (bdesc_map): Add one field of unsupported_target_flags.
21146         (bdesc_arrays): Update entries to have extra fields.  Add
21147         dsp_32only_bdesc.
21148         (mips_init_builtins): Initialize new function types.
21149         Check unsupported_target_fileds to filter out builtins.
21150         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
21151         TARGET_DSPR2.
21152         (ASM_SPEC): Pass mdspr2 to the assembler.
21153         * config/mips/mips-dspr2.md: New file.
21154
21155 2007-03-09  Sa Liu  <saliu@de.ibm.com>
21156
21157         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
21158
21159 2007-03-09  Ian Lance Taylor  <iant@google.com>
21160
21161         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
21162         argument) like -Wstrict-overflow=2.
21163         * doc/invoke.texi (Warning Options): Update documentation.
21164
21165 2007-03-09  Dirk Mueller  <dmueller@suse.de>
21166
21167         PR c++/17946
21168         * doc/invoke.texi (-Wlogical-op): Document.
21169         * common.opt (-Wlogical-op): New.
21170         * c-common.h (warn_logical_operator): Declare.
21171         * c-common.c (warn_logical_operator): Define.
21172         * c-typeck.c (parser_build_binary_op): Call
21173         warn_logical_operator.
21174
21175 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21176
21177         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
21178         * final.c (final_scan_insn): Test for non-"" file name.
21179
21180 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
21181
21182         * doc/loop.texi: Document the Omega linear constraints solver.
21183         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
21184         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
21185         omega-hash-table-size, omega-max-keys, and
21186         omega-eliminate-redundant-constraints.
21187         * tree-pass.h (pass_check_data_deps): Declared.
21188         * omega.c: New.
21189         * omega.h: New.
21190         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
21191         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
21192         pass_check_data_deps): New.
21193         * tree-data-ref.c (init_data_ref): Remove declaration.
21194         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
21195         (analyze_array): Renamed init_array_ref, move up initializations.
21196         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
21197         Removed arguments that are set to NULL.
21198         (analyze_indirect_ref): Correct indentation, correct call to
21199         init_pointer_ref.
21200         (object_analysis): Call init_array_ref instead of analyze_array.
21201         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
21202         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
21203         of DR_ACCESS_FNS_ADDR.
21204         (init_omega_eq_with_af, omega_extract_distance_vectors,
21205         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
21206         ddr_consistent_p): New.
21207         (compute_affine_dependence): Check consistency of ddrs when
21208         flag_check_data_deps is passed.
21209         (analyze_all_data_dependences): Uncomment.
21210         (tree_check_data_deps): New.
21211         * tree-data-ref.h: Include omega.h.
21212         (DR_ACCESS_FNS_ADDR): Removed.
21213         (data_dependence_relation): Add inner_loop.
21214         (DDR_INNER_LOOP): New.
21215         * common.opt (fcheck-data-deps): New.
21216         * tree-flow.h (tree_check_data_deps): Declare.
21217         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
21218         (OBJS-common): Depend on omega.o.
21219         (omega.o): Define.
21220         * passes.c (pass_check_data_deps): Scheduled.
21221         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21222         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21223         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
21224         PARAM_VECT_MAX_VERSION_CHECKS,
21225         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
21226
21227 2007-03-09  Richard Guenther  <rguenther@suse.de>
21228
21229         PR tree-optimization/30904
21230         PR middle-end/31058
21231         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
21232         the same way as *_DIV_EXPR.
21233
21234 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21235
21236         * recog.c (decode_asm_operands): No mixed declarations and code.
21237
21238 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
21239
21240         * rtl.def (ASM_INPUT): Add location.
21241         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
21242         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
21243         (decode_asm_operands): Add loc operand.
21244         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
21245         * stmt.c (expand_asm): Rename to...
21246         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
21247         gen_rtx_ASM_INPUT_loc.
21248         (expand_asm_expr): Adjust.
21249         * recog.c (decode_asm_operands): Add loc operand.
21250         (check_asm_operands, extract_insn): Adjust.
21251         * reload1.c (maybe_fix_stack_asms): Likewise.
21252         * final.c (asm_insn_count): Likewise.
21253         (final_scan_insn): Output # line before and after asm.
21254
21255 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
21256
21257         * tree-ssa-structalias.c (variable_info): Remove
21258         finished_solution.
21259         (new_var_info): Ditto.
21260         (shared_bitmap_info_t): New structure.
21261         (shared_bitmap_table): New variable.
21262         (shared_bitmap_hash): New function.
21263         (shared_bitmap_eq): Ditto
21264         (shared_bitmap_lookup): Ditto.
21265         (shared_bitmap_add): Ditto.
21266         (merge_smts_into): Change to take bitmap directly.
21267         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
21268         (init_alias_vars): Init shared bitmap hashtable.
21269         (delete_points_to_sets): Delete shared bitmap hashtable.
21270         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
21271         is_aliased removal as a change that was still necessary was
21272         deleted.
21273
21274 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
21275
21276         * config/i386/i386.h (override_options): Conditionally disable
21277         x86_sahf for 64bit targets only.
21278
21279 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21280
21281         PR C/31072
21282         * c-decl.c (merge_decls): Don't call make_var_volatile.
21283         * varasm.c (make_var_volatile): Remove.
21284         * output.h (make_var_volatile): Remove.
21285
21286 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
21287
21288         PR tree-optimization/31085
21289         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
21290
21291 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21292
21293         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
21294         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
21295         ATTR_CONST_NOTHROW_LIST.
21296
21297         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
21298         FIX_TRUNC_EXPR.
21299
21300 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
21301
21302         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
21303
21304 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
21305
21306         PR 31013
21307         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
21308         is declared.
21309         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
21310         passed, use shared libgcc.
21311
21312 2007-03-08  Roger Sayle  <roger@eyesopen.com>
21313
21314         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
21315         instead of calling build2 with a GIMPLE_MODIFY_STMT.
21316         (honor_protect_cleanup_actions, lower_try_finally_switch):
21317         Likewise.
21318         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
21319         ifc_temp_var): Likewise.
21320         * tree-inline.c (setup_one_parameter): Likewise.
21321         * tree-mudflap.c (mf_decl_cache_locals,
21322         mf_build_check_statement_for): Likewise.
21323         * tree-nested.c (init_tmp_var, save_tmp_var,
21324         finalize_nesting_tree_1): Likewise.
21325         * tree-outof-ssa.c (insert_copy_on_edge,
21326         insert_backedge_copies): Likewise.
21327         * tree-profile.c (tree_gen_edge_profiler,
21328         tree_gen_ic_profiler): Likewise.
21329         * tree-scalar-evolution.c (scev_const_prop): Likewise.
21330         * tree-sra.c (sra_build_assignment): Likewise.
21331         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
21332         * tree-ssa-math-opts.c (insert_reciprocals,
21333         execute_cse_sincos_1): Likewise.
21334         * tree-tailcall.c (adjust_accumulator_values,
21335         adjust_return_value): Likewise.
21336         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
21337         * tree-vect-transform.c (vect_create_data_ref_ptr,
21338         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
21339         vect_create_epilog_for_reduction, vectorizable_reduction,
21340         vectorizable_call, vectorizable_conversion,
21341         vectorizable_assignment, vectorizable_operation,
21342         vectorizable_type_demotion, vect_gen_widened_results_half,
21343         vect_permute_store_chain, vectorizable_store,
21344         vect_setup_realignment, vect_permute_load_chain,
21345         vectorizable_load, vectorizable_condition,
21346         vect_create_cond_for_align_checks): Likewise.
21347         * tree-vrp.c (build_assert_expr_for): Likewise.
21348
21349 2007-03-08  Ian Lance Taylor  <iant@google.com>
21350
21351         * tree-vrp.c: Include "intl.h".
21352         (usable_range_p): New static function.
21353         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
21354         overflowed values, juts set *strict_overflow_p.
21355         (compare_values): Only return -2 if one of the operands is not a
21356         constant.
21357         (compare_ranges): Call usable_range_p.
21358         (compare_range_with_value): Likewise.
21359         (vrp_evaluate_conditional_warnv): Rename from
21360         vrp_evaluate_conditional.  Make static.  Change all callers.
21361         (vrp_evaluate_conditional): New function.
21362         (simplify_div_or_mod_using_ranges): Issue warning about reliance
21363         on signed overflow.
21364         (simplify_abs_using_ranges): Likewise.
21365         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
21366         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
21367         within_stmt parameter.
21368         * tree-ssa-propagate.c (fold_predicate_in): Update call to
21369         vrp_evaluate_conditional.
21370         * tree-ssa-threadedge.c
21371         (record_temporary_equivalences_from_stmts_at_dest): Change
21372         simplify parameter to take a second tree parameter.
21373         (simplify_control_stmt_condition): Likewise.
21374         (thread_across_edge): Likewise.
21375         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
21376         (thread_across_edge): Likewise.
21377         * Makefile.in (tree-vrp.o): Depend upon intl.h.
21378
21379 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
21380
21381         * config/i386/i386.h (TARGET_SAHF): New define.
21382         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
21383         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
21384         (x86_sahf): New global variable.
21385         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
21386         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
21387         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
21388         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
21389         for 64-bit.
21390         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
21391         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
21392         when expanding fcomi/sahf based tests.
21393         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
21394         expanding sahf based alternative. Emit sahf based sequence when
21395         optimizing for code size.
21396         * config/i386/i386.md (x86_sahf_1): Do not disable for
21397         TARGET_64BIT, enable for TARGET_SAHF.
21398
21399 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
21400
21401         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
21402         spurious whitespace from error message.
21403
21404 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
21405
21406         PR c++/30852
21407         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
21408
21409 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
21410
21411         * c-decl.c (grokdeclarator): Disable warnings for anonymous
21412         bitfields.
21413         * tree-sra.c (instantiate_element): Propagate disabled warnings
21414         from the element itself to the created variable.
21415
21416 2007-03-07  Richard Henderson  <rth@redhat.com>
21417
21418         PR target/30848
21419         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
21420         silently fix up the stack in the case of a missing register.
21421
21422 2007-03-07  Paul Brook  <paul@codesourcery.com>
21423
21424         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
21425
21426 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
21427
21428         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
21429         New.
21430         (phase1_vrs): Use them.
21431         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
21432         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
21433         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
21434         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
21435         __gnu_Unwind_Restore_WMMXC if required.
21436         (_Unwind_VRS_Pop): Implement iWMMXt support.
21437         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
21438         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
21439         gnu_Unwind_Save_WMMXC): Define.
21440
21441 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
21442
21443         * config/vxworks.h (vxworks_override_options): Declare.
21444         (VXWORKS_OVERRIDE_OPTIONS): Use it.
21445         * config/vxworks.c: Include target.h and toplev.h.
21446         (vxworks_override_options): New function.
21447         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
21448
21449 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21450
21451         * config/s390/s390.c (override_options): Don't emit an error when
21452         -mstack-size is used without providing -mstack-guard.
21453         (s390_emit_prologue): Choose stack_guard value automatically if not
21454         provided via command line.
21455         * doc/invoke.texi: Adjust description of -mstack-guard and
21456         -mstack-size.
21457
21458 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
21459
21460         * config/i386/i386.c (output_set_got): Add a GOT initialization
21461         sequence for VxWorks PIC.
21462         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
21463         around labels as well as symbols.  Use gotoff_operand instead
21464         of local_symbolic_operand.
21465         (legitimize_pic_address): Use gotoff_operand instead of
21466         local_symbolic_operand.  Use @GOT accesses for labels as
21467         well as symbols.
21468         (ix86_output_addr_diff_elt): Use PC-relative rather than
21469         GP-relative offsets for VxWorks PIC.
21470         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
21471         no_new_pseudos.  Check whether the returned register is op0.
21472         * config/i386/i386.md (tablejump): Use PC-relative rather than
21473         GP-relative offsets for VxWorks PIC.
21474         * config/i386/predicates.md (gotoff_operand): New predicate.
21475
21476 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21477
21478         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
21479         before defining.
21480         * config/vxworks-dummy.h: New file.
21481         * config/i386/i386.h: Include it.
21482
21483 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
21484
21485         * dwarf2out.c (is_inlined_entry_point): New
21486         (add_high_low_attributes): Emit DW_AT_entry_pc along with
21487         DW_AT_ranges if the first subblock is the entry point.
21488
21489 2007-03-06  David Daney  <ddaney@avtrex.com>
21490
21491         * doc/install.texi (mips-*-*): Change recommended binutils
21492         version.
21493
21494 2007-03-06  Anatoly Sokolov <aesok@post.ru>
21495
21496         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
21497         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
21498         devices.
21499         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
21500         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
21501
21502 2007-03-06  Jan Hubicka  <jh@suse.cz>
21503
21504         * errors.h (warning, error, fatal, internal_error): Mark as cold.
21505         * predict.c (maybe_hot_bb): Cold functions are never hot; hot
21506         functions are hot.
21507         (probably_cold_bb_p): Cold functions are cold.
21508         (probably_never_executed_bb_p): Cold functions are cold.
21509         (tree_bb_level_predictions): Predict calls to cold functions as not
21510         taken.
21511         (compute_function_frequency): Check hot/cold attributes.
21512         * function.h (function_frequency): Update comments.
21513         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
21514         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
21515         (c_common_att): Add cold and hot.
21516
21517         * doc/extend.texi (hot,cold attributes): Document.
21518
21519 2007-03-06  Andrew Haley  <aph@redhat.com>
21520
21521         * function.c (expand_function_end): Move blockage to just after we
21522         emit the label for the naked return from the function.
21523
21524 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21525
21526         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
21527         before redefining.
21528
21529 2007-03-06  Jan Hubicka  <jh@suse.cz>
21530
21531         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
21532         loaded for constant large models.  Non-large 64bit PIC can do.
21533         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
21534         * cmodel.h: Add LARGE PIC.
21535         * i386.md (UNSPEC_PLTOFF): New.
21536         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
21537         unspecs as needed.
21538         (*call_1_rex64): Disable for large models.
21539         (*call_1_rex64_large): New.
21540         (*call_value_1_rex64): Disable for large models.
21541         (*call_value_1_rex64_large): New.
21542         (set_rip_rex4): New.
21543         (set_got_offset_rex64): New.
21544         * predicates.md (constant_call_address_operand): For large model
21545         constant calls are not possible.
21546         * i386-protos.h (construct_plt_address): Declare.
21547         * i386.c (override_options): Accept large models.
21548         (ix86_expand_prologue): Expand large PIC GOT pointer load.
21549         (legitimate_constant_p): Add new UNSPECs.
21550         (legitimate_pic_operand_p): Likewise.
21551         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
21552         (legitimize_pic_address): Do easy RIP relative way for TLS only for
21553         non-large model.
21554         (output_pic_addr_const): Add PLTOFF.
21555         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
21556         (ix86_expand_move): Legitimize pic address when in PIC mode.
21557         (construct_plt_address): New function.
21558         (ix86_expand_call): Offload the address to register and use GOT
21559         pointer for large model.
21560         * invoke.texi (mcmodel=large): Update documentation.
21561
21562 2007-03-06  Richard Henderson  <rth@redhat.com>
21563
21564         * config/i386/i386.c (x86_use_leave, x86_push_memory,
21565         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
21566         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
21567         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
21568         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
21569         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
21570         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
21571         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
21572         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
21573         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
21574         x86_partial_reg_dependency, x86_memory_mismatch_stall,
21575         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
21576         x86_sse_partial_reg_dependency, x86_sse_split_regs,
21577         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
21578         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
21579         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
21580         x86_schedule, x86_use_bt, x86_pad_returns,
21581         x86_use_xchgb): Merge into ...
21582         (ix86_tune_features): ... here.  New array.
21583         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
21584         x86_bswap): Merge into ...
21585         (ix86_arch_features): ... here.  New array.
21586         (x86_3dnow_a): Remove.
21587         (x86_accumulate_outgoing_args): Make static.
21588         (x86_arch_always_fancy_math_387): Make static.
21589         (ix86_tune_mask, ix86_arch_mask): Move ...
21590         (override_options): ... to local variables here.  Apply the
21591         appropriate mask to each element of ix86_arch_features and
21592         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
21593         as were done in the old macros.
21594         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
21595         * config/i386/i386.h (x86_use_leave, x86_push_memory,
21596         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
21597         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
21598         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
21599         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
21600         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
21601         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
21602         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
21603         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
21604         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
21605         x86_partial_reg_dependency, x86_memory_mismatch_stall,
21606         x86_accumulate_outgoing_args, x86_prologue_using_move,
21607         x86_epilogue_using_move, x86_decompose_lea,
21608         x86_arch_always_fancy_math_387, x86_shift1,
21609         x86_sse_partial_reg_dependency, x86_sse_split_regs,
21610         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
21611         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
21612         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
21613         x86_use_incdec, x86_pad_returns, x86_bswap,
21614         x86_partial_flag_reg_stall): Remove.
21615         (enum ix86_tune_indices): New.
21616         (ix86_tune_features): New.
21617         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
21618         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
21619         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
21620         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
21621         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
21622         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
21623         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
21624         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
21625         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
21626         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
21627         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
21628         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
21629         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
21630         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
21631         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
21632         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
21633         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
21634         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
21635         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
21636         TARGET_EXT_80387_CONSTANTS): Use it.
21637         (enum ix86_arch_indices): New.
21638         (ix86_arch_features): New.
21639         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
21640         TARGET_BSWAP): Use it.
21641         (ix86_tune_mask, ix86_arch_mask): Remove.
21642
21643 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
21644
21645         PR bootstrap/31020
21646         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
21647         Define using $${sysroot_headers_suffix}.
21648         * configure: Regenerate.
21649         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
21650         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
21651         defined.
21652         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
21653         * gcc.c (print_sysroot_headers_suffix): New.
21654         (option_map): Include --print-sysroot-headers-suffix.
21655         (display_help): Mention -print-sysroot-headers-suffix.
21656         (process_command): Handle -print-sysroot-headers-suffix.
21657         (do_spec_1): Append multilib directory to include-fixed path if
21658         sysroot suffixes in use.
21659         (main): Handle -print-sysroot-headers-suffix.
21660         * Makefile.in (start.encap): Don't depend on xlimits.h
21661         (xlimits.h): Remove.
21662         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
21663         limits.h for each multilib in fixinc_list.
21664         (fixinc_list, s-fixinc_list): New.
21665         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
21666         generate them for each multilib in fixinc_list.
21667         (stmp-fixproto): Use include-fixed.  Run fixproto for each
21668         multilib in fixinc_list.
21669         (mostlyclean): Don't remove xlimits.h.
21670         (clean): Remove include-fixed.
21671         (real-install-headers-tar, real-install-headers-cpio,
21672         real-install-headers-cp): Don't copy include, only include-fixed.
21673         (install-mkheaders): Depend on fixinc_list.  Don't depend on
21674         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
21675         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
21676         SYSTEM_HEADER_DIR setting in mkheaders.conf.
21677
21678 2007-03-06  Jan Hubicka  <jh@suse.cz>
21679
21680         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
21681         NANs easilly.
21682
21683 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21684
21685         * configure.ac: Allow tm_file to contain build-directory files.
21686         * configure: Regenerate.
21687         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
21688         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
21689         * config/m68k/print-sysroot-suffix.sh: New file.
21690
21691 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21692
21693         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
21694         of pic_offset_table_rtx if reload_completed.
21695         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
21696         PIC_OFFSET_TABLE_REGNUM.
21697         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
21698         return true.
21699         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
21700         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
21701
21702 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21703
21704         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
21705         functions that call eh_return.
21706
21707 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21708
21709         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
21710         functions that need a constant pool.
21711
21712 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21713
21714         PR target/28181
21715         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
21716         (m68k_preferred_reload_class): Likewise.
21717         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
21718         (SECONDARY_RELOAD_CLASS): Define.
21719         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
21720         (LIMIT_RELOAD_CLASS): Delete.
21721         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
21722         registers from storing bytes.
21723         (m68k_secondary_reload_class): New function.
21724         (m68k_preferred_reload_class): Likewise.
21725
21726 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21727
21728         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
21729         leaf functions.
21730         (m68k_expand_prologue): Likewise.
21731
21732 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21733
21734         * config/m68k/m68k-protos.h (output_sibcall): Declare.
21735         (mips_expand_epilogue): Add a bool parameter.
21736         (m68k_legitimize_sibcall_address): Declare.
21737         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
21738         (m68k_expand_epilogue): Add a parameter to select between sibling
21739         and normal epilogues.  Only generate a return for the latter.
21740         (m68k_ok_for_sibcall_p): New function.
21741         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
21742         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
21743         (sibcall_value, *sibcall_value): Likewise.
21744         (*call, *call_value): Require !SIBLING_CALL_P.
21745         (epilogue): Update call to m68k_expand_epilogue.
21746         (sibcall_epilogue): New pattern.
21747         * config/m68k/predicates.md (const_call_operand): Say that this
21748         predicate applies to sibling calls too.
21749         (sibcall_operand): New predicate.
21750
21751 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21752
21753         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
21754         alternatives as movsi_cf.
21755         (movsf_cf_hard): Add commentary.
21756
21757 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
21758             Richard Sandiford  <richard@codesourcery.com>
21759
21760         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
21761         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
21762         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
21763         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
21764         as being live on exit from an interrupt function.
21765         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
21766         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
21767         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
21768         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
21769         (m68k_interrupt_function_p): Globalize.
21770         (m68k_compute_frame_layout): Remove reverse mask code.
21771         (m68k_emit_movem, m68k_set_frame_related): New functions.
21772         (m68k_output_function_prologue): Delete in favor of...
21773         (m68k_expand_prologue): ...this new function.
21774         (m68k_output_function_epilogue): Delete in favor of...
21775         (m68k_expand_epilogue): ...this new function.
21776         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
21777         functions.
21778         (print_operand): Handle %?.
21779         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
21780         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
21781         (prologue, epilogue): New patterns.
21782         (return): Turn into a define_expand.
21783         (*return): New pattern, derived from old "return" pattern.  Use rte
21784         rather than rts for interrupt functions.  Only use rtd if the pop
21785         count is nonzero.
21786         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
21787         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
21788         (link, *link, unlink, *unlink, load_got): Likewise.
21789
21790 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
21791
21792         PR target/23482
21793         PR target/17114
21794         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
21795         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
21796         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
21797         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
21798         and m68k_matches_u_p.
21799         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
21800         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
21801         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
21802         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
21803         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
21804         (REG_STRICT_P): New macro.
21805         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
21806         PCREL_GENERAL_OPERAND_OK.
21807         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
21808         m68k_legitimate_base_reg_p.
21809         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
21810         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
21811         (PIC_CASE_VECTOR_ADDRESS): Update comment.
21812         * config/m68k/m68k.c (m68k_address): New structure.
21813         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
21814         (m68k_decompose_index, m68k_legitimate_constant_address_p)
21815         (m68k_jump_table_ref_p, m68k_decompose_address)
21816         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
21817         (m68k_matches_u_p): New functions.
21818         (print_operand_address): Rewrite to use m68k_decompose_index.
21819
21820 2007-03-05  David Taylor  <dtaylor@emc.com>
21821
21822         * gcc.c: Correct copyright date in --version output.
21823
21824 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21825
21826         * pa.md: In unamed move patterns, disparge copies between general
21827         and floating point registers using '?' modifier.  Don't include 'f'
21828         constraint for register preferences in DImode, SImode, HImode and
21829         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
21830         Remove constraints for copies between general and floating registers
21831         in soft-float DFmode pattern.
21832         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
21833         floating register.
21834         (movsf): Likewise.
21835
21836 2007-03-05  Mike Stump  <mrs@apple.com>
21837
21838         * c-common.c (targetcm): Add.
21839         * c-opts.c (c_common_handle_option): Handle language specific
21840         target options.
21841         * opts.c (handle_option): Verify language for target options, if
21842         any are given.
21843         * opth-gen.awk: Add CL_LANG_ALL.
21844         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
21845         (TARGETCM_INITIALIZER): Add.
21846         * target.h (struct gcc_targetcm): Add.
21847         (targetcm): Add.
21848         * targhooks.c (default_handle_c_option): Add.
21849         * targhooks.h (default_handle_c_option): Add.
21850         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
21851
21852         * config/darwin.opt (iframework): Add.
21853         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
21854         * config/darwin-c.c (handle_c_option): Add.
21855         (TARGET_HANDLE_C_OPTION): Add.
21856         (targetcm): Add.
21857         * doc/invoke.texi (Darwin Options): Add -iframework.
21858
21859 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21860
21861         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
21862         conversion.
21863
21864 2007-03-05  Ian Lance Taylor  <iant@google.com>
21865
21866         * c.opt (fgnu89-inline): New option.
21867         * c-opts.c (c_common_post_options): Set default value for
21868         flag_gnu89_inline.
21869         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
21870         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
21871         inline functions.
21872         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
21873         (grokdeclarator, start_function): Likewise.
21874         * c-cppbuiltin.c (c_cpp_builtins): Define either
21875         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
21876         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
21877         (C Dialect Options): Document -fgnu89-inline.
21878         * doc/extend.texi (Function Attributes): Explain what the
21879         gnu_inline attribute does.
21880         * doc/cpp.texi (Common Predefined Macros): Document
21881         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
21882
21883 2007-03-05  Ian Lance Taylor  <iant@google.com>
21884
21885         PR tree-optimization/31034
21886         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
21887         half-range if the other side is an overflow infinity.
21888
21889 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
21890
21891         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
21892         (bfin*-linux-uclibc*): New configuration.
21893         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
21894         defining.
21895         * config/bfin/linux.h: New file.
21896         * config/bfin/libgcc-bfin.ver: New file.
21897         * config/bfin/t-bfin-uclinux: New file.
21898         * config/bfin/t-bfin-linux: New file.
21899         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
21900         (TARGET_OS_CPP_BUILTINS): New macro.
21901
21902 2007-03-05  Richard Guenther  <rguenther@suse.de>
21903
21904         * fold-const.c (fold_binary): Remove duplicate folding
21905         of comparison of non-null ADDR_EXPR against null.
21906
21907 2007-03-05  Richard Guenther  <rguenther@suse.de>
21908             Dorit Nuzman  <dorit@il.ibm.com>
21909
21910         PR tree-optimization/26420
21911         * tree-vectorizer.c (vectorize_loops): Bail out early if there
21912         are no loops in the function.  Only print the number of
21913         vectorized loops if it is greater than zero or we are supposed
21914         to print information about unvectorized loops.
21915
21916 2007-03-05  Revital Eres  <eres@il.ibm.com>
21917
21918         * gcc.dg/var-expand1.c: New test.
21919         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
21920         when an accumulator is expanded.
21921
21922 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21923
21924         PR other/30465
21925         * c-common.c (convert_and_check): Don't give warnings for
21926         conversion if 'expr' already overflowed.
21927
21928 2007-03-04  Roger Sayle  <roger@eyesopen.com>
21929
21930         PR middle-end/30744
21931         * fold-const.c (fold_comparison): Enforce type consistency when
21932         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
21933
21934 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
21935
21936         * tree-ssa-address.c (create_mem_ref): Do not put an expression
21937         containing a cast to the base of TARGET_MEM_REF.
21938
21939 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
21940
21941         * tree.c (tree_contains_struct_check_failed): Remove spurious
21942         whitespace from error message.
21943
21944 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
21945
21946         PR target/30406
21947         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
21948         instead of precision.
21949
21950 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
21951             Nathan Sidwell  <nathan@codesourcery.com>
21952
21953         * emit-rtl.c (find_auto_inc): New.
21954         (try_split): recreate REG_INC notes,
21955         Use regular for loops rather than whiles.
21956
21957 2007-03-03  Andreas Schwab  <schwab@suse.de>
21958
21959         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
21960         * configure: Regenerate.
21961
21962 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21963
21964         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
21965         flag_rounding_math, not flag_unsafe_math_optimizations.
21966
21967         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
21968         fold_build2.
21969         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
21970         alpha_fold_vector_minmax): Likewise.
21971         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
21972         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
21973
21974 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
21975
21976         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
21977         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
21978         if the lhs has side-effects.
21979         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
21980
21981 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
21982
21983         * config/i386/i386.h (TUNEMASK): Remove define.
21984         (ARCHMASK): Remove define.
21985         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
21986          Use ix86_arch_mask variable instead of ARCHMASK.
21987         * config/i386/i386.c (override_options): Ditto.
21988         (standard_80387_constant_p): Ditto.
21989
21990 2007-03-02  Ian Lance Taylor  <iant@google.com>
21991
21992         Used signed infinities in VRP.
21993         * tree-vrp.c (uses_overflow_infinity): New static function.
21994         (supports_overflow_infinity): New static function.
21995         (make_overflow_infinity): New static function.
21996         (negative_overflow_infinity): New static function.
21997         (positive_overflow_infinity): New static function.
21998         (is_negative_overflow_infinity): New static function.
21999         (is_positive_overflow_infinity): New static function.
22000         (is_overflow_infinity): New static function.
22001         (overflow_infinity_range_p): New static function.
22002         (compare_values_warnv): New function split out of compare_values.
22003         (compare_value): Call it.
22004         (set_value_range_to_nonnegative): Add overflow_infinity
22005         parameter.  Change caller.
22006         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
22007         Change callers.
22008         (vrp_expr_computes_nonzero): Likewise.
22009         (compare_ranges, compare_range_with_value): Likewise.
22010         (compare_name_with_value, compare_names): Likewise.
22011         (vrp_evaluate_conditional): Likewise.
22012         (set_value_range): Handle infinity
22013         (vrp_operand_equal_p, operand_less_p): Likewise.
22014         (extract_range_from_assert): Likewise.
22015         (vrp_int_const_binop): Likewise.
22016         (extract_range_from_binary_expr): Likewise.
22017         (extract_range_from_unary_expr): Likewise.
22018         (extract_range_from_comparison): Likewise.
22019         (extract_range_from_expr): Likewise.
22020         (dump_value_range): Likewise.
22021         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
22022         (test_for_singularity): Likewise.
22023         (vrp_int_const_binop): Remove inline qualifier.
22024         (adjust_range_with_scev): Add comment.
22025         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
22026
22027 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
22028
22029         * tree-ssa-structalias.c (could_have_pointers): Tidy.
22030         (get_constraint_for): Likewise.
22031         (do_structure_copy): Likewise.
22032         (find_func_aliases): Fix references to MODIFY_EXPR.
22033         (intra_create_variable_infos): Tidy.
22034         * tree-ssa-operands.c (add_virtual_operand): Add argument
22035         IS_CALL_SITE.
22036         When adding members of alias sets, if IS_CALL_SITE is true and
22037         the symbol is not call-clobbered, skip it.
22038         Adjust all callers.
22039
22040 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
22041
22042         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
22043         entry by means of emit_insn_at_entry.
22044
22045 2007-03-02  Richard Henderson  <rth@redhat.com>
22046
22047         * expr.h (promoted_input_arg): Remove decl.
22048         * function.c (promoted_input_arg): Merge into ...
22049         * combine.c (setup_incoming_promotions): ... only caller.
22050         Rearrange to avoid double loop.
22051
22052 2007-03-02  Ben Elliston  <bje@au.ibm.com>
22053             Peter Bergner  <bergner@vnet.ibm.com>
22054             Janis Johnson  <janis187@us.ibm.com>
22055
22056         * config/rs6000/dfp.md: New file.
22057         * config/rs6000/rs6000.md: Include dfp.md.
22058         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
22059         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
22060         and TDmode decimal float modes in FP registers.
22061         (num_insns_constant): Likewise.
22062         (rs6000_legitimate_offset_address_p): Likewise.
22063         (rs6000_legitimize_address): Likewise.
22064         (rs6000_legitimize_reload_address): Likewise.
22065         (rs6000_legitimate_address): Likewise.
22066         (rs6000_emit_move): Likewise.
22067         (function_arg_boundary): Likewise.
22068         (function_arg_advance): Likewise.
22069         (rs6000_darwin64_record_arg_recurse): Likewise.
22070         (function_arg): Likewise.
22071         (rs6000_gimplify_va_arg): Likewise.
22072         (rs6000_split_multireg_move): Likewise.
22073         (rs6000_output_function_epilogue): Likewise.
22074         (rs6000_output_function_epilogue): Likewise.
22075         (rs6000_register_move_cost): Likewise.
22076         (rs6000_function_value): Likewise.
22077         (rs6000_libcall_value): Likewise.
22078
22079 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
22080
22081         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
22082
22083 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
22084
22085         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
22086         Use $MULTIDIR to choose between the kernel and RTP headers,
22087         and use $WIND_BASE and $WIND_USR to locate them.
22088
22089 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
22090
22091         * config/i386/i386.c (override_options): Put initialization of
22092         ix86_tune_mask and ix86_arch_mask to the correct place.
22093
22094 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
22095             Michael Meissner  <michael.meissner@amd.com>
22096
22097         PR target/31019
22098         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
22099         (ARCHMASK): Define.
22100         (TARGET_CMOVE): Use ARCHMASK.
22101         (TARGET_CMPXCHG): Ditto.
22102         (TARGET_CMPXCHG8B): Ditto.
22103         (TARGET_XADD): Ditto.
22104         (TARGET_BSWAP): Ditto.
22105         * config/i386/i386.c (ix86_tune_mask): New global variable.
22106         (ix86_arch_mask): Ditto.
22107         (override_options): Initialize ix86_tune_mask and
22108         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
22109         target_flags.
22110
22111 2007-03-02  Ben Elliston  <bje@au.ibm.com>
22112
22113         PR 30992
22114         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
22115
22116 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
22117
22118         * target.h (init_dwarf_reg_sizes_extra): New target hook.
22119         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
22120         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
22121         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
22122         hook.
22123         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
22124         rs6000_init_dwarf_reg_sizes_extra): New.
22125         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
22126         SPE register high parts.
22127
22128 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
22129
22130         * Makefile.in: Add install-pdf target as
22131         copied from automake v1.10 rules.
22132         * configure.ac: Add install-pdf to target list.
22133         * configure: Regenerate.
22134
22135 2007-03-01  Paul Brook  <paul@codesourcery.com>
22136
22137         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
22138         modes to LDRD for DImode.
22139         (output_move_double): Fixup out of range ldrd/strd.
22140         (vfp_secondary_reload_class): Rename...
22141         (coproc_secondary_reload_class): ... to this.  Add wb argument.
22142         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
22143         coproc_secondary_reload_class for CLASS_IWMMXT.
22144         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
22145         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
22146
22147 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
22148
22149         * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
22150         unroll factor by the estimated number of iterations.
22151         (loop_prefetch_arrays): Do not prefetch in loops that iterate less
22152         than prefetch latency.
22153
22154         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
22155         decode_caches_intel, detect_caches_intel): New functions.
22156         (host_detect_local_cpu): Use detect_caches_amd and
22157         detect_caches_intel.
22158
22159 2007-03-01  Richard Henderson  <rth@redhat.com>
22160
22161         * expr.c (emit_move_complex_push): Export.
22162         (emit_move_complex_parts): Split out from ...
22163         (emit_move_complex): ... here.
22164         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
22165         * config/i386/i386.md (movcdi): New.
22166
22167 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
22168
22169         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
22170         size of mode1 to check for tieable modes in MMX case.
22171
22172 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
22173
22174         * Makefile.in (rtlanal.o): Depend on tree.h.
22175         * rtl.h (offset_within_section_p, split_const): Declare.
22176         * rtlanal.c: Include tree.h.
22177         (offset_within_block_p): New function, taken from
22178         mips_offset_within_object_p.
22179         (split_const): New function, taken from mips_split_const.
22180         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
22181         Declare.
22182         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
22183         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
22184         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
22185         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
22186         (m68k_illegitimate_symbolic_constant_p): New function.
22187         * config/m68k/m68k.md (movsi): Remove misleading predicates.
22188         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
22189         symbolic constant that might be outside the symbol's section,
22190         move the symbol first and then add the offset.
22191         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
22192         Override.
22193         * config/mips/mips.c (mips_split_const): Delete.
22194         (mips_offset_within_object_p): Delete.
22195         (mips_symbolic_constant_p): Use offset_within_section_p and
22196         split_const instead of mips_offset_within_object_p and
22197         mips_split_const.
22198         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
22199         (mips_legitimize_const_move, print_operand_reloc)
22200         (mips_dangerous_for_la25_p): Use split_const instead of
22201         mips_split_const.
22202
22203 2007-02-28  Eric Christopher  <echristo@apple.com>
22204
22205         * Makefile.in (install-include-dir): Don't rm -rf include.
22206
22207 2007-02-28  Richard Guenther  <rguenther@suse.de>
22208
22209         PR middle-end/30364
22210         * fold-const.c (fold_binary): Do not associate expressions
22211         with more than one variable for integer types that do not wrap.
22212
22213 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
22214
22215         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
22216         Delete, and replace with...
22217         (fold_builtin_call_array): This.  Update callers to use it.
22218         * fold-const.c (fold_build_call_list): Delete, and replace with...
22219         (fold_build_call_array): This.
22220         (fold_build_call_list_initializer): Delete, and replace with...
22221         (fold_build_call_array_initializer): This.
22222         * tree.h: Update declarations to reflect above changes.
22223
22224         * c-typeck.c (build_function_call): Store converted arguments
22225         in a stack-allocated array instead of building a list.
22226         (convert_arguments): Store arguments in the array passed in as an
22227         argument, and return the actual number of arguments.
22228         * c-format.c: (check_function_format): Pass arguments in an
22229         array instead of a list.
22230         * c-common.c (check_function_nonnull): Likewise.
22231         (check_function_sentinel): Likewise.
22232         (check_function_arguments): Likewise.
22233         * c-common.h: Update declarations to reflect above changes.
22234
22235 2007-02-28  Jan Hubicka  <jh@suse.cz>
22236
22237         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
22238         PRED_NEGATIVE_RETURN): Update outcomes.
22239
22240 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
22241
22242         * calls.c (emit_library_call_value_1): Handle partial registers
22243         correctly when building up CALL_INSN_FUNCTION_USAGE.
22244
22245 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22246
22247         * pa/predicates.md (move_src_operand): Allow zero for mode.
22248         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
22249         move pattern.
22250
22251 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
22252
22253         PR target/30970
22254         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
22255         *movv2df_internal): Enable pattern only for valid operand
22256         combinations.
22257         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
22258         tie only 128bit modes. For MMX registers, tie only 64bit modes.
22259
22260 2007-02-27  Mike Stump  <mrs@apple.com>
22261
22262         * config/darwin-crt3.c: Avoid compilation when compiling for a
22263         kext multilib.
22264
22265 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
22266
22267         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
22268         FIXED_INCLUDE_DIR.
22269         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
22270         for fixed headers and limits.h.
22271         (install-include-dir, install-headers-tar, install-headers-cpio,
22272         install-headers-cp, real-install-headers-tar,
22273         real-install-headers-cpio, real-install-headers-cp): Handle
22274         include-fixed as well as include.
22275         (install-mkheaders): Don't install files that go only in include
22276         not include-fixed.
22277         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
22278         from GCC_INCLUDE_DIR.
22279         * gcc.c (process_command): Remove special -BstageN/ handling.
22280         (do_spec_1): Add include-fixed directories.
22281
22282 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22283
22284         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
22285         _smulsi3_highpart.
22286         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
22287         New functions.
22288         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
22289         patterns.
22290
22291 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
22292
22293         * c-common.c (get_priority): Add check for
22294         SUPPORTS_INIT_PRIORITY.
22295
22296 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22297
22298         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
22299
22300         * config/bfin/bfin.c: Include "cfglayout.h".
22301         (MAX_LSETUP_DISTANCE): New macro.
22302         (struct loop_info): New members incoming, incoming_src and
22303         incoming_dest.  Delete member predecessor.
22304         (length_for_loop): New function.
22305         (bfin_optimize_loop): Handle more different loop structures.
22306         (bfin_discover_loop): Rework detection of predecessor blocks by
22307         examining incoming edges.
22308         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
22309         bfin_reorg_loops.
22310         (bfin_reorder_loops): New function.
22311         (bfin_reorg_loops): Use these three new functions.
22312
22313         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
22314         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
22315         (CONSTRAINT_LEN): Add entry for 'q'.
22316         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
22317         Add 'q' constraints.
22318         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
22319         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
22320
22321         * config/bfin/bfin.md (add_with_carry): New pattern.
22322         (s_or_u, su_optab, su_modifier): New code macros/attrs.
22323         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
22324         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
22325         support unsigned multiplies too.  Removed incorrect commutativity from
22326         operand 1 constraint where appropriate.
22327         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
22328         patterns.
22329         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
22330         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
22331         New patterns.
22332         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
22333         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
22334         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
22335         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
22336         usmulhisi_hh_huh): New patterns.
22337
22338         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
22339         lshifthi3): Fix output template to use half reg for operand 2.
22340
22341         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
22342         instead of R2.
22343
22344         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
22345
22346 2007-02-27  Andreas Schwab  <schwab@suse.de>
22347
22348         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
22349
22350 2007-02-27  Jan Hubicka  <jh@suse.cz>
22351
22352         * predict.c (last_basic_block_p): Remove.
22353         (tree_estimate_probability): Update return heuristic for commonized
22354         return blocks.
22355
22356 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
22357
22358         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
22359
22360 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
22361
22362         * doc/include/gcc-common.texi (versionsubtitle): New macro.
22363         * doc/cpp.texi: Standardize title page.
22364         * doc/cppinternals.texi: Likewise.
22365         * doc/gcc.texi: Standardize title page, remove version number
22366         from copyright page.
22367         * doc/gccint.texi: Likewise.
22368         * doc/install.texi: Standardize title page, add table of
22369         contents.
22370
22371 2007-02-26  Jan Hubicka  <jh@suse.cz>
22372
22373         * predict.def: Set outcomes according to more recent results.
22374         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
22375         Remove dead predictors.
22376         * predict.c (return_prediction): Fix pasto.
22377
22378 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
22379
22380         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
22381         change; avoid a memory leak when returning early.
22382
22383 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
22384
22385         * c-decl.c (static_ctors): Move to c-common.c.
22386         (static_dtors): Likewise.
22387         (finish_function): Use c_record_cdtor_fn.
22388         (build_cdtor): Move to c-common.c.
22389         (c_write_global_declarations): Use c_build_cdtor_fns.
22390         * c-common.h (static_ctors): Declare.
22391         (static_dtors): Likewise.
22392         (c_record_cdtor_fn): Likewise.
22393         (c_build_cdtor_fns): Likewise.
22394         * c-common.c (static_ctors): New variable.
22395         (static_dtors): Likewise.
22396         (c_record_cdtor_fn): New function.
22397         (build_cdtor): Move from c-decl.c
22398         (c_build_cdtor_fns): New function.
22399
22400         * output.h (assemble_addr_to_section): Declare.
22401         (get_cdtor_priority_section): Likewise.
22402         * varasm.c (assemble_addr_to_section): New function.
22403         (get_cdtor_priority_section): Likewise.
22404         (default_named_section_asm_out_destructor): Use them.
22405         (destor_dtor_section_asm_out_destructor): Likewise.
22406         (default_named_section_asm_out_constructor): Likewise.
22407         (default_ctor_section_asm_out_constructor): Likewise.
22408         * config.gcc (*-*-vxworks*): Include vxworks.o.
22409         * config/t-vxworks (vxworks.o): New target.
22410         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
22411         (TARGET_ASM_CONSTRUCTOR): Define.
22412         (TARGET_ASM_DESTRUCTOR): Likewise.
22413         (vxworks_asm_out_constructor): Declare.
22414         (vxworks_asm_out_destructor): Likewise.
22415
22416         * c-common.c (get_priority): Check that we have not just an
22417         INTEGER_CST, but an integer constant with integeral type.
22418
22419 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
22420
22421         PR tree-optimization/30938
22422         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
22423         use &dt[nargs-1] instead of &dt[nargs] in the call to
22424         vect_is_simple_use().
22425
22426 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
22427
22428         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
22429         from register elimination as PRE_MODIFY / POST_MODIFY increments.
22430         Do not attempt to handle MEM inside auto-inc expressions.
22431         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
22432         of a register modified by an auto-inc expression.  However, do handle
22433         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
22434         (elimination_effects): Prohibit elimination of a register modified
22435         by an auto-inc expression.  Disable register elimination rules whose
22436         target register is modified by an auto-inc expression with variable
22437         increment.
22438
22439 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
22440
22441         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
22442         off-by-one error.
22443         (array_at_struct_end_p): New function.
22444         (idx_infer_loop_bounds): Use it.
22445         (estimate_numbers_of_iterations_loop): Export.
22446         * predict.c (predict_loops): Use estimated_loop_iterations_int.
22447         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
22448         (tree_estimate_probability): Call record_loop_exits.
22449         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
22450         (estimated_loop_iterations, estimated_loop_iterations_int,
22451         estimated_loop_iterations_tree): New functions.
22452         (analyze_siv_subscript_cst_affine,
22453         compute_overlap_steps_for_affine_1_2,
22454         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
22455         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
22456         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
22457         (PRED_LOOP_ITERATIONS_GUESSED): New.
22458         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
22459         * cfgloop.h (estimate_numbers_of_iterations_loop,
22460         estimated_loop_iterations_int): Declare.
22461
22462 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
22463
22464         * doc/extend.texi: Document optional priority argument to
22465         constructors and destructors.
22466         * tree.c (init_priority_for_decl): Adjust GTY markers.
22467         (init_ttree): Use priority-info hash functions for
22468         init_priority_for_decl.
22469         (tree_map_eq): Rename to ...
22470         (tree_map_base_eq): ... this.
22471         (tree_map_marked_p): Rename to ...
22472         (tree_map_base_marked_p): ... this.
22473         (tree_map_base_hash): New function.
22474         (decl_init_priority_lookup): Rework.
22475         (decl_fini_priority_lookup): New function.
22476         (decl_priority_info): New function.
22477         (decl_init_priority_insert): Use it.
22478         (decl_fini_priority_insert): Likewise.
22479         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
22480         hierarchy.
22481         (decl_restrict_base_insert): Likewise.
22482         (decl_debug_expr_insert): Likewise.
22483         (decl_value_expr_lookup): Likewise.
22484         (decl_value_expr_insert): Likewise.
22485         * tree.h (priority_type): New type.
22486         (decl_init_priority_lookup): Use priority_type.
22487         (decl_fini_priority_lookup): New function.
22488         (decl_init_priority_insert): Use priority_type.
22489         (decl_fini_priority_insert): New function.
22490         (DECL_HAS_INIT_PRIORITY): Tweak comments.
22491         (DECL_INIT_PRIORITY): Likewise.
22492         (SET_DECL_INIT_PRIORITY): Add comment.
22493         (DECL_FINI_PRIORITY): New macro.
22494         (SET_DECL_FINI_PRIORITY): Likewise.
22495         (DEFAULT_INIT_PRIORITY): Document.
22496         (MAX_INIT_PRIORITY): Likewise.
22497         (MAX_RESERVED_INIT_PRIORITY): Likewise.
22498         (tree_map_base): New type.
22499         (tree_map_base_eq): New function.
22500         (tree_map_base_hash): Likewise.
22501         (tree_map_base_marked_p): Likewise.
22502         (tree_map): Inherit from tree_map_base.
22503         (tree_map_eq): Make it a macro.
22504         (tree_map_marked_p): Likewise.
22505         (tree_int_map): Inherit from tree_map_base.
22506         (tree_int_map_eq): Make it a macro.
22507         (tree_int_map_hash): Likewise.
22508         (tree_int_map_marked_p): Likewise.
22509         (tree_priority_map): New type.
22510         (tree_priority_map_eq): New macro.
22511         (tree_priority_map_hash): Likewise.
22512         (tree_priority_map_marked_p): Likewise.
22513         * varasm.c (emults_decl): Adjust for refactoring of tree_map
22514         hierarchy.
22515         (emutls_common_1): Likewise.
22516         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
22517         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
22518         of tree_map hierarchy.
22519         * tree-cfg.c (move_stmt_r): Likewise.
22520         (new_label_mapper): Likewise.
22521         * c-tree.h (c_expand_body): Move to ...
22522         * c-common.h (c_expand_body): ... here.
22523         * c-decl.c (c_expand_body): Move to ...
22524         * c-common.c (c_expand_body): ... here.
22525         (c_common_attribute_table): Allow 1 argument for the constructor
22526         and destructor attributes.
22527         (get_priority): New function.
22528         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
22529         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
22530
22531 2007-02-24  Jan Hubicka  <jh@suse.cz>
22532
22533         PR middle-end/30509
22534         * tree-inline.c (copy_bb): Produce exact copy of EH info when
22535         copying for inlining.
22536
22537 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
22538             Jan Hubicka  <jh@suse.cz>
22539
22540         PR target/30778
22541         * i386.c (counter_mode): New function.
22542         (expand_set_or_movmem_via_loop): Use it.
22543         (expand_movmem_epilogue): Likewise; fix pasto.
22544         (ix86_expand_movmem): Do emit guard even for constant counts.
22545         (ix86_expand_setmem): Likewise.
22546
22547 2007-02-25  Nick Clifton  <nickc@redhat.com>
22548
22549         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
22550         (JUMP_TABLES_IN_TEXT_SECTION): Define.
22551
22552 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
22553
22554         PR target/30770
22555         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
22556         count argument with 0x10, not with 0x16.
22557         (expand_setmem_epilogue): Ditto.
22558
22559 2007-02-24  Mike Stump  <mrs@apple.com>
22560
22561         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
22562         symbols.
22563
22564 2007-02-24  Richard Guenther  <rguenther@suse.de>
22565
22566         PR middle-end/30951
22567         * fold-const.c (fold_binary): Fold x +- CST op x for
22568         EQ_EXPR and NE_EXPR.
22569
22570 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22571
22572         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
22573
22574 2007-02-24  Jan Hubicka  <jh@suse.cz>
22575
22576         * cgraphunit.c (decide_is_function_needed): Honor
22577         -fkeep-inline-functions.
22578
22579 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22580
22581         * builtins.c (fold_builtin_modf): New.
22582         (fold_builtin_2): Use it.
22583
22584 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22585
22586         * loop-iv.c (implies_p): Detect additional cases where A implies B.
22587         (determine_max_iter): Take additional LOOP arg; all callers changed.
22588         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
22589         one using simplifications.
22590         (simplify_using_initial_values): Return if the expression becomes
22591         invalid due to altered regs.
22592
22593 2007-02-23  DJ Delorie  <dj@redhat.com>
22594
22595         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
22596
22597 2007-02-23  Mike Stump  <mrs@apple.com>
22598
22599         * tlink.c (scan_linker_output): Parse linker messages from
22600         darwin9's linker better.
22601
22602 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
22603
22604         PR debug/29614
22605         * varpool.c (varpool_assemble_pending_decls): Set
22606         varpool_last_needed_node to null.
22607
22608 2007-02-23  DJ Delorie  <dj@redhat.com>
22609
22610         * config/i386/i386.c (ix86_data_alignment): Don't specify an
22611         alignment bigger than the object file can handle.
22612
22613 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
22614
22615         PR target/30825
22616         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
22617         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
22618         (*movsf_1): Penalize MMX moves.
22619
22620 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
22621
22622         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
22623         2^32-1 or more times unless flag_unsafe_loop_optimizations.
22624
22625         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
22626
22627 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22628
22629         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
22630         (fold_builtin_1): Use them.
22631         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
22632         BUILT_IN_SIGNIFICAND.
22633
22634 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
22635
22636         * config/i386/i386.c (bdesc_1arg): Initialize
22637         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
22638         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
22639         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
22640         and IX86_BUILTIN_MOVSLDUP.
22641
22642 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
22643
22644         PR rtl-optimization/30841
22645         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
22646
22647 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22648
22649         * builtins.c (fold_builtin_frexp): New.
22650         (fold_builtin_2): Use it.
22651
22652 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
22653
22654         * doc/invoke.texi (Spec Files): Document getenv spec function.
22655
22656         * gcc.c (getenv_spec_function): New function.
22657         (static_spec_functions): Add it.
22658         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
22659         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
22660         header files.
22661
22662 2007-02-22  Michael Matz  <matz@suse.de
22663
22664         PR c++/29433
22665         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
22666         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
22667
22668 2007-02-22  Ian Lance Taylor  <iant@google.com>
22669
22670         PR debug/30898
22671         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
22672         (mem_loc_descriptor): Call it.
22673
22674 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
22675             Ira Rosen  <irar@il.ibm.com>
22676
22677         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
22678
22679 2007-02-22  Ira Rosen  <irar@il.ibm.com>
22680
22681         PR tree-optimization/30843
22682         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
22683         stores only after all the group is vectorized.
22684
22685 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
22686
22687         PR tree-optimization/30858
22688         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
22689         in the reduction cycle have a single use in the loop.
22690         * tree-vectorizer.h (relevant): Add documentation.
22691
22692 2007-02-20  Mike Stump  <mrs@apple.com>
22693
22694         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
22695         * configure: Regenerate.
22696
22697 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
22698
22699         Change the defaults of some parameters and options.
22700         * config/spu/spu-protos.h (spu_optimization_options): Declare.
22701         * config/spu/spu.c (spu_optimization_options): Add.
22702         (spu_override_options): Change params in spu_optimization_options.
22703         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
22704
22705         Register 127 is only 16 byte aligned when used as a frame pointer.
22706         * config/spu/spu-protos.h (spu_init_expanders): Declare.
22707         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
22708         HARD_FRAME_POINTER_REGNUM.
22709         (spu_legitimate_address): Use regno_aligned_for_reload.
22710         (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
22711         aligned when frame_pointer_needed is true.
22712         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
22713         to 8 bits.
22714         * config/spu/spu.h (INIT_EXPANDERS): Define.
22715
22716         Make sure shift and rotate instructions have valid immediate operands.
22717         * config/spu/predicates.md (spu_shift_operand): Remove.
22718         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
22719         * config/spu/constraints.md (W, O): Extend range.
22720         * config/spu/spu.md (umask, nmask): Define.
22721         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
22722         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
22723         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
22724         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
22725         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
22726         (lshr<mode>3_reg): Fix rtl description.
22727
22728         Make sure mulhisi immediate operands are valid.
22729         * config/spu/predicates.md (imm_K_operand): Add.
22730         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
22731
22732         Generate constants using fsmbi and andi.
22733         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
22734         (print_operand, spu_split_immediate, classify_immediate,
22735         fsmbi_const_p): Handle IC_FSMBI2.
22736
22737         Correctly handle a CONST_VECTOR containing symbols.
22738         * config/spu/spu.c (print_operand): Handle HIGH correctly.
22739         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
22740         (immediate_load_p): Allow symbols that use 2 instructions to create.
22741         (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
22742         with symbols when flag_pic is set.
22743         (const_vector_immediate_p): New.
22744         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
22745         accept a CONST_VECTOR with symbols.
22746         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
22747         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
22748         correctly.
22749         * config/spu/spu.md (high, low): Delete.
22750         (low_<mode>): Define.
22751
22752         Remove INTRmode and INTR_REGNUM, which didn't work.
22753         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
22754         of INTR_REGNUM.
22755         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
22756         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
22757         peephole2 pattern): Don't use INTR or 131.
22758         (movintrcc): Delete.
22759         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
22760         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
22761         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
22762         (UNSPEC_SET_INTR): Add.
22763         * config/spu/spu-modes.def (INTR): Remove.
22764
22765         More accurate warnings about run-time relocations.
22766         * config/spu/spu.c (reloc_diagnostic): Test in_section.
22767
22768         Correctly warn about immediate arguments to specific intrinsics.
22769         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
22770         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
22771         the instruction predicate.
22772
22773         Fix tree check errors with latest update.
22774         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
22775         CALL_EXPR_ARG.
22776         (spu_expand_builtin): Use CALL_EXPR_FN.
22777
22778         Add missing specific intrinsics.
22779         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
22780         si_bislede.
22781         * config/spu/spu_internals.h: Ditto.
22782
22783         Fix incorrect operand modifiers.
22784         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
22785         * config/spu/spu.md (xor<mode>3): Change %S to %J.
22786
22787         Optimize one case of zero_extend of a vec_select.
22788         * config/spu/spu.md (_vec_extractv8hi_ze): Add.
22789
22790         Accept any immediate for hbr.
22791         * config/spu/spu.md (hbr): Change s constraints to i.
22792
22793 2007-02-21  Paul Brook  <paul@codesourcery.com>
22794
22795         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
22796         condexec_count when skipping USE and CLOBBER.
22797
22798 2007-02-21  Nick Clifton  <nickc@redhat.com>
22799
22800         * common.opt (Warray-bounds): Add Warning attribute.
22801         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
22802         Likewise.
22803         (fsized-zeroes): Add Optimization attribute.
22804         (fsplit-wide-types, ftree-scev-cprop): Likewise.
22805         * c.opt (Wc++0x-compat): Add Warning attribute.
22806
22807 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
22808
22809         PR middle-end/30761
22810         * reload1.c (eliminate_regs_in_insn): In the single_set special
22811         case, attempt to re-recognize the insn before falling back to
22812         having reload fix it up.
22813
22814 2007-02-20  Eric Christopher  <echristo@gmail.com>
22815
22816         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
22817         Rewrite accordingly.
22818         (frv_read_iacc_argument): Ditto.
22819         (frv_expand_set_builtin): Take a call instead of arglist, update for
22820         above changes.
22821         (frv_expand_unop_builtin): Ditto.
22822         (frv_expand_binop_builtin): Ditto.
22823         (frv_expand_cut_builtin): Ditto.
22824         (frv_expand_binopimm_builtin): Ditto.
22825         (frv_expand_voidbinop_builtin): Ditto.
22826         (frv_expand_int_void2arg): Ditto.
22827         (frv_expand_prefetches): Ditto.
22828         (frv_expand_voidtriop_builtin): Ditto.
22829         (frv_expand_voidaccop_builtin): Ditto.
22830         (frv_expand_load_builtin): Ditto.
22831         (frv_expand_store_builtin): Ditto.
22832         (frv_expand_mdpackh_builtin): Ditto.
22833         (frv_expand_mclracc_builtin): Ditto.
22834         (frv_expand_mrdacc_builtin): Ditto.
22835         (frv_expand_mwtacc_builtin): Ditto.
22836         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
22837         calls for above.
22838
22839 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
22840
22841         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
22842         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
22843         cmpb instruction.
22844         (HAVE_GAS_DFP): Check for assembler support of decimal floating
22845         point instructions.
22846         * configure: Regenerate.
22847         * config.in: Regenerate.
22848         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
22849         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
22850         masks to power6 and power6x and to POWERPC_MASKS.
22851         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22852         _ARCH_PWR6.
22853         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
22854         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
22855         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22856         Access PROTOTYPE as variable, not mask.
22857
22858 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
22859
22860         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
22861         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
22862         * combine.c (adjust_for_new_dest): Use it.
22863         * postreload.c (reload_combine): Likewise.
22864
22865 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
22866
22867         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
22868         notes on an insn with multiple sets, even if single_set returns
22869         non-NULL for that insn.
22870
22871 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22872
22873         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
22874         scalbn and scalbln.
22875
22876 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
22877
22878         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
22879         if user didn't pass it.
22880         * config/i386/darwin.h (CC1_SPEC): Likewise.
22881         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
22882         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
22883         -mmacosx-version-min.
22884
22885 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22886             Uros Bizjak  <ubizjak@gmail.com>
22887
22888         * optabs.h (enum optab_index): Add new OTI_scalb.
22889         (scalb_optab): Define corresponding macro.
22890         * optabs.c (init_optabs): Initialize scalb_optab.
22891         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
22892         patterns.
22893         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
22894         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
22895         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
22896         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
22897         flag_unsafe_math_optimizations is set.
22898
22899         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
22900         to implement scalbf, scalb and scalbl built-ins as inline x87
22901         intrinsics.
22902
22903 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22904             DJ Delorie <dj@redhat.com>
22905
22906         PR other/30824
22907         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
22908         (diagnostic_report_diagnostic): ... here, and turn them into real
22909         errors. If warnings are inhibited, no need to do anything.
22910
22911 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
22912
22913         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
22914         better code generation.
22915
22916 2007-02-20  Ben Elliston  <bje@au.ibm.com>
22917
22918         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
22919
22920 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
22921
22922         * config/alpha/alpha.c, config/alpha/alpha.md,
22923         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
22924         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
22925         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
22926         config/arm/lib1funcs.asm: Follow spelling conventions.
22927
22928         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
22929         config/fr30/fr30.md, config/i386/i386.h,
22930         config/iq2000/iq2000.h, config/iq2000/predicates.md,
22931         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
22932         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
22933         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
22934         config/rs6000/altivec.md, config/rs6000/rs6000.c,
22935         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
22936         config/sparc/sparc.c, config/sparc/sparc.h,
22937         config/sparc/sparc.md, config/spu/constraints.md,
22938         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
22939         conventions.
22940
22941 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
22942
22943         PR target/29943
22944         * varasm.c (use_blocks_for_decl_p): Return false for decls with
22945         alias attribute.
22946
22947 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
22948
22949         * doc/invoke.texi (-ftree-lrs): Remove.
22950
22951 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
22952
22953         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
22954         NULL.
22955
22956 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
22957
22958         * config/ia64/ia64.c (ia64_expand_builtin): Use the
22959         new CALL_EXPR_FN macro for retrieving the function
22960         declaration of the input expression.
22961
22962 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22963
22964         * c.opt (Waddress): New.
22965         * common.opt (Walways-true): Delete.
22966         (Wstring-literal-comparison): Delete.
22967         * doc/invoke.texi (Warning Options): Delete -Walways-true and
22968         -Wstring-literal-comparison. Add -Waddress.
22969         (Waddress): New.
22970         (Walways-true): Delete.
22971         (Wstring-literal-comparison): Delete.
22972         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
22973         consistently instead of -Walways-true in example.
22974         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
22975         * c-typeck.c (parser_build_binary_op): Replace
22976         -Wstring-literal-comparison and -Walways-true with -Waddress.
22977         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
22978         with -Waddress.
22979
22980 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
22981
22982         * tree-cfg.c (dump_function_to_file): Be prepared for functions
22983         without DECL_STRUCT_FUNCTION initialized.
22984
22985 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
22986
22987         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
22988         due to calls to functions taking pointers as parameters.
22989
22990 2007-02-19  Richard Henderson  <rth@redhat.com>
22991
22992         PR debug/29558
22993         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
22994         in memory.
22995
22996 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
22997
22998         * config/s390/s390.c (s390_call_saved_register_used,
22999         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
23000         accessed to the new scheme.
23001
23002 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23003
23004         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
23005         (cris_print_index, cris_print_operand, cris_print_operand_address)
23006         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
23007         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
23008         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
23009         GET_CODE () == xxx.
23010         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
23011         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
23012         GO_IF_LEGITIMATE_ADDRESS): Ditto.
23013         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
23014         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
23015         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
23016         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
23017         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
23018         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
23019         (uminsi3, call, call_value): Ditto.
23020         (define_split: indir_to_reg_split, unnamed): Ditto.
23021
23022 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
23023
23024         PR tree-optimization/30975
23025         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
23026         wrong assert.
23027
23028 2007-02-18  Eric Christopher  <echristo@gmail.com>
23029
23030         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
23031         Remove use of arglist.
23032         (mips_expand_builtin): Remove use of arglist, pass in expr.
23033         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
23034         (mips_expand_builtin_movtf): Ditto.
23035         (mips_expand_builtin_compare): Ditto.
23036
23037 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
23038
23039         * tree-sra.c (sra_build_assignment): Replace assertion
23040         checking with a comment explaining why it can't be done.
23041
23042 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
23043
23044         PR middle-end/30833
23045         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
23046         during CALL_EXPR representation conversion.
23047         * tree-ssa-propagate.c (set_rhs): Likewise.
23048
23049 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
23050
23051         * tree-sra.c (sra_build_assignment): Disable assertion checking
23052         for now.
23053
23054 2007-02-18  Roger Sayle  <roger@eyesopen.com>
23055
23056         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
23057         instead of calling build2 with a GIMPLE_MODIFY_STMT.
23058         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
23059         Likewise.
23060         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
23061         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
23062         gimplify_init_ctor_eval_range, gimple_push_cleanup,
23063         gimplify_omp_for, gimplify_omp_atomic_pipeline,
23064         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
23065         force_gimple_operand): Likewise.
23066         * ipa-cp.c (constant_val_insert): Likewise.
23067         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
23068         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
23069         perfect_nestify): Likewise.
23070         * langhooks.c (lhd_omp_assignment): Likewise.
23071         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
23072         lower_copyprivate_clauses, lower_send_clauses,
23073         lower_send_shared_vars, expand_parallel_call,
23074         expand_omp_for_generic, expand_omp_for_static_nochunk,
23075         expand_omp_for_static_chunk, expand_omp_sections,
23076         lower_omp_single_copy, lower_omp_for_lastprivate,
23077         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
23078         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
23079         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
23080         Likewise.
23081
23082 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
23083
23084         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
23085         config/sh/sh.md: Follow spelling conventions.
23086
23087         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
23088         config/frv/predicates.md: Follow spelling conventions.
23089
23090         * config/m68k/linux-unwind.h: Fix a comment typo.
23091         * target.h: Follow spelling conventions.
23092
23093 2007-02-18  Roger Sayle  <roger@eyesopen.com>
23094
23095         PR rtl-optimization/28173
23096         * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
23097         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
23098         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
23099         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
23100         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
23101
23102 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23103
23104         * builtins.c (fold_builtin_load_exponent): New.
23105         (fold_builtin_2): Use it.
23106
23107 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
23108
23109         PR rtl-optimization/30773
23110         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
23111         if we fail to attach a REG_EQUIV note.
23112
23113 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
23114             Roger Sayle  <roger@eyesopen.com>
23115
23116         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
23117
23118 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
23119
23120         * calls.c (initialize_argument_information): Pass original EXP
23121         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
23122         code to split complex arguments here, as part of initializing the
23123         ARGS array.
23124         (expand_call): Remove code that builds a list of arguments and
23125         inserts implicit arguments into it.  Instead, just count how many
23126         implicit arguments there will be so we can determine the size of
23127         the ARGS array, and let initialize_argument_information do the work.
23128         (split_complex_values): Delete unused function.
23129
23130 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23131
23132         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
23133
23134 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
23135
23136         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
23137         for arg pointer based indexed addressing.
23138
23139 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
23140
23141         * config/ia64/ia64.h, config/ia64/ia64.md,
23142         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
23143         spelling conventions.
23144
23145 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23146
23147         * config/m68k/m68k.c (split_di): New.
23148         * config/m68k/m68k-protos.h: Declare split_di.
23149         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
23150           Improve predicate handling and split constant shifts.
23151
23152 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23153
23154         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
23155         parameter for register bitfield operations, general predicates
23156         cleanup
23157
23158 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
23159
23160         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
23161         * config/m68k/linux-unwind.h: New file.
23162
23163 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
23164
23165         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
23166         config/i386/athlon.md, config/ia64/ia64.md,
23167         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
23168         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
23169         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
23170         tree-ssa-loop-niter.c, tree-vect-analyze.c,
23171         tree-vect-transform.c: Fix comment typos.
23172
23173 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
23174
23175         * sched-deps.c (find_insn_list): Remove.
23176         * sched-int.h: Remove the prototype for find_insn_list.
23177
23178 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
23179
23180         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
23181         to linker.
23182         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
23183         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
23184         darwin_rs6000_override_options.
23185         (C_COMMON_OVERRIDE_OPTIONS): Expect
23186         darwin_macosx_version_min to be non-NULL always.
23187         (TARGET_C99_FUNCTIONS): Likewise.
23188         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
23189         (DARWIN_MINVERSION_SPEC): New.
23190         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
23191         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
23192         to cc1*.
23193         (DARWIN_MINVERSION_SPEC): New.
23194         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
23195         value.
23196         * config/darwin-c.c (darwin_cpp_builtins): Expect
23197         darwin_macosx_version_min to be non-NULL always.
23198
23199         * config/rs6000/rs6000.c: Clean up trailing whitespace.
23200
23201 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
23202
23203         * config/i386/i386.h (x86_use_xchgb): New.
23204         (TARGET_USE_XCHGB): New macro.
23205         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
23206         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
23207         Split after reload into bswaphi for shifts of 8.
23208         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
23209         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
23210         or when optimizing for size.
23211
23212 2007-02-16  Richard Guenther  <rguenther@suse.de>
23213             Christian Bruel  <christian.bruel@st.com>
23214
23215         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
23216         DECLs but prefer SSA_NAMEs over DECLs.
23217
23218 2007-02-16  Richard Guenther  <rguenther@suse.de>
23219
23220         * tree-flow-inline.h (single_imm_use_p): Remove.
23221         (zero_imm_uses_p): Likewise.
23222         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
23223         instead of single_imm_use_p.
23224         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
23225         zero_imm_uses_p.
23226
23227 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23228
23229         PR other/27843
23230         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
23231         nested double- and backquotes.
23232
23233 2007-02-15  Roger Sayle  <roger@eyesopen.com>
23234
23235         PR middle-end/30391
23236         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
23237         should be unreachable.
23238         (build2_stat): Allow construction of MODIFY_EXPR at any time.
23239         For the time being redirect GIMPLE_MODIFY_STMT to the new
23240         (renamed) build_gimple_modify_stmt_stat.
23241         (build2_gimple_stat): Rename to...
23242         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
23243         Always build a GIMPLE_MODIFY_STMT node.
23244         * tree.h (build2_gimple, build2_gimple_stat): Delete.
23245         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
23246         declarations.
23247
23248         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
23249         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
23250         * tree-complex.c (set_component_ssa_name, expand_complex_move,
23251         expand_complex_div_wide): Likewise.
23252         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
23253         * tree-ssa-loop-im.c (schedule_sm): Likewise.
23254         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
23255         * tree-ssa-loop-manip.c (create_iv): Likewise.
23256         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
23257         abs_replacement): Likewise.
23258         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
23259         realify_fake_stores): Likewise.
23260
23261         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
23262         node rather than a GIMPLE_MODIFY_STMT node.
23263         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
23264         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
23265         Likewise.
23266         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
23267         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
23268         GIMPLE_MODIFY_STMT.
23269
23270 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23271
23272         PR middle-end/30433
23273         * fold-const.c (fold_comparison): Add back the
23274         folding of constant complex comparisions.
23275
23276 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23277
23278         PR middle-end/30729
23279         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
23280         effects unknown to this function, return early.
23281
23282 2007-02-15  Ian Lance Taylor  <iant@google.com>
23283
23284         * lower-subreg.c (move_eh_region_note): New static function.
23285         (resolve_simple_move): Call it.
23286         (decompose_multiword_subregs): Track blocks for which we resolve a
23287         simple move which is also a control flow insn.  Pass them to
23288         find_many_sub_basic_blocks.
23289         (pass_lower_subreg): Add TODO_verify_flow.
23290         (pass_lower_subreg2): Likewise.
23291
23292 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23293             Brooks Moses  <brooks.moses@codesourcery.com>
23294             Lee Millward  <lee.millward@codesourcery.com>
23295
23296         * tree.h (enum tree_code_class): Add tcc_vl_exp.
23297         (VL_EXP_CLASS_P): New.
23298         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
23299         TREE_CODE_LENGTH.
23300         (TREE_OPERAND_CHECK_CODE): Likewise.
23301         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
23302         (TREE_RTL_OPERAND_CHECK): Likewise.
23303         (tree_operand_check_failed): Make second parameter the whole tree
23304         instead of its code.  Fixed callers.
23305         (VL_EXP_CHECK): New.
23306         (TREE_OPERAND_LENGTH): New.
23307         (VL_EXP_OPERAND_LENGTH): New.
23308         (CALL_EXPR_FN): New.
23309         (CALL_EXPR_STATIC_CHAIN): New.
23310         (CALL_EXPR_ARGS): New.
23311         (CALL_EXPR_ARG): New.
23312         (call_expr_nargs): New.
23313         (CALL_EXPR_ARGP): New.
23314         (build_nt_call_list): Declare.
23315         (build_vl_exp_stat): Declare.
23316         (build_vl_exp): New.
23317         (build_call_list): Declare.
23318         (build_call_nary): Declare.
23319         (build_call_valist): Declare.
23320         (build_call_array): Declare.
23321         (call_expr_arg): Declare.
23322         (call_expr_argp): Declare.
23323         (call_expr_arglist): Declare.
23324         (fold_build_call_list): Declare.
23325         (fold_build_call_list_initializer): Declare.
23326         (fold_call_expr): Declare to replace fold_builtin.
23327         (fold_builtin_fputs): Update to agree with modified definition.
23328         (fold_builtin_strcpy): Likewise.
23329         (fold_builtin_strncpy): Likewise.
23330         (fold_builtin_memory_chk): Likewise.
23331         (fold_builtin_stxcpy_chk): Likewise.
23332         (fold_builtin_strncpy_chk): Likewise.
23333         (fold_builtin_next_arg): Likewise.
23334         (fold_build_call_expr): Declare.
23335         (fold_builtin_call_list): Declare.
23336         (fold_builtin_call_valist): Declare.
23337         (build_call_expr): Declare.
23338         (validate_arglist): Update to agree with modified definition.
23339         (tree_operand_length): New.
23340         (call_expr_arg_iterator): New.
23341         (init_call_expr_arg_iterator): New.
23342         (next_call_expr_arg): New.
23343         (first_call_expr_arg): New.
23344         (more_call_expr_args_p): New.
23345         (FOR_EACH_CALL_EXPR_ARG): New.
23346
23347         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
23348         and tcc_gimple_stmt.
23349         (tree_code_size): Update documentation.  Use sizeof (tree) rather
23350         than sizeof (char *).
23351         (tree_size): Likewise.  Add case for tcc_vl_exp.
23352         (tree_node_structure): Add case for tcc_vl_exp.
23353         (contains_placeholder_p): Likewise.
23354         (substitute_in_expr): Likewise.
23355         (substitute_placeholder_in_expr): Likewise.
23356         (stabilize_reference_1): Likewise.
23357         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
23358         to diagnose breakage of this interface for constructing CALL_EXPRs.
23359         (build_nt): Add similar assertion here.
23360         (build_nt_call_list): New.
23361         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
23362         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
23363         TREE_CODE_LENGTH.
23364         (get_callee_fndecl): Use new CALL_EXPR accessors.
23365         (tree_operand_check_failed): Change parameters to pass entire node
23366         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
23367         (process_call_operands): New.
23368         (build_vl_exp_stat): New.
23369         (build_call_list): New.
23370         (build_call_nary): New.
23371         (build_call_valist): New.
23372         (build_call_array): New.
23373         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23374         (call_expr_arglist): New.
23375
23376         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
23377         tcc_vl_exp instead of a fixed-size tcc_expression.
23378
23379         * doc/c-tree.texi (CALL_EXPR): Document new representation and
23380         accessors for CALL_EXPRs.
23381         (AGGR_INIT_EXPR): Likewise.
23382
23383 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23384             Brooks Moses  <brooks.moses@codesourcery.com>
23385             Lee Millward  <lee.millward@codesourcery.com>
23386
23387         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
23388         (expand_builtin_nonlocal_goto): Change parameter to be entire
23389         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
23390         (expand_builtin_prefetch): Likewise.
23391         (expand_builtin_classify_type): Likewise.
23392         (mathfn_built_in): Return NULL_TREE instead of 0.
23393         (expand_errno_check): Use new CALL_EXPR accessors.
23394         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
23395         Return NULL_RTX instead of 0.
23396         (expand_builtin_mathfn_2): Likewise.
23397         (expand_builtin_mathfn_3): Likewise.
23398         (expand_builtin_interclass_mathfn): Likewise.
23399         (expand_builtin_sincos): Likewise.
23400         (expand_builtin_cexpi): Likewise.
23401         (expand_builtin_int_roundingfn): Likewise.
23402         (expand_builtin_int_roundingfn_2): Likewise.
23403         (expand_builtin_pow): Likewise.
23404         (expand_builtin_powi): Likewise.
23405         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
23406         of arglist, fixing callers appropriately.  Use new CALL_EXPR
23407         accessors and constructors.  Return NULL_RTX instead of 0.
23408         (expand_builtin_strstr): Likewise.
23409         (expand_builtin_strchr): Likewise.
23410         (expand_builtin_strrchr): Likewise.
23411         (expand_builtin_strpbrk): Likewise.
23412         (expand_builtin_memcpy): Likewise.
23413         (expand_builtin_mempcpy): Likewise.
23414         (expand_builtin_mempcpy_args): New.
23415         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
23416         (expand_builtin_memmove_args): New.
23417         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
23418         (expand_movstr): Likewise.
23419         (expand_builtin_strcpy): Likewise.
23420         (expand_builtin_strcpy_args): New.
23421         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
23422         (expand_builtin_strncpy): Likewise.
23423         (expand_builtin_memset): Likewise.
23424         (expand_builtin_memset_args): New.
23425         (expand_builtin_bzero): Similarly to expand_builtin_memset.
23426         (expand_builtin_memcmp): Likewise.
23427         (expand_builtin_strcmp): Likewise.
23428         (expand_builtin_strncmp): Likewise.
23429         (expand_builtin_strcat): Likewise.
23430         (expand_builtin_strncat): Likewise.
23431         (expand_builtin_strspn): Likewise.
23432         (expand_builtin_strcspn): Likewise.
23433         (expand_builtin_args_info): Likewise.
23434         (expand_builtin_va_start): Likewise.
23435         (gimplify_va_arg_expr): Likewise.
23436         (expand_builtin_va_end): Likewise.
23437         (expand_builtin_va_copy): Likewise.
23438         (expand_builtin_frame_address): Likewise.
23439         (expand_builtin_alloca): Likewise.
23440         (expand_builtin_bswap): Likewise.
23441         (expand_builtin_unop): Likewise.
23442         (expand_builtin_fputs): Likewise.
23443         (expand_builtin_expect): Likewise.
23444         (expand_builtin_fabs): Likewise.
23445         (expand_builtin_copysign): Likewise.
23446         (expand_builtin_printf): Likewise.
23447         (expand_builtin_fprintf): Likewise.
23448         (expand_builtin_sprintf): Likewise.
23449         (expand_builtin_init_trampoline): Likewise.
23450         (expand_builtin_signbit): Likewise.
23451         (expand_builtin_fork_or_exec): Likewise.
23452         (expand_builtin_sync_operation): Likewise.
23453         (expand_builtin_compare_and_swap): Likewise.
23454         (expand_builtin_lock_test_and_set): Likewise.
23455         (expand_builtin_lock_release): Likewise.
23456         (expand_builtin): Likewise.
23457         (builtin_mathfn_code): Likewise.
23458
23459         (fold_builtin_constant_p): Pass call arguments individually instead
23460         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
23461         accessors and constructors.  Return NULL_TREE instead of 0.
23462         (fold_builtin_expect): Likewise.
23463         (fold_builtin_classify_type): Likewise.
23464         (fold_builtin_strlen): Likewise.
23465         (fold_builtin_nan): Likewise.
23466         (integer_valued_real_p): Likewise.
23467         (fold_trunc_transparent_mathfn): Likewise.
23468         (fold_fixed_mathfn): Likewise.
23469         (fold_builtin_cabs): Likewise.
23470         (fold_builtin_sqrt): Likewise.
23471         (fold_builtin_cbrt): Likewise.
23472         (fold_builtin_cos): Likewise.
23473         (fold_builtin_cosh): Likewise.
23474         (fold_builtin_tan): Likewise.
23475         (fold_builtin_sincos): Likewise.
23476         (fold_builtin_cexp): Likewise.
23477         (fold_builtin_trunc): Likewise.
23478         (fold_builtin_floor): Likewise.
23479         (fold_builtin_ceil): Likewise.
23480         (fold_builtin_round): Likewise.
23481         (fold_builtin_int_roundingfn): Likewise.
23482         (fold_builtin_bitop): Likewise.
23483         (fold_builtin_bswap): Likewise.
23484         (fold_builtin_logarithm): Likewise.
23485         (fold_builtin_hypot): Likewise.
23486         (fold_builtin_pow): Likewise.
23487         (fold_builtin_powi): Likewise.
23488         (fold_builtin_exponent): Likewise.
23489         (fold_builtin_memset): Likewise.
23490         (fold_builtin_bzero): Likewise.
23491         (fold_builtin_memory_op): Likewise.
23492         (fold_builtin_bcopy): Deleted; call site changed to invoke
23493         fold_builtin_memory_op directly.
23494         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
23495         (fold_builtin_strncpy): Likewise.
23496         (fold_builtin_memcmp): Likewise.
23497         (fold_builtin_strcmp): Likewise.
23498         (fold_builtin_strncmp): Likewise.
23499         (fold_builtin_signbit): Likewise.
23500         (fold_builtin_copysign): Likewise.
23501         (fold_builtin_isascii): Likewise.
23502         (fold_builtin_toascii): Likewise.
23503         (fold_builtin_isdigit): Likewise.
23504         (fold_builtin_fabs): Likewise.
23505         (fold_builtin_abs): Likewise.
23506         (fold_builtin_fmin_fmax): Likewise.
23507         (fold_builtin_carg): Likewise.
23508         (fold_builtin_classify): Likewise.
23509         (fold_builtin_unordered_cmp): Likewise.
23510
23511         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
23512         New functions split out from fold_builtin_1.
23513         (fold_builtin_n): New.
23514         (fold_builtin_varargs): New.
23515         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
23516         instead.
23517         (fold_call_expr): New.
23518         (build_function_call_expr): Rewrite to use new helper function.
23519         (fold_builtin_call_list): New.
23520         (build_call_expr): New.
23521         (fold_builtin_call_valist): New.
23522         (rewrite_call_expr): New.
23523         (validate_arg): New.
23524         (validate_arglist): Change parameter to be entire CALL_EXPR instead
23525         of an arglist.  Change return type to bool.  Use new CALL_EXPR
23526         accessors.
23527
23528         (fold_builtin_strstr): Pass call arguments individually instead
23529         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
23530         accessors and constructors.  Return NULL_TREE instead of 0.
23531         (fold_builtin_strchr): Likewise.
23532         (fold_builtin_strrchr): Likewise.
23533         (fold_builtin_strpbrk): Likewise.
23534         (fold_builtin_strcat): Likewise.
23535         (fold_builtin_strncat): Likewise.
23536         (fold_builtin_strspn): Likewise.
23537         (fold_builtin_strcspn): Likewise.
23538         (fold_builtin_fputs): Likewise.
23539         (fold_builtin_next_arg): Likewise.
23540         (fold_builtin_sprintf): Likewise.
23541
23542         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
23543         NULL_RTX instead of 0.
23544         (expand_builtin_memory_chk): Likewise.
23545         (maybe_emit_chk_warning): Likewise.
23546         (maybe_emit_sprintf_chk_warning): Likewise.
23547
23548         (fold_builtin_object_size): Pass call arguments individually instead
23549         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
23550         accessors and constructors.  Return NULL_TREE instead of 0.
23551         (fold_builtin_memory_chk): Likewise.
23552         (fold_builtin_stxcpy_chk): Likewise.
23553         (fold_builtin_strncpy_chk): Likewise.
23554         (fold_builtin_strcat_chk): Likewise.
23555         (fold_builtin_strcat_chk): Likewise.
23556         (fold_builtin_strncat_chk): Likewise.
23557         (fold_builtin_sprintf_chk): Likewise.
23558         (fold_builtin_snprintf_chk): Likewise.
23559         (fold_builtin_printf): Likewise.
23560         (fold_builtin_vprintf): Likewise.
23561
23562         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
23563         constructors.
23564         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
23565         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23566         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
23567         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
23568         (fold_unary): Likewise.
23569         (fold_binary): Likewise.
23570         (fold_ternary): Remove CALL_EXPR case, since they are no longer
23571         ternary expressions.
23572         (fold): Add logic for tcc_vl_exp.
23573         (fold_checksum_tree): Make it know about tcc_vl_exp.  Use
23574         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23575         (fold_build3_stat): Add assertion to flag broken interface for
23576         constructing CALL_EXPRs.
23577         (fold_build_call_list): New.
23578         (fold_build_call_list_initializer): New.
23579         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
23580         constructors.
23581         (fold_strip_sign_ops): Likewise.
23582
23583 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23584             Brooks Moses  <brooks.moses@codesourcery.com>
23585             Lee Millward  <lee.millward@codesourcery.com>
23586
23587         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
23588         accessors and dump arguments explicitly.
23589
23590         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
23591         TREE_CODE_LENGTH.
23592         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
23593         explicitly.
23594         (print_call_name): Use new CALL_EXPR accessors.
23595
23596         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
23597         CALL_EXPR arguments explicitly instead of as a list.  Use
23598         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23599
23600         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
23601         (vrp_visit_stmt): Likewise.
23602
23603         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
23604         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
23605         TREE_CODE_LENGTH.
23606         (force_move_till_expr): Likewise.
23607
23608         * targhooks.c (default_external_stack_protect_fail): Use
23609         build_call_expr instead of build_function_call_expr.
23610         (default_hidden_stack_protect_fail): Likewise.
23611
23612         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
23613         build the call.
23614
23615         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
23616         and walk arguments explicitly.
23617
23618         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
23619         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23620         (expand_simple_operations): Likewise.
23621         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
23622
23623         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
23624         of TREE_CODE_LENGTH.
23625         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
23626
23627         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
23628         instead of TREE_CODE_LENGTH.
23629
23630         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
23631         (tree_ic_transform): Likewise.
23632         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
23633         parameter instead of arglist.  Fix callers.
23634         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
23635         (tree_stringops_transform): Likewise.
23636         (tree_indirect_call_to_profile): Likewise.
23637         (tree_stringops_values_to_profile): Likewise.
23638
23639         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
23640         (eliminate_tail_call): Likewise.
23641
23642         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
23643
23644         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23645         Use TREE_OPERAND_LENGTH and generalize to handle any number of
23646         operands.
23647         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
23648
23649         * omp-low.c (build_omp_barrier): Use build_call_expr.
23650         (lower_rec_input_clauses): Likewise.
23651         (lower_reduction_clauses): Likewise.
23652         (expand_parallel_call): Likewise.
23653         (maybe_catch_exception): Likewise.
23654         (expand_omp_for_generic): Likewise.
23655         (expand_omp_for_static_nochunk): Likewise.
23656         (expand_omp_sections): Likewise.
23657         (lower_omp_single_simple): Likewise.
23658         (lower_omp_single_copy): Likewise.
23659         (lower_omp_master): Likewise.
23660         (lower_omp_ordered): Likewise.
23661         (lower_omp_critical): Likewise.
23662
23663         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
23664         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
23665
23666         * tree-gimple.c (is_gimple_call_addr): Fix doc.
23667         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
23668         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
23669
23670         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
23671         and generalize to handle any number of operands.
23672         (chrec_contains_undetermined): Likewise.
23673         (tree_contains_chrecs): Likewise.
23674         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
23675
23676         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
23677
23678         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
23679         fold_call_expr instead of fold_builtin.
23680         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
23681         match declarations there.
23682         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
23683         updates.
23684
23685         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
23686         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23687
23688         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
23689         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
23690
23691         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
23692         accessors.
23693
23694         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
23695         (execute_cse_sincos): Use new CALL_EXPR accessors.
23696
23697         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
23698
23699         * gimple-low.c (lower_function_body): Use build_call_expr.
23700         (lower_builtin_setjmp): Likewise.
23701
23702         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
23703         (set_storage_via_libcall): Likewise.
23704         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
23705         instead of TREE_CODE_LENGTH.
23706         (expand_expr_real_1): Use new CALL_EXPR accessors.
23707
23708         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
23709         generalize to handle any number of operands.
23710         (TB_parent_eq): Likewise.
23711
23712         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
23713         (strip_builtin_expect): Likewise.
23714
23715         * function.c (gimplify_parameters): Use build_call_expr.
23716
23717         * tree-vectorizer.c (vect_is_simple_reduction): Use
23718         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23719
23720         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
23721         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
23722
23723         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
23724         iterators.
23725
23726         * gimplify.c (build_stack_save_restore): Use build_call_expr.
23727         (gimplify_decl_expr): Likewise.
23728         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
23729         Use new CALL_EXPR iterators.
23730         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
23731         (gimplify_modify_expr_to_memset): Likewise.
23732         (gimplify_variable_sized_compare): Likewise.
23733         (gimplify_omp_atomic_fetch_op): Likewise.
23734         (gimplify_omp_atomic_pipeline): Likewise.
23735         (gimplify_omp_atomic_mutex): Likewise.
23736         (gimplify_function_tree): Likewise.
23737
23738         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
23739         (call_expr_flags): Likewise.
23740         (expand_call): Likewise.
23741
23742         * except.c (expand_builtin_eh_return_data_regno): Pass entire
23743         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
23744         accessors.
23745
23746         * coverage.c (create_coverage): Use build_call_expr.
23747
23748         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
23749         (temp_call_expr_obstack): New.
23750         (pool_copy_list): Delete.
23751         (temp_copy_call_expr): New.
23752         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
23753         CALL_EXPR accessors.  Get rid of special goo for copying argument
23754         lists and use temp_copy_call_expr instead.
23755         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
23756         CALL_EXPR accessors.
23757         (create_expression_by_pieces): Likewise.  Use build_call_array
23758         to construct the result instead of fold_build3.
23759         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
23760         dealing with argument lists.
23761         (init_pre): Remove references to expression_node_pool and
23762         list_node_pool.  Init temp_call_expr_obstack instead.
23763         (fini_pre): Remove references to expression_node_pool and
23764         list_node_pool.
23765
23766         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
23767         and walk arguments explicitly instead of as a list.
23768
23769         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
23770         (mx_register_decls): Likewise.
23771         (mudflap_register_call): Likewise.
23772         (mudflap_finish_file): Likewise.
23773
23774         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
23775         (ipa_callsite_compute_param): Likewise.
23776
23777         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
23778         accessors and constructor.
23779
23780         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
23781         accessors and constructor.
23782         (convert_tramp_reference): Likewise.
23783         (convert_call_expr): Likewise.
23784         (finalize_nesting_tree_1): Likewise.
23785
23786         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
23787         accessors.
23788
23789         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
23790
23791         * tree-inline.c (initialize_inlined_parameters): Pass entire
23792         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
23793         accessors.
23794         (estimate_num_insns_1): Use new CALL_EXPR accessors.
23795         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
23796
23797         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
23798         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23799         (vectorizable_reduction): Likewise.
23800         (vectorizable_call): Use new CALL_EXPR iterators.
23801         (vectorizable_conversion): Use build_call_expr.
23802         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
23803         (vect_gen_widened_results_half): Use build_call_expr.
23804         (vect_setup_realignment): Likewise.
23805         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
23806
23807         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
23808         (pass_through_call): Likewise.
23809         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
23810         fold_builtin.
23811
23812         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
23813         (tree_gen_pow2_profiler): Likewise.
23814         (tree_gen_one_value_profiler): Likewise.
23815         (tree_gen_ic_func_profiler): Likewise.
23816         (tree_gen_average_profiler): Likewise.
23817         (tree_gen_ior_profiler): Likewise.
23818
23819         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
23820         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
23821         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
23822
23823         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
23824         of TREE_CODE_LENGTH.
23825
23826         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
23827         of TREE_CODE_LENGTH.
23828
23829         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
23830         constructor.
23831         (convert_to_integer): Likewise.
23832
23833         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
23834         accessors.
23835
23836 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23837             Brooks Moses  <brooks.moses@codesourcery.com>
23838             Lee Millward  <lee.millward@codesourcery.com>
23839
23840         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
23841         accessors.
23842         * config/frv/frv.c (frv_expand_builtin): Likewise.
23843         * config/s390/s390.c (s390_expand_builtin): Likewise.
23844
23845         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
23846         (sparc_expand_builtin): Use new CALL_EXPR accessors.
23847
23848         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
23849         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
23850         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
23851         (ix86_expand_store_builtin): Likewise.
23852         (ix86_expand_unop_builtin): Likewise.
23853         (ix86_expand_unop1_builtin): Likewise.
23854         (ix86_expand_sse_compare): Likewise.
23855         (ix86_expand_sse_comi): Likewise.
23856         (ix86_expand_vec_init_builtin): Likewise.
23857         (ix86_expand_vec_ext_builtin): Likewise.
23858         (ix86_expand_vec_set_builtin): Likewise.
23859         (ix86_expand_builtin): Use new CALL_EXPR accessors.
23860
23861         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
23862         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
23863
23864         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
23865         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
23866         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
23867
23868         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
23869         build_call_expr.
23870         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
23871         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
23872         arglist.  Use new CALL_EXPR accessors.  Fix callers.
23873         (altivec_expand_abs_builtin): Likewise.
23874         (rs6000_expand_binop_builtin): Likewise.
23875         (altivec_expand_predicate_builtin): Likewise.
23876         (altivec_expand_lv_builtin): Likewise.
23877         (spe_expand_stv_builtin): Likewise.
23878         (altivec_expand_stv_builtin): Likewise.
23879         (rs6000_expand_ternop_builtin): Likewise.
23880         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
23881         (altivec_expand_st_builtin): Likewise.
23882         (altivec_expand_dst_builtin): Likewise.
23883         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
23884         arglist.  Use new CALL_EXPR accessors.  Fix callers.
23885         (altivec_expand_vec_set_builtin): Likewise.
23886         (altivec_expand_vec_ext_builtin): Likewise.
23887         (altivec_expand_builtin): Use new CALL_EXPR accessors.
23888         (spe_expand_builtin): Likewise.
23889         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
23890         arglist.  Use new CALL_EXPR accessors.  Fix callers.
23891         (spe_expand_evsel_builtin): Likewise.
23892         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
23893         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
23894
23895         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
23896         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
23897         (arm_expand_unop_builtin): Likewise.
23898         (arm_expand_builtin): Use new CALL_EXPR accessors.
23899
23900         * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
23901         accessors.
23902
23903         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
23904         CALL_EXPR instead of arglist.  Use new CALL_EXPR accessors.
23905         Fix callers.
23906         (bfin_expand_unop_builtin): Likewise.
23907         (bfin_expand_builtin): Use new CALL_EXPR accessors.
23908
23909 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23910             Brooks Moses  <brooks.moses@codesourcery.com>
23911             Lee Millward  <lee.millward@codesourcery.com>
23912
23913         * c-semantics.c (build_stmt): Add internal diagnostic check.
23914
23915         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
23916         accessors.  Print arguments explicitly instead of as a list.
23917
23918         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
23919
23920         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
23921         (c_finish_omp_flish): Likewise.
23922
23923         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
23924         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
23925         instead of TREE_CODE_LENGTH.
23926         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
23927         (c_warn_unused_result): Likewise.
23928
23929 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23930
23931         PR c/26494
23932         * doc/invoke.texi (Warning Options): Remove
23933         -Werror-implicit-function-declaration.
23934         (Wimplicit-function-declaration): Update description.
23935         * opts.c (common_handle_option): Move handling of -Werror=* to...
23936         (enable_warning_as_error): ...here.
23937         * opts.h (enable_warning_as_error): Declare.
23938         * c-decl.c (implicit_decl_warning): Unless
23939         -Wno-implicit-function-declaration is given, emit a pedwarn if
23940         -std=c99 or emit a warning if -Wimplicit-function-declaration.
23941         * c.opt (Wimplicit-function-declaration): Replace
23942         mesg_implicit_function_declaration with
23943         warn_implicit_function_declaration.
23944         * c-opts.c (c_common_handle_option):
23945         -Werror-implicit-function-declaration is exactly equal as
23946         -Werror=implicit-function-declaration.
23947         (set_Wimplicit): Replace mesg_implicit_function_declaration with
23948         warn_implicit_function_declaration.
23949         (c_common_post_options): -Wimplict-function-declaration is enabled
23950         by default by -std=c99, otherwise is disabled by default.
23951         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
23952
23953 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23954
23955         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
23956         DECL on the rhs to a DECL on the lhs for debug info purposes if the
23957         former is ignored but not the latter.
23958
23959 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23960
23961         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
23962         is made and the reference doesn't use the alias set of its type,
23963         do not create the temporary using that type.
23964
23965 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
23966
23967         * jump.c: Remove prototypes for delete_computation and
23968         delete_prior_computation.
23969
23970 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
23971
23972         * jump.c (get_label_after): Delete.
23973         (get_label_before, delete_computation, delete_jump,
23974         delete_prior_computation, follow_jumps): Move...
23975         * reorg.c (delete_computation, delete_prior_computation): ... here...
23976         (get_label_before, delete_jump): ... making these static ...
23977         (follow_jumps): ... and simplifying this since it only runs after
23978         reload.
23979         * rtl.h (get_label_after, get_label_before, delete_jump,
23980         follow_jumps): Delete prototypes.
23981
23982 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
23983
23984         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
23985
23986 2007-02-15  Nick Clifton  <nickc@redhat.com>
23987
23988         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
23989         order to prevent it from being munged by the target.
23990
23991 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
23992
23993         * config/i386/i386.md: Remove misleading comment.
23994
23995 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
23996
23997         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
23998         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
23999         invalid patterns.
24000
24001 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24002
24003         * tree-sra.c (instantiate_missing_elements): Canonicalize
24004         bit-field types.
24005         (sra_build_assignment): New.
24006         (generate_copy_inout, generate_element_copy,
24007         generate_element_zero, generate_one_element_init): Use it.
24008
24009 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24010
24011         * tree-sra.c (instantiate_missing_elements): Canonicalize
24012         bit-field types.
24013         (sra_build_assignment): New.
24014         (generate_copy_inout, generate_element_copy,
24015         generate_element_zero, generate_one_element_init): Use it.
24016
24017 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
24018
24019         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
24020         limbo die nodes.
24021
24022 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
24023
24024         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
24025         types as aggregates not scalars.
24026         * function.c (assign_stack_temp_for_type): Likewise.
24027
24028 2007-02-14  Roger Sayle  <roger@eyesopen.com>
24029             Zdenek Dvorak  <dvorakz@suse.cz>
24030
24031         * tree-dump.c (dump_switch_p_1): Require exact match of the option
24032         name.
24033
24034 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
24035
24036         * passes.c (next_pass_1): Clear the next field of the copied
24037         pass structure.
24038
24039 2007-02-14  Richard Henderson  <rth@redhat.com>
24040
24041         * tree-sra.c (early_sra): New.
24042         (decl_can_be_decomposed_p): Deny va_list if early_sra.
24043         (tree_sra_early, pass_sra_early): New.
24044         * tree-pass.h (pass_sra_early): Declare.
24045         * passes.c (init_optimization_passes): Use it.
24046
24047 2007-02-14  Richard Guenther  <rguenther@suse.de>
24048
24049         * flags.h (issue_strict_overflow_warning): Convert to a macro.
24050
24051 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
24052
24053          PR tree-optimization/30771
24054         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
24055         also phi nodes.
24056         (vect_analyze_operations): Induction phis can now be marked as
24057         used_in_loop.
24058         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
24059         Update documentation accordingly.
24060
24061 2007-02-14  Nick Clifton  <nickc@redhat.com>
24062
24063         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
24064         most 3 arguments are supported.
24065         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
24066
24067 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
24068
24069         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
24070         Ensure dst->current is valid.
24071
24072 2007-02-13  Paul Brook  <paul@codesourcery.com>
24073
24074         * config.gcc: Add arm*-*-uclinux-*eabi.
24075         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
24076         (SUBTARGET_EXTRA_LINK_SPEC): Define.
24077         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
24078         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
24079         (LINK_SPEC): Define.
24080         (LIB_SPEC): Define.
24081         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
24082         register.
24083         * config/arm/uclinux-eabi.h: New file.
24084         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
24085         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
24086         based targets.
24087
24088 2007-02-13  Ian Lance Taylor  <iant@google.com>
24089
24090         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
24091         * flags.h (warn_strict_overflow): Declare.
24092         (enum warn_strict_overflow_code): Define.
24093         (issue_strict_overflow_warning): New static inline function.
24094         * opts.c (warn_strict_overflow): New variable.
24095         (common_handle_option): Handle OPT_Wstrict_overflow and
24096         OPT_Wstrict_overflow_.
24097         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
24098         OPT_Wall.
24099         * fold-const.c: Include intl.h.
24100         (fold_deferring_overflow_warnings): New static variable.
24101         (fold_deferred_overflow_warning): New static variable.
24102         (fold_deferred_overflow_code): New static variable.
24103         (fold_defer_overflow_warnings): New function.
24104         (fold_undefer_overflow_warnings): New function.
24105         (fold_undefer_and_ignore_overflow_warnings): New function.
24106         (fold_deferring_overflow_warnings_p): New function.
24107         (fold_overflow_warning): New static function.
24108         (make_range): Add strict_overflow_p parameter.  Change all
24109         callers.
24110         (extract_muldiv, extract_muldiv_1): Likewise.
24111         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
24112         tree_expr_nonnegative_p.
24113         (fold_negate_expr): Call fold_overflow_warning.
24114         (fold_range_test): Likewise.
24115         (fold_comparison): Likewise.
24116         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
24117         instead of tree_expr_nonnegative_p.
24118         (tree_expr_nonnegative_warnv_p): Rename from
24119         tree_expr_nonnegative_p, add strict_overflow_p parameter.
24120         (tree_expr_nonnegative_p): New function.
24121         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
24122         strict_overflow_p parameter.
24123         (tree_expr_nonzero_p): New function.
24124         * passes.c (verify_interpass_invariants): New static function.
24125         (execute_one_pass): Call it.
24126         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
24127         warnings.
24128         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
24129         (estimate_numbers_of_iterations): Likewise.
24130         (scev_probably_wraps_p): Likewise.
24131         * tree-ssa-ccp.c: Include "toplev.h".
24132         (evaluate_stmt): Defer fold overflow warnings until we know we are
24133         going to optimize.
24134         (struct fold_stmt_r_data): Add stmt field.
24135         (fold_stmt_r): Defer fold overflow warnings until we know we
24136         optimized.
24137         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
24138         (fold_stmt_inplace): Likewise.
24139         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
24140         (cleanup_control_expr_graph): Defer fold overflow warnings until
24141         we know we are going to optimize.
24142         * tree-cfg.c (fold_cond_expr_cond): Likewise.
24143         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
24144         Likewise.
24145         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
24146         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
24147         * tree-ssa-loop-manip.c (create_iv): Likewise.
24148         * c-typeck.c (build_conditional_expr): Likewise.
24149         (build_binary_op): Likewise.
24150         * tree-vrp.c (vrp_expr_computes_nonzero): Call
24151         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
24152         (extract_range_from_unary_expr): Likewise.
24153         * simplify-rtx.c (simplify_const_relational_operation): Warn when
24154         assuming that signed overflow does not occur.
24155         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
24156         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
24157         (fold_defer_overflow_warnings): Declare.
24158         (fold_undefer_overflow_warnings): Declare.
24159         (fold_undefer_and_ignore_overflow_warnings): Declare.
24160         (fold_deferring_overflow_warnings_p): Declare.
24161         (tree_expr_nonzero_warnv_p): Declare.
24162         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
24163         of warning options.
24164         (Warning Options): Document -Wstrict-overflow.
24165         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
24166         (tree-ssa-ccp.o): Likewise.
24167         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
24168         (fold-const.o): Depend on intl.h.
24169
24170 2007-02-13  Ian Lance Taylor  <iant@google.com>
24171
24172         PR middle-end/30751
24173         * lower-subreg.c (resolve_simple_move): Decompose subregs in
24174         addresses.
24175
24176 2007-02-13  Stuart Hastings  <stuart@apple.com>
24177
24178         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
24179
24180 2007-02-13  Richard Henderson  <rth@redhat.com>
24181
24182         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
24183         handled_component_p before looking for the indirect_ref.
24184
24185 2007-02-13  Richard Henderson  <rth@redhat.com>
24186
24187         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
24188         remove flags clobber.
24189         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
24190         (bswaphi_lowpart): New.
24191         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
24192         remove TARGET_BSWAP test.  Delete expander of the same name.
24193
24194         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
24195         (expand_unop): Use them.
24196
24197 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
24198
24199         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
24200         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
24201         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
24202         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
24203         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
24204         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
24205         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
24206         assembler dialect choice from asm templates.
24207
24208 2007-02-12  Richard Henderson  <rth@redhat.com>
24209
24210         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
24211         (fixuns_trunc<SSEMODEF>si2): Use it.
24212         * config/i386/sse.md (vec_setv4sf_0): Export.
24213         * config/i386/i386.c (ix86_build_const_vector): Export.
24214         (ix86_split_convert_uns_si_sse): Rename from
24215         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
24216         * config/i386/i386-protos.h: Update.
24217
24218 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24219
24220         PR c/29521
24221         * c-typeck.c (c_finish_return): Improve warning message.
24222
24223 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24224
24225         * alias.c (find_symbolic_term): Delete unused function.
24226
24227 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
24228
24229         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
24230         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
24231         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
24232
24233 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24234
24235         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
24236         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
24237         the function, temporarily point the debug interface to the null one.
24238
24239 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
24240
24241         * dwarf2out.c (round_up_to_align): New static function.
24242         (field_byte_offset): Use it to round the offset.
24243
24244 2007-02-12  Richard Henderson  <rth@redhat.com>
24245
24246         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
24247         (inswl_const): Export.
24248
24249 2007-02-12  Richard Henderson  <rth@redhat.com>
24250
24251         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
24252         result mode of the libcall, convert back to outmode.
24253
24254 2007-02-12  Roger Sayle  <roger@eyesopen.com>
24255
24256         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
24257         (bswapdi2): New define_expand to implement 32-bit implementation.
24258
24259 2007-02-12  Nick Clifton  <nickc@redhat.com>
24260
24261         * doc/invoke.texi (Overall Options): Document --help=.
24262         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
24263         (cc1_options): Pass --help= on to cc1.
24264         (display_help): Add description of --help=.
24265         (process_command): Add code to handle --help=.  Allow translated
24266         --help and --target-help switches to be passed on to compiler
24267         sub-process.
24268         (main): Remove unused if statement.
24269         * opts.c (columns): Remove.
24270         (LEFT_COLUMN): Define.
24271         (wrap_help): Add columns argument.
24272         (print_filtered_help): Change parameters to be an include bitmask,
24273         an exclude bitmask, an any bitmask and the column width.  Move the
24274         code to display the params list here.  Add code to display the
24275         status of options rather than their descriptions if the quiet flag
24276         is not active.
24277         (print_specific_help): Change parameters to be an include bitmask,
24278         an exclude bitmask and an any bitmask.  Move code to look up the
24279         column width here.  Decide upon the title for an options listing.
24280         (common_handle_options): Add code to handle --help=.  Adapt code
24281         for --help and --target-help to use the revised form of the
24282         print_specific_help function.
24283         (print_help): Delete.
24284         (print_param_help): Delete.
24285         (print_switch): Delete.
24286         * opts.h (cl_lang_count): Add prototype.
24287         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
24288         CL_MAX_OPTION_CLASS): New defines.
24289         * optc-gen.awk: Add construction of cl_lang_count.
24290         * c.opt: Add Warning attribute to warning options and Optimization
24291         attribute to optimization options.
24292         * common.opt: Likewise.
24293         Add --help=.
24294         Add -fhelp and -ftarget-help as aliases for the transformed --help
24295         and --target-help options.
24296         * opt-functions.awk: Add code to handle Warning and Optimization
24297         attributes.
24298
24299 2007-02-12  Richard Henderson  <rth@redhat.com>
24300
24301         * config/alpha/constraints.md: New file.
24302         * config/alpha/alpha.c: Include tm-constrs.h.
24303         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
24304         alpha_extra_constraint): Remove.
24305         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
24306         * config/alpha/alpha-protos.h: Update.
24307         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
24308         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
24309         (EXTRA_CONSTRAINT): Remove.
24310         * config/alpha/alpha.md: Include constraints.md.
24311         (adddi splitter): Use satisfies_constraint_*.
24312         * config/alpha/predicates.md (add_operand): Likewise.
24313         (sext_add_operand, addition_operation): Likewise.
24314
24315 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
24316
24317         PR tree-optimization/29145
24318         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
24319         in our handling of restrict qualified pointers.
24320
24321 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24322
24323         PR middle-end/7651
24324         * doc/invoke.texi (Wunused-value): Update description.
24325         (Wextra): Delete item.
24326         * opts.c (set_Wextra): Don't use the value of Wextra to set the
24327         value of Wunused-value.
24328         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
24329         (c_finish_stmt_expr): Don't check extra_warnings.
24330         (emit_side_effect_warnings): The caller is responsible to check
24331         warn_unused_value.
24332
24333 2007-02-11  Roger Sayle  <roger@eyesopen.com>
24334             Matt Thomas  <matt@3am-software.com>
24335
24336         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
24337
24338 2007-02-11  Roger Sayle  <roger@eyesopen.com>
24339
24340         * simplify-rtx.c (simplify_relational_operation_1): Optimize
24341         comparisons of POPCOUNT against zero.
24342         (simplify_const_relational_operation): Likewise.
24343
24344 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24345
24346         * doc/invoke.texi (Wextra): Delete outdated paragraph.
24347
24348 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24349
24350         * dwarf2out.c (root_type): Delete unused function.
24351
24352 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24353
24354         * genattrtab.c (contained_in_p): Delete unused function.
24355         (write_expr_attr_cache): Likewise.
24356
24357 2007-02-11  Jan Hubicka  <jh@suse.cz>
24358
24359         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
24360         previous patch.
24361
24362 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
24363
24364         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
24365         to add the REG_EQ* note.
24366         * see.c (see_merge_one_use_extension): Likewise.
24367         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
24368         turn REG_EQUAL notes into REG_EQUIV notes if the target
24369         register may have more than one set.
24370         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
24371         * gcse.c (try_replace_reg): Likewise.
24372         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
24373         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
24374         more than one REG_EQUIV note.
24375         * reload1.c (gen_reload): Use set_unique_reg_note.
24376
24377 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
24378
24379         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
24380         (ix86_builtin_conversion): New function.
24381
24382 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
24383
24384         PR target/29487
24385         * tree.h (DECL_REPLACEABLE_P): New macro.
24386         * except.c (set_nothrow_function_flags): Likewise.
24387
24388 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
24389             Ira Rosen  <irar@il.ibm.com>
24390             Dorit Nuzman  <dorit@il.ibm.com>
24391
24392         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
24393         * targhooks.c (default_builtin_vectorized_conversion): New.
24394         * targhooks.h (default_builtin_vectorized_function): New declaration.
24395         * target.h (struct vectorize): Add builtin_conversion field.
24396         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
24397         stmt_vec_info_type value.
24398         (vectorizable_conversion): New declaration.
24399         * tree-vect-analyze.c (vect_analyze_operations): Add
24400         vectorizable_conversion call.
24401         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
24402         * tree-vect-transform.c (vectorizable_conversion): New function.
24403         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
24404         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
24405         mode.
24406         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
24407         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
24408         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
24409         or ALTIVEC_BUILTIN_VCFSX.
24410
24411 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24412
24413         PR target/30634
24414         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
24415         CONST_DOUBLE and operand 0 is a hard register.
24416         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
24417         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
24418         is a hard floating-point register.
24419
24420 2007-02-10  Richard Henderson  <rth@redhat.com>
24421             Jakub Jelinek  <jakub@redhat.com>
24422             Alexandre Oliva  <aoliva@redhat.com>
24423
24424         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
24425         * builtin-types.def (BT_WORD): Make unsigned.
24426         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
24427         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
24428         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
24429         * c-decl.c (grokdeclarator): Don't error if !have_tls.
24430         * c-parser.c (c_parser_omp_threadprivate): Likewise.
24431         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
24432         emulated tls.
24433         * expr.c (emutls_var_address): New.
24434         (expand_expr_real_1): Expand emulated tls.
24435         (expand_expr_addr_expr_1): Likewise.
24436         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
24437         * output.h (emutls_finish): Declare.
24438         * toplev.c (compile_file): Call it.
24439         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
24440         address before wrapping in CONST.
24441         * varasm.c (emutls_htab, emutls_object_type): New.
24442         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
24443         (get_emutls_object_name, get_emutls_object_type): New.
24444         (get_emutls_init_templ_addr, emutls_decl): New.
24445         (emutls_common_1, emutls_finish): New.
24446         (assemble_variable): When emulating tls, swap decls; generate
24447         constructor for the emutls objects.
24448         (do_assemble_alias): When emulating tls, swap decl and target name.
24449         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
24450         for emulated tls.
24451         * varpool.c (decide_is_variable_needed): Look at force_output.
24452         Recurse for emulated tls.
24453         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
24454         with decide_is_variable_needed.
24455         * emutls.c: New file.
24456         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
24457         tls_object for real tls.
24458
24459 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24460
24461         PR rtl-optimization/29599
24462         * reload1.c (eliminate_regs_in_insn): Take the destination
24463         mode into account when computing the offset.
24464
24465 2007-02-09  Stuart Hastings  <stuart@apple.com>
24466             Richard Henderson  <rth@redhat.com>
24467
24468         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
24469         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
24470         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
24471         fixuns_truncdfhi2): New.
24472         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
24473         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
24474         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
24475         (floatunssidf2): Allow nonimmediate source.
24476         * config/i386/sse.md (movdi_to_sse): New.
24477         (vec_concatv2di): Drop '*'.
24478         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
24479         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
24480         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
24481         New.
24482         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
24483         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
24484         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
24485         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
24486         (ix86_build_signbit_mask): Fix decl of v, refactor to call
24487         ix86_build_const_vector.
24488         (x86_emit_floatuns): Rewrite.
24489
24490 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24491
24492         * genautomata.c (longest_path_length): Delete unused function.
24493         (struct state): Delete unused longest_path_length.
24494         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
24495         (get_free_state): Delete unused.
24496
24497 2007-02-09  Jan Hubicka  <jh@suse.cz>
24498
24499         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
24500         * doc/invoke.texi (inline-unit-growth): Update default value.
24501
24502         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
24503         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
24504         (rebuild_cgraph_edges): Likewise.
24505         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
24506         (dump_cgraph_node): Dump frequencies.
24507         (cgraph_clone_edge): Add frequency scales.
24508         (cgraph_clone_node): Add freuqnecy.
24509         * cgraph.h (cgraph_edge): Add freuqnecy argument.
24510         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
24511         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
24512         * tree-pass.h (TODO_rebuild_frequencies): New constant.
24513         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
24514         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
24515         (save_inline_function_body): Likewise.
24516         * ipa-inline.c: inluce rtl.h
24517         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
24518         (cgraph_edge_badness): Use frequencies.
24519         (cgraph_decide_recursive_inlining): Update clonning.
24520         (cgraph_decide_inlining_of_small_function): Dump frequency.
24521         * predict.c (estimate_bb_frequencies): Export.
24522         * predict.h (estimate_bb_frequencies): Declare.
24523         * tree-inline.c (copy_bb): Watch overflows.
24524         (expand_call_inline): Update call of cgraph_create_edge.
24525         (optimize_inline_calls): Use TODO flags to update frequnecies.
24526         * passes.h: Include predict.h
24527         (init_optimization_passes): Move profile ahead.
24528         (execute_function_todo): Handle TODO_rebuild_frequencies.
24529
24530 2007-02-09  Roger Sayle  <roger@eyesopen.com>
24531
24532         * config/alpha/alpha.c (emit_insxl): Force the first operand of
24533         the insbl or inswl pattern into a register.
24534
24535 2007-02-09  Roger Sayle  <roger@eyesopen.com>
24536
24537         * config/ia64/ia64.md (bswapdi2): New define_insn.
24538
24539 2007-02-09  Richard Henderson  <rth@redhat.com>
24540
24541         * config/i386/constraints.md (Ym): New constraint.
24542         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
24543         (movdi_1_rex64): Split sse and xmm general register moves from
24544         memory move alternatives.  Use conditional register constraints.
24545         (movsf_1, movdf_integer): Likewise.
24546         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
24547         (movdf_integer_rex64): New.
24548         (pushsf_rex64): Fix output constraints.
24549         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
24550         (sse2_stored): Likewise.
24551         (sse2_storeq_rex64): New.
24552         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
24553         amd and not generic.
24554         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
24555         for optimize_size.  Remove SF/DFmode hack.
24556
24557 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
24558
24559         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
24560         (bit_SSE4a): New.
24561
24562 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
24563             Richard Sandiford  <richard@codesourcery.com>
24564
24565         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
24566         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
24567         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
24568         m68k/t-mlib to tmake_file.
24569         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
24570         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
24571         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
24572         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
24573         variable is not empty, add t-$m68k_arch_family to tmake_file.
24574         Add t-mlibs to tmake_file.
24575         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
24576         * config/m68k/t-cf: New file.
24577         * config/m68k/t-m68k: Likewise.
24578         * config/m68k/t-mlibs: Likewise.
24579         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
24580         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
24581         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
24582         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
24583         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
24584         Delete.
24585         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
24586         (INSTALL_LIBGCC): Delete.
24587         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
24588         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
24589         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
24590         (M68K_MLIB_CPU): Define.
24591         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
24592         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
24593         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
24594
24595 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
24596             Richard Guenther  <rguenther@suse.de>
24597
24598         PR middle-end/23361
24599         * fold-const.c (fold_comparison): Handle obfuscated comparisons
24600         against INT_MIN/INT_MAX.
24601         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
24602         file if a loop is removed.
24603
24604 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
24605
24606         * calls.c (store_one_arg): Pass correct alignment to
24607         emit_push_insn for non-BLKmode values.
24608         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
24609         unaligned stack slot via a suitably aligned slot.
24610
24611 2007-02-08  DJ Delorie  <dj@redhat.com>
24612
24613         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
24614         warnings.
24615         (legal_subregs): Use unsigned char, make const.
24616         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
24617
24618 2007-02-08  Paul Brook  <paul@codesourcery.com>
24619
24620         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
24621         special interworking needed.
24622
24623 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
24624
24625         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
24626         conditional to __SSE2__.
24627         (Entries below should have been added to first ChangeLog
24628         entry for amdfam10 dated 2007-02-05)
24629         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
24630         defined.
24631         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
24632         defined.
24633         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
24634         defined.
24635
24636 2007-02-08  DJ Delorie  <dj@redhat.com>
24637
24638         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
24639         * config/m32c/m32c.c (legal_subregs): New.
24640         (m32c_illegal_subreg_p): New.
24641         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
24642         unsupported subregs of hard regs.
24643
24644 2007-02-08  Jan Hubicka  <jh@suse.cz>
24645
24646         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
24647         the same one; always update histograms.
24648
24649 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
24650
24651         * passes.c (init_optimization_passes): Tidy comment.
24652
24653 2007-02-08  Roger Sayle  <roger@eyesopen.com>
24654
24655         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
24656         strip zero_extend, bswap and rotates from POCOUNT's argument.
24657         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
24658         zero_extend and rotates from PARITY's argument.
24659         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
24660         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
24661         of an integer constant at compile-time.
24662
24663 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
24664
24665         PR 30562
24666         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
24667         Update all users.
24668         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
24669         users.
24670         (init_alias_info):
24671         * tree-ssa-live.c (remove_unused_locals): Do not remove
24672         TREE_ADDRESSABLE variables.
24673         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
24674         * tree-ssa-operands.c (add_virtual_operand): Remove argument
24675         FOR_CLOBBER.  Update all users.
24676         If VAR has an associated alias set, add a virtual operand for
24677         it if no alias is found to conflict with the memory reference.
24678
24679 2007-02-07  Jan Hubicka  <jh@suse.cz>
24680             Robert Kidd <rkidd@crhc.uiuc.edu>
24681
24682         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
24683
24684 2007-02-07  Ian Lance Taylor  <iant@google.com>
24685
24686         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
24687
24688 2007-02-07  Roger Sayle  <roger@eyesopen.com>
24689
24690         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
24691         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
24692         tablejumpdi, movsi_to_cr_one): Remove constraints from
24693         define_expand's match_operands.
24694
24695 2007-02-07  Roger Sayle  <roger@eyesopen.com>
24696
24697         * global.c (compute_regsets): Move declatation of "i" inside of
24698         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
24699
24700 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
24701
24702         PR c++/30703
24703         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
24704         of INDIRECT_REF <RESULT_DECL>.
24705
24706         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
24707
24708 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
24709             Kaz Kojima  <kkojima@gcc.gnu.org>
24710
24711         PR target/29746
24712         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
24713         properly.
24714         (sh_initialize_trampoline): Add parentheses to avoid a warning.
24715
24716 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
24717
24718         * doc/loop.texi: Document possibility not to perform disambiguation
24719         of loops with multiple latches.
24720         * cfgloopmanip.c (alp_enum_p): Removed.
24721         (add_loop): Handle subloops.  Use get_loop_body_with_size.
24722         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
24723         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
24724         the new forwarder block.
24725         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
24726         Handle the case latch is NULL.
24727         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
24728         modifications when marking loop exits.
24729         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
24730         be modified.
24731         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
24732         disambiguate_loops_with_multiple_latches.
24733         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
24734         before fix_loop_structure.
24735         * cfgloop.c: Include pointer-set.h and output.h.
24736         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
24737         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
24738         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
24739         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
24740         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
24741         disambiguate_multiple_latches, get_loop_body_with_size,
24742         disambiguate_loops_with_multiple_latches): New functions.
24743         (flow_loop_dump): Dump multiple latch edges.
24744         (flow_loop_nodes_find): Handle loops with multiple latches.
24745         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
24746         (glb_enum_p): Modified.
24747         (get_loop_body): Use get_loop_body_with_size.
24748         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
24749         (AVOID_CFG_MODIFICATIONS): New constant.
24750         (disambiguate_loops_with_multiple_latches, add_loop,
24751         get_loop_body_with_size): Declare.
24752         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
24753
24754 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
24755
24756         PR inline-asm/28686
24757         * global.c (compute_regsets): New function.
24758         (global_alloc): Refactored ELIMINABLE_REGSET
24759         and NO_GLOBAL_ALLOC_REGS computation out.
24760         (rest_of_handle_global_alloc): Call compute_regsets()
24761         for non-optimizing case.
24762
24763 2007-02-06  Richard Henderson  <rth@redhat.com>
24764
24765         * config/i386/constraints.md (Y2): Rename from Y.
24766         (Yi): New constraint.
24767         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
24768         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
24769         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
24770         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
24771         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
24772         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
24773         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
24774         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
24775         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
24776         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
24777         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
24778         vec_extractv2si_1): Change Y constraints to Y2.
24779         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
24780         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
24781         Change Y constraints to Y2.
24782         (sse2_loadld): Change Y constraints to x.
24783
24784 2007-02-06  Roger Sayle  <roger@eyesopen.com>
24785
24786         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
24787         (parity<mode>2): New define_expand using rs6000_emit_parity.
24788         * config/rs6000/rs6000.c (rs6000_emit_popcount,
24789         rs6000_emit_parity): New functions.
24790         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
24791         rs6000_emit_parity): Prototype here.
24792
24793 2007-02-06  Ian Lance Taylor  <iant@google.com>
24794
24795         * lower-subreg.c (simple_move_operand): Reject CONST.
24796         (resolve_clobber): Call validate_change rather than directly
24797         assigning to XEXP (pat, 0).
24798
24799 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
24800
24801         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
24802         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
24803         (tree-cfg.o): Remove hashtab.h dependency.
24804
24805         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
24806         (struct ivopts_data): Change niters to pointer_map_t.
24807         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
24808         (niter_for_exit): Create pointer_map on demand.  Change for
24809         pointer_map API.
24810         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
24811         (free_loop_data): Destroy data->niters if created and reset field.
24812         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
24813         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
24814
24815         * tree-ssa-reassoc.c: Include pointer-set.h.
24816         (bb_rank): Change to long *.
24817         (operand_rank): Change to pointer_map_t.
24818         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
24819         (insert_operand_rank): Accept long.
24820         (operand_entry_hash, operand_entry_eq): Remove.
24821         (get_rank): Return long.  Adjust for changes above.
24822         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
24823         and operand_rank.
24824         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
24825
24826         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
24827         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
24828         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
24829         is not NULL.
24830         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
24831         directly since it cannot be NULL.
24832         (get_vi_for_tree): Rewrite for pointer_map API.
24833         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
24834         (init_alias_vars): Create vi_for_tree as pointer_map.
24835         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
24836
24837         * tree-cfg.c: Don't include hashtab.h.
24838         (edge_to_cases): Declare as pointer_map.
24839         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
24840         Delete.
24841         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
24842         (start_recording_case_labels): Create edge_to_cases as pointer_map.
24843         (end_recoding_case_labels): Cleanup edge_to_cases manually before
24844         destroying it.
24845         (record_switch_edge): Delete.
24846         (get_cases_for_edge): Adjust for pointer_map API, inline
24847         record_switch_edge (rewritten for new API), remove goto.
24848
24849 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
24850
24851         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
24852         * tree-nested.c: Include pointer-set.h.
24853         (var_map_elt, var_map_eq, var_map_hash): Delete.
24854         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
24855         to pointer_map_t's.
24856         (nesting_info_bitmap_obstack): New.
24857         (lookup_field_for_decl): Adjust for pointer_map API.
24858         (lookup_tramp_for_decl): Adjust for pointer_map API.
24859         (get_nonlocal_debug_decl): Adjust for pointer_map API.
24860         (get_local_debug_decl): Adjust for pointer_map API.
24861         (convert_nl_goto_reference): Adjust for pointer_map API.
24862         (convert_nl_goto_receiver): Adjust for pointer_map API.
24863         (create_nesting_tree): Create outside GGC space.  Create bitmap on
24864         the new obstack.  Create field_map and var_map as pointer_maps.
24865         (free_nesting_tree): Adjust for changes to create_nesting_tree.
24866         (root): Delete.
24867         (lower_nested_functions): Move root here, no need to NULL it.
24868         Initialize and release the obstack.
24869
24870 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
24871
24872         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
24873         Remove prototypes and make them non-static.
24874         (struct tree_int_map): Remove.
24875         * tree.h (struct tree_int_map): Move here, turning TO into an
24876         unsigned int.
24877         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
24878
24879         * tree.h (TREE_COMPLEXITY): Remove.
24880         (struct tree_exp): Remove complexity field.
24881         * tree.c (build1_stat): Don't set it.
24882
24883 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
24884             Victor Kaplansky  <victork@il.ibm.com>
24885
24886         * tree-vectorizer.c (vect_is_simple_use): Support induction.
24887         (vect_is_simple_reduction): Support reduction with induction as
24888         one of the operands.
24889         (vect_is_simple_iv_evolution): Fix formatting.
24890         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
24891         formatting.  Don't mark induction phis for vectorization.
24892         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
24893         * tree-vect-transform.c (get_initial_def_for_induction): New function.
24894         (vect_get_vec_def_for_operand): Support induction.
24895         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
24896         induction case.
24897         (vectorizable_reduction): Support reduction with induction as one of
24898         the operands.
24899         (vectorizable_type_demotion): Use def-type of stmt argument rather
24900         than dummy def-type.
24901
24902         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
24903         flag_tree_scev_cprop.
24904         * common.opt (tree-scev-cprop): New flag.
24905
24906         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
24907         call to vect_get_new_vect_var.
24908
24909 2007-02-06  Ira Rosen  <irar@il.ibm.com>
24910
24911         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
24912         vectype is not NULL.
24913         (vect_pattern_recog_1): Likewise.
24914
24915 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24916
24917         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
24918         (fold_negate_expr): Likewise.
24919
24920 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
24921
24922         PR debug/30189
24923         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
24924         even if cv-qualification is the same.
24925
24926 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
24927
24928         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
24929         __enable_execute_stack on completion.
24930
24931 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24932
24933         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
24934         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
24935         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
24936         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
24937         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
24938         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
24939         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
24940         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
24941
24942 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24943
24944         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
24945         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
24946         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
24947         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
24948         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
24949         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
24950         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
24951         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
24952         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
24953         umuldi3_highpart_rex64, umulsi3_highpart_insn,
24954         umulsi3_highpart_zext, smuldi3_highpart_rex64,
24955         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
24956         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
24957         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
24958         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
24959         sqrtextenddfxf2_i387): Added amdfam10_decode.
24960
24961         * config/i386/athlon.md (athlon_idirect_amdfam10,
24962         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
24963         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
24964         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
24965         athlon_ivector_store_amdfam10): New define_insn_reservation.
24966         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
24967         amdfam10.
24968
24969 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24970
24971         * config/i386/athlon.md (athlon_call_amdfam10,
24972         athlon_pop_amdfam10, athlon_lea_amdfam10): New
24973         define_insn_reservation.
24974         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
24975         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
24976         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
24977
24978 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24979
24980         * config/i386/athlon.md (athlon_sseld_amdfam10,
24981         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
24982         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
24983
24984 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24985
24986         * config/i386/athlon.md (athlon_sseins_amdfam10): New
24987         define_insn_reservation.
24988         * config/i386/i386.md (sseins): Added sseins to define_attr type
24989         and define_attr unit.
24990         * config/i386/sse.md: Set type attribute to sseins for insertq
24991         and insertqi.
24992
24993 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24994
24995         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
24996         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
24997         ssecomi_load_amdfam10, ssecomi_amdfam10,
24998         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
24999         define_insn_reservation.
25000         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
25001
25002 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25003
25004         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
25005         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
25006         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
25007         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
25008         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
25009         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
25010         define_insn_reservation.
25011
25012         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
25013         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
25014         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
25015         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
25016         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
25017
25018 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25019
25020         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
25021         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
25022         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
25023         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
25024         athlon_ssemul_load_k8): Added amdfam10.
25025
25026 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25027
25028         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
25029         (x86_sse_unaligned_move_optimal): New variable.
25030
25031         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
25032         m_AMDFAM10.
25033         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
25034         for unaligned vector SSE double/single precision loads for AMDFAM10.
25035
25036 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25037
25038         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
25039         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
25040         Define TARGET_CPU_DEFAULT_amdfam10.
25041         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
25042         (processor_type): Add PROCESSOR_AMDFAM10.
25043
25044         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
25045         processor_type in config/i386/i386.h.
25046         Enable imul peepholes for TARGET_AMDFAM10.
25047
25048         * config.gcc: Add support for --with-cpu option for amdfam10.
25049
25050         * config/i386/i386.c (amdfam10_cost): New variable.
25051         (m_AMDFAM10): New macro.
25052         (m_ATHLON_K8_AMDFAM10): New macro.
25053         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
25054         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
25055         x86_promote_QImode, x86_integer_DFmode_moves,
25056         x86_partial_reg_dependency, x86_memory_mismatch_stall,
25057         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
25058         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
25059         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
25060         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
25061         Enable/disable for amdfam10.
25062         (override_options): Add amdfam10_cost to processor_target_table.
25063         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
25064         processor_alias_table.
25065         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
25066         (ix86_adjust_cost): Add code for amdfam10.
25067
25068 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
25069
25070         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
25071         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
25072         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
25073         * config/i386/i386.h: Add builtin definition for SSE4A.
25074         * config/i386/i386.md: Add support for ABM instructions
25075         (popcnt and lzcnt).
25076         * config/i386/sse.md: Add support for SSE4A instructions
25077         (movntss, movntsd, extrq, insertq).
25078         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
25079         Add -march=amdfam10 flag.
25080         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
25081         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
25082         and amdfam10.
25083         * doc/extend.texi: Add documentation for SSE4A builtins.
25084
25085 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
25086
25087         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
25088
25089 2007-02-05  Richard Guenther  <rguenther@suse.de>
25090
25091         * tree-vectorizer.h (vectorizable_function): Add argument type
25092         argument, change return type.
25093         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
25094         * tree-vect-transform.c (vectorizable_function): Handle extra
25095         argument, return vectorized function decl.
25096         (build_vectorized_function_call): Remove.
25097         (vectorizable_call): Handle calls with result and argument types
25098         differing.  Handle loop vectorization factor correctly.
25099         * targhooks.c (default_builtin_vectorized_function): Adjust for
25100         extra argument.
25101         * targhooks.h (default_builtin_vectorized_function): Likewise.
25102         * target.h (builtin_vectorized_function): Add argument type
25103         argument.
25104         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
25105         extra argument, allow vectorizing of lrintf.
25106         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
25107         documentation of target hook.
25108
25109 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
25110
25111         PR target/30665
25112         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
25113         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
25114         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
25115
25116 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25117
25118         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
25119         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
25120         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
25121         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
25122         before canonicalizing sincos to cexpi.
25123         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
25124
25125 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25126
25127         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
25128         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
25129         (alpha_init_builtins): Use alpha_add_builtins to process tables.
25130
25131 2007-02-05  Roger Sayle  <roger@eyesopen.com>
25132
25133         * mips-tfile.c (initialize_init_file): Correct endianness test.
25134
25135 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
25136
25137         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
25138         the 'y' constraint.
25139
25140 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
25141
25142         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
25143         saves in a PARALLEL before the register assignments.
25144
25145 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
25146
25147         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
25148         DWARF_FRAME_RETURN_COLUMN to be a general register.
25149         * dwarf2out.c (init_return_column_size): New function, split from...
25150         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
25151         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
25152         to be nongeneral registers.
25153         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
25154         integer registers.
25155         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
25156         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
25157
25158 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
25159
25160         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
25161
25162 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
25163
25164         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
25165         (remove_path): Use can_remove_branch_p and remove_branch instead
25166         of loop_delete_branch_edge.
25167         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
25168         (tree_transform_and_unroll_loop): Remove dead branches immediately.
25169         Update profile using scale_dominated_blocks_in_loop.
25170         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
25171         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
25172         (can_remove_branch_p, remove_branch): Declare.
25173         * tree-cfg.c (tree_can_remove_branch_p): New function.
25174         (tree_cfg_hooks): Add tree_can_remove_branch_p.
25175         * cfgrtl.c (rtl_can_remove_branch_p): New function.
25176         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
25177
25178 2007-02-05  Jan Hubicka  <jh@suse.cz>
25179
25180         PR middle-end/30696
25181         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
25182         nodes in cgraph, don't remove offline copy of the function.
25183
25184 2007-02-04  Jan Hubicka  <jh@suse.cz>
25185
25186         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
25187         vectors might cause maybe_lookup_element_for_expr to be called
25188         on non-sra-candidate.
25189
25190 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25191
25192         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
25193         config/bfin/bfin.md, config/bfin/predicates.md: Follow
25194         spelling conventions.
25195
25196 2007-02-04  Richard Guenther  <rguenther@suse.de>
25197
25198         PR middle-end/30636
25199         * fold-const.c (try_move_mult_to_index): Make sure to not
25200         overflow one dimension of a multi-dimensional array access.
25201
25202 2007-02-04  Jan Hubicka  <jh@suse.cz>
25203
25204         * passes.c (init_optimization_passes): Reindent.
25205
25206 2007-02-04  Jan Hubicka  <jh@suse.cz>
25207             Eric Botcazou  <ebotcazou@adacore.com>
25208
25209         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
25210         (execute_fixup_cfg): Break out the abnormal goto code.
25211         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
25212         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
25213         (optimize_inline_calls): Call make_nonlocal_label_edges.
25214
25215 2007-02-04  Jan Hubicka  <jh@suse.cz>
25216
25217         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
25218         true when something was changed.
25219         (rename_ssa_copies): When something was changed, do
25220         TODO_remove_unused_locals.
25221         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
25222         add TODO_remove_unused_locals when instruction was removed.
25223
25224 2007-02-04  Jan Hubicka  <jh@suse.cz>
25225
25226         * ipa-inline.c (try_inline): Improve debug output; work on already
25227         inline edges too.
25228         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
25229         call try_inline for already inlined edges too when flattening;
25230         inline also functions that make callee growth but overall unit size
25231         reduce.
25232
25233 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25234
25235         * config/m32c/bitops.md, config/m32c/jump.md,
25236         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
25237         config/m32r/m32r.h, config/m32r/m32r.md,
25238         config/m32r/predicates.md, config/m68hc11/larith.asm,
25239         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
25240         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
25241         config/mips/mips-protos.h, config/mips/mips.c,
25242         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
25243         config/mn10300/mn10300.h, config/mn10300/predicates.md,
25244         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
25245         spelling conventions.
25246
25247         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
25248         Follow spelling conventions.
25249
25250 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
25251
25252         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
25253         warn about C++0x compatibility.
25254
25255 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
25256
25257         * config/h8300/h8300.c, config/h8300/h8300.h,
25258         config/h8300/h8300.md: Follow spelling conventions.
25259
25260 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
25261
25262         PR middle-end/30667
25263         * combine.c (try_combine): Do not substitute source operand
25264         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
25265
25266 2007-02-03  Jan Hubicka  <jh@suse.cz>
25267
25268         PR gcov-profile/30650
25269         * value-prof.c (stringop_block_profile): Fix handling of size counter;
25270         do not divide by zero for never executed counters.
25271         (tree_find_values_to_profile): Fix counters.
25272         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
25273
25274 2007-02-03  Ian Lance Taylor  <iant@google.com>
25275
25276         * lower-subreg.c (simple_move_operand): New static function,
25277         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
25278         operands.
25279         (simple_move): Call simple_move_operand.
25280         (find_decomposable_subregs): Add special handling of MEMs.
25281         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
25282         meaning of return value.  If we see a hard register, test whether
25283         it can store a word_mode value.  Change all callers.
25284
25285 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25286
25287         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
25288         ftrapv insns and expanders.
25289         (subdi3): Change define_expand operand 1 to arith11_operand, and
25290         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
25291         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
25292         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
25293         respectively.
25294
25295         PR middle-end/30174
25296         * varasm.c (notice_global_symbol): Treat global objects as weak when
25297         flag_shlib is true.
25298
25299 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25300
25301         * emit-rtl.c (dconstpi): Delete.
25302         (dconstsqrt2): New.
25303         (init_emit_once): Delete dconstpi and init dconstsqrt2.
25304         * real.h (dconstpi): Delete.
25305         (dconstsqrt2): New.
25306         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
25307         (fold_builtin_hypot): Likewise.
25308
25309 2007-02-03  Tom Tromey  <tromey@redhat.com>
25310
25311         PR driver/30246
25312         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
25313         -gcoff3, -gxcoff3, -gvms3 implies -dD.
25314
25315 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
25316
25317         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
25318         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
25319         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
25320         config/rs6000/cell.md, config/rs6000/darwin.h,
25321         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
25322         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
25323         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
25324         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
25325         typos.  Follow spelling conventions.
25326         * doc/invoke.texi: Follow spelling conventions.
25327
25328 2007-02-03  Roger Sayle  <roger@eyesopen.com>
25329
25330         * simplify-rtx.c (simplify_relational_operation_1): Implement some
25331         canonicalization transformations that attempt to simplify integer
25332         constant comparisons to become comparisons against zero.
25333
25334 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25335
25336         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
25337         fabs(x)*sqrt(2).
25338         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
25339         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
25340
25341 2007-02-02  Mike Stump  <mrs@apple.com>
25342
25343         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
25344         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
25345         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
25346         generate a branch island.
25347
25348 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
25349
25350         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
25351         (xtensa_legitimate_address_p): New.
25352         (xtensa_legitimize_address): New.
25353         (xtensa_output_addr_const_extra): New.
25354         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
25355         (BASE_REG_P): New.
25356         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
25357         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
25358         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
25359         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
25360         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
25361         (xtensa_legitimize_address): New.
25362         (xtensa_output_addr_const_extra): New.
25363
25364 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
25365
25366         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
25367
25368 2007-02-02  Ian Lance Taylor  <iant@google.com>
25369
25370         * expmed.c (expand_divmod): Add comment.
25371
25372 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
25373
25374         * emit-rtl.c (renumber_insns): Remove.
25375         * flags.h: Remove the extern for flag_renumber_insns.
25376         * rtl.h: Remove the prototype for renumber_insns.
25377         * toplev.c (flag_renumber_insns): Remove.
25378
25379 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
25380
25381         Revert for x86 darwin:
25382         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
25383
25384         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
25385         code before the following patch under TARGET_MACHO.
25386         (ix86_function_value_regno_p): Likewise.
25387
25388 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25389
25390         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
25391         COMPLEX_EXPR.
25392
25393 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
25394
25395         PR target/29682
25396         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
25397         loads to general or fp registers.  Add comments.
25398         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
25399
25400 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
25401
25402         * pointer-set.c (insert_aux): Only return insertion slot.
25403         (pointer_set_insert): Adjust.
25404         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
25405         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
25406         pointer_map_traverse): New.
25407         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
25408         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
25409         pointer_map_contains, pointer_map_traverse): Declare.
25410
25411 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
25412
25413         PR middle-end/30473
25414         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
25415         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
25416
25417 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
25418
25419         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
25420
25421         (struct _dep): New type.
25422         (dep_t): New typedef.
25423         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
25424         (DEP_STATUS): New access macro.  The macro with the same name was
25425         renamed to DEP_LINK_STATUS.
25426         (dep_init): Declare function
25427
25428         (struct _dep_link): New type.
25429         (dep_link_t): New typedef.
25430         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
25431         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
25432         (DEP_LINK_STATUS): New macro.
25433         (debug_dep_links): New debug function.
25434
25435         (struct _deps_list): New type.
25436         (deps_list_t): New typedef.
25437         (DEPS_LIST_FIRST): New access macro.
25438         (FOR_EACH_DEP_LINK): New cycle macro.
25439         (create_deps_list, free_deps_list, delete_deps_list): Declare
25440         functions.
25441         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
25442         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
25443         (copy_deps_list_change_con): Ditto.
25444
25445         (move_dep_link): Declare function.
25446
25447         (struct _dep_node): New type.
25448         (dep_node_t): New typedef.
25449         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
25450
25451         (struct haifa_insn_data.back_deps): New field to hold backward
25452         dependencies of the insn.
25453         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
25454         to deps_list_t.
25455         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
25456         Change its type to deps_list_t.
25457         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
25458         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
25459         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
25460
25461         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
25462
25463         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
25464
25465         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
25466         and all callers.
25467         (dep_cost): Declare.
25468
25469         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
25470         (ds_to_dk, dk_to_ds): New functions.
25471
25472         (init_dep_1): New static function.
25473         (init_dep): New function.
25474         (copy_dep): New static function.
25475
25476         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
25477         functions.
25478         (detach_dep_link): New static function.
25479         (move_dep_link): New function.
25480
25481         (dep_links_consistent_p, dump_dep_links): New static functions.
25482         (debug_dep_links): New debugging function.
25483
25484         (deps_obstack, dl_obstack, dn_obstack): New static variables.
25485
25486         (alloc_deps_list, init_deps_list): New static functions.
25487         (create_deps_list): New function.
25488         (clear_deps_list): New static function.
25489         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
25490         (deps_list_consistent_p, dump_deps_list): New static functions.
25491         (debug_deps_list): New function.
25492         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
25493         functions.
25494         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
25495
25496         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
25497         use new scheduler dependencies lists.
25498         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
25499         (sched_analyze): Ditto.  Initialize dependencies lists.
25500         (add_forw_dep, compute_forward_dependences): Update to use new
25501         scheduler dependencies lists.
25502
25503         (init_dependency_caches): Init deps_obstack.
25504         (free_dependency_caches): Free deps_obstack.
25505
25506         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
25507         new scheduler dependencies lists.
25508         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
25509         (add_back_forw_dep, delete_back_forw_dep): Ditto.
25510
25511         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
25512         Update to use new scheduler dependencies lists.
25513         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
25514         (debug_dependencies): Ditto.
25515         (schedule_region): Update comments.
25516
25517         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
25518         scheduler dependencies lists.
25519         (schedule_ebb): Update comments.
25520
25521         * rtl.def (DEPS_LIST): Remove.
25522
25523         * lists.c (unused_deps_list): Remove.
25524         (free_list): Update assertions.
25525
25526         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
25527         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
25528
25529         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
25530         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
25531
25532         * haifa-sched.c (comments): Update.
25533         (insn_cost1): Remove.  Inline the code into insn_cost ().
25534         (insn_cost): Update to use new scheduler dependencies lists.  Move
25535         processing of the dependency cost to dep_cost ().
25536         (dep_cost): New function.  Use it instead of insn_cost () when
25537         evaluating cost of the dependency.  Use compatible interface to
25538         interact with the target.
25539         (priority): Update to use new scheduler dependencies lists.
25540         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
25541         with greater number of insns that depend on the insn.
25542         (schedule_insn): Update to use new scheduler dependencies lists.  Add
25543         code to free backward dependencies lists.  Inline and optimize code
25544         from resolve_dep () - see PR28071.
25545         (ok_for_early_queue_removal): Update to use new scheduler dependencies
25546         lists.  Update call to targetm.sched.is_costly_dependence hook.
25547
25548         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
25549         scheduler dependencies lists.
25550
25551         (resolve_dep): Remove.  Move the logic to schedule_insn ().
25552         (init_h_i_d): Initialize dependencies lists.
25553
25554         (process_insn_depend_be_in_spec): Rename to
25555         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
25556         dependencies lists.
25557         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
25558         Update to use new scheduler dependencies lists.
25559         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
25560
25561         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
25562         new scheduler dependencies lists.
25563         (build_intra_loop_deps): Ditto.
25564
25565         * target.h (struct _dep): Declare to use in
25566         gcc_target.sched.is_costly_dependence.
25567         (struct gcc_target.sched.adjust_cost): Fix typo.
25568         (struct gcc_target.sched.is_costly_dependence): Change signature to
25569         use single dep_t parameter instead of an equivalent triad.
25570         (struct gcc_target.sched.adjust_cost_2): Remove.
25571
25572         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
25573
25574         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
25575
25576         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
25577         documentation.
25578         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
25579
25580         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
25581         (REG_DEP_TRUE): Document.
25582
25583         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
25584         Change signature to correspond to the targetm.sched.adjust_cost hook.
25585         Update use in TARGET_SCHED_ADJUST_COST_2.
25586         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
25587         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
25588         new scheduler dependencies lists.
25589         (ia64_gen_check): Ditto.
25590
25591         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
25592         scheduler dependencies lists.
25593
25594         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
25595         signature to correspond to the targetm.sched.is_costly_dependence hook.
25596         (is_costly_group): Update to use new scheduler dependencies lists.
25597
25598         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
25599         instead of INSN_COST () macro.
25600
25601 2007-02-01  Ian Lance Taylor  <iant@google.com>
25602
25603         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
25604
25605 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
25606
25607         * pa.md (tp_load): Correct mfctl instruction syntax.
25608
25609 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
25610
25611         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
25612         altivec_padding_size calculation on AIX.  Improve comment, add
25613         assert to verify that it's right.
25614
25615         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
25616         64-bit.
25617
25618 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
25619
25620         PR inline-asm/28686
25621         * global.c (global_alloc): Add mising initialization of
25622         ELIMINABLE_REGSET.
25623
25624 2007-02-01  Roger Sayle  <roger@eyesopen.com>
25625
25626         * alias.c (init_alias_analysis): Correct whitespace.
25627         * bb-reorder.c (fix_edges_for_rarely_executed_code,
25628         partition_hot_cold_basic_blocks): Likewise.
25629         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
25630         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
25631         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
25632         fold_builtin_snprintf_chk, fold_builtin_printf,
25633         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
25634         do_mpfr_arg3, do_mpfr_sincos): Likewise.
25635         * cfgcleanup.c (cleanup_cfg): Likewise.
25636         * cfgexpand.c (tree_expand_cfg): Likewise.
25637         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
25638         * function.c (get_next_funcdef_no): Likewise.
25639         * gengtype.c (main): Likewise.
25640         * genmodes.c (main): Likewise.
25641         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
25642         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
25643         * ifcvt.c (noce_emit_move_insn): Likewise.
25644         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
25645         Likewise.
25646         * stor-layout.c (get_best_mode): Likewise.
25647         * tree-ssa-loop-niter.c (get_val_for): Likewise.
25648         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
25649         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
25650         perform_var_substitution, solve_graph): Likewise.
25651         * tree-vrp.c (vrp_finalize): Likewise.
25652
25653 2007-02-01  Ian Lance Taylor  <iant@google.com>
25654
25655         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
25656         high part of a paradoxical subreg, return a constant zero.
25657
25658 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
25659
25660         * toplev.c (lang_dependent_init): Call init_set_costs.
25661         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
25662
25663 2007-02-01  Richard Guenther  <rguenther@suse.de>
25664
25665         PR middle-end/30656
25666         * fold-const.c (fold_negate_expr): Allow negating a
25667         constant if overflow does not change.
25668
25669 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25670
25671         * doc/c-tree.texi (Expression trees): Improve markup.
25672         * doc/tm.texi (Register Classes, Addressing Modes)
25673         (Floating Point): Fix spacing after abbreviations.  Fix some
25674         typos.
25675
25676 2007-02-01  Ben Elliston  <bje@au.ibm.com>
25677
25678         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
25679         * doc/contrib.texi: Likewise.
25680         * doc/install.texi: Likewise.
25681
25682 2007-01-31  Richard Henderson  <rth@redhat.com>
25683             Ian Lance Taylor  <iant@google.com>
25684
25685         * lower-subreg.c: New file.
25686         * rtl.def (CONCATN): Define.
25687         * passes.c (init_optimization_passes): Add pass_lower_subreg and
25688         pass_lower_subreg2.
25689         * emit-rtl.c (update_reg_offset): New static function, broken out
25690         of gen_rtx_REG_offset.
25691         (gen_rtx_REG_offset): Call update_reg_offset.
25692         (gen_reg_rtx_offset): New function.
25693         * regclass.c: Revert patch of 2006-03-05, restoring
25694         reg_scan_update.
25695         (clear_reg_info_regno): New function.
25696         * dwarf2out.c (concatn_loc_descriptor): New static function.
25697         (loc_descriptor): Handle CONCATN.
25698         * common.opt (fsplit_wide_types): New option.
25699         * opts.c (decode_options): Set flag_split_wide_types when
25700         optimizing.
25701         * timevar.def (TV_LOWER_SUBREG): Define.
25702         * rtl.h (gen_reg_rtx_offset): Declare.
25703         (reg_scan_update): Declare.
25704         * regs.h (clear_reg_info_regno): Declare.
25705         * tree-pass.h (pass_lower_subreg): Declare.
25706         (pass_lower_subreg2): Declare.
25707         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
25708         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
25709         -fsplit-wide-types.
25710         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
25711         * Makefile.in (OBJS-common): Add lower-subreg.o.
25712         (lower-subreg.o): New target.
25713
25714 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
25715
25716         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
25717
25718 2007-01-31  Anatoly Sokolov <aesok@post.ru>
25719
25720         PR target/19087
25721         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
25722
25723 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25724
25725         PR middle-end/29335
25726         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
25727
25728 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
25729
25730         * cfgloop.h: Include vec-prim.h.
25731         (enum li_flags): Remove LI_ONLY_OLD.
25732         (loop_iterator): Changed.
25733         (fel_next, fel_init): Iterate over loop tree.
25734         (FOR_EACH_LOOP_BREAK): New macro.
25735         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
25736         FOR_EACH_LOOP.
25737         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
25738         * modulo-sched.c (sms_schedule): Ditto.
25739         * tree-vectorizer.c (vectorize_loops): Ditto.
25740         * doc/loop.texi: Update information on loop numbering and behavior of
25741         FOR_EACH_LOOP wrto new loops.
25742         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
25743         add_to_evolution_1): Test nestedness of loops instead of comparing
25744         their numbers.
25745         * tree-chrec.c (chrec_fold_plus_poly_poly,
25746         chrec_fold_multiply_poly_poly, chrec_evaluate,
25747         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
25748         reset_evolution_in_loop): Ditto.
25749         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
25750
25751 2007-01-31  Dirk Mueller  <dmueller@suse.de>
25752
25753         * c-common.c (warn_about_parentheses): Separate warning about
25754         un-parenthized sequence of comparison operators from the one
25755         which is supposed to warn about x <= y <= z.
25756
25757 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
25758
25759         * optabs.h (enum optab_index): Add new OTI_isinf.
25760         (isinf_optab): Define corresponding macro.
25761         * optabs.c (init_optabs): Initialize isinf_optab.
25762         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
25763         patterns.
25764         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
25765         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
25766         using isinf_optab.
25767         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
25768         expand_builtin_interclass_mathfn.
25769         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
25770         * config/i386/i386.md (UNSPEC_FXAM): New constant.
25771         (fxam<mode>2_i387): New insn pattern.
25772         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
25773         built-in functions as x87 inline asm.
25774
25775 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
25776
25777         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
25778
25779 2007-01-30  Eric Christopher  <echristo@apple.com>
25780
25781         * config.gcc: Add geode.
25782
25783 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
25784
25785         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
25786         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
25787         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
25788         value-prof.c: Fix comment typos.
25789
25790 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25791
25792         PR c++/24745
25793         * doc/invoke.texi (Wpointer-arith): Document warning.
25794
25795 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
25796
25797         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
25798         the list of discrepancies from the draft TR.
25799
25800 2007-01-30  Dirk Mueller  <dmueller@suse.de>
25801
25802         PR c++/30601
25803         * doc/invoke.texi (-Wreturn-type): Update description to
25804         match new behavior.
25805
25806 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
25807
25808         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
25809
25810 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
25811
25812         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
25813         to handle optabs that operate on floating point input argument and
25814         output to integer output.
25815         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
25816         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
25817         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
25818         expand_builtin_interclass_mathfn ().
25819         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
25820         (ilogbsi2): Remove.
25821         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
25822         ilogbl built-in functions as x87 intrinsics.
25823
25824 2007-01-30  Richard Guenther  <rguenther@suse.de>
25825
25826         PR middle-end/27657
25827         * dwarf2out.c (reference_to_unused): Query varpool if the
25828         variable was output.
25829
25830 2007-01-30  Richard Guenther  <rguenther@suse.de>
25831
25832         PR middle-end/30313
25833         * passes.c (execute_one_pass): Reset in_gimple_form to not
25834         confuse non-unit-at-a-time mode.
25835
25836 2007-01-29  Roger Sayle  <roger@eyesopen.com>
25837             Richard Guenther  <rguenther@suse.de>
25838
25839         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
25840         avoid undefined behaviour on overflow.  Use force_fit_type_double
25841         to construct the constant with the specified TREE_OVERFLOW.
25842
25843 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
25844
25845         * config/dfp-bit.c: Add parameterized support for fp exceptions.
25846         * config/dfp-bit.h: Ditto.
25847
25848 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25849
25850         * c-decl.c (pop_scope): Replace warnings with call to
25851         warn_for_unused_label.
25852         * c-common.h (warn_for_unused_label): Declare.
25853         * c-common.c (warn_for_unused_label): Define.
25854
25855 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25856
25857         * tree-optimize.c (update_inlined_to_pointers): Delete unused
25858         function.
25859
25860 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
25861
25862         * Makefile.in (USER_H): Remove decfloat.h.
25863         * ginclude/decfloat.h: Delete, moving contents to ...
25864         * ginclude/float.h: Add support for decimal floating point,
25865         guarded by __STDC_WANT_DEC_FP__.
25866
25867 2007-01-29  Mike Stump  <mrs@apple.com>
25868
25869         * doc/gccint.texi (Top): Rename Loop Representation to Loop
25870         Analysis and Representation to resolve case insensitive conflict.
25871         * doc/loop.texi (Loop Analysis and Representation): Likewise.
25872
25873 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
25874
25875         * tree.h (struct tree_memory_tag): Add aliases member.
25876         (MTAG_ALIASES): New macro.
25877         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
25878         (add_may_alias): Remove pointer-set. Update for may_aliases being
25879         a bitmap.
25880         (mark_aliases_call_clobbered): Update for may_aliases being a
25881         bitmap.
25882         (compute_tag_properties): Ditto.
25883         (create_partition_for): Ditto.
25884         (compute_memory_partitions): Ditto.
25885         (dump_may_aliases_for): Ditto.
25886         (is_aliased_with): Ditto.
25887         (add_may_alias_for_new_tag): Ditto.
25888         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
25889         (compute_is_aliased): New function.
25890         (compute_may_aliases): Call compute_is_aliased).
25891         (init_alias_info): Initialize alias_bitmap_obstack.
25892         (union_alias_set_into): New function.
25893         (compute_flow_sensitive_aliasing): Use union_aliases_into.
25894         (have_common_aliases_p): Rewrite to take two bitmaps and use
25895         intersection.
25896         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
25897         Update for bitmaps.
25898         (finalize_ref_all_pointers): Update for add_may_alias changes.
25899         (new_type_alias): Ditto.
25900         * tree-flow-inline.h (may_aliases): Return a bitmap.
25901         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
25902         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
25903         may_aliases being a bitmap.
25904         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
25905         may_aliases now returns a bitmap.
25906         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
25907         being a bitmap.
25908         * tree-ssa-operands.c (add_virtual_operand): Update for
25909         may_aliases being a bitmap.
25910
25911 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
25912
25913         PR tree-optimization/30630
25914         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
25915         variable as changed.
25916
25917 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
25918
25919         PR c++/28266
25920         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
25921         expanded only once even if an error occurs.
25922
25923 2007-01-29  Ben Elliston  <bje@au.ibm.com>
25924
25925         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
25926         (__gcov_average_profiler): Likewise.
25927         (__gcov_ior_profiler): Likewise.
25928         (__gcov_merge_ior): Likewise.
25929
25930 2007-01-28  Jan Hubicka  <jh@suse.cz>
25931
25932         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
25933         * value-prof.c (stringop_block_profile): Likewise.
25934
25935 2007-01-28  Jan Hubicka  <jh@suse.cz>
25936
25937         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
25938         Add variant handling histograms; add wrapper.
25939         (clear_storage_via_libcall): Export.
25940         (emit_block_move_hints): Break out from ...; add histograms.
25941         (emit_block_move): ... this one.
25942         (clear_storage_hints): Break out from ...; add histograms.
25943         (clear_storage): ... this one.
25944         (set_storage_via_memset): Handle histogram.
25945         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
25946         (clear_storage_hints, clear_storage_via_libcall): Declare.
25947         (set_storage_via_setmem): Update prototype.
25948         * doc/md.texi (movmem, setmem): Document new arguments.
25949
25950         * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
25951         Add new histograms.
25952         (stringop_block_profile): New global function.
25953         (tree_stringops_values_to_profile): Profile block size and alignment.
25954         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
25955         HIST_TYPE_IOR.
25956         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
25957         (stringop_block_profile): Declare.
25958         * builtins.c: Include value-prof.h.
25959         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
25960         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
25961         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
25962         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
25963         * profile.c (instrument_values): Add new counters.
25964         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
25965         calls.
25966         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
25967         (tree_init_edge_profiler): Build new profilers.
25968         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
25969         (pass_tree_profile): Add dump.
25970         (tree_profile_hooks): Update.
25971         * Makefile.in (LIBGCOV): Add new constants.
25972         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
25973         __gcov_ior_profiler): New.
25974         * i386.md (movmem/setmem expanders): Add new optional arguments.
25975
25976 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
25977
25978         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
25979
25980 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
25981
25982         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
25983         (tree_unswitch_single_loop): Pass eni_size_weights to
25984         tree_num_loop_insns.
25985         * tree-ssa-loop-manip.c: Include tree-inline.h.
25986         (can_unroll_loop_p): Pass eni_size_weights to
25987         tree_num_loop_insns.
25988         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
25989         Pass eni_size_weights to estimate_num_insns.
25990         * tree.h (init_inline_once): Export.
25991         * toplev.c (backend_init): Call init_inline_once.
25992         * cgraphunit.c (cgraph_process_new_functions,
25993         cgraph_analyze_function): Pass eni_inlining_weights to
25994         estimate_num_insns.
25995         * ipa-inline.c (compute_inline_parameters): Ditto.
25996         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
25997         to estimate_num_insns.
25998         (try_unroll_loop_completely): Pass eni_size_weights to
25999         tree_num_loop_insns.
26000         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
26001         ot estimate_num_insns.
26002         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
26003         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
26004         * tree-inline.c (eni_inlining_weights, eni_size_weights,
26005         eni_time_weights): New variables.
26006         (init_inline_once): Initialize them.
26007         (struct eni_data): Mew.
26008         (estimate_num_insns_1, estimate_num_insns): Use weights.
26009         * tree-inline.h (struct eni_weights_d): New.
26010         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
26011         (estimate_num_insns): Declaration changed.
26012         * cfgloop.h (tree_num_loop_insns): Declaration changed.
26013         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
26014         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
26015
26016 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
26017
26018         * tree-data-ref.c (conflict_fn): Assert that the number of affine
26019         relations in the conflict function is valid.
26020
26021 2007-01-27  Ian Lance Taylor  <iant@google.com>
26022
26023         * common.opt: Add fstrict-overflow.
26024         * opts.c (decode_options): Set flag_strict_overflow if -O2.
26025         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
26026         (TYPE_OVERFLOW_UNDEFINED): Define.
26027         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
26028         Replace all uses.
26029         * tree.h (TYPE_TRAP_SIGNED): Don't define.
26030         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
26031         (fold_negate_expr): Likewise.
26032         (make_range): Likewise.
26033         (extract_muldiv_1): Likewise.
26034         (maybe_canonicalize_comparison): Likewise.
26035         (fold_comparison): Likewise.
26036         (fold_binary): Likewise.
26037         (tree_expr_nonnegative_p): Likewise.
26038         (tree_expr_nonzero_p): Likewise.
26039         * tree-vrp.c (compare_values): Likewise.
26040         (extract_range_from_binary_expr): Likewise.
26041         (extract_range_from_unary_expr): Likewise.
26042         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
26043         Likewise.
26044         (nowrap_type_p): Likewise.
26045         * tree-scalar-evolution.c (simple_iv): Likewise.
26046         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
26047         (build_range_check): Likewise.
26048         (extract_muldiv_1): Likewise.
26049         (fold_comparison): Likewise.
26050         * tree-vrp.c (vrp_int_const_binop): Likewise.
26051         (extract_range_from_unary_expr): Likewise.
26052         * convert.c (convert_to_integer): Likewise.
26053         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
26054         (fold_comparison): Likewise.
26055         (fold_binary): Likewise.
26056         * optabs.c (optab_for_tree_code): Likewise.
26057         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
26058         * simplify-rtx.c (simplify_const_relational_operation): Check
26059         flag_strict_overflow and flag_trapv.
26060         (simplify_const_relational_operation): Likewise.
26061         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
26062         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
26063         -fstrict-overflow.
26064
26065 2007-01-27  Roger Sayle  <roger@eyesopen.com>
26066
26067         * tree.c (tree_fold_gcd): Delete.
26068         * tree.h (tree_fold_gcd): Remove prototype.
26069         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
26070         test whether one constant integer is a multiple of another.  Instead
26071         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
26072         * fold-const.c (multiple_of_p): We've determined both TOP and
26073         BOTTOM are integer constants so we can call int_const_binop directly
26074         instead of the more generic const_binop.
26075
26076 2007-01-27  Roger Sayle  <roger@eyesopen.com>
26077
26078         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
26079         1*X check that the constant hasn't overflowed, to preserve the
26080         TREE_OVERFLOW bit.
26081         (round_up): Provide an efficient implementation when rouding-up an
26082         INTEGER_CST to a power-of-two.
26083
26084 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26085
26086         * doc/sourcebuild.texi: Add comma for clarity.
26087         * doc/extend.texi: Fix some typos.
26088         * doc/passes.texi: Likewise.
26089         * doc/cppinternals.texi: Likewise.
26090         * doc/c-tree.texi: Likewise.
26091         * doc/tree-ssa.texi: Likewise.
26092         * doc/install.texi: Likewise.
26093
26094 2007-01-27  Jan Hubicka  <jh@suse.cz>
26095
26096         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
26097         (pass_sra): Do not require alias information.
26098         * passes.c (init_optimization_passes): Add SRA
26099
26100 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
26101
26102         * tracer.c (rest_of_handle_tracer): We already cleaned
26103         up the CFG in tracer() so don't do it here again.
26104         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
26105         cleanup_cfg here, either.  And don't call renumber_insns.
26106
26107         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
26108         and BB_HEAD are in the insn stream here.  Instead make sure
26109         that BB_INSN is valid on all insns.  Also, do check here that
26110         there are no pending branch predictions...
26111         (rtl_verify_flow_info): ...instead of doing it here.  Checks
26112         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
26113         here.
26114
26115 2007-01-26  Roger Sayle  <roger@eyesopen.com>
26116
26117         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
26118         function to simplify/factorize operand order canonicalization.
26119         (ix86_fixup_binary_operands): Reorganize using the above function.
26120         (ix86_binary_operator_ok): Likewise.
26121
26122 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
26123
26124         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
26125         file scope from optimize_attrs.
26126         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
26127         up search.
26128         (optimize_attrs): Clear insn_code_values after freeing it.
26129
26130 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
26131
26132         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
26133         a parts.base assignment.
26134
26135 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
26136
26137         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
26138         (compute_subscript_distance, initialize_data_dependence_relation,
26139         finalize_ddr_dependent, analyze_ziv_subscript,
26140         analyze_siv_subscript_cst_affine,
26141         compute_overlap_steps_for_affine_univar,
26142         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
26143         analyze_siv_subscript, analyze_miv_subscript,
26144         analyze_overlapping_iterations, subscript_dependence_tester_1,
26145         compute_self_dependence, free_dependence_relation): Work
26146         with affine_fn instead of chrecs.
26147         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
26148         common_affine_function, affine_function_base,
26149         affine_function_constant_p, affine_fn_op, affine_fn_plus,
26150         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
26151         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
26152         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
26153         (all_chrecs_equal_p): Removed.
26154         * tree-data-ref.h (affine_fn, conflict_function): New types.
26155         (struct subscript): Change type of conflicting_iterations_in_a
26156         and conflicting_iterations_in_b.
26157
26158 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
26159
26160         PR other/30182
26161         * config/pa/pa.h (TARGET_HPUX_11): New.
26162         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
26163         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
26164
26165 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
26166         Richard Guenther  <rguenther@suse.de>
26167
26168         * tree-ssa-structalias.c (solve_graph): Handle case
26169         we merged the variable to another.
26170
26171 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26172
26173         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
26174         functions.
26175
26176         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
26177         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
26178
26179 2007-01-25  DJ Delorie  <dj@redhat.com>
26180
26181         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
26182         allow changes to modes which don't fit in those registers.
26183
26184         * reload1.c (choose_reload_regs): Check for invalid subregs before
26185         computing their locations, not after.
26186
26187 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
26188
26189         PR 25127
26190         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
26191         save Altivec registers in an eh_return function.
26192         (compute_vrsave_mask): Likewise.
26193         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
26194         for saving Altivec registers.
26195         (rs6000_emit_prologue): Don't allocate stack twice in
26196         eh_return function.  Correct expected value of altivec_save_offset
26197         when using save_world.  Describe save of R0 to stack when using
26198         save_world.  Describe stack pointer adjustment when using
26199         save_world.  Remove duplicated eh_return parameter register saving.
26200         Update sp_offset variable after save_world.
26201         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
26202         darwin-world.asm.
26203         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
26204         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
26205         implies Altivec.
26206
26207 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
26208
26209         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
26210
26211 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
26212
26213         PR other/30182
26214         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
26215         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
26216
26217 2007-01-25  Richard Guenther  <rguenther@suse.de>
26218
26219         * doc/invoke.texi (-Wcoverage-mismatch): Document.
26220         * common.opt (-Wcoverage-mismatch): New warning option.
26221         * coverage.c (get_coverage_counts): Ignore coverage mismatch
26222         if -Wcoverage-mismatch is given.
26223
26224 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
26225
26226         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
26227         (ipcp_driver): Change to static definition.
26228         Add dumping of the ifunctions.
26229         (constant_val_insert): Remove unused parameter. Support for SSA.
26230         (ipcp_propagate_const): Support for SSA.
26231         (ipcp_profile_bb_print): Print only analyzed nodes.
26232         (ipcp_replace_map_create): Remove support for Fortran constant
26233         for now.
26234         * ipa-prop.c (ipa_method_modify_stmt,
26235         ipa_callsite_compute_param): Support for SSA.
26236         * ipa-prop.h (ipcp_driver): Remove declaration.
26237         (IS_VALID_TREE_MAP_INDEX): Add define.
26238
26239 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
26240
26241         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
26242
26243 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26244
26245         PR middle-end/30447
26246         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
26247         constant argument to cabs and do it without checking for
26248         -funsafe-math-optimizations.
26249
26250 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
26251
26252         * c-common.h (RID_FIRST_CXX0X): New.
26253         (RID_LAST_CXX0X): New.
26254         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
26255         by -Wall.
26256         * c.opt (Wc++0x-compat): New.
26257         * doc/invoke.texi (-Wc++0x-compat): Document.
26258
26259 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26260
26261         * builtins.c (fold_builtin_carg): New.
26262         (fold_builtin_1): Use it.
26263
26264 2007-01-24  Jan Hubicka  <jh@suse.cz>
26265
26266         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
26267
26268         * ipa-inline.c (initial_insns, max_insns): Delete.
26269         (compute_max_insns): New function.
26270         (cgraph_decide_inlining_of_small_function): Use it; take minimal
26271         amount of insns as base for code growth.
26272         (cgraph_decide_inlining): Make initial_insns local; do not compute
26273         max_insns.
26274         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
26275         * doc/invoke.texi (inline-unit-growth): Update docs.
26276
26277 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
26278
26279         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
26280         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
26281         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
26282         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
26283         for CPUs that have PTA_CX16 set.
26284
26285         PR middle-end/27416
26286         * gimplify.c (omp_check_private): New function.
26287         (gimplify_scan_omp_clauses): Use it for
26288         firstprivate/lastprivate/reduction.
26289
26290         PR middle-end/30494
26291         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
26292         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
26293
26294         PR middle-end/30421
26295         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
26296         If lower_lastprivate_clauses emits some statements, append them
26297         to dlist rather than body_p and to body_p append an initializer.
26298         (lower_omp_for): Adjust caller.
26299
26300 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
26301
26302         * target.h (globalize_decl_name): New.
26303         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
26304         * output.h (default_globalize_decl_name): New.
26305         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
26306         globalize_label.
26307         (globalize_decl): Ditto.
26308         (default_globalize_decl_name): New.
26309         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
26310         (ia64_handle_version_id_attribute): New.
26311         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
26312         (ia64_asm_output_external): Use globalize_decl_name instead
26313         of globalize_label.
26314         * doc/extend.texi (version_id): New pragma.
26315         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
26316
26317 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26318
26319         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
26320         _uleb128_t and _Unwind_SWord with _sleb128_t.
26321         * unwind-dw2.c (extract_cie_info, execute_stack_op,
26322         execute_cfa_program, uw_frame_state_for, uw_update_context_1):
26323         Likewise.
26324         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
26325         * unwind-pe.h (read_uleb128, read_sleb128,
26326         read_encoded_value_with_base): Likewise.
26327         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
26328
26329 2007-01-24  Richard Guenther  <rguenther@suse.de>
26330
26331         * builtins.c (expand_builtin_cexpi): Get the fndecl
26332         for cexp in the correct way.
26333
26334 2007-01-24  Jan Hubicka  <jh@suse.cz>
26335
26336         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
26337         of calls.
26338
26339 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
26340
26341         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
26342         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
26343         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
26344         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
26345         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
26346         __SIZEOF_PTRDIFF_T__.
26347         * doc/cpp.texi: Documentation for the new builtin macros added.
26348
26349 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
26350
26351         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
26352         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
26353         instead of operands[2] to avoid access past the end of array.
26354
26355 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
26356
26357         * reload1.c (emit_reload_insns): Pass the reload register
26358         for a non-spill output reload through forget_old_reloads_1.
26359
26360 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
26361
26362         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26363         _SOFT_DOUBLE if doubles use software floating-point.
26364         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
26365         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
26366         * config/rs6000/darwin-ldouble.c: Also compile functions for
26367         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
26368         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
26369         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
26370         commented-out long double override.
26371         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
26372         * config/rs6000/eabispe.h: Likewise.
26373         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
26374         long double for non-SPE.
26375         (rs6000_handle_option): Likewise.
26376         (invalid_e500_subreg): Disallow more subregs involding DImode,
26377         DFmode, TImode or TFmode.
26378         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
26379         E500 double.
26380         (legitimate_lo_sum_address_p): Also check for TFmode for E500
26381         double.
26382         (rs6000_legitimize_address): Also handle TFmode for E500 double.
26383         (rs6000_legitimize_reload_address): Also handle TFmode for E500
26384         double.
26385         (rs6000_legitimate_address): Also check for TFmode for E500
26386         double.
26387         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
26388         (spe_build_register_parallel): Handle TFmode and TCmode.
26389         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
26390         double.
26391         (function_arg): Handle TFmode and TCmode for E500 double.
26392         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
26393         in general.
26394         (print_operand): Handle TFmode and TImode for %y.
26395         (rs6000_generate_compare): Handle TFmode comparisons for E500
26396         double.
26397         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
26398         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
26399         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
26400         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
26401         TFmode for E500 double.
26402         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
26403         (floatsidf2): Enable for E500 double.
26404         (movtf_softfloat): Use rs6000_nonimmediate_operand.
26405         (extenddftf2): Change to extenddftf2_fprs.
26406         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
26407         depending on TARGET_E500_DOUBLE.
26408         (extendsftf2): Enable for E500 double.
26409         (trunctfdf2): Enable for E500 double.
26410         (trunctfsf2): Change to trunctfsf2_fprs.
26411         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
26412         depending on TARGET_E500_DOUBLE.
26413         (floatsitf2): Enable for E500 double.
26414         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
26415         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
26416         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
26417         (negtf2): Change to negtf2_internal.
26418         (negtf2): New expander.
26419         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
26420         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
26421         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
26422         (movdi_internal32): Use rs6000_nonimmediate_operand.
26423         (unnamed splitter): Likewise.
26424         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
26425         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
26426         (SPE64TF, DITI): New mode macros.
26427         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
26428         modes.
26429         (frob_tf_ti): New.
26430         (frob_<mode>_di_2): New.
26431         (frob_tf_di_8_2): New.
26432         (frob_di_df): Change to frob_di_<mode>; allow more modes.
26433         (frob_ti_tf): New.
26434         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
26435         more modes.
26436         (frob_ti_<mode>_8_2): New.
26437         (frob_ti_tf_2): New.
26438         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
26439         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
26440         TFmode.
26441         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
26442         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
26443         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
26444         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
26445         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
26446         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
26447         tsttflt_gp): New.
26448
26449 2007-01-23  Ian Lance Taylor  <iant@google.com>
26450
26451         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
26452         insn-*.o first.
26453         (OBJS-archive): Reformat, alphabetize.
26454         (OBJS): Change out_object_file to OBJS-md.
26455
26456 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
26457
26458         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
26459         JUMP_P and CALL_P predicates where applicable.
26460         * config/i386/i386.c: Ditto.
26461         * config/i386/i386.md: Ditto.
26462         * config/i386/mmx.md: Ditto.
26463         * config/i386/predicates.md: Ditto.
26464
26465 2007-01-22  Andreas Schwab  <schwab@suse.de>
26466
26467         * config/m68k/m68k.h: Fix comment.
26468
26469 2007-01-22  Jan Hubicka  <jh@suse.cz>
26470
26471         * passes.c (init_optimization_passes): Do not rerun
26472         pass_early_warn_uninitialized.
26473
26474 2007-01-22  Richard Guenther  <rguenther@suse.de>
26475
26476         PR tree-optimization/30038
26477         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
26478         function.
26479         (execute_cse_sincos_1): Likewise.
26480         (execute_cse_sincos): Likewise.
26481         (gate_cse_sincos): Likewise.
26482         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
26483         the cexpi() canonicalization of sincos().
26484         * tree-pass.h (pass_cse_sincos): Declare.
26485         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
26486
26487 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
26488
26489         PR rtl-optimization/29329
26490         * combine.c (replaced_rhs_insn): Rename to i2mod.
26491         (replaced_rhs_value): Rename to i2mod_new_rhs.
26492         (i2mod_old_rhs): New global variable.
26493         (combine_instructions): Adjust for above change.  Save a copy of
26494         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
26495         note are substituted in the second instruction.
26496         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
26497         ditch the note if it pertains to the second eliminated register
26498         and this register is mentioned in i2mod_old_rhs.
26499
26500         Revert:
26501         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
26502
26503         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
26504         the insn to which the note was originally attached.
26505
26506 2007-01-21  Jan Hubicka  <jh@suse.cz>
26507
26508         * ipa-inline.c (inlining_mode): Comment, move up.
26509         (cgraph_decide_inlining_incrementally): Do not perform inlining
26510         itself; fix handling of flattening of self recursive functions.
26511         (cgraph_find_cycles): Remove.
26512         (cgraph_flatten_node): Remove.
26513         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
26514         (try_inline): New function.
26515         (cgraph_early_inlining): Update call of
26516         cgraph_decide_inlining_incrementally.  Apply inlining here.
26517         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
26518
26519 2007-01-21  Dirk Mueller  <dmueller@suse.de>
26520
26521         PR bootstrap/30511
26522         * tree-vrp.c (check_array_bounds): do not warn
26523         about ADDR_EXPR's of ARRAY_REF's which are immediately
26524         used in binary expressions.
26525
26526 2007-01-21  Ira Rosen  <irar@il.ibm.com>
26527
26528         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
26529         read_write_dep and macros for its access.
26530         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
26531         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
26532         argument, call vect_check_interleaving for every independent pair of
26533         data-refs. Mark loads that access the same memory location as a store
26534         in the loop.
26535         (vect_check_dependences): Remove.
26536         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
26537         call, fix the call to vect_analyze_data_ref_dependence.
26538         (vect_analyze_data_ref_access): For statements that access the same
26539         data-ref, check that they are not stores; for loads, check that there
26540         is no store that access the same location.
26541
26542 2007-01-20  Roger Sayle  <roger@eyesopen.com>
26543             Joseph Myers  <joseph@codesourcery.com>
26544
26545         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
26546         (-fdump-rtl-stack): Likewise.
26547         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
26548         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
26549         (-mpt-fixed): Use @minus{} for minus sign.
26550         (Using Precompiled Headers): Fix under/overfull hbox.
26551
26552 2007-01-20  Jan Hubicka  <jh@suse.cz>
26553
26554         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
26555         place within annotation.
26556
26557 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26558
26559         * pa.c (output_move_double): Change array size of xoperands to 4.
26560
26561 2007-01-20  Jan Hubicka  <jh@suse.cz>
26562
26563         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
26564         as temporary.
26565
26566 2007-01-19  Ian Lance Taylor  <iant@google.com>
26567
26568         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
26569         constant to unsigned HOST_WIDE_INT before negating.
26570
26571 2007-01-19  Ian Lance Taylor  <iant@google.com>
26572
26573         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
26574         to unsigned.
26575         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
26576         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
26577         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
26578         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
26579         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
26580         (realloc_vdef, realloc_vuse): Change second parameter to
26581         unsigned.
26582         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
26583         fields to unsigned.
26584         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
26585         unsigned. Change x and lim locals to unsigned.
26586         (realloc_vdef, realloc_vuse): Change num_elem parameter to
26587         unsigned.
26588         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
26589         (copy_virtual_operands): Change i and n locals to unsigned.
26590
26591 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26592
26593         PR middle-end/29335
26594         * builtins.c (fold_builtin_1): Handle builtin fdim.
26595
26596 2007-01-20  Jan Hubicka  <jh@suse.cz>
26597
26598         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
26599         * tree-ssa-structalias.c (compute_points_to_sets): Do call
26600         init_alias_heapvars.
26601         (init_alias_heapvars): Initialize only when not already initialized.
26602         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
26603
26604 2007-01-19  Roger Sayle  <roger@eyesopen.com>
26605
26606         * common.opt (fsigned-zeros): New command line option.
26607         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
26608         of flag_unsafe_math_optimizations.
26609         * opts.c (set_fast_math_flags): The -ffast-math command line option
26610         implies -fno-signed-zeros.
26611         (fast_math_flags_set_p): Likewise.
26612
26613         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
26614         the documentation of -ffast-math appropriately.  Wrap long lines.
26615
26616 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
26617
26618         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
26619         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
26620
26621 2007-01-19  Tomas Bily  <tbily@suse.cz>
26622
26623         * cgraphunit.c (cgraph_finalize_function): Updating of pid
26624         * tree-profile.c:
26625         (tree_init_ic_make_global_vars): New function
26626         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
26627         (tree_gen_ic_profiler): New function
26628         (tree_gen_ic_func_profiler): New function
26629         (tree_profiling): Added calling of tree_gen_ic_func_profiler
26630         (tree_profile_hooks): Added hook for indirec/virtual calls
26631         * value-prof.c (tree_find_values_to_profile): New case for
26632         indirect calls
26633         (tree_values_to_profile): Call for determining indirect/virtual
26634         counters
26635         (tree_indirect_call_to_profile): New function
26636         (tree_ic_transform): New function
26637         (tree_ic): New function
26638         (find_func_by_pid): New function
26639         (init_pid_map): New function
26640         (tree_value_profile_transformations): Added check for
26641         indirect/virtual call transformation
26642         * value-prof.h (enum hist_type): New counter type for
26643         indirect/virtual calls
26644         (profile_hooks): Added new hook for profiling indirect/virtual
26645         calls
26646         * profile.c (instrument_values): New case for indirect/virtual
26647         call added
26648         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
26649         (GCOV_COUNTER_V_INDIR): New counter type
26650         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
26651         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
26652         call added
26653         * cgraph.c: Definition of cgraph_max_pid
26654         (cgraph_create_node): Default init of pid attribute
26655         * cgraph.h: Declaration of cgraph_max_pid
26656         (struct cgraph_node): Added pid attribute
26657         * libgcov.c (__gcov_indirect_call_profiler): New function
26658         (__gcov_one_value_profiler_body): New function
26659         (__gcov_one_value_profiler): Body was moved to
26660         __gcov_one_value_profiler_body and calls it
26661
26662 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
26663
26664         * doc/gty.texi (Options): Document the mark_hook option to GTY.
26665         * gengtype.c (write_types_data, write_func_for_structure,
26666         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
26667         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
26668         (walk_type, write_func_for_structure): Generate the mark_hook if
26669         needed.
26670
26671 2007-01-19  Jan Hubicka  <jh@suse.cz>
26672
26673         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
26674         'early' argument take inlining mode argument specifying whether to
26675         inline for size/speeed or all functions; add support for flattening;
26676         improve dumpting.
26677         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
26678
26679 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26680
26681         PR c++/17947
26682         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
26683         the name of the declared identifier.
26684
26685 2007-01-19  Dirk Mueller  <dmueller@suse.de>
26686
26687         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
26688         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
26689         duplicate evaluation.
26690
26691 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
26692
26693         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
26694         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
26695         to XFMode, use acosxf2 and truncate result to requested mode.
26696         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
26697         (asin<mode>2): Similarly, with asin expanders.
26698         (*fscalexf4_i387): Rename from *fscalexf4.
26699         (expNcorexf3): New expander.
26700         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
26701         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
26702         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
26703         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
26704         patterns for SSE math.
26705         (exp10<mode>2): Similarly, with exp10 expanders.
26706         (exp2<mode>2): Similarly, with exp2 expanders.
26707         (expm1<mode>2): Similarly, with expm1 expanders.
26708         (ldexp<mode>3): Similarly, with ldexp expanders.
26709         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
26710         Use gen_truncxf<mode>2_i387_noop to truncate result.
26711
26712 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26713
26714         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
26715         for ColdFire targets.
26716
26717 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
26718             Richard Sandiford  <richard@codesourcery.com>
26719
26720         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
26721         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
26722         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
26723         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
26724         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
26725         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
26726
26727 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26728
26729         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
26730         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
26731         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
26732         (*adddi_dilshr32_cf): New pattern.
26733         (adddi3, subdi3): Remove first alternatives.
26734
26735 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26736
26737         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
26738         implemented using move.l, do not use its cc result for floating-point
26739         comparisons.
26740
26741 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26742
26743         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
26744         from accepting 's' constraints if flag_pic.
26745
26746 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26747
26748         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
26749         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
26750         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
26751         condition from TARGET_68881 to TARGET_HARD_FLOAT.
26752
26753 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
26754
26755         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
26756         ColdFire alternatives.
26757         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
26758         * config/m68k/m68k.md (clzsi2): Define for ColdFire
26759         architectures that support ff1 instruction.
26760
26761 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26762             Julian Brown  <julian@codesourcery.com>
26763
26764         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
26765         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
26766         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
26767         Add commentary.
26768
26769 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
26770
26771         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
26772         and return a bool.
26773         (output_move_const_into_data_reg, output_move_simode_const): Delete.
26774         * config/m68k/m68k.c (const_method, const_int_cost): Take a
26775         HOST_WIDE_INT instead of an rtx.
26776         (m68k_rtx_costs): Update call accordingly.
26777         (output_move_const_into_data_reg): Likewise.  Fix formatting.
26778         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
26779         Return a bool.
26780         (output_move_simode_const): Update calls after above changes.
26781         Rework to use automatic variables and predicates like MEM_P.
26782         * config/m68k/m68k.md (pushexthisi_const): Update call to
26783         valid_mov3q_const.
26784
26785 2007-01-19  Dirk Mueller  <dmueller@suse.de>
26786
26787         * tree-ssa-alias.c (perform_var_substitution): Fix typo
26788         in dump_flags test.
26789
26790 2007-01-19  Richard Guenther  <rguenther@suse.de>
26791
26792         * builtins.c (expand_builtin_cexpi): Fall back to expanding
26793         via cexp in case sincos is not available.
26794
26795 2007-01-19  Richard Guenther  <rguenther@suse.de>
26796
26797         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
26798         * defaults.h (TARGET_HAS_SINCOS): Default to off.
26799         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
26800         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
26801         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
26802         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
26803         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
26804         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
26805
26806 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
26807
26808         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
26809         New insn patterns.
26810         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
26811         (atan2xf3): Directly generate RTL pattern.
26812         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
26813         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
26814         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
26815         disable patterns for SSE math.
26816         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
26817         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
26818         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
26819         disable patterns for SSE math.
26820
26821 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
26822
26823         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
26824
26825 2007-01-18  Roger Sayle  <roger@eyesopen.com>
26826
26827         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
26828         VIEW_CONVERT_EXPR to the same type as it's operand.
26829
26830 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
26831
26832         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
26833         configured for long double 128.
26834
26835 2007-01-18  Mike Stump  <mrs@apple.com>
26836
26837         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
26838         error.
26839
26840 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
26841
26842         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
26843         type correct.
26844
26845 2007-01-18  Jan Hubicka  <jh@suse.cz>
26846
26847         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
26848         greater than NUM_VOP_FREE_BUCKETS.
26849
26850 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
26851
26852         * tree-ssa-structalias.c: Update comments.
26853         (ptabitmap_obstack): Removed.
26854         (pta_obstack): New.
26855         (oldpta_obstack): Ditto.
26856         (stats): Add a few members.
26857         (struct variable_info): Remove node, complex, address_taken, and
26858         indirect_target members. Add oldsolution member.
26859         (new_var_info): Do not initialize removed members.
26860         (constraint_expr_type): Remove INCLUDES.
26861         (constraint_graph): Add size, implicit_preds, rep,
26862         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
26863         (FIRST_REF_NODE): New macro.
26864         (LAST_REF_NODE): Ditto.
26865         (FIRST_ADDR_NODE): Ditto.
26866         (find): New function.
26867         (unite): Ditto.
26868         (dump_constraint): Do not handle INCLUDES.
26869         (insert_into_complex): Do not insert duplicate constraints.
26870         (condense_varmap_nodes): Renamed and rewritten into ...
26871         (merge_node_constraints): This. Also fix bug in handling of
26872         offseted copy constraints.
26873         (clear_edges_for_node): No longer need to deal with preds at all,
26874         or removing associated preds/succs.
26875         (merge_graph_nodes): Deal with indirect_cycles.
26876         Don't deal with predecessors.
26877         (add_implicit_graph_edge): New function.
26878         (add_pred_graph_edge): Ditto.
26879         (add_graph_edge): Don't deal with predecessors.
26880         (build_constraint_graph): Removed.
26881         (build_pred_graph): New function.
26882         (build_succ_graph): Ditto.
26883         (struct scc_info): Removed in_component. Added roots, dfs, and
26884         node_mapping. Remove visited_index, unification_queue.
26885         (scc_visit): Deal with union-find we do now.
26886         Deal with cycles with REF nodes.
26887         (collapse_nodes): Renamed and rewritten to ...
26888         (unify_nodes): This.
26889         (process_unification_queue): Removed.
26890         (topo_visit): Cleanup
26891         (do_da_constraint): Use find.
26892         (do_sd_constraint): Ditto.
26893         (do_ds_constraint): Ditto.
26894         (do_complex_constraint): Ditto.
26895         (init_scc_info): Update for removed and added members.
26896         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
26897         (find_indirect_cycles): This.
26898         (equivalence_class): New variable.
26899         (label_visit): New function.
26900         (perform_variable_substitution): Rewritten.
26901         (free_var_substitution_info): New function.
26902         (find_equivalent_node): Ditto.
26903         (move_complex_constraints): Ditto.
26904         (eliminate_indirect_cycles): Ditto.
26905         (solve_graph): Only propagate changed bits.
26906         Use indirect cycle elimination.
26907         Use find.
26908         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
26909         (tree_id_eq): Renamed to ...
26910         (tree_vi_eq): This. Update for member change
26911         (insert_id_for_tree): Renamed and rewritten to ...
26912         (insert_vi_for_tree): This.
26913         (lookup_id_for_tree): Renamed and rewritten to ...
26914         (lookup_vi_for_tree): This.
26915         (get_id_for_tree): Renamed and rewritten to ...
26916         (get_vi_for_tree): Ditto.
26917         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
26918         (process_constraint): Don't handle INCLUDES.
26919         Remove special ADDRESSOF case.
26920         (find_func_aliases): Rewrite to use vi functions instead of id
26921         ones.
26922         (create_function_info_for): Ditto.
26923         (create_variable_info_for): Ditto.
26924         (intra_create_variable_infos): Ditto.
26925         (merge_smts_into): Ditto.
26926         (find_what_p_points_to): Ditto.
26927         (init_base_vars): Ditto.
26928         (init_alias_vars): Ditto.
26929         (remove_preds_and_fake_succs): New function.
26930         (dump_sa_points_to_info): Dump new stats.
26931         (dump_solution_for_var): Use find.
26932         (set_used_smts): Fix formatting.
26933         (compute_points_to_sets): Updated for new functions.
26934         (ipa_pta_execute): Ditto.
26935
26936 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
26937             Richard Sandiford  <richard@codesourcery.com>
26938
26939         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
26940         parallels.
26941         * calls.c (expand_call): If the return value is a PARALLEL,
26942         extract its first member.
26943         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
26944         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
26945         use FUNCTION_EXTRA_EPILOGUE.
26946         (m68k_function_value): Return a PARALLEL if the return value
26947         is of a pointer type.
26948         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
26949         (FUNCTION_EXTRA_EPILOGUE): Remove.
26950         * config/m68k/m68k.md (D0_REG): New constant.
26951
26952 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
26953
26954         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
26955         output a NOP for empty epilogues.
26956
26957 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
26958
26959         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
26960         before function.  Extend register save check to include all
26961         registers, not just integer ones.
26962
26963 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
26964
26965         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
26966         (m68k_use_return_insn): ...this.
26967         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
26968         * config/m68k/m68k.c (use_return_insn): Rename to...
26969         (m68k_use_return_insn): ...this.
26970         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
26971         of USE_RETURN_INSN.
26972
26973 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
26974
26975         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
26976         nearest even, fix denormal rounding overflow.
26977
26978 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
26979
26980         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
26981         f%$smove and f%$move.
26982         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
26983         (extendsfdf2_cf): Use fdmove instead of f%&move.
26984         (truncdfsf2_cf): Use fsmove instead of f%$smove.
26985         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
26986
26987 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
26988
26989         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
26990         GPR<-GPR moves.
26991
26992 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
26993
26994         * real.h (real_format): Add a canonical_nan_lsbs_set field.
26995         (coldfire_single_format): Declare.
26996         (coldfire_double_format): Likewise.
26997         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
26998         of qnan_msb_set to determine the lower bits of a canonical
26999         NaN significand.
27000         (encode_ieee_double): Likewise.
27001         (encode_ieee_quad): Likewise.
27002         (ieee_single_format): Initialize canonical_nan_lsbs_set.
27003         (mips_single_format): Likewise.
27004         (ieee_double_format): Likewise.
27005         (mips_double_format): Likewise.
27006         (ieee_extended_motorola_format): Likewise.
27007         (ieee_extended_intel_96_format): Likewise.
27008         (ieee_extended_intel_128_format): Likewise.
27009         (ieee_extended_intel_96_round_53_format): Likewise.
27010         (ibm_extended_format): Likewise.
27011         (mips_extended_format): Likewise.
27012         (ieee_quad_format): Likewise.
27013         (mips_quad_format): Likewise.
27014         (vax_f_format): Likewise.
27015         (vax_d_format): Likewise.
27016         (vax_g_format): Likewise.
27017         (i370_single_format): Likewise.
27018         (i370_double_format): Likewise.
27019         (decimal_single_format): Likewise.
27020         (decimal_double_format): Likewise.
27021         (decimal_quad_format): Likewise.
27022         (c4x_single_format): Likewise.
27023         (c4x_extended_format): Likewise.
27024         (real_internal_format): Likewise.
27025         (coldfire_single_format): New real_format.
27026         (coldfire_double_format): Likewise.
27027         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
27028         canonical_nan_lsbs_set.
27029         (pdp11_d_format): Likewise.
27030         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
27031         if TARGET_COLDFIRE_CPU.
27032
27033 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27034
27035         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
27036         (output_call, m68k_legitimize_call_address): Declare.
27037         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
27038         parenthesees.  Add support for a 'W' constraint.
27039         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
27040         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
27041         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
27042         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
27043         variables.
27044         (override_options): Initialize them.  Do not set flag_no_function_cse
27045         for TARGET_ID_SHARED_LIBRARY.
27046         (m68k_output_pic_call): Delete.
27047         (m68k_legitimize_call_address): New function.
27048         (print_operand): Remove the %o prefix.  Handle the %p prefix.
27049         (output_call): New function.
27050         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
27051         target address from the GOT if symbolic jumps are not allowed.
27052         * config/m68k/m68k.md (call, general_operand): Do not set
27053         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
27054         Merge separate flag_pic and !flag_pic define_insns into...
27055         (*call, *call_value): ...these new patterns.  Match the address
27056         rather than the containing MEM and require it to be a call_operand.
27057         Use output_call to generate the asm template.
27058         * config/m68k/predicates.md (const_call_operand): New predicate.
27059         (call_operand): Likewise.
27060
27061 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27062
27063         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
27064         (STACK_GROWS_DOWNWARD): Define to 1.
27065         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
27066         comments, emphasizing that these values are only defaults.
27067         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
27068         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
27069
27070 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27071
27072         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
27073
27074 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
27075             Richard Sandiford  <richard@codesourcery.com>
27076
27077         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
27078         (FP_REGNO_P): New macros.
27079         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
27080         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
27081         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
27082         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
27083
27084 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27085
27086         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
27087         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
27088         to $tmake_file.
27089         * config/m68k/t-floatlib: New file, extracting common code from...
27090         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
27091         * config/m68k/t-uclinux: Here.
27092         * config/m68k/fpgnulib.c: Do not compile extendeed precision
27093         routines on ColdFire targets.
27094
27095 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
27096
27097         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
27098         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
27099         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
27100         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
27101         explicitly set MOTOROLA to 1.
27102         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
27103
27104 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27105             Nathan Sidwell  <nathan@codesourcery.com>
27106
27107         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
27108         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
27109         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
27110         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
27111         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
27112         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
27113         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
27114         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
27115         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
27116         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
27117         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
27118         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
27119         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
27120         (DBX_REGISTER_NUMBER): Delete.
27121         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
27122         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
27123         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
27124
27125 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27126
27127         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
27128         * config/flat.h: New file.
27129         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
27130         OBJECT_FORMAT_FLAT.
27131         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
27132         indirect references for -msep-data or -mid-shared-library.
27133         Do not use PC-relative code addresses either.
27134         * config/m68k/m68k.c (override_options): Restrict -fPIC error
27135         to -mpcrel.
27136         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
27137         for shared libraries and crt1.o for executables.  Use crti.o and
27138         crtbegin.o.
27139         (ENDFILE_SPEC): Use crtend.o and crtn.o.
27140         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
27141         Do not add -elf2flt or -shared-lib-id options here.
27142         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
27143         Pass -shared-lib-id if -mid-shared-library, taking the library
27144         identifier from -mshared-library-id if given, otherwise
27145         defaulting to 0.
27146         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
27147         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
27148         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
27149         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
27150         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
27151         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
27152         and crtend.o.
27153         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
27154         jump sequence for ISA A and ISA A+.
27155         (PICJUMP): Likewise.
27156
27157 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27158
27159         * config.gcc (m68k-*-uclinux*): Base the port on the common
27160         and m68k GNU/Linux files rather than on the generic ELF ones.
27161         * config/m68k/uclinux.h (TARGET_VERSION): Override.
27162         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
27163
27164 2007-01-18  Julian Brown  <julian@codesourcery.com>
27165             Richard Sandiford  <richard@codesourcery.com>
27166
27167         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
27168         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27169         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
27170         before redefining.
27171         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
27172         80 unconditionally.
27173         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27174
27175 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
27176
27177         * doc/install.texi: Document m68k-uclinuxoldabi.
27178         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
27179         * config/m68k/uclinux-oldabi.h: New file, copied from
27180         config/m68k/uclinux.h.
27181
27182 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
27183
27184         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
27185         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
27186         (m32r_compute_frame_size): Use unsigned for regno.
27187         (m32r_reload_lr): Use gen_frame_mem.
27188         (pop): New.
27189         (m32r_output_function_epilogue): Don't output the function epilogue
27190         textually here.
27191         (m32r_expand_epilogue): New.
27192         (direct_return): Return false if the function has the interrupt
27193         attribute.
27194         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
27195         * config/m32r/m32r.md (epilogue): New expander.
27196         (return_lr, return_rte): New insns.
27197         (return): Make it expander.
27198         (return_normal): New expander.
27199
27200 2007-01-18  Josh Conner  <jconner@apple.com>
27201
27202         PR target/30485
27203         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
27204         support for UNLE, UNLT, UNGE, and UNGT.
27205
27206 2007-01-18  Jan Hubicka  <jh@suse.cz>
27207
27208         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
27209         * tree-tailcall (add_virtual_phis): Likewise.
27210         (optimize_tail_call): Return TODOs.
27211         (execute_tail_calls): Return TODOs.
27212         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
27213         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
27214         changed.
27215         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
27216         Cleanup cfg using TODO.
27217         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
27218         * passes.c (execute_function_todo): When cleanup did something, remove
27219         unused locals.
27220         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
27221         (make_edges): Don't cleanup_cfg.
27222
27223 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
27224
27225         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
27226         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
27227         operate on the top of stack.
27228         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
27229         register handling of instructions that output to the second
27230         stack slot.
27231         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
27232         (move_for_stack_reg): Special-case check for dead destination
27233         stack slot for constant load of 1.0 inside UNSPEC_TAN.
27234
27235         * config/i386/i386.md (UNSPEC_TAN): New constant.
27236         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
27237         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
27238         to correctly model move of constant 1.0 to top stack slot.
27239         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
27240         (unnamed peephole2 pattern): Remove corresponding peephole2
27241         pattern that optimizes tan insn and loading of constant 1.0.
27242         (tanxf2): Use fptanxf4_i387.
27243         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
27244         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
27245         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
27246         disable patterns for SSE math.
27247         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
27248         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
27249
27250 2007-01-18  Dirk Mueller  <dmueller@suse.de>
27251             Richard Guenther <rguenther@suse.de>
27252
27253         PR diagnostic/8268
27254         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
27255         * common.opt (Warray-bounds): Add new warning option.
27256         * c-opts.c (c_common_handle_option): Define -Warray-bounds
27257         if -Wall is given.
27258         * Makefile.in: make tree-vrp.o depend on toplev.h
27259         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
27260         is enabled.
27261         (check_array_refs, check_array_bounds, check_array_ref): New.
27262
27263 2007-01-18  Jan Hubicka  <jh@suse.cz>
27264
27265         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
27266         (execute_ssa_ccp): Return flags conditionally.
27267         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
27268         changed.
27269         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
27270
27271 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
27272
27273         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
27274         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
27275
27276         * Makefile.c (GTFILES): Add cfglayout.h.
27277         * gengtype.c (open_base_files): Likewise.
27278         * cfglayout.c (cfg_layout_function_footer,
27279         cfg_layout_function_header) Reindent to make gengtype happy.
27280         * cfglayout.h (cfg_layout_function_footer,
27281         cfg_layout_function_header): Add GTY(()) marker.
27282
27283         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
27284
27285 2007-01-18  Ben Elliston  <bje@au.ibm.com>
27286
27287         * genautomata.c (write_automata): Include xstrerror output in the
27288         error message if writing the DFA description file fails.
27289
27290 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27291
27292         * config/mips/mips-protos.h (mips_output_external): Make it
27293         return void.
27294         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
27295         * config/mips/mips.c (irix_output_external_libcall): Likewise.
27296         (extern_list): Likewise.
27297         (extern_head): Likewise.
27298         (TARGET_ASM_FILE_END): Likewise.
27299         (mips_file_end): Likewise.
27300         (mips_output_external): Rewritten.
27301
27302 2007-01-18  Ben Elliston  <bje@au.ibm.com>
27303
27304         * genpreds.c (write_insn_preds_c): Only write out the function
27305         body for regclass_for_constraint if we have register constraints.
27306
27307 2007-01-17  Tom Tromey  <tromey@redhat.com>
27308
27309         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
27310         * doc/install.texi (Testing): Use sourceware.org.
27311         (Binaries): Likewise.
27312         (Specific): Likewise.
27313         * doc/contrib.texi (Contributors): Use sourceware.org.
27314
27315 2007-01-17  Anatoly Sokolov <aesok@post.ru>
27316
27317         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
27318         (AVR_ENHANCED): Rename to ...
27319         (AVR_HAVE_MUL): ... new.
27320         (avr_enhanced_p): Rename to ...
27321         (avr_have_mul_p): ... new.
27322         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
27323         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
27324         * config/avr/avr.c (avr_enhanced_p): Rename to ...
27325         (avr_have_mul_p): ... new.
27326         (base_arch_s): Rename 'enhanced' to 'have_mul'.
27327         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
27328         'avr_enhanced_p' and 'enhanced'.
27329         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
27330         AVR_HAVE_MUL instead of AVR_ENHANCED.
27331         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
27332         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
27333         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
27334         instead of AVR_ENHANCED.
27335         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
27336         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
27337         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
27338
27339 2007-01-17  Ian Lance Taylor  <iant@google.com>
27340
27341         * vec.h (VEC_reserve_exact): Define.
27342         (vec_gc_p_reserve_exact): Declare.
27343         (vec_gc_o_reserve_exact): Declare.
27344         (vec_heap_p_reserve_exact): Declare.
27345         (vec_heap_o_reserve_exact): Declare.
27346         (VEC_OP (T,A,reserve_exact)): New static inline function, three
27347         versions.
27348         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
27349         negative parameter.
27350         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
27351         (VEC_OP (T,A,copy)) [all versions]: Likewise.
27352         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
27353         * vec.c (calculate_allocation): Add exact parameter.  Change all
27354         callers.
27355         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
27356         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
27357         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
27358         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
27359         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
27360         (vec_heap_p_reserve_exact): New function.
27361         (vec_heap_o_reserve_exact): New function.
27362
27363 2007-01-17  Jan Hubicka  <jh@suse.cz>
27364
27365         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
27366
27367 2007-01-17  Eric Christopher  <echristo@apple.com>
27368
27369         * config.gcc: Support core2 processor.
27370
27371 2007-01-16  Jan Hubicka  <jh@suse.cz>
27372
27373         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
27374         the names, just unlink the chain so we don't crash on dangling
27375         pointers
27376         to dead SSA names.
27377
27378 2007-01-16  Jan Hubicka  <jh@suse.cz>
27379
27380         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
27381         * tree-pass.h: Reorder to make IPA passes appear toegher.
27382         (pass_early_inline, pass_inline_parameters, pass_apply_inline):
27383         Declare.
27384         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
27385         parameters, do not call early inliner.
27386         * ipa-inline.c: Update comments.  Include tree-flow.h
27387         (cgraph_decide_inlining): Do not compute inlining parameters.
27388         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
27389         be called with function context set up.
27390         (pass_ipa_inline): Remove unreachable functions before pass.
27391         (cgraph_early_inlining): Simplify assuming to be called from the
27392         PM as local pass.
27393         (pass_early_inline): New pass.
27394         (cgraph_gate_ipa_early_inlining): New gate.
27395         (pass_ipa_early_inline): Turn into simple wrapper.
27396         (compute_inline_parameters): New function.
27397         (gate_inline_passes): New gate.
27398         (pass_inline_parameters): New pass.
27399         (apply_inline): Move here from tree-optimize.c
27400         (pass_apply_inline): New pass.
27401         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
27402         transforming.
27403         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
27404         doing them by hand.
27405         (tree_function_versioning): Do not allocate dummy struct function.
27406         * tree-inline.h (optimize_inline_calls): Update prototype.
27407         * tree-optimize.c (execute_fixup_cfg): Export.
27408         (pass_fixup_cfg): Remove
27409         (tree_rest_of_compilation): Do not apply inlines.
27410         * tree-flow.h (execute_fixup_cfg): Declare.
27411         * Makefile.in (gt-passes.c): New.
27412         * passes.c: Include gt-passes.h
27413         (init_optimization_passes): New passes.
27414         (nnodes, order): New static vars.
27415         (do_per_function_toporder): New function.
27416         (execute_one_pass): Dump current pass here.
27417         (execute_ipa_pass_list): Don't dump current pass here.
27418
27419 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
27420
27421         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
27422         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
27423
27424 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
27425
27426         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
27427         (strong_alias): Define.
27428         (__gcc_qmul): Provide non-FMA for soft-float.
27429         (__gcc_qdiv): Same.
27430         (__gcc_qneg): New.
27431         (__gcc_qeq): New.
27432         (__gcc_qle): New.
27433         (__gcc_qge): New.
27434         (__gcc_qunord): New.
27435         (__gcc_stoq): New.
27436         (__gcc_dtoq): New.
27437         (__gcc_qtos): New.
27438         (__gcc_qtod): New.
27439         (__gcc_qtoi): New.
27440         (__gcc_qtou): New.
27441         (__gcc_itoq): New.
27442         (__gcc_utoq): New.
27443         (fmsub): New.
27444         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
27445         soft-float functions.
27446         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
27447         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
27448         about long double soft float.
27449
27450 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
27451             Tehila Meyzels  <tehila@il.ibm.com>
27452
27453         * tree-vectorizer.h (is_pattern_stmt_p): New.
27454         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
27455         formatting (tabs instead of spaces). Cleanup and clarify setting
27456         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
27457         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
27458         (vectorizable_type_demotion): Check that types are integral.
27459         (vectorizable_type_promotion): Likewise.
27460         (vectorizable_store): Fix typo.  Eliminate new-line at end of
27461         comments.
27462
27463 2007-01-16  Jan Hubicka  <jh@suse.cz>
27464
27465         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
27466         cgraph edges too.
27467
27468 2007-01-15  Eric Christopher  <echristo@apple.com>
27469
27470         * ifcvt.c: Include vec.h, vecprim.h.
27471         (check_cond_move_block): New argument regs.
27472         Reorganize. Add registers used to regs.
27473         (cond_move_process_if_block): Use regs set above as
27474         loop bounds.
27475
27476 2007-01-15  Eric Christopher  <echristo@apple.com>
27477
27478         * config/darwin.h: Update copyright.
27479         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
27480         (LINK_COMMAND_SPEC): Add -u.
27481         (LINK_SPEC): Fix umbrella for above.
27482
27483 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
27484
27485         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
27486         glibc CVS.
27487
27488 2007-01-15  Tom Tromey  <tromey@redhat.com>
27489
27490         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
27491         * doc/install.texi (Testing): Don't mention jacks.
27492         (Configuration): Document --enable-java-maintainer-mode.  Move
27493         --with-java-home to libgcj-specific section.  Document
27494         --with-ecj-jar.
27495         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
27496
27497 2007-01-15  Jan Hubicka  <jh@suse.cz>
27498
27499         * tree-ssa-dce.c (DCE_TODOs): New.
27500         (propagate_necessity): Return if something changed.
27501         (eliminate_unnecessary_stmts): Likewise.
27502         (perform_tree_ssa_dce): Return TODO flags when needed.
27503         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
27504
27505 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
27506
27507         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
27508         (fyl2x_extend<mode>xf3_i387): New insn pattern.
27509         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
27510         patterns using X87MODEF12 mode macro.  Extend operand 1
27511         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
27512         (log10<mode>2): Ditto.
27513         (log2<mode>2): Ditto.
27514         (log1p<mode>2): Ditto.
27515         (logb<mode>2): Ditto.
27516         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
27517         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
27518         (*fxtractxf3_i387): Rename from *fxtractxf3.
27519         (fxtract_extend<mode>xf3_i387): New insn pattern.
27520         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
27521         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
27522         and gen_fyl2xxf3_i387().
27523
27524 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
27525
27526         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
27527         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
27528         get_loop_exit_edges.  Changed return type to bool.
27529         * cfgloop.h (fix_loop_placement): Declaration removed.
27530
27531 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
27532
27533         * param.h (MIN_VECT_LOOP_BOUND): New.
27534         * params.def (MIN_VECT_LOOP_BOUND): New.
27535         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
27536         argument - minimum threshold for number of iterations.
27537         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
27538         argument to declaration.
27539         * tree-vect-analyze.c (vect_analyze_operations): Check value of
27540         MIN_VECT_LOOP_BOUND.
27541         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
27542         slpeel_tree_peel_loop_to_edge with additional argument.
27543         (vect_do_peeling_for_alignment): Likewise.
27544         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
27545
27546 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
27547
27548         PR target/30413
27549         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
27550         operands of size 1.
27551
27552 2007-01-14  Jan Hubicka  <jh@suse.cz>
27553
27554         * tree-dfa.c (remove_referenced_var): New function.
27555         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
27556         prune referenced vars list too.
27557         * tree-flow.h (remove_referenced_var): Declare.
27558
27559 2007-01-14  Jan Hubicka  <jh@suse.cz>
27560
27561         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
27562         separately.
27563         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
27564         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
27565         * except.h (verify_eh_throw_table_statements): Kill prototype.
27566         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
27567         into call exrepssions.
27568         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
27569         eh trhow verifier.
27570         * tree-cfg.c: Include pointer-set.h.
27571         (verify_node_sharing): Work on pointer set.
27572         (verify_eh_throw_stmt_node): New.
27573         (verify_stmts): Use pointers sets, verify throw_stmt.
27574
27575 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
27576
27577         * ipa-reference.c (analyze_function): Consider also addresses taken
27578         in phi nodes.
27579
27580 2007-01-12  Roger Sayle  <roger@eyesopen.com>
27581
27582         * c-typeck.c (null_pointer_constant_p): Replace use of
27583         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
27584         (build_c_cast): Likewise.
27585
27586 2007-01-12  Roger Sayle  <roger@eyesopen.com>
27587
27588         * tree.h (force_fit_type_double): Remove unused final argument.
27589         * c-common.c (constant_expression_warning): Replace use of
27590         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
27591         (convert_and_check): Likewise.
27592         (shorten_compare): Update call to force_fit_type_double.
27593         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
27594         * convert.c (convert_to_pointer): Update call to
27595         force_fit_type_double.
27596         * fold-const.c (force_fit_type_double): Remove overflowed_const
27597         argument.
27598         (int_const_binop, fold_convert_const_int_from_int,
27599         fold_convert_const_int_from_real, fold_div_compare,
27600         fold_sign_changed_comparison, fold_unary, fold_negate_const,
27601         fold_abs_const, fold_not_const): Remove the final argument from
27602         calls to force_fit_type_double.
27603
27604 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27605
27606         * configure.ac: Set insn to "nop" for spu-*-* also.
27607         * configure: Regenerate.
27608
27609 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
27610
27611         * builtins.def : Add BUILT_IN_FREE.
27612
27613 2007-01-12  Jan Hubicka  <jh@suse.cz>
27614
27615         PR tree-optimization/30443
27616         * tree-inline.c (tree_function_versioning): Do not optimize when
27617         cloning for inlining.
27618
27619 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
27620
27621         * doc/loop.texi: Document recording of loop exits.
27622         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
27623         (update_single_exits_after_duplication,
27624         update_single_exit_for_duplicated_loop,
27625         update_single_exit_for_duplicated_loops): Removed.
27626         (duplicate_loop_to_header_edge): Do not call
27627         update_single_exits_after_duplication and
27628         update_single_exit_for_duplicated_loops.
27629         (loop_version): Do not update single_exit information.
27630         (fix_loop_structure): Use record_loop_exits instead of
27631         mark_single_exit_loops.
27632         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
27633         the lists of loop exits.
27634         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
27635         split_edge, merge_blocks): Update the lists of loop exits.
27636         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
27637         loop_optimizer_init.
27638         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
27639         of mark_single_exit_loops.
27640         (loop_optimizer_finalize): Call release_recorded_exits.
27641         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
27642         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
27643         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
27644         update single exit information.
27645         * lambda-code.c (perfect_nestify): Ditto.
27646         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
27647         (mark_single_exit_loops): Removed.
27648         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
27649         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
27650         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
27651         functions.
27652         (get_loop_exit_edges, single_exit): Use recorded exit lists.
27653         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
27654         (verify_loop_structure): Verify consistency of the exit lists.
27655         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
27656         (set_single_exit): Removed.
27657         * cfgloop.h (struct loop_exit): New function.
27658         (struct loop): single_exit_ field replaced by exits field.
27659         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
27660         LOOPS_HAVE_RECORDED_EXITS.
27661         (struct loops): Added exits hash.
27662         (mark_single_exit_loops, set_single_exit): Declaration removed.
27663         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
27664
27665 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27666
27667         * doc/invoke.texi: Avoid use of @headitem.
27668
27669 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27670
27671         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
27672
27673 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27674
27675         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
27676         list of targets.
27677
27678 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
27679             Richard Sandiford  <richard@codesourcery.com>
27680
27681         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
27682         * config/m68k/m68k.opt: Resort options.
27683         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
27684
27685 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
27686             Richard Sandiford  <richard@codesourcery.com>
27687
27688         * doc/invoke.texi: Document the macros that are defined by
27689         m68k's -mtune and -mhard-float options.
27690         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
27691         (m68k_cpp_cpu_family): Likewise.
27692         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
27693         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
27694         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
27695         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
27696         (m68k_cpp_cpu_family): Likewise.
27697
27698 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27699
27700         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
27701         macros besides mc68000 as tuning macros.  Use a switch statement
27702         to set them and mcpu32.
27703
27704 2007-01-12  Julian Brown  <julian@codesourcery.com>
27705
27706         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
27707         (TARGET_68040_ONLY): Rename to...
27708         (TARGET_68040): ...this.
27709         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
27710         * config/m68k/m68k.md: Likewise.
27711
27712 2007-01-12  Julian Brown  <julian@codesourcery.com>
27713             Nathan Sidwell  <nathan@codesourcery.com>
27714             Richard Sandiford  <richard@codesourcery.com>
27715
27716         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
27717         the -mcpu= argument associated with the --with-cpu setting.
27718         Define M68K_DEFAULT_TUNE to the default -mtune= option,
27719         if different from the one implied by the -mcpu setting.
27720         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
27721         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
27722         * doc/invoke.texi: Mention ColdFire in the introduction to the
27723         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
27724         -mno-div and -mhard-float options.  Make -m68881 a synonym for
27725         -mhard-float.  Document the previously-undocumented -m5206e,
27726         -m528x, -m5307 and -m5407 options.  Tweak the existing option
27727         documentation for consistency.
27728         * doc/install.texi: Mention new --with-cpu arguments.
27729         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
27730         default CPU if neither -mcpu nor -march are specified.
27731         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
27732         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
27733         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
27734         using m68k_tune to decide between families that implement the
27735         same ISA.  Use m68k_tune to set __mcfv4e__.
27736         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
27737         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
27738         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
27739         (FL_ISA_C, FL_ISA_MMU): New macros.
27740         (MASK_COLDFIRE): Delete.
27741         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
27742         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
27743         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
27744         (TARGET_HARD_FLOAT): Do not define here.
27745         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
27746         (TUNE_68000): New macro.
27747         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
27748         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
27749         (TUNE_CFV2): Redefine in terms of m68k_tune.
27750         (uarch_type, target_device, fpu_type): New enums.
27751         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
27752         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
27753         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
27754         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
27755         (FL_FOR_isa_c): New macros.
27756         (m68k_isa): New enum.
27757         (m68k_target_selection): New structure.
27758         (all_devices, all_isas, all_microarchs): New tables.
27759         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
27760         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
27761         (MASK_ALL_CPU_BITS): Delete.
27762         (m68k_find_selection): New function.
27763         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
27764         Map the legacy target options to a combination of the new ones.
27765         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
27766         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
27767         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
27768         settings.
27769         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
27770         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
27771         properties.
27772         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
27773         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
27774         * config/m68k/m68k-devices.def: New file.
27775
27776 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27777             Nathan Sidwell  <nathan@codesourcery.com>
27778
27779         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
27780         (SUBTARGET_EXTRA_SPECS): New macros.
27781         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
27782         use %(asm_cpu_spec) instead.
27783         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
27784         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
27785         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
27786         (EXTRA_SPECS): Rename to...
27787         (SUBTARGET_EXTRA_SPECS): ...this.
27788
27789 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
27790             Richard Sandiford  <richard@codesourcery.com>
27791             Julian Brown  <julian@codesourcery.com>
27792
27793         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
27794         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
27795         to the configuration's default CPU.
27796         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
27797         Remove default masks.
27798         (m680[012]0-*-*): Set the default with_cpu to the first part of
27799         the target name.
27800         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
27801         (m68k*-*-linux): Extend the --with-cpu handling to...
27802         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
27803         and m68010.  Don't set target_cpu_default2.
27804         * doc/install.texi: Document --with-cpu for m68k.
27805         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
27806         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
27807         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
27808         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
27809         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
27810         (ASM_SPEC): Remove use of %(asm_cpu_default).
27811         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
27812         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
27813         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
27814         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
27815         __HAVE_FPU__ if TARGET_HARD_FLOAT.
27816         (TARGET_DEFAULT): Delete.
27817         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
27818         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
27819         (CPP_CPU_SPEC): Delete.
27820         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
27821         the appropriate string.
27822         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
27823         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
27824         (ASM_SPEC): Don't use %(asm_default_spec).
27825         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
27826         TARGET_DEFAULT and add MASK_68881.
27827         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
27828
27829 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27830
27831         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
27832         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
27833         MASK_68010 alongside MASK_68020.
27834         * doc/invoke.texi: Document -m68010.
27835         * config/m68k/m68k.opt (m68010): New.
27836         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
27837         if TUNE_68010.
27838         (TUNE_68010): New macro.
27839         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
27840         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
27841         (M68K_CPU_m68332): Add MASK_68010.
27842         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
27843         fallback definition.
27844         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
27845         defines.
27846         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
27847         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
27848         to all entries that use MASK_68020.
27849         (output_move_simode_const, output_move_himode, output_move_qimode)
27850         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
27851         instead of TARGET_68020 to select clr behavior.  Remove comment
27852         about there being no TARGET_68010.
27853         * config/m68k/m68k.md: Likewise throughout.
27854
27855 2007-01-12  Julian Brown  <julian@codesourcery.com>
27856
27857         * config/m68k/m68k.h (TARGET_ISAB): New macro.
27858         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
27859         * config/m68k/m68k.md: Likewise.
27860
27861 2007-01-12  Julian Brown  <julian@codesourcery.com>
27862
27863         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
27864         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
27865
27866 2007-01-12  Julian Brown  <julian@codesourcery.com>
27867
27868         * config/m68k/m68k.h (TUNE_68040_60): New macro.
27869         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
27870         * config/m68k/m68k.md: Likewise.
27871
27872 2007-01-12  Julian Brown  <julian@codesourcery.com>
27873             Richard Sandiford  <richard@codesourcery.com>
27874
27875         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
27876         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
27877         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
27878         TARGET_CPU32.
27879         (TARGET_CPU32): Rename to...
27880         (TUNE_CPU32): ...this.
27881         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
27882         (TUNE_CFV2): New macros.
27883         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
27884         remove conditions that are implied by TARGET_68020.
27885         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
27886         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
27887         (m68k_output_function_epilogue): Likewise.
27888         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
27889         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
27890         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
27891         non-68000 timings.  Refactor multiplication and division costs.
27892         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
27893         TUNE_CPU32 instead of TARGET_CPU32.
27894         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
27895         and TUNE_68060 instead of TARGET_68060.
27896         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
27897         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
27898         TARGET_CPU32.
27899         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
27900         && !TARGET_COLDFIRE" to choose between moveq and clr.
27901         Likewise in the unnamed movsf pattern.
27902         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
27903         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
27904         ashiftrt pattern.
27905
27906 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
27907
27908         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
27909         of tabbing before backslashes.
27910
27911 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27912
27913         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
27914         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
27915         (ASM_OUTPUT_INTERNAL_LABEL): Define.
27916
27917 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
27918
27919         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
27920         find_interesting_uses_cond.
27921         (find_interesting_uses_cond): Use extract_cond_operands.
27922         (rewrite_use_compare): Use extract_cond_operands and
27923         force_gimple_operand_bsi.  Do not call update_stmt.
27924         (determine_use_iv_cost_condition): Use extract_cond_operands.
27925         Return cheaper of using original bound and changing the exit bound.
27926
27927 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
27928
27929         PR tree-optimization/29516
27930         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
27931         most_expensive_mult_to_index, addr_to_parts,
27932         create_mem_ref, maybe_fold_tmr): Make the type of
27933         fields of TARGET_MEM_REF sizetype.
27934         (move_fixed_address_to_symbol, move_pointer_to_base):
27935         New functions.
27936         * tree.def (TARGET_MEM_REF): Add comment on types of
27937         the operands.
27938
27939 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
27940
27941         * c-common.c (vector_types_convertible_p): Treat opaque types as
27942         always convertible if they have the same size, but not otherwise.
27943
27944 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
27945
27946         * ifcvt.c (struct noce_if_info): Add comments to the fields.
27947         Remove the b_unconditional field.
27948         (noce_try_sign_mask): Do not look at b_unconditional.
27949         (noce_process_if_block): Do not use merge_if_blocks.  Update
27950         the CFG here.  Do not set b_unconditional.
27951         (cond_move_process_if_block): Likewise.
27952         (find_cond_trap): Likewise.
27953         (check_cond_move_block): Require simple jump insns at the end
27954         of the basic block.
27955
27956 2007-01-11  Jan Hubicka  <jh@suse.cz>
27957
27958         PR tree-optimization/1046
27959         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
27960         when alias info is not ready.
27961         (pass_tail_recursion): Do not require aliasing.
27962         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
27963         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
27964         * tree-ssa-copy.c (pass_copy_prop): Likewise.
27965         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
27966         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
27967         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
27968         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
27969         before inlining.
27970         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
27971         When aliasing is not build, mark statement as volatile.
27972
27973 2007-01-11  Tom Tromey  <tromey@redhat.com>
27974
27975         PR preprocessor/15185, PR preprocessor/20989:
27976         * doc/cppopts.texi <-MT>: Update description of algorithm for
27977         computing default target.
27978         <-M, -MD>: Reword "basename" text.
27979
27980 2007-01-11  Roger Sayle  <roger@eyesopen.com>
27981
27982         * builtins.c (expand_builtin_pow, expand_builtin_powi,
27983         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
27984         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
27985         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
27986         fold_builtin_bswap, real_constp, fold_builtin_pow,
27987         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
27988         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
27989         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
27990         * convert.c (convert_to_pointer): Likewise.
27991         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
27992         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
27993         const_binop, fold_convert_const_int_from_int,
27994         fold_convert_const_int_from_real,
27995         fold_convert_const_real_from_real, sign_bit_p,
27996         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
27997         fold_sign_changed_comparison, fold_unary, fold_comparison,
27998         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
27999         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
28000         * print-tree.c (print_node_brief, print_node): Likewise.
28001         * stor-layout.c (place_field, layout_type): Likewise.
28002         * tree-chrec.c (keep_cast): Likewise.
28003         * tree.c (build_vector, build_real, build_real_from_int_cst,
28004         build_complex): Likewise.
28005
28006 2007-01-11  Roger Sayle  <roger@eyesopen.com>
28007
28008         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
28009         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
28010
28011 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
28012
28013         * configure.ac (strict1_warn): Rename to strict_warn.
28014         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
28015         cc_set_by_configure, quoted_cc_set_by_configure,
28016         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
28017         all_boot_languages, all_stagestuff): Remove.
28018         (target_list): Remove bootstrap targets.
28019         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
28020         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
28021         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
28022         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
28023         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
28024         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
28025         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
28026         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
28027         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
28028         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
28029         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
28030         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
28031         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
28032         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
28033         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
28034         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
28035         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
28036         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
28037         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
28038         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
28039         (mostlyclean): Adjust.
28040         (clean, distclean): Don't mention bootstrap stuff.
28041         * configure: Regenerate.
28042         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
28043         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
28044         treelang/config-lang.in (stagestuff): Remove.
28045         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
28046         stageprofile, stagefeedback, stagestuff): Remove mention.
28047
28048 2007-01-11  Nick Clifton  <nickc@redhat.com>
28049
28050         * config/mcore/predicates.md (mcore_general_movesrc_operand):
28051         Accept CONSTs.
28052         (mcore_general_movdst_operand): Do not accept CONST_INTs.
28053         (mcore_arith_K_S_operand): Run the test for the S constraint not
28054         the test for the M constraint.
28055         (mcore_addsub_operand): Do not accept integer values that are
28056         larger than 32 bits.
28057         * config/mcore/mcore.md: Remove unused constraints from split.
28058         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
28059         (addsi3): Likewise.
28060         (allocate_stack): Likewise.
28061         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
28062         operands to 32 bits.
28063         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
28064         INTVAL.
28065         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
28066         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
28067         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
28068         mcore_output_bclri, mcore_output_andn, output_inline_const,
28069         mcore_output_move, mcore_output_movedouble): Likewise.
28070         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
28071         (output_inline_const): Likewise.
28072         (output_inline_const): Fix format strings used in sprintf
28073         statements.
28074         * config/mcore/mcore-protos.h: Update prototypes for changed
28075         functions in mcore.c.
28076         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
28077         HOST_WIDE_INT and not int.
28078         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
28079         CONST_OK_FOR_N): Likewise.
28080         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
28081         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
28082         an INTVAL.
28083
28084 2007-01-10  Jan Hubicka  <jh@suse.cz>
28085
28086         * tree-vrp.c (remove_range_assertions): Release defs.
28087         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
28088         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
28089
28090 2007-01-10  Paul Brook  <paul@codesourcery.com>
28091
28092         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
28093         * config/arm/arm.md (mulsi3subsi): New insn.
28094
28095 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
28096
28097         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
28098         (tree_transform_and_unroll_loop): New.
28099         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
28100         Declare.
28101
28102 2007-01-10  Robert Kennedy <jimbob@google.com>
28103
28104         * fold-const.c (fold_comparison): Fold comparisons like (x *
28105         1000 < 0) to (x < 0).
28106
28107 2007-01-10  Ian Lance Taylor  <iant@google.com>
28108
28109         * tree-pretty-print.c (dump_generic_node): Print parentheses when
28110         operands have the same priority.
28111
28112 2007-01-10  Tom Tromey  <tromey@redhat.com>
28113
28114         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
28115         (fold_binary): Likewise.
28116         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
28117         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
28118         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
28119         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
28120         * langhooks.h (struct lang_hooks): Removed field
28121         'can_use_bit_fields_p'.
28122
28123 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
28124
28125         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
28126
28127 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
28128
28129         * function.c (get_last_funcdef_no): New function.
28130         * function.h (get_last_funcdef_no): Declare.
28131         * tree-inline.c (initialize_cfun): Add initialization.
28132         (tree_function_versioning): Cleanup.
28133
28134 2007-01-10  Jan Hubicka  <jh@suse.cz>
28135
28136         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
28137         PHIs.
28138
28139 2007-01-10  Sa Liu  <saliu@de.ibm.com>
28140             Ben Elliston  <bje@au.ibm.com>
28141
28142         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
28143         for SAVE_NONLOCAL and Pmode for any other save level.
28144         * spu-protos.h (spu_restore_stack_block): Declare.
28145         * spu.md (save_stack_block): Remove.
28146         (restore_stack_block): Call spu_restore_stack_block.
28147         * spu.c (spu_restore_stack_block): New function.
28148         (spu_expand_epilogue): Remove old comment.
28149
28150 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
28151
28152         PR tree-optimization/30322
28153         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
28154         (cand_value_at): Return the value as aff_tree.
28155         (may_eliminate_iv): Convert the bound from aff_tree to tree.
28156         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
28157         aff_combination_mult): New functions.
28158         (aff_combination_add): Use aff_combination_add_cst.
28159         (aff_combination_convert): Allow conversions to a wider type.
28160         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
28161         * tree-affine.h (aff_combination_mult): Declare.
28162
28163 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
28164
28165         * doc/tm.texi: Update documentation to reflect reality of exec
28166         and start file search behaviours. Update copyright year.
28167         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
28168         header file directories.
28169
28170 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
28171
28172         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
28173         (*cosxf2): Rename to cosxf2_i387.
28174         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
28175         using X87MODEF12 mode macro. Rename patterns to
28176         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
28177         for SSE math.
28178         (*cosdf2, *cossf2): Ditto.
28179         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
28180         to match extended input operands.
28181         (sincos<mode>3): New expander.
28182         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
28183         insn patterns and corresponding splitters.
28184
28185 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
28186
28187         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
28188         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
28189
28190 2007-01-09  Nicolas Pitre  <nico@cam.org>
28191
28192         PR target/30173
28193         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
28194
28195 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
28196
28197         * target.h (struct gcc_target): New field library_rtti_comdat.
28198         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
28199         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
28200         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
28201         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
28202
28203 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
28204
28205         * doc/invoke.texi (Optimize Options): Correct description of -O0.
28206
28207 2007-01-08  Richard Guenther  <rguenther@suse.de>
28208
28209         * tree.h (force_fit_type_double): Export.
28210         (force_fit_type): Remove.
28211         * fold-const.c (force_fit_type_double): New function.
28212         (force_fit_type): Remove.
28213         (int_const_binop): Use it.
28214         (fold_convert_const_int_from_int): Likewise.
28215         (fold_convert_const_int_from_real): Likewise.
28216         (fold_div_compare): Likewise.
28217         (fold_sign_changed_comparison): Likewise.
28218         (fold_unary): Likewise.
28219         (fold_negate_const): Likewise.
28220         (fold_abs_const): Likewise.
28221         (fold_not_const): Likewise.
28222         * c-common.c (shorten_compare): Use force_fit_type_double.
28223         * convert.c (convert_to_pointer): Likewise.
28224
28225 2007-01-08  Richard Guenther  <rguenther@suse.de>
28226
28227         * tree.h (build_int_cst_wide_type): Export.
28228         * tree.c (build_int_cst_wide_type): New function.
28229         (build_int_cst_wide): Fix comment.
28230         * builtins.c (fold_builtin_object_size): Use build_int_cst
28231         to build -1 or 0 of the correct type.  Use fit_double_type
28232         to check for overflow.
28233         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
28234         to build the mask.
28235         (decode_field_reference): Likewise.
28236         (all_ones_mask_p): Likewise.
28237         (native_interpret_int): Use build_int_cst_wide_type.
28238         (fold_binary): Use build_int_cst_type to build an all-ones
28239         value.
28240         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
28241
28242 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
28243
28244         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
28245
28246 2007-01-09  Ben Elliston  <bje@au.ibm.com>
28247
28248         * genautomata.c (STATS_OPTION): New option.
28249         (stats_flag): New flag.
28250         (gen_automata_option): Handle it.
28251         (initiate_automaton_gen): Ditto.
28252         (write_automata): Output statistics only if stats_flag is
28253         set. Likewise, output time statistics only if time_flag is set.
28254         * doc/md.texi (Processor pipeline description): Document new flag.
28255
28256 2007-01-08  Richard Guenther  <rguenther@suse.de>
28257
28258         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
28259         * tree.c (build_int_cst_type): Likewise.
28260         (size_in_bytes): Don't call force_fit_type on the result.
28261         (int_fits_type_p): Use fit_double_type.
28262         * fold-const.c (fit_double_type): New function.
28263         (force_fit_type): Use it.
28264         * tree.h (fit_double_type): Export.
28265
28266 2007-01-08  Jan Hubicka  <jh@suse.cz>
28267
28268         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
28269         * ipa.c (function_and_variable_visibility): Fix return type.
28270
28271 2007-01-08  Richard Guenther  <rguenther@suse.de>
28272
28273         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
28274         of offset to build the index.
28275         * tree-pretty-print.c (dump_generic_node): Don't build negated
28276         const just for printing.
28277         * c-pretty-print.c (pp_c_integer_constant): Likewise.
28278         * builtins.c (fold_builtin_int_roundingfn): Check if result
28279         fits the type by using force_fit_type and comparing the result.
28280         * predict.c (predict_loops): Use compare_tree_int for comparison.
28281         * tree.c (build_int_cst): Fall back to integer_type_node for
28282         NULL_TREE type.
28283         (build_int_cst_wide): Assert type is non-null.
28284
28285 2007-01-08  Roberto Costa  <roberto.costa@st.com>
28286
28287         * tree-vrp.c (extract_range_from_cond_expr): New.
28288         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
28289         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
28290         as expressions.
28291         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
28292         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
28293         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
28294         used as expressions.
28295         * tree-object-size.c (cond_expr_object_size): New.
28296         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
28297
28298 2007-01-08  Jan Hubicka  <jh@suse.cz>
28299
28300         * tree-ssa-forwprop.c (forward_propagate_into_cond,
28301         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
28302         statement.
28303
28304 2007-01-08  Richard Guenther  <rguenther@suse.de>
28305
28306         PR tree-optimization/23603
28307         * tree-vrp.c (set_value_range_to_truthvalue): New function.
28308         (extract_range_from_binary): Fall back to truthvalue instead of
28309         varying for TRUTH_*_EXPR.
28310         (extract_range_from_comparison): Fall back to truthvalue instead of
28311         varying.
28312         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
28313         if all visited PHI values were constant.
28314
28315 2007-01-08  Jan Hubicka  <jh@suse.cz>
28316
28317         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
28318         (cgraph_analyze_function): break out from ...
28319         (cgraph_finalize_compilation_unit): ... here.
28320         (cgraph_expand_function): Remove forgoten commented out line.
28321         (cgraph_optimize): Analyze functions.
28322
28323 2007-01-08  Jan Hubicka  <jh@suse.cz>
28324
28325         * tree-pas.h (TODO_remove_function): New flag.
28326         (TODO_update*): Renumber.
28327         (pass_ipa_increase_alignment,
28328         pass_ipa_function_and_variable_visibility): New passes.
28329         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
28330         (cgraph_function_and_variable_visibility): Move to ipa.c
28331         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
28332         cgraph_increase_alignment.
28333         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
28334         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
28335         calling tree-inline.
28336         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
28337         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
28338         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
28339         (gate_increase_alignment): New function.
28340         (pass_ipa_increase_alignment): New pass.
28341         * ipa.c: Inline tree-pass.h and timevar.h
28342         (function_and_variable_visibility): Move here from cgraphunit.c
28343         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
28344         * passes.c (init_optimization_passes): Add the two new passes.
28345         (execute_todo): Handle cgraph_remove_functions.
28346
28347 2007-01-08  Nick Clifton  <nickc@redhat.com>
28348
28349         * config/frv/predicates.md (reg_or_0_operand): Accept
28350         CONST_DOUBLEs.
28351
28352 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
28353
28354         * config/bfin/rtems.h, config/bfin/t-rtems: New.
28355         * config.gcc: Add bfin*-rtems*.
28356
28357 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
28358
28359         * c.opt: Add -flax-vector-conversions.
28360         * c-typeck.c (convert_for_assignment): Pass flag to
28361         vector_types_convertible_p to allow emission of note.
28362         (digest_init): Likewise.
28363         * c-opts.c: Handle -flax-vector-conversions.
28364         * c-common.c (flag_lax_vector_conversions): New.
28365         (vector_types_convertible_p): Unless -flax-vector conversions
28366         has been passed, disallow conversions between vectors with
28367         differing numbers of subparts and/or element types.  If such
28368         a conversion is disallowed, possibly emit a note on the first
28369         occasion only to inform the user of -flax-vector-conversions.
28370         The new last argument specifies this.
28371         * c-common.h (flag_lax_vector_conversions): New.
28372         (vector_types_convertible_p): Add extra argument.
28373         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
28374         char_type_node for V*QI type vectors.
28375         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
28376         Update to satisfy new typechecking rules.
28377         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
28378         C and C++ variants.
28379         * doc/invoke.texi (C Dialect Options): Document
28380         -flax-vector-conversions.
28381
28382 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
28383
28384         PR tree-optimization/29877
28385         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
28386         a register variable on the RHS to not be replaceable.
28387
28388 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
28389         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
28390         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
28391         const_simm15, const_pow2, const_npow2): Added.
28392         * config/score/misc.md (insv, extv, extzv, movmemsi,
28393         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
28394         * config/score/score.c (score_address_cost, score_select_cc_mode):
28395         Added.
28396         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
28397         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
28398         Update score_print_operand.
28399         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
28400         Adjust register allocate order and update some macro define.
28401         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
28402         mdx_block_move_straight, mdx_block_move_loop_head,
28403         mdx_block_move_loop_body, mdx_block_move_loop_foot,
28404         mdx_block_move_loop, mdx_block_move): Added.
28405         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
28406         mdp_limm): Updated and fix some bug and typo.
28407         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
28408         (movsf, movdf, doloop_end): Added.
28409
28410 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
28411
28412         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
28413         config/arm/thumb2.md: Fix comment typos.
28414         * doc/extend.texi: Fix a typo.
28415
28416 2007-01-07  Eric Christopher  <echristo@apple.com>
28417
28418         * configure.ac: Check for __stack_chk_fail for darwin.
28419         * configure: Regenerate.
28420
28421 2007-01-07  Richard Guenther  <rguenther@suse.de>
28422
28423         * tree-vrp.c (extract_range_from_assert): CSE calls to
28424         compare_values where possible.
28425         (extract_range_from_unary_expr): Likewise.
28426
28427 2007-01-07  Anatoly Sokolov <aesok@post.ru>
28428
28429         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
28430         * config/avr/avr.c (call_insn_operand): Delete function.
28431         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
28432         instead of register number. Use predicates.
28433         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
28434         call_insn_operand): Add.
28435
28436 2007-01-06  Jan Hubicka  <jh@suse.cz>
28437
28438         * tree-pass.h (pass_build_cgraph_edges): Declare.
28439         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
28440         (visited_nodes): Remove.
28441         (cgraph_create_edges): Move to cgraphbuild.c; rename to
28442         build_cgrpah_edges; make visited_nodes local.
28443         (cgraph_process_new_functions): DO not call initialize_inline_failed.
28444         (record_references_in_initializer): Move to cgraphbuild.c
28445         (initialize_inline_failed, rebuild_cgraph_edges,
28446         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
28447         (verify_cgraph_node): Make visited_nodes local.
28448         (cgraph_analyze_function): Do not call cgraph_create_edges and
28449         initialize_inline_failed.
28450         (cgraph_expand_function): Do not call cgraph_lower_function;
28451         assert that function is already lowered.
28452         * Makefile.in (cgraphbuild.o): New.
28453         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
28454         at the end of lowering passes.
28455
28456 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
28457
28458         * ifcvt.c (cond_move_convert_if_block): New function, code
28459         factored out from...
28460         (cond_move_process_if_block): ...here.  Call the new function
28461         on the THEN and ELSE blocks.
28462         (merge_if_block): Do not copy global_live_at_end, merge_blocks
28463         already takes care of this.
28464
28465 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28466
28467         PR c/19978
28468         * tree.h (TREE_OVERFLOW_P): New.
28469         * c-typeck.c (parser_build_unary_op): Warn only if result
28470         overflowed and operands did not.
28471         (parser_build_binary_op): Likewise.
28472         (convert_for_assignment): Remove redundant overflow_warning.
28473         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
28474
28475 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28476
28477         * c-typeck.c (store_init_value): Split over two lines to follow
28478         the GNU coding style.
28479
28480 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
28481
28482         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
28483         __GXX_EXPERIMENTAL_CXX0X__.
28484         * doc/cpp.texi: Same.
28485
28486 2007-01-05  Richard Guenther  <rguenther@suse.de>
28487
28488         PR middle-end/27826
28489         * tree.c (get_narrower): Do not construct COMPONENT_REFs
28490         with mismatched types.  Instead explicitly build a
28491         conversion NOP_EXPR.
28492
28493 2007-01-05  Ian Lance Taylor  <iant@google.com>
28494
28495         * c-common.c (decl_with_nonnull_addr_p): New function.
28496         (c_common_truthvalue_conversion): Call it.
28497         * c-typeck.c (build_binary_op): Likewise.
28498         * c-common.h (decl_with_nonnull_addr_p): Declare.
28499
28500 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
28501
28502         PR c/30360
28503         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
28504         denom against 0.0.
28505
28506 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
28507
28508         * doc/install.texi (Final install): Document the fact that
28509         the GNAT runtime should not be stripped.
28510
28511 2007-01-04  Jan Hubicka  <jh@suse.cz>
28512
28513         * tree-inline.c (fold_marked_statements): Update operand caches
28514         and EH after folding
28515
28516 2007-01-04  Ian Lance Taylor  <iant@google.com>
28517
28518         * c-common.c (check_function_nonnull): Whitespace fix.
28519
28520 2007-01-04  Jan Hubicka  <jh@suse.cz>
28521
28522         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
28523         comitted older version of patch.
28524         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
28525         function, celanup cfg and collect garbage.
28526
28527 2007-01-04  Mike Stump  <mrs@apple.com>
28528
28529         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
28530         (clean): Likewise.
28531
28532 2007-01-04  Eric Christopher  <echristo@apple.com>
28533
28534         * libgcc2.c (__bswapsi2): Use SItype.
28535         (__bswapdi2): Use DItype.
28536         * libgcc2.h: Update for above.
28537
28538 2007-01-04  Paul Brook  <paul@codesourcery.com>
28539
28540         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
28541         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
28542         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
28543         umulsidi3, umulsidi3adddi, smulsi3_highpart,
28544         umulsi3_highpart): Make conditional on !arm_arch6.
28545         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
28546         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
28547         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
28548         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
28549         umulsi3_highpart_v6): New insns.
28550
28551 2007-01-04  Roger Sayle  <roger@eyesopen.com>
28552
28553         * fold-const.c (fold_convert): When casting an expression to void,
28554         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
28555         have a type.  Instead of attempting to build a NOP_EXPR, return
28556         these "special" trees directly.
28557
28558 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
28559
28560         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
28561         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
28562         rs6000_cost->fp not 0 as adjustment for outer NEG.
28563
28564 2007-01-04  Jan Hubicka  <jh@suse.cz>
28565
28566         * cgraph.c (cgraph_release_function_body): New function.
28567         (cgraph_remove_node): Use it.
28568         * cgraph.h (cgraph_release_function_body): Declare.
28569         * cgraphunit.c (cgraph_expand_function): Use it.
28570         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
28571         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
28572         is initialized and while compilation of other function is running.
28573         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
28574         statement CFG annotations from here to ...
28575         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
28576
28577 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
28578
28579         * cfgloop.h (enum li_flags): Make the constants powers of two.
28580
28581 2007-01-04  Jan Hubicka  <jh@suse.cz>
28582
28583         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
28584         set.
28585         (fold_marked_statements): New function.
28586         (optimize_inline_calls, tree_function_versioning): Fold new statements.
28587         * tree-inline.h (copy_body_data): Add statements_to_fold.
28588
28589 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
28590
28591         * config.gcc: Mention libgcc/config.host.
28592         * Makefile.in: Update comments mentioning libgcc.
28593         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
28594         (all.cross, start.encap, rest.encap, rest.cross): Update
28595         dependencies for libgcc move.
28596         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
28597         (clean-target, clean-target-libgcc): Delete.
28598         (srcdirify, GCC_EXTRA_PARTS): New macros.
28599         (libgcc-support, libgcc.mvars): New rules.
28600         (distclean): Remove mention of mklibgcc.
28601         (install): Don't reference INSTALL_LIBGCC.
28602         (install-common): Don't reference EXTRA_PARTS.
28603         (install-libgcc, install-multilib): Delete rules.
28604         * mklibgcc.in: Delete file.
28605         * doc/configfiles.texi: Don't mention mklibgcc.
28606
28607         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
28608         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
28609         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
28610         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
28611         (mklibgcc, ldblspecs): Likewise.
28612
28613         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
28614         (posixpre.def): Use $(T).
28615         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
28616         (SHLIB_SRC, SHLIB_INSTALL): Delete.
28617         (SHLIB_LINK): Make dummy.
28618         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
28619
28620         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
28621
28622         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
28623         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
28624         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
28625         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
28626
28627         * configure.ac (all_outputs): Remove mklibgcc.
28628         * configure: Regenerated.
28629
28630 2007-01-03  Josh Conner  <jconner@apple.com>
28631
28632         PR middle-end/29683
28633         * calls.c (compute_argument_addresses): Set stack and stack_slot
28634         for partial args, too.
28635         (store_one_arg): Use locate.size.constant for the size when
28636         generating a save_area.
28637
28638 2007-01-03  Robert Kennedy <jimbob@google.com>
28639
28640         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
28641         whose definitions are deleted due to basic block merging.
28642
28643 2007-01-03  Paul Brook  <paul@codesourcery.com>
28644
28645         PR target/16634
28646         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
28647         functions.
28648         (use_return_insn): Return 0 for Thumb interrupt functions.
28649         (print_multi_reg): Add rfe argument for IRQ returns.
28650         (arm_output_epilogue): Pop interrupt return address directly into PC.
28651         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
28652
28653 2007-01-03  Paul Brook  <paul@codesourcery.com>
28654
28655         Merge from sourcerygxx-4_1.
28656         * config/arm/thumb2.md: New file.
28657         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
28658         Thumb-2.
28659         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
28660         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
28661         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
28662         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
28663         tables.
28664         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
28665         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
28666         comptibility.
28667         * config/arm/ieee754-sf.S: Ditto.
28668         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
28669         (thumb1_base_register_rtx_p): ... to this.
28670         (thumb_index_register_rtx_p): Rename...
28671         (thumb1_index_register_rtx_p): ... to this.
28672         (thumb_output_function_prologue): Rename...
28673         (thumb1_output_function_prologue): ... to this.
28674         (thumb_legitimate_address_p): Rename...
28675         (thumb1_legitimate_address_p): ... to this.
28676         (thumb_rtx_costs): Rename...
28677         (thumb1_rtx_costs): ... to this.
28678         (thumb_compute_save_reg_mask): Rename...
28679         (thumb1_compute_save_reg_mask): ... to this.
28680         (thumb_final_prescan_insn): Rename...
28681         (thumb1_final_prescan_insn): ... to this.
28682         (thumb_expand_epilogue): Rename...
28683         (thumb1_expand_epilogue): ... to this.
28684         (arm_unwind_emit_stm): Rename...
28685         (arm_unwind_emit_sequence): ... to this.
28686         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
28687         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
28688         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
28689         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
28690         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
28691         thumb2_output_casesi): New functions.
28692         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
28693         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
28694         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
28695         THUMB2_WORK_REGS): Define.
28696         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
28697         arm_condexec_mask, arm_condexec_masklen)): New variables.
28698         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
28699         (arm_override_options): Check new CPU capabilities.
28700         Set new architecture flag variables.
28701         (arm_isr_value): Handle v7m interrupt functions.
28702         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
28703         Thumb-2.
28704         (const_ok_for_arm): Handle Thumb-2 constants.
28705         (arm_gen_constant): Ditto.  Use movw when available.
28706         (arm_function_ok_for_sibcall): Return false for v7m interrupt
28707         functions.
28708         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
28709         (thumb_find_work_register, arm_load_pic_register,
28710         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
28711         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
28712         print_multi_reg, output_mov_long_double_fpa_from_arm,
28713         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
28714         output_mov_double_fpa_from_arm, output_move_double,
28715         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
28716         output_return_instruction, arm_output_function_prologue,
28717         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
28718         arm_output_mi_thunk, thumb_set_return_address): Ditto.
28719         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
28720         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
28721         (arithmetic_instr, shift_op): Use arm_shift_nmem.
28722         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
28723         '!' and 'L'.
28724         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
28725         (thumb_expand_prologue): Use thumb_set_frame_pointer.
28726         (arm_file_start): Output directive for unified syntax.
28727         (arm_unwind_emit_set): Handle stack alignment instruction.
28728         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
28729         Add v6t2, v7, v7a, v7r and v7m.
28730         (RETLDM): Add Thumb-2 code.
28731         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
28732         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
28733         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
28734         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
28735         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
28736         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
28737         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
28738         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
28739         ADJUST_INSN_LENGTH): Define.
28740         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
28741         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
28742         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
28743         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
28744         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
28745         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
28746         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
28747         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
28748         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
28749         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
28750         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
28751         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
28752         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
28753         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
28754         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
28755         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
28756         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
28757         cortex-m3.
28758         * config/arm/arm-tune.md: Regenerate.
28759         * config/arm/arm-protos.h: Update prototypes.
28760         * config/arm/vfp.md: Enable patterns for Thumb-2.
28761         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
28762         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
28763         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
28764         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
28765         * config/arm/libunwind.S: Add Thumb-2 code.
28766         * config/arm/constraints.md: Update include Thumb-2.
28767         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
28768         * config/arm/ieee754-df.S: Ditto.
28769         * config/arm/bpabi.S: Ditto.
28770         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
28771         * config/arm/predicates.md (low_register_operand,
28772         low_reg_or_int_operand, thumb_16bit_operator): New.
28773         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
28774         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
28775         * config/arm/t-arm-elf: Add armv7 multilib.
28776         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
28777         Include thumb2.md.
28778         (UNSPEC_STACK_ALIGN, ce_count): New.
28779         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
28780         arm_zero_extendsidi2, arm_zero_extendqidi2): New
28781         insns/expanders.
28782         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
28783         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
28784         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
28785         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
28786         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
28787         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
28788         insns.
28789         * doc/extend.texi: Document ARMv7-M interrupt functions.
28790         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
28791
28792 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
28793
28794         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
28795         (struct _Unwind_Context): Rename args_size to flags, remove
28796         signal_frame field, add a new args_size field and version field.
28797         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
28798         _Unwind_IsExtendedContext): New inline functions.
28799         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
28800         Assume by_value array is only present if _Unwind_IsExtendedContext.
28801         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
28802         _Unwind_IsSignalFrame.
28803         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
28804         (uw_update_context_1): Use _Unwind_SetSignalFrame.
28805         (uw_init_context_1): Initialize context->flags to
28806         EXTENDED_CONTEXT_BIT.
28807         * config/rs6000/linux-unwind.h (frob_update_context): Use
28808         _Unwind_SetSignalFrame.
28809
28810 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28811
28812         PR middle-end/30353
28813         * gimplify.c (gimplify_modify_expr_complex_part): Move below
28814         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
28815         the value.
28816
28817 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
28818
28819         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
28820         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
28821         RET, AT_SP): Remove.
28822         * config/i386/i386.md (*sse_prologue_save_insn): Use return
28823         instead of RET.
28824
28825         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
28826         * cfgbuild.c (find_basic_blocks): Likewise.
28827         * cfgrtl.c (rtl_create_basic_block): Likewise.
28828         * function.c (temp_slots_at_level): Likewise.
28829         * reg-stack.c (stack_regs_mentioned): Likewise.
28830         * regclass.c (allocate_reg_info): Likewise.
28831         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
28832         set_bb_for_stmt, move_block_to_fn): Likewise.
28833         * tree-complex.c (tree_lower_complex): Likewise.
28834         * vec.h (VEC_safe_grow_cleared): New.
28835
28836         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
28837
28838 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
28839
28840         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
28841         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
28842         to loop_version.
28843         * cfgloopmanip.c (scale_loop_frequencies): Export.
28844         (loopify): Scale the frequencies by prescribed coefficients.
28845         (set_zero_probability): New function.
28846         (duplicate_loop_to_header_edge): Improve updating of frequencies.
28847         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
28848         and frequencies according to arguments.
28849         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
28850         correctly.
28851         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
28852         * modulo-sched.c (sms_schedule): Set probabilities for entering
28853         versioned loop correctly.
28854         * tree-vect-transform.c (vect_transform_loop): Ditto.
28855         * cfgloop.h (loopify, loop_version): Declaration changed.
28856         (scale_loop_frequencies): Declared.
28857
28858 2007-01-02  Jan Hubicka  <jh@suse.cz>
28859
28860         * cgraph.c: Include tree-flow.h
28861         (cgraph_add_new-function): Handle IPA_SSA mode; execute
28862         early_local_passes.
28863         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
28864         * tree-pass.h (pass_all_early_optimizations): Declare.
28865         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
28866         early_local_passes.
28867         (cgraph_analyze_function): Do early_local_passes.
28868         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
28869         Do not add referenced vars.
28870         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
28871         SSA form.
28872         (gate_all_early_local_passes): New gate.
28873         (pass_early_local_passes): Use new gate.
28874         (execute_early_local_optimizations): New functions.
28875         (gate_all_early_optimizations): New gate.
28876         (pass_all_early_optimizations): New pass.
28877         (execute_free_datastructures): Free SSA only when initialized.
28878         (gate_init_datastructures): Init only when optimizing.
28879         (tree_lowering_passes): Do early local passes when called late.
28880         * tree-profile.c (do_tree_profiling): Don't profile functions added
28881         late.
28882         (do_early_tree_profiling, pass_early_tree_profile): Kill.
28883         * tree-cfg.c (update_modified_stmts): Do not update when operands are
28884         not active.
28885         * passes.c (init_optimizations_passes): Reorder so we go into SSA
28886         during early_local_passes.
28887         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
28888
28889
28890 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
28891
28892         * Makefile.in: Update copyright year.
28893
28894 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
28895
28896         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
28897         in $(lang_checks) and check-consistency targets.
28898
28899 2007-01-02  Jan Hubicka  <jh@suse.cz>
28900
28901         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
28902         Do not add referenced vars.
28903         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
28904         are not active.
28905         * passes.c (init_optimization_passes): Put mudflap_2 after
28906         free_datastructures.
28907
28908 2007-01-02  Jan Hubicka  <jh@suse.cz>
28909
28910         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
28911         Set NOTHROW flag on call statements proved to be nothrow.
28912         Update statement of local calls so new pure/const functions are
28913         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
28914         goto receivers.
28915         (tree_rest_of_compilation): Register hooks and initialize bitmap
28916         early. Do not set after_inlining flag.
28917
28918 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
28919
28920         * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
28921         HOST_BITS_PER_LONGLONG
28922
28923 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28924
28925         PR c/19977
28926         * c-typeck.c (store_init_value): Don't emit pedantic overflow
28927         warning for non-static initializers.
28928
28929 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
28930
28931         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
28932         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
28933         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
28934         Always use set_unique_reg_note to add REG_EQUAL notes.
28935
28936 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
28937
28938         Revert:
28939         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
28940
28941         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
28942         * cfgbuild.c (find_basic_blocks): Likewise.
28943         * cfgrtl.c (rtl_create_basic_block): Likewise.
28944         * function.c (temp_slots_at_level): Likewise.
28945         * reg-stack.c (stack_regs_mentioned): Likewise.
28946         * regclass.c (allocate_reg_info): Likewise.
28947         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
28948         set_bb_for_stmt, move_block_to_fn): Likewise.
28949         * tree-complex.c (tree_lower_complex): Likewise.
28950         * vec.h (VEC_safe_grow_cleared): New.
28951
28952 2007-01-02  Ian Lance Taylor  <iant@google.com>
28953
28954         * c-common.c (c_common_truthvalue_conversion): When warning about
28955         using an assignment as a truth value, set TREE_NO_WARNING.
28956
28957 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28958
28959         PR middle-end/7651
28960         * c.opt (Wold-style-declaration): New.
28961         * doc/invoke.texi (C-only Warning Options): New.
28962         (Wold-style-declaration): Document it.
28963         (Wextra): Enabled by -Wextra.
28964         * c-opts.c (c_common_post_options): Enabled by -Wextra.
28965         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
28966         -Wold-style-declaration.
28967
28968 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
28969
28970         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
28971         * cfgbuild.c (find_basic_blocks): Likewise.
28972         * cfgrtl.c (rtl_create_basic_block): Likewise.
28973         * function.c (temp_slots_at_level): Likewise.
28974         * reg-stack.c (stack_regs_mentioned): Likewise.
28975         * regclass.c (allocate_reg_info): Likewise.
28976         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
28977         set_bb_for_stmt, move_block_to_fn): Likewise.
28978         * tree-complex.c (tree_lower_complex): Likewise.
28979         * vec.h (VEC_safe_grow_cleared): New.
28980
28981 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
28982
28983         * c-common.c (c_common_nodes_and_builtins): Since variants of
28984         void_type_node get built before it is given a name, we need to
28985         give those variants the name, too.
28986         (complete_array_type): We need to work with the canonical main
28987         type of the array, from which we will build the qualified version.
28988         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
28989         * print-tree.c (print_node): Display canonical type information
28990         for each type.
28991         * stor-layout.c (layout_type): When we don't know the
28992         alignment of a type for which we're building an array, we end up
28993         guessing wrong, so make the type require structural equality.
28994         * tree.c (make_node_stat): When we build a new type, it is its
28995         own canonical type.
28996         (build_type_attribute_qual_variant): When building an attribute
28997         variant, its canonical type is the non-attribute variant. However,
28998         if the attributes are target-dependent and they differ, we need to
28999         use structural equality checks for this type.
29000         (build_qualified_type): A qualified type is not equivalent to its
29001         unqualified variant; set the canonical type appropriately.
29002         (build_distinct_type_copy): When building a distinct type from
29003         another type, the new type is its own canonical type.
29004         (build_variant_type_copy): When building a new type variant, we
29005         assume that it is equivalent to the original type.
29006         (build_pointer_type_for_mode): When building a pointer type, also
29007         build a canonical type pointer.
29008         (build_reference_type_for_mode): When building a reference type,
29009         also build a canonical type reference.
29010         (build_index_type): When we can't hash an index type (e.g.,
29011         because its maximum value is negative), the index type requires
29012         structural equality tests.
29013         (build_array_type): Build the canonical form of an array type.
29014         (build_function_type): Function types require structural equality,
29015         because they contain default arguments, attributes, etc.
29016         (build_method_type_directly): Ditto for method types.
29017         (build_offset_type): Build the canonical offset type.
29018         (build_complex_type): Build the canonical vector type.
29019         (make_vector_type): Build the canonical vector type.
29020         * tree.h (TYPE_CANONICAL): New.
29021         (TYPE_STRUCTURAL_EQUALITY_P): New.
29022         (SET_TYPE_STRUCTURAL_EQUALITY): New.
29023         (struct tree_type): Added "canonical" field.
29024         * params.h (VERIFY_CANONICAL_TYPES): New.
29025         * doc/c-tree.texi (TYPE_CANONICAL): Document.
29026         (TYPE_STRUCTURAL_EQUALITY_P): Document.
29027         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
29028         * doc/invoke.texi (verify-canonical-types): Document --param
29029         parameter for verifying canonical types.
29030
29031 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29032
29033         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
29034         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
29035         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
29036         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
29037         tm_file.
29038         * config/rs6000/e500.h: New.
29039         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
29040         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
29041         Remove.
29042         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
29043         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
29044         TARGET_E500_DOUBLE): Remove.
29045         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
29046         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
29047         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
29048         * config/rs6000/rs6000.c (rs6000_override_options): Use
29049         CHECK_E500_OPTIONS.
29050
29051 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29052
29053         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
29054         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
29055         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
29056         rs6000_emit_cmove): Don't check TARGET_E500.
29057         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
29058         sordered): Don't check TARGET_E500.
29059
29060 2007-01-01  Eric Christopher  <echristo@apple.com>
29061
29062         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
29063         HARD_REGISTER_NUM_P.
29064
29065 2007-01-01  Roger Sayle  <roger@eyesopen.com>
29066
29067         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
29068         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
29069         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
29070         eq/ne Y".
29071
29072 2007-01-01  Mike Stump  <mrs@apple.com>
29073
29074         * configure.ac: Remove support for building with Apple's gcc-3.1.
29075
29076 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
29077
29078         PR middle-end/30311
29079         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
29080         REG is a hard register.  Do not modify REG before calling
29081         subreg_nregs.
29082         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
29083         multiple of the size of YMODE for certain lowpart cases.
29084
29085 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29086
29087         PR middle-end/30253
29088         * gimplify (voidify_wrapper_expr): Update for
29089         GIMPLE_MODIFY_STMT.
29090
29091 2007-01-01  Andreas Schwab  <schwab@suse.de>
29092
29093         PR target/29166
29094         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
29095         save of BR0 in extra_spill_size instead of spill_size.
29096         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
29097         area.
29098         (ia64_expand_epilogue): Restore BR0 from its new location.
29099
29100 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29101
29102         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
29103         Use a temporary variable if the left hand side is not a gimple
29104         register.
29105
29106 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
29107
29108         * gimplify.c (gimplify_return_expr): Make the temporary variable
29109         for the return expression, a gimple register variable.
29110
29111 2007-01-01  Jan Hubicka  <jh@suse.cz>
29112
29113         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
29114         INSN_LIST.
29115
29116 2007-01-01  Mike Stump  <mrs@apple.com>
29117
29118         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
29119         .literal16.
29120         * config/darwin.c (machopic_select_rtx_section): Use
29121         HAVE_GAS_LITERAL16.
29122         (darwin_mergeable_constant_section): Likewise.
29123         * configure: Regenerate.
29124         * config.in: Regenerate.
29125
29126 2007-01-01  Jan Hubicka  <jh@suse.cz>
29127             Andrew Pinski  <pinskia@gmail.com>
29128
29129         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
29130         before starting IPA passes.