OSDN Git Service

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