OSDN Git Service

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