OSDN Git Service

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