OSDN Git Service

e098eb2671c438762c8cb9d310f35abfb58597db
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-03-22  Richard Guenther  <rguenther@suse.de>
2
3         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
4         For PHI nodes verify the address is invariant.
5         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6         (get_symbol_constant_value): Use is_gimple_min_invariant.
7         (maybe_fold_stmt_indirect): Likewise.
8
9 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10
11         PR rtl-optimization/33927
12         * Makefile.in (dse.o): Depend on $(TM_P_H).
13         * expr.h (extract_low_bits): Declare.
14         * expmed.c (extract_low_bits): New function.
15         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
16         * dse.c: Include tm_p.h.
17         (find_shift_sequence): Remove the read_reg argument and return the
18         read value.  Emit the instructions instead of returning them.
19         Iterate on new_mode rather than calculating it each time.
20         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
21         source to NEW_MODE and extract_low_bits to convert the shifted
22         value to READ_MODE.
23         (replace_read): Allow the load and store to have different mode
24         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
25         or extraction instructions before trying the replacement.  Update
26         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
27
28 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
29
30         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
31         to their natural alignment to avoid store forwarding stalls.
32
33 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
34
35         PR target/27946
36         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
37         encouraging but not allowing gprs for input;
38         change the input constraint to !f#r.
39         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
40         gprs for output;
41         change the output constraint to !f#r.
42
43 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
44
45         PR target/13958
46         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
47         corresponding post-reload splitters.
48         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
49         when x87 FP math is selected.
50         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
51         New function prototype.
52         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
53         unreachable function to ease macroization of insn patterns.
54
55 2008-03-21  Martin Jambor  <mjambor@suse.cz>
56
57         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
58         reference dumps if ddr is NULL or dependence is unknown.
59
60 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
61
62         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
63         unsigned extension into account.
64         (ATOMIC_COMPARE_AND_SWAP): Likewise.
65         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
66         Do computations on a scratch register.
67
68 2008-03-21  Richard Guenther  <rguenther@suse.de>
69
70         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
71         Use is_gimple_min_invariant instead of TREE_INVARIANT.
72         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
73         * tree-ssa-dom.c (record_equality): Likewise.
74         * tree-inline.c (copy_body_r): Likewise.
75         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
76         TREE_INVARIANT.
77
78 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
79
80         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
81         as 'delete_unused' argument.
82
83 2008-03-20  Richard Guenther  <rguenther@suse.de>
84
85         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
86         special casing of constant qualifiers.
87         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
88         care about them in general.
89         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
90         regardless of their type.
91         (fold_stmt_r): Forcefully fold *& if we end up with that.
92
93 2008-03-20  Paul Brook  <paul@codesourcery.com>
94
95         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
96         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
97         linker flags.
98         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
99         definition.
100         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
101         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
102
103 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
104
105         * common.opt (Wmudflap): New option.
106         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
107         (mx_register_decls): Likewise.
108         (mudflap_finish_file): Likewise.
109         * doc/invoke.texi: Document -Wno-mudflap.
110
111 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
112
113         * c-format.c (replace_format_name_to_system_name): New.
114         (cmp_attribs): New.
115         (convert_format_name_to_system_name): New.
116         (decode_format_attr): Add use of convert_format_name_to_system_name.
117         (format_types_orig): Add gnu_ prefix to names.
118         (check_format_info_main): Special treating of \0 escaped names for
119         supporting multi-character format specifiers as I32, I64.
120         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
121         (gnu_target_overrides_format_attributes): New.
122         * c-format.h: Add structure target_ovr_attr to hold
123         system specific formatter names.
124         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
125         msformat-c.o file to c_target_objs and cxx_target_objs.
126         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
127         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
128         (TARGET_N_FORMAT_TYPES): New.
129         * config/i386/msformat-c.c: New.
130         * config/i386/t-cygming: Add build rule for msformat-c.o.
131         * doc/extend.texi: Add new format names gnu_* and ms_* and
132         further details.
133         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
134
135 2008-03-20  Ira Rosen  <irar@il.ibm.com>
136
137         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
138         optimizations turned on under -O3.
139         (ftree-vectorize): Add that the flag is turned on with -O3.
140
141 2008-03-20  Ben Elliston  <bje@au.ibm.com>
142
143         * regmove.c (try_auto_increment): Fix spelling error in comment.
144         * final.c (final_scan_insn): Likewise.
145
146 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
147
148         PR target/14552
149         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
150         allocator preferences for "y" and "r" class registers.
151         ("*mov<mode>_internal"): Ditto.
152         ("*movv2sf_internal_rex64"): Ditto.
153         ("*movv2sf_internal"): Ditto.
154
155 2008-03-19  Michael Matz  <matz@suse.de>
156
157         PR middle-end/35616
158         * calls.c (expand_call): Check overlap of arguments with call
159         address for sibcalls.
160
161 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
162
163         PR target/35496
164         * stor-layout.c (update_alignment_for_field): Set minimum alignment
165         of the underlying type of a MS bitfield layout to the natural
166         alignment of the type.
167
168 2008-03-19  Jan Hubicka  <jh@suse.cz>
169
170         PR other/35094
171         * toplev.c (decode_d_option): Handle all CPP flags.
172         * tree-vrp.c: Update tree_pass descriptors.
173         * regrename.c: Update tree_pass descriptors.
174         * fwprop.c: Update tree_pass descriptors.
175         * doc/invoke.texi: Remove documentation of dropped -d? flags.
176         * tree-into-ssa.c: Update tree_pass descriptors.
177         * tree-dump.c: Update tree_pass descriptors.
178         * tree-complex.c: Update tree_pass descriptors.
179         * tree-dump.h: Update tree_pass descriptors.
180         * see.c: Update tree_pass descriptors.
181         * cgraphbuild.c: Update tree_pass descriptors.
182         * tracer.c: Update tree_pass descriptors.
183         * tree-loop-distribution.c: Update tree_pass descriptors.
184         * cgraph.c: Update tree_pass descriptors.
185         * postreload-gcse.c: Update tree_pass descriptors.
186         * postreload.c: Update tree_pass descriptors.
187         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
188         * tree-tailcall.c: Update tree_pass descriptors.
189         * tree-pass.h (tree_opt_pass): Rename to ...
190         (opt_pass) ... this one; add "type" field and remove letter field.
191         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
192         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
193         all_lowering_passes): Update declaration.
194         * ipa-cp.c: Update tree_pass descriptors.
195         * final.c: Update tree_pass descriptors.
196         * omp-low.c: Update tree_pass descriptors.
197         * tree-ssa-dse.c: Update tree_pass descriptors.
198         * ipa-reference.c: Update tree_pass descriptors.
199         * tree-ssa-uncprop.c: Update tree_pass descriptors.
200         * auto-inc-dec.c: Update tree_pass descriptors.
201         * reorg.c: Update tree_pass descriptors.
202         * cgraphunit.c: Update tree_pass descriptors.
203         * tree-ssa-copyrename.c: Update tree_pass descriptors.
204         * tree-ssa-ccp.c: Update tree_pass descriptors.
205         * df-core.c: Update tree_pass descriptors.
206         * mode-switching.c: Update tree_pass descriptors.
207         * tree-nomudflap.c: Update tree_pass descriptors.
208         * modulo-sched.c: Update tree_pass descriptors.
209         * ipa-pure-const.c: Update tree_pass descriptors.
210         * cse.c: Update tree_pass descriptors.
211         * web.c: Update tree_pass descriptors.
212         * tree-stdarg.c: Update tree_pass descriptors.
213         * tree-ssa-math-opts.c: Update tree_pass descriptors.
214         * tree-ssa-dom.c: Update tree_pass descriptors.
215         * tree-nrv.c: Update tree_pass descriptors.
216         * tree-ssa-alias.c: Update tree_pass descriptors.
217         * loop-init.c: Update tree_pass descriptors.
218         * gimple-low.c: Update tree_pass descriptors.
219         * ipa-inline.c: Update tree_pass descriptors.
220         * tree-ssa-sink.c: Update tree_pass descriptors.
221         * global.c: Update tree_pass descriptors.
222         * ifcvt.c: Update tree_pass descriptors.
223         * jump.c: Update tree_pass descriptors.
224         * predict.c: Update tree_pass descriptors.
225         * tree-ssa-loop.c: Update tree_pass descriptors.
226         * recog.c: Update tree_pass descriptors.
227         * dse.c: Update tree_pass descriptors.
228         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
229         * tree-eh.c: Update tree_pass descriptors.
230         * regmove.c: Update tree_pass descriptors.
231         * local-alloc.c
232         * function.c: Update tree_pass descriptors.
233         * tree-vectorizer.c: Update tree_pass descriptors.
234         * gcse.c: Update tree_pass descriptors.
235         * ipa-type-escape.c: Update tree_pass descriptors.
236         * tree-if-conv.c: Update tree_pass descriptors.
237         * init-regs.c: Update tree_pass descriptors.
238         * ipa.c: Update tree_pass descriptors.
239         * tree-ssa-phiopt.c: Update tree_pass descriptors.
240         * rtl-factoring.c: Update tree_pass descriptors.
241         * lower-subreg.c: Update tree_pass descriptors.
242         * bt-load.c: Update tree_pass descriptors.
243         * tree-dfa.c: Update tree_pass descriptors.
244         * except.c: Update tree_pass descriptors.
245         * emit-rtl.c: Update tree_pass descriptors.
246         * cfgexpand.c: Update tree_pass descriptors.
247         * tree-cfgcleanup.c: Update tree_pass descriptors.
248         * cfgcleanup.c: Update tree_pass descriptors.
249         * tree-ssa-pre.c: Update tree_pass descriptors.
250         * tree-sra.c: Update tree_pass descriptors.
251         * tree-mudflap.c: Update tree_pass descriptors.
252         * tree-ssa-copy.c: Update tree_pass descriptors.
253         * cfglayout.c: Update tree_pass descriptors.
254         * tree-ssa-forwprop.c: Update tree_pass descriptors.
255         * tree-ssa-dce.c: Update tree_pass descriptors.
256         * tree-ssa.c: Update tree_pass descriptors.
257         * regclass.c: Update tree_pass descriptors.
258         * integrate.c: Update tree_pass descriptors.
259         * tree-optimize.c: Update tree_pass descriptors.
260         * tree-ssa-phiprop.c: Update tree_pass descriptors.
261         * tree-object-size.c: Update tree_pass descriptors.
262         * combine.c: Update tree_pass descriptors.
263         * tree-outof-ssa.c: Update tree_pass descriptors.
264         * bb-reorder.c: Update tree_pass descriptors.
265         * stack-ptr-mod.c: Update tree_pass descriptors.
266         * var-tracking.c: Update tree_pass descriptors.
267         * tree-profile.c: Update tree_pass descriptors.
268         * tree-vect-generic.c: Update tree_pass descriptors.
269         * reg-stack.c: Update tree_pass descriptors.
270         * sched-rgn.c: Update tree_pass descriptors.
271         * tree-ssa-structalias.c: Update tree_pass descriptors.
272         * tree-cfg.c: Update tree_pass descriptors.
273         * passes.c (current_pass): Update declaration.
274         (finish_optimization_passes): Update.
275         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
276         (register_one_dump_file, register_dump_files_1, next_pass_1):
277         Update arguments.
278         (init_optimization_passes): Update handling of new types.
279         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
280         * ipa-struct-reorg.c: Update tree_pass descriptors.
281         * tree-ssa-reassoc.c: Update tree_pass descriptors.
282         * combine-stack-adj.c: Update tree_pass descriptors.
283         * cfgrtl.c: Update tree_pass descriptors.
284         * dce.c: Update tree_pass descriptors.
285         * tree-ssanames.c: Update tree_pass descriptors.
286
287 2008-03-19  Richard Guenther  <rguenther@suse.de>
288
289         PR middle-end/35609
290         * tree-ssa.c (always_executed): New global flag.
291         (warn_uninitialized_var): If !always_executed warn with "maybe"
292         instead of "is".
293         (execute_early_warn_uninitialized): Compute post-dominators.
294         Initialize always_executed before processing each basic block.
295
296 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
297
298         PR target/35504
299         * config/i386/i386.c (x86_this_parameter): Calculate correct location
300         of "this" pointer when "regparm = N" or "fastcall" is in effect.
301
302 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
303
304         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
305
306 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
307
308         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
309         is true.
310         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
311         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
312         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
313         target after ignore has been set, and move there also the commputation
314         of subtarget and original_target.
315         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
316         (LANG_HOOKS_INITIALIZER): Remove it.
317         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
318
319 2008-03-18  Richard Guenther  <rguenther@suse.de>
320
321         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
322         found an expression with constants, note that in the VN for the lhs.
323         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
324         fold them to constants if possible.  Run cleanup_cfg if done so.
325         (execute_pre): Return todo.
326         (do_pre): Likewise.
327         (execute_fre): Likewise.
328         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
329         of constants.
330         (get_prop_source_stmt): Look through pointer conversions.
331
332 2008-03-18  Jan Hubicka  <jh@suse.cz>
333
334         * tree-pretty-print.c: Include predict.h.
335         (dump_generic_node): Dump predictor.
336         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
337         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
338         * gimple-low.c (lower_stmt): Likewise.
339         * expr.c (expand_expr_real): Likewise.
340         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
341         them.
342         (build_predict_expr, build_predict_expr): New.
343         * predict.h (predictor_name, build_predict_expr): Update.
344         * c-typeck.c (c_finish_bc_stmt): Add prediction.
345         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
346         * predict.def (PRED_CONTINUE): Update hitrate.
347         * tree.def (PREDICT_EXPR): Define.
348         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
349         do not handle BIND_EXPR.
350         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
351         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
352         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
353         operands.
354
355 2008-03-18  Michael Matz  <matz@suse.de>
356
357         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
358
359 2008-03-18  Richard Guenther  <rguenther@suse.de>
360
361         * tree-gimple.h (is_gimple_invariant_address): Declare.
362         (is_gimple_constant): Likewise.
363         * tree-gimple.c (is_gimple_constant): New function.
364         (is_gimple_invariant_address): Likewise.
365         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
366         and is_gimple_invariant_address.
367         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
368         previous change.
369         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
370         an addressable base.
371
372 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
373
374         PR middle-end/35611
375         * gimplify.c (gimplify_expr): Gimplify second operand of
376         OMP_ATOMIC_LOAD.
377
378 2008-03-17  Richard Guenther  <rguenther@suse.de>
379
380         PR tree-optimization/19637
381         * fold-const.c (fold_unary): Remove restrictions of removing
382         intermediate pointer-conversions (P2)(P1)P0.
383         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
384         conversion to void pointer.
385         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
386
387 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
388
389         PR debug/31510
390         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
391         emulated thread local variables.
392
393 2008-03-16  Richard Guenther  <rguenther@suse.de>
394
395         PR middle-end/35607
396         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
397         expand TREE_INVARIANT operations that are not gimple invariant.
398
399 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
400
401         * doc/extend.texi (Alignment): Say that the ABI controls
402         the __alignof__ for non-strict-alignment targets rather
403         than being a recommendation.
404
405 2008-03-15  Paul Brook  <paul@codesourcery.com>
406
407         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
408         annotations.
409         (arm_output_fn_unwind): Mark functions that can not be unwound.
410
411 2008-03-15  Paul Brook  <paul@codesourcery.com>
412
413         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
414         extension instructions.
415
416 2008-03-15  Richard Guenther  <rguenther@suse.de>
417
418         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
419         and fold constant aggregate refs.
420         (fold_const_aggregate_ref): Handle string constants
421         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
422         (evaluate_stmt): Simplify now that ccp_fold folds constant
423         aggregate refs.
424
425 2008-03-15  Paul Brook  <paul@codesourcery.com>
426
427         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
428         (extzv): Use gen_extzv_t2.
429         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
430
431 2008-03-15  Richard Guenther  <rguenther@suse.de>
432
433         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
434         (fold_const_aggregate_ref): Likewise.
435         (get_value): Return NULL if we don't have any values.
436         (ccp_finalize): Set const_val to NULL after freeing it.
437         * tree-flow.h (get_symbol_constant_value): Declare.
438         (fold_const_aggregate_ref): Likewise.
439         * tree-ssa-sccvn.c (try_to_simplify): Use them.
440
441 2008-03-15  Richard Guenther  <rguenther@suse.de>
442
443         PR middle-end/35593
444         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
445         to not produce negative array indices if not allowed.  Add
446         parameter to indicate that.
447         (maybe_fold_offset_to_component_ref): Allow negative array
448         indices only for the first member of a structure.
449         (maybe_fold_offset_to_reference): Allow negative array indices.
450         (maybe_fold_stmt_addition): Likewise.
451
452 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
453             Anatoly Sokolov <aesok@post.ru>
454
455         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
456         (avr_arch): Add ARCH_AVR6.
457         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
458         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
459         instead of fixed value 2.
460         (print_operand_address): Use gs() asm specifier instead of pm().
461         (avr_assemble_integer): (Ditto.).
462         (avr_output_addr_vec_elt): (Ditto.).
463         (print_operand): Handle "!" code.
464         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
465         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
466         (AVR_HAVE_EIJMP_EICALL): Define.
467         (AVR_3_BYTE_PC): Redefine.
468         (AVR_2_BYTE_PC): (Ditto.).
469         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
470         (LINK_SPEC): Add atmega2560 and atmega2561.
471         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
472         (crtm2561.o).
473         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
474         for 3 byte PC devices.
475         (call_value_insn): (Ditto.).
476         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
477         (indirect_jump): Use only for for 2 byte PC devices.
478         (*tablejump): (Ditto.).
479         (*indirect_jump_avr6): Add insn.
480         (*tablejump_rjmp): Don't use for 3 byte PC devices.
481         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
482         instead of ijmp for 3 byte PC devices.
483         (__tablejump2__): (Ditto.).
484         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
485         (MULITLIB_DIRNAMES): (Ditto.). 
486         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
487
488 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
489
490         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
491         "sse2_umulsidi3".  Use V1DI mode for operand 0.
492         ("mmx_psadbw"): Use V1DI mode for operand 0.
493         * config/i386/i386-modes.def (V1SI): New vector mode.
494         * config/i386/i386.c (struct builtin_description)
495         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
496         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
497         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
498         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
499         v1di_ftype_v8qi_v8qi type.
500         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
501
502         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
503         __builtin_ia32_pmuludq]: Fix the mode of return value.
504
505 2008-03-15  Richard Guenther  <rguenther@suse.de>
506
507         PR middle-end/35595
508         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
509         being a PHI_NODE.
510
511 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
512         
513         * doc/invoke.texi (Option Summary, Xtensa Options): Document
514         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
515         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
516         unless TARGET_SERIALIZE_VOLATILE is enabled.
517         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
518         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
519         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
520
521 2008-03-14  Richard Guenther  <rguenther@suse.de>
522
523         PR tree-optimization/34172
524         * tree-flow.h (refs_may_alias_p): Declare.
525         (get_single_def_stmt): Likewise.
526         (get_single_def_stmt_from_phi): Likewise.
527         (get_single_def_stmt_with_phi): Likewise.
528         * tree-dfa.c (refs_may_alias_p): New function.
529         (get_single_def_stmt): Likewise.
530         (get_single_def_stmt_from_phi): Likewise.
531         (get_single_def_stmt_with_phi): Likewise.
532         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
533         (vn_reference_lookup_1): New helper function.
534         (vn_reference_lookup): Walk the virtual use-def chain to
535         continue searching for a match if the def does not alias the
536         reference we are looking for.
537
538 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
539
540         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
541         archive and Perzl.  Update The Written Word listing.
542
543 2008-03-14  Richard Guenther  <rguenther@suse.de>
544
545         PR tree-optimization/34043
546         PR tree-optimization/33989
547         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
548         when doing FRE.
549         (bitmap_find_leader): Use extra argument to verify dominance
550         relationship inside a basic-block.
551         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
552         (find_leader_in_sets): Adjust.
553         (create_component_ref_by_pieces): Take extra argument for
554         dominance check, handle lookup failures.
555         (find_or_generate_expression): Likewise.
556         (create_expression_by_pieces): Likewise.
557         (insert_into_preds_of_block): Adjust.
558         (create_value_expr_from): If asked for, verify all operands
559         are in the blocks AVAIL_OUT set.
560         (make_values_for_stmt): Check for SSA_NAMEs that are life
561         over an abnormal edge.
562         (compute_avail): Remove such check.
563         (do_SCCVN_insertion): New function.
564         (eliminate): If we do not find a leader suitable for replacement
565         insert a replacement expression from SCCVN if available.
566         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
567         (struct vn_ssa_aux): Add needs_insertion flag.
568         * tree-ssa-sccvn.c (may_insert): New global flag.
569         (copy_reference_ops_from_ref): Value-number union member access
570         based on its size, not type and member if insertion is allowed.
571         (visit_reference_op_load): For a weak match from union type
572         punning lookup a view-converted value and insert a SSA_NAME
573         for that value if that is not found.
574         (visit_use): Make dumps shorter.  Do not disallow value numbering
575         SSA_NAMEs that are life over an abnormal edge to constants.
576         (free_scc_vn): Release inserted SSA_NAMEs.
577         (run_scc_vn): New flag to specify whether insertion is allowed.
578         Process SSA_NAMEs in forward order.
579         * tree-ssa-loop-im.c (for_each_index): Handle invariant
580         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
581         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
582         pointer type to/from integral types that do not change the
583         precision to regular conversions.
584
585 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
586
587         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
588         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
589         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
590         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
591         input arguments and the mode of return value.  Built-in functions
592         that operate on whole 64-bit MMX register now use V1DI mode.
593
594 2008-03-13  Alon Dayan  <alond@il.ibm.com>
595             Olga Golovanevsky  <olga@il.ibm.com>
596
597         PR tree-optimization/35041
598         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
599         to locate the right position in a statement.
600
601 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
602
603         PR target/34000
604         PR target/35553
605         * config/i386/xmmintrin.h:  Change all static inline functions to
606         extern inline and add __gnu_inline__ attribute.
607         * config/i386/bmintrin.h: Ditto.
608         * config/i386/smmintrin.h: Ditto.
609         * config/i386/tmmintrin.h: Ditto.
610         * config/i386/mmintrin-common.h: Ditto.
611         * config/i386/ammintrin.h: Ditto.
612         * config/i386/emmintrin.h: Ditto.
613         * config/i386/pmmintrin.h: Ditto.
614         * config/i386/mmintrin.h: Ditto.
615         * config/i386/mm3dnow.h: Ditto.
616
617 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
618
619         PR middle-end/35185
620         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
621         (lower_omp_2): New function.
622         (lower_omp_1, lower_omp): Rewritten.
623
624 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
625
626         PR 35054
627         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
628         with the phrase "Microsoft Windows compilers".
629         (Push/Pop Macro Pragmas): New subsection. Document
630         #pragma push_macro and pragma pop_macro.
631
632 2008-03-12  Paul Brook  <paul@codesourcery.com>
633
634         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
635
636 2008-03-12  Paul Brook  <paul@codesourcery.com>
637
638         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
639         (thumb2_alusi3_short): Exclude PLUS and MINUS.
640         (thumb2_addsi_shortim): Rename ...
641         (thumb2_addsi_short): ... to this.  Allow register operands.
642         (thumb2_subsi_short): New pattern.
643         (thumb2_one_cmplsi2_short,
644         thumb2_negsi2_short): New patterns and peepholes.
645
646 2008-03-12  Paul Brook  <paul@codesourcery.com>
647
648         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
649
650 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
651
652         * config/i386/i386.md (int_cond): New code iterator.
653         (fp_cond): Ditto.
654         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
655         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
656         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
657         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
658         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
659         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
660         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
661         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
662
663 2008-03-12  Paul Brook  <paul@codesourcery.com>
664
665         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
666         instead of {arm,thumb}_compute_save_reg_mask.
667         (output_return_instruction): Ditto.
668         (thumb_unexpanded_epilogue): Ditto.
669         (thumb1_expand_prologue): Ditto.
670         (thumb1_output_function_prologue): Ditto.
671         (arm_set_return_address): Ditto.
672         (thumb_set_return_address): Ditto.
673         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
674         regs to achieve stack alignment.
675         (thumb1_compute_save_reg_mask): Fix compiler warning.
676         (arm_output_epilogue): Use offsets->saved_regs_mask.
677         Adjust stack pointer by poping call clobered registers.
678         (arm_expand_prologue): Use offsets->saved_regs_mask.
679         Adjust stack pointer by pushing extra registers.
680         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
681
682 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
683
684         PR tree-opt/35422
685         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
686         conversion to the operands of a multiplication.
687
688 2008-03-12  Richard Guenther  <rguenther@suse.de>
689
690         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
691         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
692         * timevar.def (TV_TREE_PHIPROP): Add.
693         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
694         pass description.  Use TV_TREE_PHIPROP.
695         * tree-ssa-forwprop.c: Remove phiprop code.
696
697 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
698
699         PR middle-end/35549
700         * omp-low.c (maybe_lookup_decl): Constify first argument.
701         (use_pointer_for_field): Change last argument from bool to
702         omp_context *.  Disallow shared copy-in/out in nested
703         parallel if decl is shared in outer parallel too.
704         (build_outer_var_ref, scan_sharing_clauses,
705         lower_rec_input_clauses, lower_copyprivate_clauses,
706         lower_send_clauses, lower_send_shared_vars): Adjust callers.
707
708 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
709             Ira Rosen  <irar@il.ibm.com>
710
711         * tree-vectorizer.c (free_stmt_vec_info): New function.
712         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
713         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
714         * tree-vectorizer.h (free_stmt_vec_info): Declare.
715         * tree-vect-transform.c (vectorizable_conversion): Free
716         vec_oprnds0 if it was allocated.
717         (vect_permute_store_chain): Remove unused VECs.
718         (vectorizable_store): Free VECs that are allocated in the..
719         function.
720         (vect_transform_strided_load, vectorizable_load): Likewise.
721         (vect_remove_stores): Simplify the code.
722         (vect_transform_loop): Move code to vect_remove_stores().
723         Call vect_remove_stores() and free_stmt_vec_info().
724
725 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
726
727         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
728         TARGET_HPUX.  Revise comment.
729         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
730         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
731         Use sr4 variant of `be' instruction when not generating PIC code.
732         (attr_length_call): Adjust for above change.
733
734 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
735
736         * ipa-reference.c (static_execute): Remove module_statics_const and
737         associated setting code.
738
739 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
740
741         PR target/35540
742         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
743         predicate for operand 1.
744         (paritysi2_cmp): Use register_operand predicate for operand 2.
745         Use earlyclobber modifier for operand 1.  Remove support for
746         memory operands.
747         (paritydi2_cmp): Use register_operand predicate for operand 3.
748         Use earlyclobber modifier for operand 1.  Remove support for
749         memory operands.
750
751 2008-03-11  Paul Brook  <paul@codesourcery.com>
752             Vladimir Prus  <vladimir@codesourcery.com>
753
754         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
755         (arm_compute_save_reg0_reg12_mask): Always
756         check if register 11 must be saved.  Always safe hard frame pointer
757         when frame_pointer_needeed.
758         (arm_compute_save_reg_mask): Save IP and PC
759         only with apcs frames.
760         (arm_output_epilogue): Adjust Thumb2 codepath to
761         be also invoked and work for ARM non-apcs frames.
762         (arm_expand_prologue): Don't bother saving IP
763         for non-apcs frame, since it's not clobbered by
764         prologue code.  Implement non-apcs frame
765         layout.
766
767 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
768
769         PR rtl-optimization/35281
770         * expr.c (convert_move): Use a new pseudo for the intermediate
771         from_mode->word_mode result.
772
773 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
774
775         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
776         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
777         * toplev.c (compile_file): Don't call it.
778
779 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
780
781         PR middle-end/35526
782         * expr.c (store_expr): Call emit_block_move if the mode
783         of "temp" RTX is BLKmode.
784
785 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
786             Richard Guenther  <rguenther@suse.de>
787
788         PR tree-optimization/31358
789         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
790         the step with a NULL_TREE.
791         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
792         to sizetype if type is a pointer type.
793         (add_candidate_1): Don't convert the base and step to
794         the generic type if the orginal type is a pointer type.
795         (add_iv_value_candidates): Use sizetype for the step
796         if type is a pointer type.
797         (cand_value_at): Likewise.
798         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
799         for pointer types.
800         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
801         Don't convert the tem affine to the type.
802         (add_elt_to_tree): Use sizetype for the step if a pointer.
803         Use POINTER_PLUS_EXPR for pointers.
804         (aff_combination_to_tree): Use sizetype for the step if a
805         pointer.
806
807 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
808
809         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
810         Remove commutativity hint.
811
812 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
813
814         PR c/35438
815         PR c/35439
816         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
817         errorneous type.  Check that v is a VAR_DECL.
818
819         PR middle-end/35099
820         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
821
822 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
823
824         PR tree-optimization/35494
825         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
826         may be overriden at link and run time.
827
828 2008-03-10  Richard Guenther  <rguenther@suse.de>
829
830         PR tree-optimization/34677
831         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
832         (poolify_tree): Likewise.
833         (modify_expr_template): Likewise.
834         (poolify_modify_stmt): Likewise.
835         (insert_fake_stores): Handle all component-ref style stores
836         in addition to INDIRECT_REF.  Also handle complex types.
837         Do not poolify the inserted load.
838         (realify_fake_stores): Do not rebuild the tree but only
839         make it a SSA_NAME copy.
840         (init_pre): Remove initialzation of modify_expr_template.
841         Do not allocate modify_expr_node_pool.
842         (fini_pre): Do not free modify_expr_node_pool.
843
844 2008-03-10  Paul Brook  <paul@codesourcery.com>
845
846         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
847         to avoid conflicts.
848
849 2008-03-10  Paul Brook  <paul@codesourcery.com>
850             Mark Shinwell  <shinwell@codesourcery.com>
851
852         * config/arm/cortex-r4.md: New.
853         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
854         insn attributes.
855         * config/arm/arm.md: Include cortex-r4.md.
856         (insn): Add smmls, sdiv and udiv values.
857         (generic_sched): Don't use generic scheduling for Cortex-R4.
858         (arm_issue_rate): New function.
859         (TARGET_SCHED_ISSUE_RATE): Define.
860
861 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
862
863         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
864
865 2008-03-10  Richard Guenther  <rguenther@suse.de>
866
867         * tree-ssa-pre.c (get_sccvn_value): Simplify.
868         (compute_avail): Do not add stmt uses to AVAIL_OUT.
869
870 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
871
872         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
873         Set default to true.
874
875 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
876
877         * c.opt (Wsynth): Deprecate.
878         * doc/invoke.texi (Option Summary, Warning Options): Document
879         -Wno-format-contains-nul.
880
881 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
882
883         PR target/35496
884         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
885         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
886
887 2008-03-09  Ira Rosen  <irar@il.ibm.com>
888
889         * config/rs6000/rs6000.c (builtin_description): Rename vector
890         left shift operations.
891         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
892         (altivec_vsl<VI_char>): Rename to ...
893         (ashl<mode>3): ... new name.
894         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
895         gen_ashlv4si3.
896         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
897
898 2008-03-08  Richard Guenther  <rguenther@suse.de>
899
900         * coverage.h (tree_coverage_counter_addr): Declare.
901         * coverage.c (tree_coverage_counter_addr): New function.
902         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
903         before using again.
904         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
905         (tree_gen_one_value_profiler): Likewise.
906         (tree_gen_ic_profiler): Likewise.
907         (tree_gen_average_profiler): Likewise.
908         (tree_gen_ior_profiler): Likewise.
909
910 2008-03-08  Richard Guenther  <rguenther@suse.de>
911
912         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
913         (vn_binary_op_insert): Likewise.
914         (vn_unary_op_lookup): Likewise.
915         (vn_unary_op_insert): Likewise.
916         (vn_nary_op_lookup): Declare.
917         (vn_nary_op_insert): Likewise.
918         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
919         and binary hashes, use a single obstack for unary_op_pool
920         and binary_op_pool.
921         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
922         a single struct vn_nary_op_s.  Store tree code length and
923         a variable number of operands.
924         (struct vn_reference_op_struct): Remove unused op2.
925         (vn_reference_op_eq): Do not compare op2.
926         (vn_reference_op_compute_hash): Do not compute hash of op2.
927         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
928         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
929         with vn_nary_op_compute_hash.
930         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
931         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
932         vn_nary_op_lookup.
933         (vn_unary_op_insert, vn_binary_op_insert): Replace with
934         vn_nary_op_insert.
935         (visit_unary_op): Call nary functions.
936         (visit_binary_op): Likewise.
937         (process_scc): Adjust for struct vn_tables_s changes.
938         (allocate_vn_table): Likewise.
939         (free_vn_table): Likewise.
940         * tree-vn.c (vn_add): Call nary functions.
941         (vn_lookup): Likewise.
942
943 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
944
945         PR target/35498
946         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
947         wdst back after sync_compare_and_swapqhi_internal.
948
949 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
950
951         PR target/22152
952         * config/i386/i386-modes.def (V1DI): New vector mode.
953         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
954         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
955         (MMXMODE248): Ditto.
956         (MMXMODE): Add V1DI mode.
957         (mmxvecsize): Change DI mode to V1DI mode.
958         ("mov<mode>): Use MMXMODEI8 mode iterator.
959         ("*mov<mode>_internal_rex64"): Ditto.
960         ("*mov<mode>_internal"): Ditto.
961         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
962         ("mmx_sub<mode>3"): Ditto.
963         ("mmx_adddi3"): Remove insn pattern.
964         ("mmx_subdi3"): Ditto.
965         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
966         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
967         ("mmx_ashl<mode>3"): Ditto.
968         ("mmx_lshrdi3"): Remove insn pattern.
969         ("mmx_ashldi3"): Ditto.
970         * config/i386/i386.c (classify_argument): Handle V1DImode.
971         (function_arg_advance_32): Ditto.
972         (function_arg_32): Ditto.
973         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
974         mmx_addv1di3 insn pattern.
975         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
976         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
977         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
978         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
979         Remove definitions of built-in functions.
980         (V1DI_type_node): New node.
981         (v1di_ftype_v1di_int): Ditto.
982         (v1di_ftype_v1di_v1di): Ditto.
983         (v2si_ftype_v2si_si): Ditto.
984         (v4hi_ftype_v4hi_di): Remove node.
985         (v2si_ftype_v2si_di): Ditto.
986         (ix86_init_mmx_sse_builtins): Handle V1DImode.
987         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
988         Redefine builtins using def_builtin_const with *_ftype_*_int node.
989         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
990         Add new builtins using def_builtin_const.
991         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
992         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
993         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
994         * config/i386/mmintrin.h (__v1di): New typedef.
995         (_mm_add_si64): Cast arguments to __v1di type.
996         (_mm_sub_si64): Ditto.
997         (_mm_sll_pi16): Cast __count to __v4hi type.
998         (_mm_sll_pi32): Cast __count to __v2si type.
999         (_mm_sll_si64): Cast arguments to __v1di type.
1000         (_mm_srl_pi16): Cast __count to __v4hi type.
1001         (_mm_srl_pi32): Cast __count to __v2si type.
1002         (_mm_srl_si64): Cast arguments to __v1di type.
1003         (_mm_sra_pi16): Cast __count to __v4hi type.
1004         (_mm_sra_pi32): Cast __count to __v2si type.
1005         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
1006         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
1007         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
1008         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
1009         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
1010         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
1011         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
1012         (_mm_srai_pi32): Use __builtin_ia32_psradi.
1013         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
1014         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1015         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1016         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
1017
1018 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
1021
1022 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
1023
1024         PR target/35373
1025         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
1026         reg+const addressing for Altivec modes.  Don't generate reg+reg
1027         addressing for TFmode or TDmode quantities.
1028
1029 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
1030
1031         * c-common.c (vector_types_convertible_p): Call langhook
1032         instead of comptypes.
1033
1034 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1035
1036         PR tree-opt/35402
1037         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
1038         integral and scalar float variables which have a
1039         NULL DECL_INITIAL.
1040
1041 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
1042
1043         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
1044         dwarf_register_span hook when emitting unwind information for
1045         register-to-memory saves.
1046         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
1047         (rs6000_frame_related): Remove call to spe_synthesize_frame.
1048
1049 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1050
1051         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
1052         for the same VAR_DECL.
1053
1054 2008-03-06  Tom Tromey  <tromey@redhat.com>
1055
1056         * treelang: Delete.
1057         * doc/standards.texi (Standards): Don't mention treelang.
1058         * doc/invoke.texi (Overall Options): Don't mention treelang.
1059         * doc/install.texi (Prerequisites): Don't mention bison or
1060         treelang.
1061         (Configuration): Don't mention treelang.
1062         (Building): Likewise.
1063         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
1064
1065 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
1066
1067         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
1068         word-extractions out of a multi-word object.
1069
1070 2008-03-06  Richard Guenther  <rguenther@suse.de>
1071
1072         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
1073         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
1074         result type and precision.
1075         * expr.c (get_inner_reference): Set unsignedp based on the result
1076         type of BIT_FIELD_REF.
1077         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
1078         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
1079         (try_instantiate_multiple_fields): Likewise.  Use the correct type
1080         for BIT_FIELD_REF.
1081         (sra_build_assignment): Likewise.
1082         (sra_build_elt_assignment): Likewise.
1083         (sra_explode_bitfield_assignment): Likewise.
1084         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
1085         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
1086         set BIT_FIELD_REF_UNSIGNED.
1087         (vectorizable_load): Likewise.
1088
1089 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1090
1091         * cse.c (cse_extended_basic_block): Invalidate artificial defs
1092         at bb start.
1093
1094 2008-03-06  Richard Guenther  <rguenther@suse.de>
1095
1096         * alias.c (struct alias_set_entry): Move has_zero_child field
1097         to pack with alias_set.
1098
1099 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1102         32bit host.
1103
1104 2008-03-05  Ian Lance Taylor  <iant@google.com>
1105
1106         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
1107
1108 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
1109
1110         * fwprop.c (update_df): Support width and offset parameters of
1111         df_ref_create.
1112         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
1113         global_conflicts): Change DF_REF_EXTRACT to either
1114         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1115         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1116         * df-scan.c (df_ref_record, df_defs_record,
1117         df_ref_create_structure, df_def_record_1, df_uses_record,
1118         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
1119         df_bb_refs_collect, df_entry_block_defs_collect,
1120         df_exit_block_uses_collect): Support new width and offset fields.
1121         (ref_extract_pool): New storage pool.
1122         (df_free_ref): New function.
1123         (df_reg_chain_unlink, df_free_collection_rec,
1124         df_sort_and_compress_refs): Call df_free_ref.
1125         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
1126         of df_ref_extract.
1127         (df_ref_create_structure): Allocate df_ref_extract if offset and
1128         width fields are used.
1129         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
1130         (df_uses_record): Get offset and width from ZERO_EXTRACT 
1131         and SIGN_EXTRACT.
1132         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
1133         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1134         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1135         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
1136         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
1137         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
1138         (df_ref_extract): New structure.
1139         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
1140         (df_ref_create): Add width and offset parameters.
1141         
1142 2008-03-05  Richard Guenther  <rguenther@suse.de>
1143
1144         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1145         Use ranges_overlap_p.
1146         (offset_overlaps_with_access): Rename
1147         to ranges_overlap_p and move ...
1148         * tree-flow-inline.h (ranges_overlap_p): ... here.
1149
1150         * tree.h (get_inner_reference, handled_component_p): Update
1151         comments.
1152
1153         * tree.h (record_component_aliases, get_alias_set,
1154         alias_sets_conflict_p, alias_sets_must_conflict_p,
1155         objects_must_conflict_p): Move declarations ...
1156         * alias.h (record_component_aliases, get_alias_set,
1157         alias_sets_conflict_p, alias_sets_must_conflict_p,
1158         objects_must_conflict_p): ... here.
1159         Include coretypes.h.
1160         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
1161
1162 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
1163
1164         * cfg.c: Include tree-flow.h.
1165         (remove_edge_raw): Call redirect_edge_var_map_clear.
1166         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
1167         * tree-flow-inline.h (redirect_edge_var_map_def): New.
1168         (redirect_edge_var_map_result): New.
1169         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
1170         PENDING_STMT use with redirect_edge_var_map_*.
1171         * tree-ssa.c (edge_var_maps): New definition.
1172         (redirect_edge_var_map_add): New.
1173         (redirect_edge_var_map_clear): New.
1174         (redirect_edge_var_map_dup): New.
1175         (redirect_edge_var_map_vector): New.
1176         (redirect_edge_var_map_destroy): New.
1177         (ssa_redirect_edge): Replace PENDING_STMT use with
1178         redirect_edge_var_map_*.
1179         (flush_pending_stmts): Same.
1180         (delete_tree_ssa): Destroy edge var map.
1181         * tree-flow.h (struct _edge_var_map): New.
1182         Define edge_var_map vector type.
1183         Declare redirect_edge_var_map_* prototypes.
1184         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
1185         * tree-cfg.c (reinstall_phi_args): Replace
1186         PENDING_STMT use with redirect_edge_var_map_*.
1187
1188 2008-03-05  Richard Guenther  <rguenther@suse.de>
1189
1190         PR tree-optimization/35472
1191         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
1192         whose single use_stmt has a overlapping set of loaded and
1193         stored symbols as that use_stmt might be a noop assignment then.
1194
1195 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
1196
1197         * gthr-rtems.h: Implement __gthread_mutex_destroy.
1198
1199 2008-03-05  Richard Guenther  <rguenther@suse.de>
1200
1201         PR c++/35336
1202         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
1203         should be constants.
1204         * tree-cfg.c (verify_expr): Verify it.
1205         * fold-const.c (fold_truthop): Remove code generating
1206         BIT_FIELD_REFs of structure bases.
1207         (fold_binary): Likewise.
1208         (fold_ternary): Position and size of BIT_FIELD_REFs are
1209         always host integers.
1210         (make_bit_field_ref): Remove.
1211         (optimize_bit_field_compare): Remove.
1212         (all_ones_mask_p): Remove.
1213
1214 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
1215
1216         PR gcc/33009
1217         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
1218         (split_block_and_df_analyze): New. Split basic block and rebuild
1219         dataflow.
1220         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
1221         SPLIT_BLOCK.
1222         (split_pattern_seq): Likewise.
1223         (erase_matching_seqs): Likewise.
1224         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
1225
1226 2008-03-04  Geoff Keating  <geoffk@apple.com>
1227
1228         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
1229         declaration and code.
1230         (tree_invalid_nonnegative_warnv_p): Likewise.
1231
1232 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
1233
1234         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
1235         examples.  Truncate option-names then causing overfull hbox.
1236
1237 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1238
1239         PR target/35222
1240         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
1241         on hpux10.
1242         * configure: Rebuilt.
1243
1244 2008-03-04  Rafael Espindola  <espindola@google.com>
1245
1246         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
1247         (tree_unary_nonnegative_warnv_p): New.
1248         (tree_binary_nonnegative_warnv_p): New.
1249         (tree_single_nonnegative_warnv_p): New.
1250         (tree_invalid_nonnegative_warnv_p): New.
1251         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
1252
1253 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1254
1255         PR 28322
1256         * opts.c (handle_option): Postpone 'unknown option' errors only for
1257         warning options.
1258
1259 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
1260
1261         PR target/35453
1262         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
1263         (_SIDD_XXX): This.
1264
1265 2008-03-04  Rafael Espindola  <espindola@google.com>
1266
1267         * fold-const.c (tree_unary_nonzero_warnv_p): New.
1268         (tree_binary_nonzero_warnv_p): New.
1269         (tree_single_nonzero_warnv_p): New.
1270         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
1271
1272 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
1273
1274         PR middle-end/35456
1275         * fold-const.c (fold_cond_expr_with_comparison): Prevent
1276         transformations for modes that have signed zeros.
1277         * ifcvt.c (noce_try_abs): Ditto.
1278
1279 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
1280
1281         * config/i386/i386.c (override_options): Force
1282         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
1283
1284 2008-03-04  Jan Hubicka  <jh@suse.cz>
1285
1286         PR c++/35262
1287         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
1288         in last commit.
1289
1290 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1291
1292         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
1293         label to probe the stack.
1294
1295 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
1296
1297         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
1298         (__gthr_win32_mutex_destroy): Declare.
1299         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
1300         __gthr_win32_mutex_destroy.
1301         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
1302
1303 2008-03-03  Jan Hubicka  <jh@suse.cz>
1304
1305         PR c++/35262
1306         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
1307         aggressive on inlining cold calls.
1308
1309 2008-03-03  Richard Guenther  <rguenther@suse.de>
1310
1311         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
1312         struct copies into the expression table.
1313         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
1314         (try_to_simplify): Likewise.
1315         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
1316         integral and pointer arguments which do not change the
1317         precision to NOP_EXPRs.
1318         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
1319         VIEW_CONVERT_EXPR case.
1320
1321 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
1322
1323         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
1324         defined in a loop at depth 0 is invariant.
1325         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
1326         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
1327         be called at loop depth 0.
1328
1329 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
1330
1331         PR driver/35420
1332         * gcc.c (process_command): Update copyright notice dates.
1333         * gcov.c (print_version): Likewise.
1334         * gcov-dump.c (print_version): Likewise.
1335         * mips-tfile.c (main): Likewise.
1336         * mips-tdump.c (main): Likewise.
1337
1338 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1339
1340         PR 24924
1341         * c-common.c (flag_permissive): Delete.
1342         (constant_expression_warnings): Check flags first.
1343         (constant_expression_error): New.
1344         * c-common.h (flag_permissive): Delete.
1345         (constant_expression_error): Declare.
1346         * flags.h (flag_permissive): Declare. Update description.
1347         * diagnostic.c (pedwarn): Update.
1348         (permerror): New.
1349         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
1350         (permissive_error_kind): New.
1351         * toplev.c (flag_permissive): Define. Update description.
1352         * toplev.h (permissive_error_kind): Declare.
1353         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
1354         (pedwarn_c90): Use pedantic_warning_kind.
1355         * c-opts.c (c_common_post_options): flag_permissive does not affect
1356         flag_pedantic_errors.
1357
1358 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
1359
1360         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
1361         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
1362         __absvsi2, __absvDI2): Use unsigned arithmetic.
1363
1364 2008-03-02  Andi Kleen  <ak@suse.de>
1365             Richard Guenther  <rguenther@suse.de>
1366
1367         * struct-equiv.c: Remove file.
1368         * cfg_cleanup.c (condjump_equiv_p): Remove.
1369         * Makefile.in (OBJS-common): Remove struct-equiv.o.
1370         (struct-equiv.o): Remove rule.
1371         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
1372         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
1373         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
1374
1375 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1376
1377         * ifcvt.c (noce_process_if_block): Try to handle only the then
1378         block if the else block exists but isn't suitable.
1379
1380 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1381
1382         PR gcc/35063
1383         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
1384         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
1385         regression from previous patch.
1386
1387 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
1388
1389         PR gcc/35063
1390         * gthr.h: Add __gthread_mutex_destroy as a function that must be
1391         implemented.
1392         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
1393         * gthr-single.h (__gthread_mutex_destroy): Likewise.
1394         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
1395         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
1396         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
1397         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
1398         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
1399         (__gthread_mutex_destroy_function): Rename to
1400         __gthread_mutex_destroy.
1401         * gthr-dce.h (__gthread_mutex_destroy): Call
1402         pthread_mutex_destroy.
1403         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
1404         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
1405         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
1406
1407 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1408
1409         * df-scan.c (df_ref_chain_change_bb): Simplify.
1410         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
1411         set_block_for_insn if there's any change.
1412         * df.h ((df_insn_change_bb): Fix prototype.
1413         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
1414         df_insn_change_bb, don't call set_block_for_insn.
1415         * emit-rtl.c (reorder_insns): Likewise.
1416         * haifa-sched.c (move_insn): Likewise.
1417
1418 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1419
1420         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
1421
1422 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
1423
1424         * tree-flow-inline.h (next_readonly_imm_use): Return
1425         NULL_USE_OPERAND_P after the end.
1426
1427 2008-03-01  Richard Guenther  <rguenther@suse.de>
1428
1429         PR tree-optimization/35411
1430         * tree-sra.c (sra_build_assignment): Split conversion to
1431         final type to a separate statement if we are not assigning
1432         to a register.
1433
1434 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1435
1436         * fold-const.c (fold_convertible_p): Correct the logic to follow
1437         that in fold_convert().
1438
1439 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
1440
1441         PR c++/35315
1442         * tree-inline.c (build_duplicate_type): When we make a
1443         duplicate type, make it unique in the canonical types system.
1444
1445 2008-02-29  Tom Tromey  <tromey@redhat.com>
1446
1447         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
1448         input_file_stack_history, input_file_stack_restored): Remove.
1449         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
1450         * input.h (struct file_stack): Remove.
1451         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
1452         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
1453         Likewise.
1454         * diagnostic.h (struct diagnostic_context) <last_module>: Change
1455         type.
1456         (diagnostic_last_module_changed): Add 'map' argument.
1457         (diagnostic_set_last_function): Likewise.
1458         * diagnostic.c (undiagnostic_report_current_module): Iterate using
1459         line map, not input_file_stack.
1460         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
1461
1462 2008-02-29  Paul Brook  <paul@codesourcery.com>
1463
1464         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
1465
1466 2008-02-29  Paul Brook  <paul@codesourcery.com>
1467
1468         * config/arm/ieee754-df.S (muldf3): Use RET macros.
1469
1470 2008-02-29  Richard Guenther  <rguenther@suse.de>
1471
1472         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
1473         vn_lookup_or_add.
1474         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
1475         value for comparing for a store match.
1476         (simplify_unary_expression): Do nothing for SSA_NAMEs.
1477         (try_to_simplify): Do not do a full-blown reference lookup.
1478
1479 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1480
1481         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
1482         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
1483
1484         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
1485
1486 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
1487
1488         * tree-loop-linear.c (try_interchange_loops): Compare memory access
1489         strides against cache sizes.
1490
1491 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1492
1493         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
1494         constant to fpul.
1495
1496 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
1497
1498         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
1499         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
1500         is smaller than the original promoted value.
1501         (simplify_subreg): If OP is a SUBREG, try to preserve its
1502         SUBREG_PROMOTED_VAR_P information.
1503
1504 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
1505
1506         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
1507         (VN_INFO_GET): Allocate new objects on the obstack.
1508         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
1509         for rpo_numbers_temp, for consistency.
1510         (free_scc_vn): Free the obstack.
1511
1512 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
1513
1514         * doc/invoke.texi: Document -ftree-loop-distribution.
1515         * tree-loop-distribution.c: New.
1516         * tree-pass.h (pass_loop_distribution): New.
1517         * graphds.h (struct graph): Add htab_t indices.
1518         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
1519         * tree-vectorizer.c (rename_variables_in_loop): Extern.
1520         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
1521         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
1522         * tree-data-ref.c (debug_data_dependence_relations): New.
1523         (dump_data_dependence_relation): Also print data references.
1524         (free_data_ref): Extern.
1525         (same_access_functions): Moved...
1526         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
1527         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
1528         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
1529         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
1530         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
1531         (stmts_from_loop): Skip LABEL_EXPR.
1532         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
1533         New.
1534         (build_rdg): Initialize rdg->indices htab.
1535         (free_rdg, stores_from_loop, ref_base_address,
1536         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
1537         have_similar_memory_accesses_1, ref_base_address_1,
1538         remove_similar_memory_refs): New.
1539         * tree-data-ref.h: Depend on tree-chrec.h.
1540         (debug_data_dependence_relations, free_data_ref): Declared.
1541         (same_access_functions): ... here.
1542         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
1543         New.
1544         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
1545         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
1546         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
1547         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
1548         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
1549         rdg_vertex_for_stmt): Declared.
1550         (struct rdg_edge): Add level.
1551         (RDGE_LEVEL): New.
1552         (free_rdg, stores_from_loop, remove_similar_memory_refs,
1553         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
1554         Declared.
1555         (rdg_has_similar_memory_accesses): New.
1556         * tree-vect-analyze.c: Remove unused static decls.
1557         * lambda.h (dependence_level): New.
1558         * common.opt (ftree-loop-distribution): New.
1559         * tree-flow.h (mark_virtual_ops_in_bb, 
1560         slpeel_tree_duplicate_loop_to_edge_cfg,
1561         rename_variables_in_loop): Declared.
1562         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
1563         (OBJS-common): Add tree-loop-distribution.o.
1564         (tree-loop-distribution.o): New rule.
1565         * tree-cfg.c (mark_virtual_ops_in_bb): New.
1566         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
1567         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
1568
1569 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
1570
1571         PR target/33963
1572         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
1573         other than structures and unions.
1574
1575 2008-02-28  Richard Guenther  <rguenther@suse.de>
1576
1577         Revert:
1578         2008-02-26  Richard Guenther  <rguenther@suse.de>
1579
1580         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1581         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1582         (lookup_decl_from_uid): Declare.
1583         (remove_decl_from_map): Likewise.
1584         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1585         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1586         (decl_for_uid_map): New global hashtable mapping DECL_UID
1587         to the decl tree.
1588         (init_ttree): Allocate it.
1589         (insert_decl_to_uid_decl_map): New helper function.
1590         (make_node_stat): Insert new decls into the map.
1591         (copy_node_stat): Likewise.
1592         (lookup_decl_from_uid): New function.
1593         (remove_decl_from_map): Likewise.
1594         (print_decl_for_uid_map_statistics): New helper.
1595         (dump_tree_statistics): Call it.
1596
1597         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1598         (referenced_var_iterator): Adjust.
1599         (FOR_EACH_REFERENCED_VAR): Adjust.
1600         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1601         (num_referenced_vars): Adjust.
1602         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1603         (first_referenced_var): Remove.
1604         (end_referenced_vars_p): Likewise.
1605         (next_referenced_var): Likewise.
1606         (referenced_var_iterator_set): New helper function.
1607         * tree-dfa.c (referenced_var_lookup): Adjust.
1608         (referenced_var_check_and_insert): Likewise.
1609         (remove_referenced_var): Likewise.
1610         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1611         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1612         (verify_call_clobbering): Likewise.
1613         (verify_memory_partitions): Likewise.
1614         (init_tree_ssa): Allocate bitmap instead of hashtable for
1615         referenced_vars.
1616         (delete_tree_ssa): Adjust.
1617         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1618         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1619         (compute_tag_properties): Likewise.
1620         (set_initial_properties): Likewise.
1621         (find_partition_for): Likewise.
1622         (update_reference_counts): Likewise.
1623         (dump_may_aliases_for): Likewise.
1624         * tree-ssa-operands.c (add_virtual_operand): Likewise.
1625         (add_call_clobber_ops): Likewise.
1626         (add_call_read_ops): Likewise.
1627         (get_asm_expr_operands): Likewise.
1628         * tree-into-ssa.c (dump_decl_set): Likewise.
1629         (update_ssa): Likewise.
1630         * tree-sra.c (scan_function): Likewise.
1631         (decide_instantiations): Likewise.
1632         (scalarize_parms): Likewise.
1633         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1634         (dsa_named_for): Likewise.
1635         * tree-ssa-structalias.c (update_alias_info): Likewise.
1636         (merge_smts_into): Likewise.
1637
1638 2008-02-27  David Daney  <ddaney@avtrex.com>
1639
1640         PR target/34409
1641         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
1642         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
1643         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
1644         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
1645         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
1646
1647 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
1648
1649         PR target/25477
1650         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
1651         (BUILT_IN_NEXTTOWARD): Remove.
1652         (BUILT_IN_NEXTTOWARDF): Ditto.
1653         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
1654         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
1655
1656 2008-02-27  Tom Tromey  <tromey@redhat.com>
1657
1658         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
1659         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
1660
1661 2008-02-27  Jan Beulich  <jbeulich@novell.com>
1662
1663         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
1664         update the respective field on newdecl.
1665
1666 2008-02-27  Revital Eres  <eres@il.ibm.com>
1667
1668         PR rtl-optimization/34999
1669         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
1670         crossing edges that ends with a call insn.
1671         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
1672         call insn and clear the EDGE_CROSSING flag of the crossing edge
1673         when fixing fallthru edges.
1674
1675 2008-02-27  Richard Guenther  <rguenther@suse.de>
1676
1677         PR middle-end/35390
1678         * fold-const.c (fold_unary): Return the correct argument,
1679         converted to the result type.
1680
1681 2008-02-27  Richard Guenther  <rguenther@suse.de>
1682
1683         PR middle-end/34971
1684         * expr.c (expand_expr_real_1): Assert on rotates that operate
1685         on partial modes.
1686         * fold-const.c (fold_binary): Use the types precision, not the
1687         bitsize of the mode if folding rotate expressions.  Build rotates
1688         only for full modes.
1689
1690 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
1691
1692         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
1693         and CPP_PRAGMA_EOL.
1694         * c-pragma.c (pragma_ns_name): New typedef.
1695         (registered_pp_pragmas): New variable.
1696         (c_pp_lookup_pragma): New function.
1697         (c_register_pragma_1): If flag_preprocess_only, do nothing
1698         for non-expanded pragmas, for expanded ones push pragma's
1699         namespace and name into registered_pp_pragmas vector.
1700         (c_invoke_pragma_handler): Register OpenMP pragmas even when
1701         flag_preprocess_only, don't register GCC pch_preprocess
1702         pragma if flag_preprocess_only.
1703         * c-opts.c (c_common_init): Call init_pragma even if
1704         flag_preprocess_only.
1705         * c-pragma.c (c_pp_lookup_pragma): New prototype.
1706         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
1707         cpp_register_pragma if flag_preprocess_only.
1708
1709 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1710
1711         PR c/28800
1712         * c-parser.c (c_parser_translation_unit): Warn for empty
1713         translation unit, not empty source file.
1714
1715 2008-02-26  Paul Brook  <paul@codesourcery.com>
1716
1717         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
1718         operand for Thumb-2.
1719         * config/arm/arm.h (reg_class): Add CORE_REGS.
1720         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
1721         (BASE_REG_CLASS): Use CORE_REGS.
1722         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
1723         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
1724         (REGNO_OK_FOR_INDEX_P): Exclude SP.
1725         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
1726         ARM_REGNO_OK_FOR_INDEX_P.
1727         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
1728         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
1729         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
1730         (ldm/stm peepholes): Ditto.
1731         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
1732         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
1733         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
1734         * config/arm/constraints.md: Enable "k" constraint on ARM.
1735
1736 2008-02-27  Ben Elliston  <bje@au.ibm.com>
1737
1738         * config/rs6000/rs6000.c: Annotate cache line size field in all
1739         instances of struct processor_costs.
1740
1741 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
1742
1743         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
1744         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
1745         jump_bypass): New counters.
1746         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
1747         * dce.c (gate_ud_dce): Same.
1748         (gate_fast_dce): Same.
1749         * dse.c (gate_dse1): New function.
1750         (gate_dse2): New function.
1751         (gate_dse): Merge results of new gate functions.
1752         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
1753         (gate_handle_jump_bypass): Add dbg_cnt.
1754         (gate_handle_gcse): Add dbg_cnt.
1755         * ifcvt.c (gate_handle_if_conversion): Same.
1756         (gate_handle_if_after_combine): Same.
1757         (gate_handle_if_after_reload): Same.
1758         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
1759
1760 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
1761
1762         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
1763         line sizes.
1764         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
1765
1766 2008-02-26  Jason Merrill  <jason@redhat.com>
1767
1768         PR c++/35315
1769         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
1770         alone if it's the naming decl for the type's main variant.
1771
1772 2008-02-26  Tom Tromey  <tromey@redhat.com>
1773
1774         * system.h (USE_MAPPED_LOCATION): Poison.
1775         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
1776         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
1777         (make_goto_expr_edges): Likewise.
1778         (remove_bb): Likewise.
1779         (execute_warn_function_return): Likewise.
1780         * basic-block.h (struct edge_def) <goto_locus>: Change type to
1781         location_t.
1782         * c-common.c (fname_decl): Remove old location code.
1783         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
1784         location code.
1785         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
1786         variant.
1787         (ASM_INPUT_SOURCE_LOCATION): Likewise.
1788         (gen_rtx_ASM_INPUT): Likewise.
1789         (gen_rtx_ASM_INPUT_loc): Likewise.
1790         (get_rtx_asm_OPERANDS): Remove.
1791         * cfglayout.c (insn_locators_alloc): Remove old location code.
1792         (set_curr_insn_source_location): Likewise.
1793         (curr_insn_locator): Likewise.
1794         * print-tree.c (print_node): Remove old location code.
1795         * tree-mudflap.c (mf_varname_tree): Remove old location code.
1796         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
1797         * cfgexpand.c (expand_gimple_cond_expr): Don't use
1798         location_from_locus.
1799         (construct_exit_block): Remove old location code.
1800         * emit-rtl.c (force_next_line_note): Remove old location code.
1801         * profile.c (branch_prob): Remove old location code.
1802         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1803         LOC_LINE): Remove old-location variants.
1804         * langhooks.c (lhd_print_error_function): Remove old location
1805         code.
1806         * configure, config.in: Rebuilt.
1807         * configure.ac (--enable-mapped-location): Remove.
1808         * c-decl.c (c_init_decl_processing): Remove old location code.
1809         (finish_function): Likewise.
1810         * recog.c (decode_asm_operands): Remove old location code.
1811         * c-pch.c (c_common_read_pch): Remove old location code.
1812         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
1813         variants.
1814         * gimple-low.c (lower_function_body): Remove old location code.
1815         * toplev.c (unknown_location): Remove.
1816         (push_srcloc): Remove old-location variant.
1817         (process_options): Remove old location code.
1818         (lang_dependent_init): Likewise.
1819         * input.h (UNKNOWN_LOCATION): Move definition.
1820         (location_t): Undeprecate.
1821         (source_locus): Remove.
1822         (location_from_locus): Remove.
1823         (struct location_s): Remove.
1824         Remove all old-location code.
1825         (input_line, input_filename): Remove.
1826         * final.c (final_scan_insn): Remove old location code.
1827         * diagnostic.c (diagnostic_build_prefix): Remove
1828         USE_MAPPED_LOCATION test.
1829         * tree.h (gimple_stmt) <locus>: Now a location_t.
1830         (tree_exp) <locus>: Likewise.
1831         (DECL_IS_BUILTIN): Remove old-location variant.
1832         (annotate_with_file_line, annotate_with_locus): Likewise.
1833         (expr_locus, set_expr_locus): Update.
1834         * tree.c (build1_stat): Remove old location code.
1835         (last_annotated_node): Remove.
1836         (annotate_with_file_line): Remove old-location variant.
1837         (annotate_with_locus): Likewise.
1838         (expr_location): Remove old location code.
1839         (set_expr_location): Likewise.
1840         (expr_has_location): Likewise.
1841         (expr_locus): Likewise.
1842         (set_expr_locus): Likewise.
1843         (expr_filename): Don't use location_from_locus.
1844         (expr_lineno): Likewise.
1845         * rtl-error.c (location_for_asm): Remove old location code.
1846         * c-lex.c (cb_line_change): Remove old location code.
1847         (fe_file_change): Likewise.
1848         (cb_def_pragma): Likewise.
1849         (c_lex_with_flags): Likewise.
1850         * gengtype.c (do_typedef): Don't special-case location types.
1851         (define_location_structures): Remove.
1852         (main): Don't call define_location_structures.
1853         * tree-pretty-print.c (dump_implicit_edges): Remove old location
1854         code.
1855
1856 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1857
1858         PR 26264
1859         * builtins.def (BUILT_IN_STDARG_START): Remove.
1860         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
1861         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1862         * tree-inline.c (inline_forbidden_p_1): Likewise.
1863         
1864 2008-02-26  Richard Guenther  <rguenther@suse.de>
1865
1866         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1867         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1868         (lookup_decl_from_uid): Declare.
1869         (remove_decl_from_map): Likewise.
1870         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1871         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1872         (decl_for_uid_map): New global hashtable mapping DECL_UID
1873         to the decl tree.
1874         (init_ttree): Allocate it.
1875         (insert_decl_to_uid_decl_map): New helper function.
1876         (make_node_stat): Insert new decls into the map.
1877         (copy_node_stat): Likewise.
1878         (lookup_decl_from_uid): New function.
1879         (remove_decl_from_map): Likewise.
1880         (print_decl_for_uid_map_statistics): New helper.
1881         (dump_tree_statistics): Call it.
1882
1883         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1884         (referenced_var_iterator): Adjust.
1885         (FOR_EACH_REFERENCED_VAR): Adjust.
1886         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1887         (num_referenced_vars): Adjust.
1888         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1889         (first_referenced_var): Remove.
1890         (end_referenced_vars_p): Likewise.
1891         (next_referenced_var): Likewise.
1892         (referenced_var_iterator_set): New helper function.
1893         * tree-dfa.c (referenced_var_lookup): Adjust.
1894         (referenced_var_check_and_insert): Likewise.
1895         (remove_referenced_var): Likewise.
1896         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1897         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1898         (verify_call_clobbering): Likewise.
1899         (verify_memory_partitions): Likewise.
1900         (init_tree_ssa): Allocate bitmap instead of hashtable for
1901         referenced_vars.
1902         (delete_tree_ssa): Adjust.
1903         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1904         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1905         (compute_tag_properties): Likewise.
1906         (set_initial_properties): Likewise.
1907         (find_partition_for): Likewise.
1908         (update_reference_counts): Likewise.
1909         (dump_may_aliases_for): Likewise.
1910         * tree-ssa-operands.c (add_virtual_operand): Likewise.
1911         (add_call_clobber_ops): Likewise.
1912         (add_call_read_ops): Likewise.
1913         (get_asm_expr_operands): Likewise.
1914         * tree-into-ssa.c (dump_decl_set): Likewise.
1915         (update_ssa): Likewise.
1916         * tree-sra.c (scan_function): Likewise.
1917         (decide_instantiations): Likewise.
1918         (scalarize_parms): Likewise.
1919         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1920         (dsa_named_for): Likewise.
1921         * tree-ssa-structalias.c (update_alias_info): Likewise.
1922         (merge_smts_into): Likewise.
1923
1924 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1925
1926         PR 34351
1927         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
1928         * c-opts.c (c_common_handle_option): Wall enables
1929         Wvolatile-register-var.
1930         * common.opt: Move Wvolatile-register-var to...
1931         * c.opt: ...here.
1932         
1933 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1934
1935         * common.opt (Wlarger-than=): New.
1936         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
1937         -Wlarger-than=.
1938         * opts.c (common_handle_option): Handle -Wlarger-than=.
1939         * optc-gen.awk: Likewise.
1940         * opth-gen.awk: Likewise.
1941         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
1942         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1943         
1944 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1945
1946         * c-common.c (match_case_to_enum_1): Add appropriate
1947         OPT_W* parameter to warning.
1948         (c_do_switch_warnings): Likewise.
1949         * c-typeck.c (warning_init): Add one more parameter following
1950         'warning' function.
1951         (push_init_level): Update call to warning_init.
1952         (pop_init_level): Likewise.
1953         (add_pending_init): Likewise.
1954         (output_init_element: Likewise.
1955
1956 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1957
1958         PR 28322
1959         * toplev.c (toplev_main): If there are warnings or error, print
1960         errors for ignored options.
1961         * opts.c (ignored_options): New static variable.
1962         (postpone_unknown_option_error): New.
1963         (print_ignored_options): New.
1964         (handle_option): Postpone errors for unknown -Wno-* options.
1965         * opts.h (print_ignored_options): Declare.
1966         
1967 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
1968
1969         * config/mips/mips.md (loadgp_blockage, blockage): Change type
1970         to "ghost".
1971
1972 2008-02-25  Richard Guenther  <rguenther@suse.de>
1973
1974         Revert:
1975         2008-02-25  Richard Guenther  <rguenther@suse.de>
1976
1977         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1978         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1979         (lookup_decl_from_uid): Declare.
1980         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1981         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1982         (decl_for_uid_map): New global hashtable mapping DECL_UID
1983         to the decl tree.
1984         (init_ttree): Allocate it.
1985         (insert_decl_to_uid_decl_map): New helper function.
1986         (make_node_stat): Insert new decls into the map.
1987         (copy_node_stat): Likewise.
1988         (lookup_decl_from_uid): New function.
1989         (print_decl_for_uid_map_statistics): New helper.
1990         (dump_tree_statistics): Call it.
1991
1992         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1993         (referenced_var_iterator): Adjust.
1994         (FOR_EACH_REFERENCED_VAR): Adjust.
1995         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1996         (num_referenced_vars): Adjust.
1997         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1998         (first_referenced_var): Remove.
1999         (end_referenced_vars_p): Likewise.
2000         (next_referenced_var): Likewise.
2001         (referenced_var_iterator_set): New helper function.
2002         * tree-dfa.c (referenced_var_lookup): Adjust.
2003         (referenced_var_check_and_insert): Likewise.
2004         (remove_referenced_var): Likewise.
2005         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2006         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2007         (verify_call_clobbering): Likewise.
2008         (verify_memory_partitions): Likewise.
2009         (init_tree_ssa): Allocate bitmap instead of hashtable for
2010         referenced_vars.
2011         (delete_tree_ssa): Adjust.
2012         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2013         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2014         (compute_tag_properties): Likewise.
2015         (set_initial_properties): Likewise.
2016         (find_partition_for): Likewise.
2017         (update_reference_counts): Likewise.
2018         (dump_may_aliases_for): Likewise.
2019         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2020         (add_call_clobber_ops): Likewise.
2021         (add_call_read_ops): Likewise.
2022         (get_asm_expr_operands): Likewise.
2023         * tree-into-ssa.c (dump_decl_set): Likewise.
2024         (update_ssa): Likewise.
2025         * tree-sra.c (scan_function): Likewise.
2026         (decide_instantiations): Likewise.
2027         (scalarize_parms): Likewise.
2028         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2029         (dsa_named_for): Likewise.
2030         * tree-ssa-structalias.c (update_alias_info): Likewise.
2031         (merge_smts_into): Likewise.
2032
2033 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2034
2035         PR fortran/29549
2036         * doc/invoke.texi (-fcx-limited-range): Document new option.
2037         * toplev.c (process_options): Handle -fcx-fortran-rules.
2038         * common.opt: Add documentation for -fcx-fortran-rules.
2039
2040 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
2041
2042         PR c/35162
2043         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
2044         actual behaviour and C99.
2045         
2046 2008-02-26  Ben Elliston  <bje@au.ibm.com>
2047
2048         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
2049         (ASM_CPU_POWER6_SPEC): Likewise.
2050         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
2051         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
2052         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
2053
2054 2008-02-25  Richard Guenther  <rguenther@suse.de>
2055
2056         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2057         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2058         (lookup_decl_from_uid): Declare.
2059         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2060         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2061         (decl_for_uid_map): New global hashtable mapping DECL_UID
2062         to the decl tree.
2063         (init_ttree): Allocate it.
2064         (insert_decl_to_uid_decl_map): New helper function.
2065         (make_node_stat): Insert new decls into the map.
2066         (copy_node_stat): Likewise.
2067         (lookup_decl_from_uid): New function.
2068         (print_decl_for_uid_map_statistics): New helper.
2069         (dump_tree_statistics): Call it.
2070
2071         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2072         (referenced_var_iterator): Adjust.
2073         (FOR_EACH_REFERENCED_VAR): Adjust.
2074         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2075         (num_referenced_vars): Adjust.
2076         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2077         (first_referenced_var): Remove.
2078         (end_referenced_vars_p): Likewise.
2079         (next_referenced_var): Likewise.
2080         (referenced_var_iterator_set): New helper function.
2081         * tree-dfa.c (referenced_var_lookup): Adjust.
2082         (referenced_var_check_and_insert): Likewise.
2083         (remove_referenced_var): Likewise.
2084         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2085         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2086         (verify_call_clobbering): Likewise.
2087         (verify_memory_partitions): Likewise.
2088         (init_tree_ssa): Allocate bitmap instead of hashtable for
2089         referenced_vars.
2090         (delete_tree_ssa): Adjust.
2091         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2092         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2093         (compute_tag_properties): Likewise.
2094         (set_initial_properties): Likewise.
2095         (find_partition_for): Likewise.
2096         (update_reference_counts): Likewise.
2097         (dump_may_aliases_for): Likewise.
2098         * tree-ssa-operands.c (add_virtual_operand): Likewise.
2099         (add_call_clobber_ops): Likewise.
2100         (add_call_read_ops): Likewise.
2101         (get_asm_expr_operands): Likewise.
2102         * tree-into-ssa.c (dump_decl_set): Likewise.
2103         (update_ssa): Likewise.
2104         * tree-sra.c (scan_function): Likewise.
2105         (decide_instantiations): Likewise.
2106         (scalarize_parms): Likewise.
2107         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2108         (dsa_named_for): Likewise.
2109         * tree-ssa-structalias.c (update_alias_info): Likewise.
2110         (merge_smts_into): Likewise.
2111
2112 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
2113
2114         PR target/35258
2115         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
2116         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
2117         * alias.h (nonoverlapping_memrefs_p): Likewise.
2118
2119 2008-02-25  Jan Beulich  <jbeulich@novell.com>
2120
2121         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
2122         * config/i386/netware-libgcc.exp: Add __bswap?i2,
2123         __emultls_get_address, __emultls_register_common,
2124         __floatundi?f, and _Unwind_GetIPInfo.
2125         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
2126         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
2127         (gen_regparm_prefix): Likewise.
2128         (i386_nlm_encode_section_info): Sync with
2129         config/i386/winnt.c:i386_pe_encode_section_info().
2130         (i386_nlm_maybe_mangle_decl_assembler_name): New.
2131         i386_nlm_mangle_decl_assembler_name): New.
2132         (netware_override_options): New.
2133         * config/i386/netware.h (netware_override_options): Declare.
2134         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
2135         (i386_nlm_mangle_decl_assembler_name): Declare.
2136         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
2137
2138 2008-02-25  Ben Elliston  <bje@au.ibm.com>
2139
2140         PR other/32948
2141         * c-decl.c (grokdeclarator): Remove unused local variables
2142         `typedef_type' and `type_as_written'.
2143         * bb-reorder.c
2144         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
2145         unused local variable `has_hot_blocks'.
2146         (fix_crossing_conditional_branches): Remove unused local variable
2147         `prev_bb'.
2148         
2149 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
2150
2151         PR middle-end/19984
2152         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
2153         using DEF_C99_BUILTIN.
2154         (BUILT_IN_NANF): Ditto.
2155         (BUILT_IN_NANL): Ditto.
2156
2157 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
2158             Revital Eres  <eres@il.ibm.com>
2159
2160         * modulo-sched.c (calculate_must_precede_follow): Address TODO
2161         regarding the order of two dependent insns in the same row.
2162
2163 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
2164
2165         * stor-layout.c (layout_decl): Do not bump the alignment of a
2166         bit-field to more than byte alignment if it is packed.
2167
2168 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
2169
2170         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
2171         e300c2 and e300c3.
2172
2173 2008-02-24  Diego Novillo  <dnovillo@google.com>
2174
2175         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
2176
2177         PR 33738
2178         * tree-vrp.c (vrp_evaluate_conditional): With
2179         -Wtype-limits, emit a warning when comparing against a
2180         constant outside the natural range of OP0's type.
2181         * c.opt (Wtype-limits): Move ...
2182         * common.opt (Wtype-limits): ... here.
2183
2184 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
2185
2186         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
2187         * config/rs6000/e300c2c3.md: New file.
2188         * config/rs6000/rs6000.c (processor_costs): Add new costs for
2189         e300c2 and e300c3.
2190         (rs6000_override_options): Add e300c2 and e300c3 cases to
2191         processor_target_table. Do not allow usage of Altivec or Spe
2192         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
2193         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
2194         * config/rs6000/rs6000.h (processor_type): Add
2195         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
2196         (ASM_CPU_SPEC): Add e300c2 and e300c3.
2197         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
2198         and ppce300c3. Include e300c2c3.md.
2199
2200 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
2201
2202         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
2203         instead of TARGET_STRICT_ALIGN.
2204
2205 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
2206
2207         * explow.c (memory_address): Assert that the generated address is
2208         valid.
2209
2210 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2211
2212         PR target/25477
2213         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
2214         * config/darwin-ppc-ldouble-patch.def: New file.
2215         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
2216         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
2217         SUBTARGET_INIT_BUILTINS if defined.
2218         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
2219         New functions.
2220
2221 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2222
2223         PR rtl-opt/33512
2224         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
2225         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
2226
2227 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2228
2229         PR pch/35027
2230         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
2231         file" warning condtional on -Winvalid-PCH.
2232
2233 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
2234
2235         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
2236
2237 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
2238
2239         PR target/22076
2240         PR target/34256 
2241         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
2242         prevent reload from using MMX registers.
2243         (*mov<mode>_internal): Ditto.
2244         (*movv2sf_internal_rex64): Ditto.
2245         (*movv2sf_internal): Ditto.
2246
2247 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2248
2249         PR documentation/31569
2250         * doc/install.texi2html: Use makeinfo --no-number-sections.
2251
2252 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2253
2254         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
2255         ensure that we can address an entire entity > 8 bytes.  Don't
2256         generate reg+reg addressing for such data.
2257
2258 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2259
2260         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
2261         strings when optimizing for size, unless the target cares about
2262         alignment.
2263
2264 2008-02-22  Tom Tromey  <tromey@redhat.com>
2265
2266         * regclass.c (current_pass): Remove declaration.
2267
2268 2008-02-22  Anatoly Sokolov <aesok@post.ru>
2269
2270         * config/avr/libgcc.S (__RAMPZ__): Define.
2271         (__do_copy_data): Add for devices with 128KB code memory.
2272
2273 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
2274
2275         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2276         Use spe_abi.
2277         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2278
2279 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
2280
2281         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
2282         GENNONACR_REGS.
2283
2284 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2285
2286         PR c/19999
2287         * c-typeck.c (build_binary_op): Warn about floating point
2288         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
2289
2290 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
2291
2292         PR target/34526
2293         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
2294         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
2295         add vrsave.
2296         (rs6000_override_options): Set altivec_abi as default, not override,
2297         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
2298         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
2299         is used; use new member spe_abi.
2300         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
2301         spe_abi and altivec_abi.
2302
2303 2008-02-22  Tomas Bily  <tbily@suse.cz>
2304
2305         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
2306
2307 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2308
2309         PR bootstrap/35273
2310         * config.build (build_file_translate): Set to `CMD //c' only if
2311         it works.
2312         * Makefile.in (build_file_translate): Improve comment.
2313
2314 2008-02-21  Jan Hubicka  <jh@suse.cz>
2315
2316         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
2317         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
2318         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
2319
2320 2008-02-21  Michael Matz  <matz@suse.de>
2321
2322         PR target/35264
2323         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
2324
2325 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
2326
2327         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
2328         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
2329         as insn constraint.
2330         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
2331         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
2332         SSE_VEC_FLOAT_MODE_P as insn constraint.
2333         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
2334         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
2335         sse4a_movntdf using MODEF mode iterator.
2336         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
2337         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
2338         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
2339         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
2340         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
2341         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
2342         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
2343
2344 2008-02-21  Richard Guenther  <rguenther@suse.de>
2345
2346         * tree.def (PAREN_EXPR): New tree code.
2347         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
2348         and PAREN_EXPR.
2349         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
2350         * expr.c (expand_expr_real_1): Likewise.
2351         * tree-inline.c (estimate_num_insns_1): Likewise.
2352         * tree-complex.c (expand_complex_move): Likewise.
2353         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
2354         as plain x.
2355
2356 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2357
2358         PR target/35225
2359         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
2360
2361 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2362
2363         PR target/35190
2364         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
2365
2366         * config/sh/sh.c (find_barrier): Don't go past
2367         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
2368
2369 2008-02-20  DJ Delorie  <dj@redhat.com>
2370
2371         * config/h8300/h8300.md (insv): Force source operand to be a register.
2372
2373         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
2374         as a jump, not as a plain insn.
2375         
2376 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
2377
2378         * doc/invoke.texi (Warning Options): Add new option
2379         -Wframe-larger-than=.
2380         (-Wframe-larger-than): Document.
2381
2382         * flags.h (warn_frame_larger_than, frame_larger_than_size):
2383         Add declarations for new option variables.
2384
2385         * final.c (final_start_function): Check the frame size
2386         before emission and issue a Wframe-larger-than warning.
2387
2388         * opts.c (warn_frame_larger_than, frame_larger_than_size):
2389         Add definitions for new option variables.
2390         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
2391
2392         * common.opt (Wframe-larger-than=): New option.
2393
2394 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2395
2396         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
2397         (<sse>_div<mode>3): Ditto.
2398         (<sse>_vmdiv<mode>3): Ditto.
2399         (<sse>_vmsqrt<mode>2): Ditto.
2400         (*smax<mode>3): Ditto.
2401         (sse5_frcz<mode>2): Ditto.
2402         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
2403         as insn constraint.
2404
2405 2008-02-20  Richard Guenther  <rguenther@suse.de>
2406
2407         PR middle-end/35265
2408         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
2409         be happy with INTEGRAL_TYPE_P.
2410
2411 2008-02-20  Richard Guenther  <rguenther@suse.de>
2412
2413         * fold-const.c (split_tree): Associate floatig-point expressions
2414         if flag_associative_math is set.
2415
2416 2008-02-20  Richard Guenther  <rguenther@suse.de>
2417
2418         * tree.h (fold_real_zero_addition_p): Declare.
2419         * fold-const.c (fold_real_zero_addition_p): Export.
2420         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
2421         floating-point operations with zero and one.
2422
2423 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
2424
2425         * doc/install.texi: Correct references to CFLAGS, replacing them
2426         with BOOT_CFLAGS.  Document flags used during bootstrap for
2427         target libraries.
2428                                 
2429 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
2430
2431         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
2432         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
2433         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
2434         insn constraint.
2435         (smin<mode>3): Ditto from similar patterns.
2436         (smax<mode>3): Ditto.
2437         (*ieee_smin<mode>3): Ditto.
2438         (*ieee_smax<mode>3): Ditto.
2439         * config/i386/sse.md (sse): New mode attribute.
2440         (mov<mode>): Macroize expander from movv4sf and movv2df using
2441         SSEMODEF2P mode iterator.
2442         (<sse>_movnt<mode>): Ditto from similar patterns. Use
2443         SSE_VEC_FLOAT_MODE_P as insn constraint.
2444         (storent<mode>): Ditto.
2445         (storent<mode>): Macroize expander from storentsf and storentdf using
2446         MODEF mode iterator.
2447         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
2448         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
2449         (abs<mode>2): Ditto from similar patterns.
2450         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
2451         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
2452         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
2453         (<sse>_vmsqrt<mode>2): Ditto.
2454         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
2455         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
2456         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
2457         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
2458         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
2459         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
2460         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
2461         insn constraint.
2462         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
2463         iterator and SSE_FLOAT_MODE_P as insn constraint.
2464         (<sse>_ucomi): Ditto from similar patterns.
2465         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
2466         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
2467         SSE_VEC_FLOAT_MODE_P as insn constraint.
2468         (vcond<mode>): Ditto from similar patterns.
2469         (and<mode>3, *and<mode>3): Ditto.
2470         (<sse>_nand<mode>3): Ditto.
2471         (ior<mode>3, *ior<mode>3): Ditto.
2472         (xor<mode>3, *xor<mode>3): Ditto.
2473         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
2474         iterator and SSE_FLOAT_MODE_P as insn constraint.
2475         (*nand<mode>3): Ditto from similar patterns.
2476         (*ior<mode>3): Ditto.
2477         (*xor<mode>3): Ditto.
2478
2479 2008-02-20  Ira Rosen  <irar@il.ibm.com>
2480
2481         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
2482         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
2483         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
2484
2485 2008-02-19  Jan Hubicka  <jh@suse.cz>
2486
2487         * predict.c (tree_bb_level_predictions): Remove variable next
2488         mistakely introduced by previous commit.
2489
2490 2008-02-19  Jan Hubicka  <jh@suse.cz>
2491
2492         * predict.c (predict_paths_leading_to): Rewrite.
2493         (predict_paths_for_bb): New.
2494         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
2495
2496 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2497
2498         PR bootstrap/35218
2499         * Makefile.in (build_file_translate): New.
2500         (gcc-vers.texi): Use it for translating $(abs_srcdir).
2501         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
2502         * configure.ac (build_file_translate): Substitute it.
2503         * configure: Regenerate.
2504
2505 2008-02-19  Jan Hubicka  <jh@suse.cz>
2506
2507         PR rtl-optimization/34408
2508         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
2509         invalid sharing.
2510
2511 2008-02-19  Jan Hubicka  <jh@suse.cz>
2512
2513         PR middle-end/28779
2514         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
2515         call_expr.
2516
2517 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
2518
2519         PR Ada/35186
2520         * config/i386/i386-modes.def: Revert the last DI alignment
2521         change until Ada people can look into it.
2522
2523 2008-02-19  Nick Clifton  <nickc@redhat.com>
2524
2525         * opts.c (print_specific_help): Fix typo in --help text.
2526
2527 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
2528
2529         PR target/35239
2530         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
2531         32-bit inline asm without asm alternatives for host GCC < 3.0.
2532
2533 2008-02-19  Richard Guenther  <rguenther@suse.de>
2534
2535         PR tree-optimization/34989
2536         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
2537         Allow propagation to INDIRECT_REF if we can simplify only.
2538
2539 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2540
2541         * c-common.c (warn_for_collisions_1): Use appropriate option when
2542         warning.
2543
2544 2008-02-19  Nick Clifton  <nickc@redhat.com>
2545
2546         PR other/31349
2547         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
2548         (handle_options): Fix indentation.
2549         (print_filtered_help): If no language-specific options were
2550         displayed tell the user how to list all the options supported by
2551         the language's front-end.
2552         (print_specific_help): Fix indentation and remove duplicate line.
2553         (common_handle_option): Handle the -v option.
2554         For --help enable the display of undocumented options if the -v
2555         switch has been included on the command line.
2556         For --help= check for overlaps in the arguments between the option
2557         classes and the language names and issue a warning when they
2558         cannot be disambiguated.
2559         * c.opt (v): Pass on to the common option handler.
2560
2561 2008-02-19  Revital Eres  <eres@il.ibm.com> 
2562
2563         * modulo-sched.c (sms_schedule): Change dump message when
2564         create_ddg function fails.
2565         (try_scheduling_node_in_cycle): Rename row to cycle.
2566         (print_partial_schedule): Rename CYCLE to ROW.
2567
2568 2008-02-19  Christian Bruel  <christian.bruel@st.com>
2569             Zdenek Dvorak  <ook@ucw.cz>
2570
2571         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
2572
2573 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
2574
2575         PR target/33555
2576         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
2577         (*x86_movdicc_0_m1_se): Ditto.
2578
2579 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
2580
2581         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
2582         (CMPtype): Define as __gcc_CMPtype.
2583         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
2584         (CMPtype): Define as __gcc_CMPtype.
2585
2586 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
2587
2588         Support valgrind 3.3 for --enable-checking=valgrind.
2589         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
2590         here.
2591         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
2592         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
2593         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
2594         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
2595         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
2596         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
2597         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
2598         respectively.
2599         * ggc-zone.c: Similar.
2600         * ggc-page.c: Similar.
2601
2602 2008-02-19  Paul Brook  <paul@codesourcery.com>
2603
2604         PR target/35071
2605         * config/arm/ieee754-df.S: Fix do_it typo.
2606         * config/arm/ieee754-sf.S: Fix do_it typo.
2607
2608 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         PR target/35189
2611         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
2612         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
2613         (OPTION_MASK_ISA_SSE_SET): Likewise.
2614         (OPTION_MASK_ISA_SSE2_SET): Likewise.
2615         (OPTION_MASK_ISA_SSE3_SET): Likewise.
2616         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
2617         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
2618         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
2619         (OPTION_MASK_ISA_SSE4_SET): Likewise.
2620         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
2621         (OPTION_MASK_ISA_SSE5_SET): Likewise.
2622         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
2623         (OPTION_MASK_ISA_MMX_UNSET): Updated.
2624         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
2625         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
2626         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
2627         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
2628         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
2629         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
2630         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
2631         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
2632         (OPTION_MASK_ISA_SSE4): Removed.
2633         (ix86_handle_option): Turn on bits in ix86_isa_flags and
2634         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
2635         (override_options): Don't turn on implied SSE/MMX bits in
2636         ix86_isa_flags.
2637
2638 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2639
2640         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2641         32bit host.
2642
2643 2008-02-18  Joey Ye  <joey.ye@intel.com>
2644
2645         PR middle-end/34921
2646         * tree-nested.c (insert_field_into_struct): Set type alignment
2647         to field alignment if the former is less than the latter.
2648
2649 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
2650
2651         * BASE-VER: Set to 4.4.0.
2652
2653 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2654
2655         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
2656         * doc/cfg.texi: Likewise.
2657         * doc/extend.texi: Likewise.
2658         * doc/gty.texi: Likewise.
2659         * doc/invoke.texi: Likewise.
2660         * doc/loop.texi: Likewise.
2661         * doc/md.texi: Likewise.
2662         * doc/passes.texi: Likewise.
2663         * doc/rtl.texi: Likewise.
2664         * doc/sourcebuild.texi: Likewise.
2665         * doc/tm.texi: Likewise.
2666         * doc/tree-ssa.texi: Likewise.
2667
2668 2008-02-17  Richard Guenther  <rguenther@suse.de>
2669
2670         PR middle-end/35227
2671         * tree-complex.c (init_parameter_lattice_values): Handle parameters
2672         without default definition.
2673
2674 2008-02-17  Richard Guenther  <rguenther@suse.de>
2675
2676         PR tree-optimization/35231
2677         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
2678         if A | B != 1.
2679
2680 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
2681
2682         Revert:
2683
2684         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
2685         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2686         libgcc_cmp_return mode.
2687
2688 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2689
2690         PR c/28368
2691         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
2692
2693 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
2694
2695         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
2696         multilibs.
2697
2698 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2699
2700         * doc/c-tree.texi: Use `@.' where appropriate.
2701         * doc/extend.texi: Likewise.
2702         * doc/install.texi: Likewise.
2703         * doc/invoke.texi: Likewise.
2704         * doc/loop.texi: Likewise.
2705         * doc/makefile.texi: Likewise.
2706         * doc/md.texi: Likewise.
2707         * doc/passes.texi: Likewise.
2708         * doc/standards.texi: Likewise.
2709         * doc/tm.texi: Likewise.
2710
2711 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2712
2713         PR middle-end/35196
2714         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
2715         in entry_bb.
2716         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
2717         rather than in entry_bb.
2718
2719 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2720
2721         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2722         libgcc_cmp_return mode.
2723
2724 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2725
2726         PR middle-end/35130
2727         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
2728         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
2729
2730 2008-02-15  Richard Guenther  <rguenther@suse.de>
2731             Zdenek Dvorak  <ook@ucw.cz>
2732
2733         PR tree-optimization/35164
2734         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
2735         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
2736         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2737         Only propagate addresses which do not have abnormal SSA_NAMEs
2738         in their operands.
2739
2740 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
2741
2742         PR target/35088
2743         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
2744
2745 2008-02-15  Jan Hubicka  <jh@suse.cz>
2746
2747         PR middle-end/35149
2748         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
2749
2750 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2751
2752         PR middle-end/34621
2753         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
2754         when calculating alignment_pad.
2755
2756 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2757
2758         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
2759         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
2760         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
2761         and STACK_BOUNDARY define.
2762
2763 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
2764
2765         PR preprocessor/35061
2766         * c-pragma.c (handle_pragma_pop_macro): Check that
2767         pushed_macro_table has been allocated.
2768
2769 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
2770
2771         PR middle-end/35136
2772         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
2773         (force_gimple_operand): Likewise.
2774         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
2775         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
2776         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
2777         (find_interesting_uses_address): Check addressability and alignment
2778         of the base expression only after substituting bases of IVs into it.
2779
2780 2008-02-14  Michael Matz  <matz@suse.de>
2781
2782         PR target/34930
2783         * function.c (instantiate_virtual_regs_in_insn): Reload address
2784         before falling back to reloading the whole operand.
2785
2786 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2787
2788         * config/s390/s390.c (s390_mainpool_start): Emit the pool
2789         before the first section switch note.
2790
2791 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2792
2793         * doc/bugreport.texi: Update copyright years.
2794         * doc/c-tree.texi: Likewise.
2795         * doc/cfg.texi: Likewise.
2796         * doc/cpp.texi: Likewise.
2797         * doc/cppinternals.texi: Likewise.
2798         * doc/fragments.texi: Likewise.
2799         * doc/frontends.texi: Likewise.
2800         * doc/gcc.texi: Likewise.
2801         * doc/gty.texi: Likewise.
2802         * doc/hostconfig.texi: Likewise.
2803         * doc/implement-c.texi: Likewise.
2804         * doc/libgcc.texi: Likewise.
2805         * doc/loop.texi: Likewise.
2806         * doc/makefile.texi: Likewise.
2807         * doc/options.texi: Likewise.
2808         * doc/passes.texi: Likewise.
2809         * doc/rtl.texi: Likewise.
2810         * doc/sourcebuild.texi: Likewise.
2811         * doc/standards.texi: Likewise.
2812         * doc/tree-ssa.texi: Likewise.
2813         * doc/trouble.texi: Likewise.
2814
2815         * doc/extend.texi: Use @: or add comma where appropriate.
2816         * doc/invoke.texi: Likewise.
2817         * doc/tm.texi: Likewise.
2818
2819 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
2820
2821         PR target/34393
2822         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
2823         to a reg.
2824
2825 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
2826
2827         * doc/md.texi (clz, ctz): Add reference.
2828         * doc/rtl.texi (clz, ctz): Likewise.
2829
2830 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2831
2832         PR other/35148
2833         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
2834         srcdir.
2835
2836 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
2837
2838         * config/s390/s390.c (struct constant_pool): New field
2839         emit_pool_after added.
2840         (s390_mainpool_start): Set the emit_pool_after flag according
2841         to the section switch notes.
2842         (s390_mainpool_finish): Consider emit_pool_after when emitting
2843         the literal pool at the end of the function.
2844         (s390_chunkify_start): Force literal pool splits at section
2845         switch notes.
2846
2847 2008-02-13  Michael Matz  <matz@suse.de>
2848
2849         PR debug/35065
2850         * var-tracking.c (clobber_variable_part): Correctly traverse the
2851         list.
2852
2853 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2854
2855         PR 29673
2856         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
2857         Add -fdump-ipa-inline.
2858         * tree-dump.c (dump_files): Remove tree-inlined dump.
2859         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
2860         
2861 2008-02-12  Richard Guenther  <rguenther@suse.de>
2862
2863         PR tree-optimization/35171
2864         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
2865         default defs.
2866
2867 2008-02-12  Richard Guenther  <rguenther@suse.de>
2868
2869         PR middle-end/35163
2870         * fold-const.c (fold_widened_comparison): Use get_unwidened in
2871         value-preserving mode.  Disallow final truncation.
2872
2873 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
2874
2875         PR middle-end/35136
2876         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
2877         code from here to...
2878         (force_gimple_operand): ...here.
2879
2880 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
2881
2882         PR c++/35144
2883         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
2884         non-compatible pointers.
2885         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
2886         different FIELD_DECLs, try harder by comparing field offsets, sizes
2887         and types.
2888
2889         PR inline-asm/35160
2890         * function.c (match_asm_constraints_1): Don't replace the same input
2891         multiple times.
2892
2893 2008-02-12  Anatoly Sokolov <aesok@post.ru>
2894
2895         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
2896         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
2897         (expand_epilogue): Restore RAMPZ register.
2898         * config/avr/avr.md (RAMPZ_ADDR): New constant.
2899
2900 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
2901
2902         * config/i386/cygwin.asm: (__alloca): Correct calling
2903         convention and alignment.
2904         (__chkstk): Force 8 byte stack alignment.
2905
2906 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
2907             Richard Guenther  <rguenther@suse.de>
2908
2909         PR tree-optimization/33992
2910         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
2911         the zero we compare against.
2912
2913 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
2914
2915         PR libfortran/35063
2916         * gthr-win32.h (__gthread_mutex_destroy_function): New function
2917         to CloseHandle after unlocking to prevent accumulation of handle
2918         count.
2919
2920 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2921
2922         PR middle_end/34150
2923         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
2924         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
2925         and update LABEL_NUSES during and after reload.
2926
2927 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
2928
2929         PR middle-end/34627
2930         * combine.c (simplify_if_then_else): Make sure the comparison is
2931         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
2932
2933 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2934
2935         PR bootstrap/35051
2936         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
2937         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
2938         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
2939         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
2940         * tree.h (get_type_static_bounds): Likewise.
2941
2942 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2943
2944         * doc/invoke.texi (Option Summary, C++ Dialect Options)
2945         (Objective-C and Objective-C++ Dialect Options, Warning Options):
2946         Make -Wfoo language annotations match what the compiler outputs.
2947
2948 2008-02-08  Sa Liu  <saliu@de.ibm.com>
2949
2950         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
2951         intrinsics spu_convts, spu_convtu, spu_convtf.
2952         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
2953
2954 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
2955
2956         * doc/extend.texi (Function Attributes) <noinline>: Mention
2957         asm ("") as method to keep calls.
2958
2959 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2960
2961         PR other/32754
2962         * doc/options.texi (Options): Replace references to opts.sh with
2963         optc-gen.awk.
2964         * opts-common.c: Likewise.
2965         * optc-gen.awk: Likewise.
2966         
2967 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2968
2969         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
2970
2971 2008-02-07  Richard Henderson  <rth@redhat.com>
2972
2973         PR rtl-opt/33410
2974         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
2975         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
2976         funny mode.
2977
2978 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
2979
2980         PR tree-optimization/35085
2981         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
2982         for operand entry oe2 in addition to operand entry oe3 in order to
2983         expose more opportunities for vectorizer sum reduction.
2984
2985 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2986
2987         PR other/35107
2988         * Makefile.in (LIBS): Remove $(GMPLIBS).
2989         (cc1-dummy, cc1): Add $(GMPLIBS).
2990
2991 2008-02-06  Jan Hubicka  <jh@suse.cz>
2992
2993         PR target/23322
2994         * i386.md (moddf_integer): Do not produce partial memory stalls for
2995         targets where it hurts.
2996
2997 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
2998
2999         PR target/35083
3000         * optabs.c (expand_float): Do not check for decimal modes when
3001         expanding unsigned integer through signed conversion.
3002
3003 2008-02-06  Nick Clifton  <nickc@redhat.com>
3004
3005         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
3006         inside the clobber with a match_operand and duplicated operand
3007         number in the constraint.
3008         (ineqbranchsi): Delete redundant comment.
3009
3010 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3011
3012         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
3013         builtin_define ("__USE_INIT_FINI__").
3014         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
3015         -msx multilibs.
3016         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
3017
3018 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3019
3020         PR documentation/30330
3021         * doc/invoke.texi (C++ Dialect Options)
3022         (Objective-C and Objective-C++ Dialect Options, Warning Options):
3023         For each warning option -Wfoo that allows -Wno-foo, ensure both
3024         -Wfoo and -Wno-foo are listed in the option index.  Fix index
3025         entry of -Wswitch-default, index -Wnormalized= including the
3026         `=', and -Wlarger-than-@var{len} including @var{len}.
3027
3028 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3029
3030         * config/i386/i386.md (floatunssisf2): Use
3031         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
3032         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
3033         Macroize expander using MODEF mode iterator.
3034
3035 2008-02-05  Diego Novillo  <dnovillo@google.com>
3036
3037         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
3038
3039         PR 33738
3040         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
3041
3042 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3043
3044         PR other/35070
3045         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
3046
3047 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
3048
3049         PR target/35084
3050         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
3051         to indicate if a message should be generated.
3052         (init_cumulative_args): Updated.
3053         (function_value_32): Likewise.
3054
3055 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
3056
3057         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
3058
3059 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
3060
3061         PR target/35083
3062         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
3063         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
3064
3065 2008-02-04  Diego Novillo  <dnovillo@google.com>
3066
3067         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
3068
3069         PR 33738
3070         * tree-vrp.c (vrp_evaluate_conditional): With
3071         -Wtype-limits, emit a warning when comparing against a
3072         constant outside the natural range of OP0's type.
3073
3074 2008-02-04  Richard Guenther  <rguenther@suse.de>
3075
3076         PR middle-end/33631
3077         * expr.c (count_type_elements): Give for unions instead of
3078         guessing.
3079
3080 2008-02-04  Richard Guenther  <rguenther@suse.de>
3081
3082         PR middle-end/35043
3083         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
3084         to TYPE_DOMAINs base type instead of using bitsizetype here.
3085
3086 2008-02-03  Jason Merrill  <jason@redhat.com>
3087
3088         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
3089
3090 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3091
3092         PR other/29972
3093         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
3094         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
3095         (RS/6000 and PowerPC Options): Fix typos and markup.
3096         * doc/passes.texi (Tree-SSA passes): Likewise.
3097
3098 2008-02-02  Michael Matz  <matz@suse.de>
3099
3100         PR target/35045
3101         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
3102         from record_last_reg_set_info.
3103         (record_last_reg_set_info): Take an RTX argument, iterate over all
3104         constituent hardregs.
3105         (record_last_set_info, record_opr_changes): Change calls to
3106         new signature or to record_last_reg_set_info_regno.
3107
3108 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
3109
3110         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
3111
3112 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
3113
3114         PR rtl-optimization/34773
3115         * reg-notes.def (EQUAL): Mention significance of combination of
3116         REG_EQUAL and REG_RETVAL.
3117         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
3118         insn that has a REG_RETVAL.
3119
3120 2008-02-01  Roger Sayle  <roger@eyesopen.com>
3121
3122         PR bootstrap/33781
3123         * configure.ac (--enable-fixed-point): Disable unless explicitly
3124         requested on IRIX.
3125         * configure: Regenerate.
3126
3127 2008-02-01  Richard Guenther  <rguenther@suse.de>
3128
3129         PR other/35042
3130         * invoke.texi (-finline-limit): Remove no longer true parts
3131         of the documentation.  Note that there is no default value.
3132
3133 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
3134             Mark Mitchell  <mark@codesourcery.com>
3135             Ben Elliston  <bje@au.ibm.com>
3136
3137         PR c/29326
3138         * doc/extend.texi (Other Builtins): Document.
3139
3140 2008-01-31  Tom Browder <tom.browder@gmail.com>
3141
3142         * doc/c-tree.texi (Types): Fix grammar.
3143         (Expression trees): Ditto.
3144         * doc/passes.texi (Tree-SSA passes): Ditto.
3145         
3146         * doc/configterms.texi (Configure Terms): Fix typo.
3147         * doc/cpp.texi (Common Predefined Macros): Ditto.
3148         * doc/md.texi (Machine Constraints): Ditto.
3149         
3150         * doc/makefile.texi (Makefile): Add comma.
3151
3152 2008-01-31  Tom Browder  <tom.browder@gmail.com>
3153             Gerald Pfeifer  <gerald@pfeifer.com>
3154         
3155         * doc/sourcebuild.texi (Front End): Remove references to CVS
3156         and CVSROOT/modules.
3157         (Texinfo Manuals): Replace reference to CVS by one to SVN.
3158         (Back End): Remove reference to CVS.
3159
3160 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
3161
3162         PR target/34900
3163         * config/mips/mips.c (gen_load_const_gp): New function, taking a
3164         comment from...
3165         (mips16_gp_pseudo_reg): ...here.
3166         * config/mips/mips.md (load_const_gp): Replace with...
3167         (load_const_gp_<mode>): ...this :P-based insn.
3168
3169 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3170
3171         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
3172         options. Minor fixes.
3173         (-std): Move reference to standards closer to where language
3174         standards are first mentioned.
3175         
3176 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
3177
3178         PR rtl-optimization/34995
3179         * reload.c (alternative_allows_const_pool_ref): Take an rtx
3180         parameter and return a bool.  If the rtx parameter is nonnull,
3181         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
3182         (find_reloads): Update call accordingly.  Pass the new operand
3183         if it needed no address reloads, otherwise pass null.
3184
3185 2008-01-30  Richard Henderson  <rth@redhat.com>
3186
3187         PR c/34993
3188         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
3189         for unbounded arrays.
3190
3191 2008-01-30  Silvius Rus  <rus@google.com>
3192
3193         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
3194
3195 2008-01-30  Jan Hubicka  <jh@suse.cz>
3196
3197         PR target/34982
3198         * i386.c (init_cumulative_args): Use real function declaration when
3199         calling locally.
3200
3201 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
3202
3203         PR rtl-optimization/34998
3204         * global.c (build_insn_chain): Treat non-subreg_lowpart
3205         SUBREGs of pseudos as clobbering all the words covered by the
3206         SUBREG, not just all the bytes.
3207         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
3208         original df_ref rather than an extract parameter.
3209         (global_conflicts): Update call accordingly.
3210
3211 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
3212
3213         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
3214         the overflow check to make it easier to read.
3215         (__fixtfdi): Change the type of the ll member in union
3216         long_double to UDItype_x.
3217
3218 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
3219
3220         PR middle-end/34969
3221         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
3222         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
3223         * tree-inline.c (fold_marked_statements): Call
3224         cgraph_update_edges_for_call_stmt if folding a call statement.
3225         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
3226         debug_generic_stmt calls, reset it back afterwards.
3227
3228         PR c/35017
3229         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
3230         static decls.
3231         * c-typeck.c (build_external_ref): Don't pedwarn about
3232         static vars in current function's scope.
3233
3234 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
3235
3236         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
3237
3238 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
3239
3240         PR c/35002
3241         * ipa-struct-reorg.c: Fix spelling.
3242         * params.def: Ditto.
3243
3244 2008-01-29  Richard Guenther  <rguenther@suse.de>
3245
3246         PR middle-end/35006
3247         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
3248         field.
3249         * tree-inline.c (remap_type): Increment remapping_type_depth
3250         around remapping types.
3251         (copy_body_r): Only add referenced variables if they are referenced
3252         from code, not types.
3253
3254 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
3255
3256         PR c++/34055
3257         PR c++/34103
3258         PR c++/34219
3259         PR c++/34606
3260         PR c++/34753
3261         PR c++/34754
3262         PR c++/34755
3263         PR c++/34919
3264         PR c++/34961
3265         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
3266         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
3267
3268 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
3269
3270         PR target/34412
3271         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
3272         pointer for tiny stack.
3273
3274 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3275
3276         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
3277
3278 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
3279
3280         * config/vx-common.h: Fix typo in comment.
3281
3282 2008-01-28  Ian Lance Taylor  <iant@google.com>
3283
3284         PR c++/34862
3285         PR c++/33407
3286         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3287         coalesce pointers if they have different DECL_NO_TBAA_P values.
3288         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
3289         between variables with different DECL_NO_TBAA_P values.
3290
3291 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
3292
3293         PR 31535
3294         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
3295         are not legitimate small data references on SPE targets.
3296
3297 2008-01-28  David Daney  <ddaney@avtrex.com>
3298
3299         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
3300
3301 2008-01-28  David Daney  <ddaney@avtrex.com>
3302
3303         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
3304
3305 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
3306
3307         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
3308         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
3309         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
3310         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
3311         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3312         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
3313         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
3314         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
3315
3316 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3317
3318         * basic-block.h (condjump_equiv_p): Fix comment.
3319
3320 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3321
3322         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
3323         print_generic_stmt_indented): Fix comment.
3324
3325 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
3326
3327         * configure.ac (__stack_chk_fail): Add detecion for availability
3328         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
3329         * configure: Regenerate.
3330
3331 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
3332
3333         PR middle-end/34688
3334         * final.c (output_addr_const): Handle TRUNCATE.
3335
3336 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
3337
3338         PR target/34711
3339         * tree-ssa-loop-ivopts.c (comp_cost): New type.
3340         (zero_cost, infinite_cost): New constants.
3341         (struct cost_pair): Change type of cost to comp_cost.
3342         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
3343         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
3344         New functions.
3345         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
3346         split_address_cost, ptr_difference_cost, difference_cost,
3347         get_computation_cost_at, get_computation_cost,
3348         determine_use_iv_cost_generic, determine_use_iv_cost_address,
3349         determine_use_iv_cost_condition, determine_use_iv_costs,
3350         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
3351         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
3352         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
3353         Change type of cost to comp_cost.
3354         (determine_iv_cost): Increase cost of non-original ivs, instead
3355         of decreasing the cost of original ones.
3356         (get_address_cost): Indicate the complexity of the addressing mode 
3357         in comp_cost.
3358         (try_add_cand_for): Prefer using ivs not specific to some object.
3359         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
3360
3361 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
3362             Janis Johnson  <janis187@us.ibm.com>
3363
3364         PR target/34814
3365         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
3366         (TARGET_INSTANTIATE_DECLS): Likewise.
3367         * target.h (expand_to_rtl_hook): New target hook.
3368         (instantiate_decls): Likewise.
3369         * function.c (instantiate_decl): Make non-static.  Rename to...
3370         (instantiate_decl_rtl): ... this.
3371         (instantiate_expr): Use instantiate_decl_rtl.
3372         (instantiate_decls_1): Likewise.
3373         (instantiate_decls): Likewise.
3374         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
3375         * function.h (instantiate_decl_rtl): Add prototype.
3376         * cfgexpand.c (target.h): New include.
3377         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
3378         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
3379         (TARGET_INSTANTIATE_DECLS): Likewise.
3380         (TARGET_INITIALIZER): New target hooks added.
3381         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
3382         New prototype.
3383         * config/rs6000/rs6000.c (tree-flow.h): New include.
3384         (machine_function): Add sdmode_stack_slot field.
3385         (rs6000_alloc_sdmode_stack_slot): New function.
3386         (rs6000_instantiate_decls): Likewise.
3387         (rs6000_secondary_memory_needed_rtx): Likewise.
3388         (rs6000_check_sdmode): Likewise.
3389         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
3390         (TARGET_INSTANTIATE_DECLS): Likewise.
3391         (rs6000_hard_regno_mode_ok): Allow SDmode.
3392         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
3393         (rs6000_emit_move): Handle SDmode.
3394         (function_arg_advance): Likewise.
3395         (function_arg): Likewise.
3396         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
3397         SDmode var args for 32-bit compiles.
3398         (rs6000_secondary_reload_class): Handle SDmode.
3399         (rs6000_output_function_epilogue): Likewise.
3400         (rs6000_function_value): Simplify if statement.
3401         (rs6000_libcall_value): Likewise.
3402         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
3403         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
3404         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
3405         (movsd_hardfloat): New define_insn.
3406         (movsd_softfloat): Likewise.
3407         (movsd_store): Likewise.
3408         (movsd_load): Likewise.
3409         (extendsddd2): Likewise.
3410         (extendsdtd2): Likewise.
3411         (truncddsd2): Likewise.
3412         (movdd_hardfloat64): Fixup comment.
3413         (UNSPEC_MOVSD_LOAD): New constant.
3414         (UNSPEC_MOVSD_STORE): Likewise.
3415
3416 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
3417
3418         PR c++/34965
3419         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
3420         TRUTH_XOR_EXPR.
3421         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
3422         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
3423         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
3424         and TRUTH_XOR_EXPR.
3425
3426 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
3427
3428         PR target/34794
3429         * config.gcc: Separate AIX 5.3 from AIX 6.1.
3430         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3431         __LONGDOUBLE128 too.
3432         * config/rs6000/aix61.h: New file.
3433
3434 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3435
3436         PR rtl-optimization/34959
3437         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
3438         popcount and parity rtxes the same mode as their operand.
3439         Truncate or extend the result to the return value's mode
3440         if necessary.
3441
3442 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
3443
3444         PR target/34981
3445         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
3446         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
3447         to GOT_VERSION_REGNUM.
3448         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
3449         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
3450         * config/mips/mips.c (mips_emit_call_insn): New function.
3451         (mips_call_tls_get_addr): Call mips_expand_call directly.
3452         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
3453         emit_call_insn.
3454         (mips16_build_call_stub): Likewise.  Return the call insn or null.
3455         (mips_expand_call): Update the call to mips16_build_call_stub
3456         accordingly and a remove redundant condition.  Assert that MIPS16
3457         stubs do not use lazy binding.  Use mips_emit_call_insn and return
3458         the call insn.
3459         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
3460         TARGET_USE_GOT.
3461         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
3462         (mips_avoid_hazard): Remove hazard_set handling.
3463         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
3464         (UNSPEC_RESTORE_GP): ...this.
3465         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
3466         (FAKE_CALL_REGNO): Rename to...
3467         (GOT_VERSION_REGNUM): ...this.
3468         (type): Add "ghost" value.  Add an associated insn reservation.
3469         (hazard_set): Remove.
3470         (exception_receiver): Rename to...
3471         (restore_gp): ...this and update the unspec identifier accordingly.
3472         (exception_receiver, nonlocal_got_receiver): New expanders.
3473         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
3474         FAKE_CALL_REGNO.  Remove hazard_set attribute.
3475         (set_got_version, update_got_version): New patterns.
3476
3477 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
3478
3479         PR target/34970
3480         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
3481
3482 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
3483
3484         PR other/31955
3485         * doc/install.texi2html: Generate gcc-vers.texi.
3486
3487 2008-01-25  DJ Delorie  <dj@redhat.com>
3488
3489         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3490
3491 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
3492
3493         * config/c4x: Remove directory.
3494         * config.gcc (crx-*, mt-*): Mark obsolete.
3495         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
3496         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
3497         sh-*-rtemscoff*): Remove cases.
3498         * defaults.h (C4X_FLOAT_FORMAT): Remove.
3499         * real.c (encode_c4x_single, decode_c4x_single,
3500         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
3501         c4x_extended_format): Remove.
3502         * real.h (c4x_single_format, c4x_extended_format): Remove.
3503         * doc/extend.texi (interrupt, naked): Remove mention of attributes
3504         on C4x.
3505         (Pragmas): Remove comment about c4x pragmas.
3506         * doc/install.texi (c4x): Remove target-specific instructions.
3507         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
3508         * doc/md.texi (Machine Constraints): Remove C4x documentation.
3509         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
3510         refer to C4x source files as examples.
3511         (C4X_FLOAT_FORMAT): Remove documentation.
3512
3513 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
3514
3515         * config/bfin/bfin.c (override_options): Reorder tests so that
3516         flag_pic gets enabled for -msep-data.
3517
3518 2008-01-25  Richard Guenther  <rguenther@suse.de>
3519
3520         PR middle-end/32244
3521         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
3522         to its bitfield precision if required.
3523
3524 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
3525
3526         PR middle-end/33880
3527         * tree-nested.c (walk_omp_for): New function.
3528         (convert_nonlocal_reference, convert_local_reference): Call
3529         walk_omp_for on OMP_FOR.
3530         (convert_call_expr): Call walk_body on OMP_FOR's
3531         OMP_FOR_PRE_INIT_BODY.
3532
3533 2008-01-25  Richard Guenther  <rguenther@suse.de>
3534
3535         PR tree-optimization/34966
3536         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
3537         default defs and PHI_NODEs we have to insert after the
3538         defining statement.
3539
3540 2008-01-24  Nick Clifton  <nickc@redhat.com>
3541
3542         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
3543         Provide a default definition.
3544         (LIBGCC2_UNITS_PER_WORD): Likewise.
3545
3546         * config/stormy16/stormy16.c: Include df.h for the prototype
3547         for df_regs_ever_live_p.
3548         (xstormy16_expand_builtin_va_start): Convert the stack offset
3549         into a component_ref and then use POINTER_PLUS_EXPR to add it
3550         to the incoming_virtual_args_rtx.
3551         (xstormy16_gimplify_va_arg_expr): Rename to
3552         xstormy16_gimplify_va_arg_expr.
3553         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
3554         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
3555         xstormy16_gimplify_va_arg_expr.
3556         Fix up some formatting issues.
3557
3558         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
3559         Move to predicates.md.
3560         (xs_hi_general_operand): Likewise.
3561         (xs_hi_nonmemory_operand): Likewise.
3562         * config/stormy16/predicates.md:
3563         (xstormy16_carry_plus_operand): New predicate.
3564         (xs_hi_general_operand): New predicate.
3565         (xs_hi_nonmemory_operand): New predicate.
3566         * config/stormy16/stormy16-protos.h:
3567         (xstormy16_carry_plus_operand): Delete prototype.
3568         (xs_hi_general_operand): Likewise.
3569         (xs_hi_nonmemory_operand): Likewise.
3570
3571         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
3572         modifiers as they are no longer needed and they can trigger
3573         reload spill failures.
3574
3575         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
3576         with a match_operand in order to help reload.
3577
3578         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
3579         constraint with 'e' for the 8th alternative as this version of
3580         the mov.w instruction only accepts the lower 8 registers.
3581
3582 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
3583
3584         PR target/34856
3585         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
3586         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
3587         vector elements.
3588
3589 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
3590
3591         PR middle-end/33333
3592         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
3593
3594 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
3595
3596         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
3597         New functions.
3598         (remove_structure): Update allocations list before removing structure.
3599         
3600 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
3601
3602         * ipa-struct-reorg.c (is_safe_cond_expr, 
3603         create_new_stmts_for_cond_expr): Use integer_zerop function,
3604         that recognize not only zero-pointer, but zero-integer too.
3605
3606 2008-01-25  Ben Elliston  <bje@au.ibm.com>
3607
3608         PR other/22232
3609         * fixproto: Escape "." in sed expression that strips leading "./".
3610
3611 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3612
3613         PR driver/34904
3614         * gcc.c (SWITCH_OK): Removed.
3615         (SWITCH_LIVE): Changed to bit.
3616         (SWITCH_FALSE): Likewise.
3617         (SWITCH_IGNORE): Likewise.
3618         (switchstr): Change live_cond to unsigned int.
3619         (process_command): Replace SWITCH_OK with 0.
3620         (do_self_spec): Likewise.
3621         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
3622         (give_switch): Likewise.
3623         (used_arg): Likewise.
3624         (do_spec_1): Set the SWITCH_IGNORE bit.
3625         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
3626         bits.  Set the SWITCH_LIVE bit.
3627
3628 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3629
3630         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
3631
3632 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
3633
3634         PR tree-optimization/34472
3635         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
3636         parameter to a "bool *" and set *DATA to false if there is
3637         an unsafe access.  Do not delete the structure here.
3638         (check_cond_exprs): Delete it here instead.
3639         (check_cond_exprs, exclude_cold_structs): Do not increase
3640         I when removing a structure.
3641
3642 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
3643
3644         PR target/34856
3645         * config/i386/i386.c (ix86_expand_vector_init): Consider only
3646         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
3647
3648 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
3649
3650         PR middle-end/34934
3651         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
3652         a fixed vector for stack.
3653
3654 2008-01-24  Ben Elliston  <bje@au.ibm.com>
3655
3656         PR c++/25701
3657         * doc/gcc.texi (Software development): Add a direntry for g++.
3658         
3659 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
3660
3661         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
3662         stale and straggling -fforce-addr comments above.
3663
3664         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
3665         define.
3666         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
3667         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
3668
3669 2008-01-23  Michael Matz  <matz@suse.de>
3670
3671         PR debug/34895
3672         * dwarf2out.c (force_type_die): Use modified_type_die instead of
3673         gen_type_die.
3674
3675 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3676
3677         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
3678         malloc result type.
3679
3680 2008-01-23 Anatoly Sokolov <aesok@post.ru>
3681
3682         * config/avr/avr.c (avr_current_arch): New variable.
3683         (avr_arch_types): Add 'avr31' and 'avr51' entries.
3684         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
3685         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
3686         (avr_override_options): Init 'avr_current_arch'. 
3687         (base_arch_s): Move from here...
3688         * config/avr/avr.h (base_arch_s): ... here. Add new members 
3689         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
3690         'mega' to 'have_jmp_call'.
3691         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
3692         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
3693         macros.
3694         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
3695         architectures.
3696         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
3697         MULTILIB_MATCHES): (Ditto.).
3698
3699 2008-01-23  Richard Guenther  <rguenther@suse.de>
3700
3701         PR middle-end/31529
3702         * cgraphunit.c (cgraph_reset_node): Always mark the node
3703         not reachable if it is not queued already.
3704
3705 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3706
3707         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
3708         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
3709         (cputype_selected): New static variable.
3710         (bfin_handle_option): Set it if -mcpu is used.
3711         (override_option): Select default set of workarounds if no cpu type
3712         selected on the command line.
3713         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
3714
3715         From  Michael Frysinger  <michael.frysinger@analog.com>
3716         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
3717         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
3718
3719         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
3720         for bf547, bf523, bf524, and bf526.
3721         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
3722         bf526.
3723         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3724         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
3725         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
3726         __ADSPBF547__ and __ADSPBF54x__ for bf547.
3727         * doc/invoke.texi (Blackfin Options): Document that
3728         -mcpu now accept bf547, bf523, bf524, and bf526.
3729
3730 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3731
3732         PR rtl-optimization/34628
3733         * combine.c (try_combine): Stop and undo after the first combination
3734         if an autoincrement side-effect on the first insn has effectively
3735         been lost.
3736
3737 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
3738
3739         PR target/34529
3740         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
3741         Offset addresses are not valid for Altivec or paired float modes.
3742
3743 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
3744
3745         PR c++/34607
3746         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
3747         if DECL_INITIAL (decl) is error_mark_node.
3748
3749         PR c++/34914
3750         * c-common.c (handle_vector_size_attribute): Only allow
3751         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
3752         the same way as pointer, array etc. types.
3753         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
3754
3755         PR c++/34917
3756         * tree.c (build_type_attribute_qual_variant): Call
3757         build_qualified_type if attributes are equal, but quals are not.
3758
3759 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3760
3761         PR 32102
3762         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
3763         * flags.h (warn_strict_aliasing): Remove.
3764         (warn_strict_overflow): Remove.
3765         * opts.c (warn_strict_aliasing): Remove.
3766         (warn_strict_overflow): Remove.
3767         * c-opts.c (c_common_handle_option): -Wall only sets
3768         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
3769         (c_common_post_options): Give default values to -Wstrict-aliasing
3770         and -Wstrict-overflow if they are uninitialized.
3771         * common.opt (Wstrict-aliasing): Specify Var and Init.
3772         (Wstrict-overflow): Likewise.
3773
3774 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
3775
3776         PR rtl-optimization/26854
3777         PR rtl-optimization/34400
3778         PR rtl-optimization/34884
3779         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
3780         DF_RD->gen.
3781         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
3782         (df_rd_bb_info.expanded_lr_out): Deleted
3783         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
3784         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
3785         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3786         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3787         Removed code to allocate, initialize or free expanded_lr_out.
3788         (df_rd_bb_local_compute_process_def): Restructured to make more
3789         understandable.
3790         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
3791         sets if the sets are being trimmed.
3792
3793 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
3794
3795         PR bootstrap/32287
3796         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
3797         (as_vers): Likewise.
3798         * configure: Regenerated.
3799
3800 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3801
3802         PR middle-end/33092
3803         * tree-pass.h (pass_build_alias): New pass.
3804         * tree-ssa-alias.c (gate_build_alias): New.
3805         (pass_build_alias): New.
3806         * passes.c (init_optimization_passes): Add pass_build_alias after
3807         pass_create_structure_vars.
3808
3809 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
3810
3811         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
3812         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
3813         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
3814         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
3815         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
3816         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
3817         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
3818         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
3819         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
3820         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
3821         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
3822         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
3823         * config/s390/s390.md (FP_ALL): New mode iterator.
3824         (_d): New mode attribute.
3825         ("*signbit<mode>2>"): Changed mode of first operand.
3826         ("isinf<mode>2"): Changed mode of first operand.
3827         ("*TDC_insn"): Adaptation for DFP modes.
3828
3829 2008-01-22  Ben Elliston  <bje@au.ibm.com>
3830
3831         * tree.c (check_qualified_type): Improve function description.
3832
3833 2008-01-21  Jason Merrill  <jason@redhat.com>
3834
3835         PR c++/34196
3836         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
3837         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
3838         if it is set.
3839
3840 2008-01-21  DJ Delorie  <dj@redhat.com>
3841
3842         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
3843         return zero.
3844
3845 2008-01-21  Richard Guenther  <rguenther@suse.de>
3846
3847         PR middle-end/34856
3848         * tree-cfg.c (verify_expr): Allow all invariant expressions
3849         instead of just constant class ones as reference argument.
3850         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
3851         like any other constant.
3852         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3853
3854 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3855
3856         * regmove.c (fixup_match_1): Update call crossed frequencies.
3857
3858 2008-01-21  Richard Guenther  <rguenther@suse.de>
3859
3860         PR c/34885
3861         * tree-inline.c (setup_one_parameter): Deal with mismatched
3862         types using a VIEW_CONVERT_EXPR.
3863
3864 2008-01-21  Alon Dayan  <alond@il.ibm.com>
3865             Olga Golovanevsky  <olga@il.ibm.com>
3866         
3867         PR tree-optimization/34701
3868         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
3869         when the structure size is not a power of 2.
3870
3871 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
3872
3873         * doc/install.texi: Add doc for --enable-checking=df.
3874         
3875 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3876
3877         PR rtl-optimization/34808
3878         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
3879
3880 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
3881
3882         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
3883         input.
3884
3885 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3886
3887         PR rtl-optimization/26854
3888         PR rtl-optimization/34400
3889         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
3890         DF_RD->gen.
3891         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
3892         (df_rd_bb_info.expanded_lr_out): New.
3893         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
3894         * loop_iv.c (iv_analysis_loop_init): Ditto.
3895         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3896         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3897         Added code to allocate, initialize or free expanded_lr_out.
3898         (df_rd_bb_local_compute_process_def): Restructured to make
3899         more understandable.
3900         (df_rd_confluence_n): Add code to do nothing with fake edges and
3901         code to no apply invalidate_by_call sets if the sets are being trimmed.
3902         (df_lr_local_finalize): Renamed to df_lr_finalize.
3903         (df_live_local_finalize): Renamed to df_live_finalize.
3904
3905 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
3906
3907         PR target/34831
3908         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
3909         deciding whether to use reciprocal instructions.
3910
3911 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
3912
3913         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
3914         dwarf2out_note_section_used if cold_text_section is NULL.
3915
3916 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
3917
3918         PR gcov-profile/34610
3919         * tree-cfg.c (make_edges): Mark both outgoing edges from
3920         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
3921         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
3922         from OMP_FOR and OMP_CONTINUE outgoing edges.
3923
3924         * tree-profile.c (tree_profiling): Return early if
3925         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
3926         at the end.
3927         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
3928         from cfun to child_cfun.
3929         * function.h (struct function): Add after_tree_profile bit.
3930
3931 2008-01-19 Anatoly Sokolov <aesok@post.ru>
3932
3933         * config/avr/avr.S (_exit): Disable interrupt.
3934
3935 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
3936             Steven Bosscher  <stevenb.gcc@gmail.com>
3937
3938         PR rtl-optimization/26854
3939         PR rtl-optimization/34400
3940         * df-problems.c (df_live_scratch): New scratch bitmap.
3941         (df_live_alloc): Allocate df_live_scratch when doing df_live.
3942         (df_live_reset): Clear the proper bitmaps.
3943         (df_live_bb_local_compute): Only process the artificial defs once
3944         since the order is not important.
3945         (df_live_init): Init the df_live sets only with the variables
3946         found live by df_lr.
3947         (df_live_transfer_function): Use the df_lr sets to prune the
3948         df_live sets as they are being computed.  
3949         (df_live_free): Free df_live_scratch.
3950
3951 2008-01-18  Ian Lance Taylor  <iant@google.com>
3952
3953         * common.opt: Add fmerge-debug-strings.
3954         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
3955         flag_merge_debug_strings rather than flag_merge_constants.
3956         * doc/invoke.texi (Option Summary): Mention
3957         -fmerge-debug-strings.
3958         (Debugging Options): Document -fmerge-debug-strings.
3959
3960 2008-01-18  Ian Lance Taylor  <iant@google.com>
3961
3962         PR c++/33407
3963         * tree.h (DECL_IS_OPERATOR_NEW): Define.
3964         (struct tree_function_decl): Add new field operator_new_flag.
3965         * tree-inline.c (expand_call_inline): When inlining a call to
3966         operator new, force the return value to go into a variable, and
3967         set DECL_NO_TBAA_P on that variable.
3968         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
3969
3970 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
3971
3972         PR debug/34484
3973         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
3974         DWARF2_DEBUGGING_INFO.
3975         (dwarf2out_note_section_used): Ditto.  Add prototype.
3976         (have_multiple_function_sections, text_section_used,
3977         cold_text_section_used, *cold_text_sections): Move declarations
3978         before their uses.
3979
3980 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
3981
3982         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
3983         field and add signal_ra.
3984         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
3985         assignments to frame state pc.  Move end of stack check after
3986         MD_FALLBACK_FRAME_STATE_FOR.
3987         (uw_update_context_1): Use frame state signal_regs if set, instead
3988         of checking signal_frame flag.
3989         (uw_update_context): Use frame state signal_ra if set.
3990         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
3991         * config/xtensa/linux-unwind.h: New file.
3992
3993 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
3994
3995         * modulo-sched.c (get_sched_window): Fix comment typo.
3996
3997 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
3998
3999         PR tree-optimization/34648
4000         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
4001
4002 2008-01-17  Anatoly Sokolov <aesok@post.ru>
4003
4004         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
4005         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
4006
4007 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
4008
4009         PR rtl-optimization/34400
4010         * df-core.c (df_worklist_dataflow_overeager,
4011         df_worklist_dataflow_doublequeue): New functions.
4012         (df_worklist_dataflow): Two different worklist solvers.
4013         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
4014         New param.
4015
4016 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
4017
4018         PR testsuite/34821
4019         * doc/invoke.texi: Document the dependence on pthread for fopenmp
4020         and ftree-parallelize-loops.
4021
4022 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
4023
4024         PR rtl-optimization/34826
4025         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
4026
4027 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
4028
4029         * global.c (find_reg): Mark the eh regs as used if necessary.
4030         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
4031         * ra.h (struct allocno): no_eh_reg field added.  Changed
4032         no_stack_reg type to bitfield.
4033
4034 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4035